code-mate-github-copilot
它能做什么
这个智能体可以帮你使用 GitHub Copilot CLI 来分析代码或完成编程任务。它可以回答你关于项目的问题,也可以借助 Copilot 的工具帮你编写代码。
适用场景
- ✓当你想理解某段代码时。
- ✓当你需要帮忙编写新代码时。
- ✓当你想检查项目中是否存在问题时。
技能链接
https://github.com/CherryHQ/cherry-studio/blob/main/resources/code-cli-skills/code-mate-github-copilot/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“Copilot,帮我解释一下代码里的这个错误。”
每周 5 个新技能,1 分钟读完。
工作原理
它会在后台运行 GitHub Copilot CLI 命令。如果 Copilot 尚未安装或设置,它会请你先完成这些步骤。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
GitHub Copilot CLI
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 copilot. If it is missing, stop and ask the user to install GitHub Copilot CLI in Code Mate. - Run one non-interactive task:
copilot -p "<prompt>" -s --output-format json --no-ask-user
Pass the prompt as one quoted argument. Parse stdout as JSONL and treat an error event or nonzero exit as failure; the published exit-code contract is incomplete. Never start the interactive UI or an authentication flow.
Authentication And Permissions
If Copilot reports a missing login, subscription, or token configuration, stop and ask the user to configure GitHub Copilot CLI in Code Mate. Never request, read, print, or copy credentials.
--no-ask-user prevents an unattended approval prompt. Keep tools denied by default. When the user explicitly requests workspace changes, add only narrowly scoped --allow-tool entries; never use --allow-all as a shortcut.
Example: ask Copilot to explain a failing test without modifying files, run the command above, and summarize the final JSONL result plus any denied tool request.
常见问题
什么是 GitHub Copilot CLI?
它是一个工具,让你可以直接在命令行中使用 GitHub Copilot 的能力,辅助完成编程任务。
我需要安装什么吗?
需要。你的环境中必须已经安装并配置好 GitHub Copilot CLI,这个智能体才能正常工作。
它会修改我的代码吗?
可以,但只有在你明确提出要求时才会。并且它的权限会受到限制,以确保安全。
详情
作者的原始描述
Runs GitHub Copilot CLI programmatically for repository analysis and coding tasks. Use when the user asks to delegate work to Copilot CLI or obtain a Copilot coding-agent result.
repo: CherryHQ/cherry-studio
热度
- GitHub 星标
- 53k
- 排名
- #3378
- 许可证
- AGPL-3.0
- 更新时间
- 2026/10/15
评论
- …