Skip to content

Instantly share code, notes, and snippets.

@FlowerWrong
Last active January 16, 2026 03:25
Show Gist options
  • Select an option

  • Save FlowerWrong/b7bfb762f7c5d8790bac9f0def5bcb9c to your computer and use it in GitHub Desktop.

Select an option

Save FlowerWrong/b7bfb762f7c5d8790bac9f0def5bcb9c to your computer and use it in GitHub Desktop.
claude code in action

Get Start

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment