copilot-sdk
它能做什么
这个技能可以帮你开发能够控制 GitHub Copilot 的程序。你可以让 Copilot 执行特定任务、管理对话,还可以把它和其他工具集成在一起。
适用场景
- ✓当你想用 Copilot 自动化处理任务时。
- ✓当你想创建调用 Copilot 智能能力的自定义工具时。
- ✓当你要把 Copilot 集成到正在开发的其他软件中时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/copilot-sdk/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“创建一个程序,使用 GitHub Copilot 为一个简单的网站生成 Python 代码。”
每周 5 个新技能,1 分钟读完。
工作原理
它的原理是通过一种叫 JSON-RPC 的机制,把你的程序和 Copilot 连接起来。这样,你的程序就能向 Copilot 发送指令,并接收它的回复。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
GitHub Copilot SDK
Build applications that programmatically interact with GitHub Copilot. The SDK wraps the Copilot CLI via JSON-RPC, providing session management, custom tools, hooks, MCP server integration, and streaming across Node.js, Python, Go, and .NET.
Detailed Guide
Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.
Prerequisites
- GitHub Copilot CLI installed and authenticated (
copilot --versionto verify) - GitHub Copilot subscription (Individual, Business, or Enterprise) — not required for BYOK
- Runtime: Node.js 18+ / Python 3.8+ / Go 1.21+ / .NET 8.0+
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
常见问题
我需要先安装 GitHub Copilot 吗?
需要。你的电脑上必须安装并配置好 GitHub Copilot CLI。
我需要付费使用 GitHub Copilot 吗?
通常需要。除非你使用的是一种叫 BYOK 的特殊配置,否则需要订阅 GitHub Copilot(个人版、商业版或企业版)。
可以用哪些编程语言?
你可以使用 Node.js、Python、Go 或 .NET 来开发程序。
详情
作者的原始描述
Build applications that programmatically interact with GitHub Copilot. The SDK wraps the Copilot CLI via JSON-RPC, providing session management, custom tools, hooks, MCP server integration, and streaming across Node.js, Python, Go, and .NET.
热度
- GitHub 星标
- 48k
- 排名
- #4268
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。