跳到正文
Skillpedia
通用编程53k · #3378

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/CherryHQ/cherry-studio/blob/main/resources/code-cli-skills/code-mate-github-copilot/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“Copilot,帮我解释一下代码里的这个错误。”

每周 5 个新技能,1 分钟读完。

工作原理

它会在后台运行 GitHub Copilot CLI 命令。如果 Copilot 尚未安装或设置,它会请你先完成这些步骤。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

GitHub Copilot CLI

Run

  1. Set the Bash working directory to the exact project the user named and set a finite timeout, normally 10 minutes.
  2. Check availability with command -v copilot. If it is missing, stop and ask the user to install GitHub Copilot CLI in Code Mate.
  3. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能