Unix 哲学:Claude Code 是可组合和可脚本化的。tail -f app.log | claude -p "Slack me if you see any anomalies appear in this log stream" 有效。您的 CI 可以运行 claude -p "If there are new text strings, translate them into French and raise a PR for @lang-fr-team to review"。
/resume 继续之前的对话
/init 初始化已有项目CLAUDE.md
claude --continue 继续当前目录中最近的对话 claude --resume 打开对话选择器或按名称恢复
使用litellm抓包看看claude code都在干啥?
/clear 清除对话历史 具体清除了什么?
/plan mode 新手必备 claude --permission-mode plan
// .claude/settings.json
{
"permissions": {
"defaultMode": "plan"
}
}
图片粘贴
think”、“think hard”和”think more” ultrathink
git worktree
cat build-error.txt | claude -p 'concisely explain the root cause of this build error' > output.txt
自定义命令很简单 .claude/commands $ARGUMENTS 参数
检查点
如果使用外部终端,请在 Claude Code 内运行 /ide 以将其连接到 VS Code。
Claude Code GitLab CI/CD