code-mate-claude-code
它能做什么
这个工具会运行 Claude Code 来分析或编写代码。它适用于那些你原本会交给同事去做的编程任务。
适用场景
- ✓当你想让 AI 分析项目中的代码时。
- ✓当你要求 AI 实现某个具体功能时。
- ✓当你想把 AI 的结果和另一个程序的结果进行对比时。
技能链接
https://github.com/CherryHQ/cherry-studio/blob/main/resources/code-cli-skills/code-mate-claude-code/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“Claude,分析一下这段代码,看看有没有错误。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会为你的项目设置正确的位置,然后按照你的指令运行 Claude Code。它会等待文字形式的回复,并把结果展示给你。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Claude Code
Run
- Set the Bash working directory to the exact project the user named and set a finite timeout, normally 10 minutes.
- Check availability with
command -v claude. If it is missing, stop and ask the user to install Claude Code in Code Mate. - Run one task and exit:
claude -p "<prompt>" --output-format json
Pass the prompt as one quoted argument. Parse the JSON result and report stderr and the exit status on failure. Never start the interactive REPL or /login flow.
Authentication And Permissions
If Claude reports missing login, API credentials, or provider configuration, stop and ask the user to finish Claude Code setup in Code Mate. Never request, read, print, or copy credentials.
Keep tool access read-only by default. Add only the smallest necessary --allowedTools entries when the task explicitly requires tools, and grant edit or shell tools only when the user explicitly requested workspace changes. Do not use a permission-bypass mode.
Example: for a review request, ask Claude to inspect the current repository without changing files, run the command above, then summarize the parsed JSON result.
常见问题
如果没有安装 Claude Code 会怎样?
工具会提示你需要先在 Code Mate 中安装 Claude Code。
如果 AI 需要登录或配置怎么办?
工具会提示你在 Code Mate 中完成 Claude Code 的设置。
这个工具会修改我的文件吗?
默认情况下,它只会读取你的文件。只有你明确提出要求,并且拥有正确的权限时,它才会进行修改。
详情
作者的原始描述
Runs Claude Code non-interactively for code analysis and implementation tasks. Use when the user asks to delegate repository work to Claude Code or compare its result with another coding agent.
repo: CherryHQ/cherry-studio
热度
- GitHub 星标
- 53k
- 排名
- #3374
- 许可证
- AGPL-3.0
- 更新时间
- 2026/10/15
评论
- …