By wkin-t
Dispatch tasks to GitHub Copilot CLI (GPT-5/Opus) as subagents — task delegation and adversarial review.
Adversarial code review via Copilot CLI. Challenges Claude's implementation — design choices, assumptions, edge cases. Use after completing a feature or before declaring work done. GPT-5 acts as a skeptical reviewer finding reasons the change should not ship. <example> Context: Claude has just finished implementing a feature and wants adversarial review before committing. user: "实现完了,帮我做个对抗式审查" assistant: "我让 Copilot 以红军视角审查这些变更,找出不应该上线的理由。" <commentary> Adversarial review after implementation — Copilot challenges Claude's work from a different AI perspective. </commentary> </example> <example> Context: Claude wants a second opinion on a critical code change before pushing. user: "这个改动涉及支付逻辑,帮我仔细检查" assistant: "支付相关的改动需要严格审查,我用 Copilot 做对抗式审查,重点关注边界条件和失败模式。" <commentary> Critical code path — adversarial review with high effort to catch edge cases in payment logic. </commentary> </example> <example> Context: Proactive review during workflow Step 3.5 (boundary review). user: "TDD 实现完成了,跑一下边界审查" assistant: "我派 Copilot 做边界审查,GPT 特别擅长找 null、timeout、竞态等失败模式。" <commentary> Workflow integration — Copilot review as part of the standard development workflow boundary check. </commentary> </example>
Dispatch self-contained tasks to GitHub Copilot CLI (Claude Opus 4.6). Use for context-heavy but goal-clear work that would consume too much of Claude's context window — file scanning, edge-case analysis, boundary-condition review, batch exploration. Copilot charges per invocation so prompts must be fully self-contained and complete in one shot. <example> Context: Claude is working on a large project and needs to scan 20+ files for a specific pattern. user: "检查所有 API 端点的错误处理是否完整" assistant: "这个扫描任务涉及大量文件,我交给 Copilot CLI 来处理,节省上下文空间。" <commentary> Context-heavy scanning task with clear goal — ideal for Copilot delegation to save Claude's context. </commentary> </example> <example> Context: Claude wants a second opinion on edge cases in a piece of code. user: "帮我分析一下这段代码的边界条件" assistant: "我让 Copilot 从 Opus 的角度分析边界条件,GPT 特别擅长这类工作。" <commentary> GPT-5 excels at catching boundary conditions and error handling gaps — complementary to Claude's strengths. </commentary> </example> <example> Context: Claude needs to explore an unfamiliar codebase before making changes. user: "先了解一下这个项目的技术栈和架构" assistant: "我派 Copilot 去探索项目结构,这样不消耗我的上下文窗口。" <commentary> Exploratory task that produces a summary — Copilot reads many files and returns a concise result. </commentary> </example>
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
GitHub Copilot CLI plugin for Claude Code — delegate tasks and adversarial reviews to GPT-5 as subagents.
这个插件让 Claude Code 能够把任务委托给 GitHub Copilot CLI 执行,由 GPT-5 系列模型完成分析,结果直接返回给主 agent。
适用场景:
安装并登录 新版 GitHub Copilot CLI(需支持 copilot -p 接口):
npm install -g @github/copilot-cli
copilot auth
注意:旧版包名
@githubnext/github-copilot-cli(2023 年版)不支持-p/--model标志,请确认安装的是新版。
验证安装(以下输出中应包含 -p / --model 选项):
copilot --help
常见问题:如果 ~/.bashrc 中存在 copilot 同名 shell 函数(如 copilot () { /c/Windows/System32/copilot.exe ... }),会导致插件检测失败。需先注释或移除该函数,再重启 shell。
# 第一步:注册市场(只需做一次)
claude plugin marketplace add https://github.com/wkin-t/claude-copilot-plugin.git
# 第二步:安装插件
claude plugin install copilot-cli
重启 Claude Code 后生效。
编辑 ~/.claude/settings.json,在 extraKnownMarketplaces 下添加:
"extraKnownMarketplaces": {
"copilot-cli-plugins": {
"source": {
"source": "url",
"url": "https://github.com/wkin-t/claude-copilot-plugin.git"
}
}
}
然后执行 /plugins install copilot-cli@copilot-cli-plugins。
| 组件 | 类型 | 触发方式 | 说明 |
|---|---|---|---|
copilot-task | Agent | 主 agent 调用 | 将上下文密集型任务委托给 GPT-5 |
copilot-review | Agent | 主 agent 调用 | 对抗式代码审查,GPT-5 扮演怀疑论审查员 |
copilot-runtime | Skill | 自动加载(不对用户开放) | 调用模板、模型路由、超时规范 |
将任务整理为自包含 prompt,调用一次 Copilot CLI,原样返回输出。适合:
对抗式审查:GPT-5 的默认立场是"找到这个变更不应该上线的理由"。适合:
--allow-all 标志:授予 Copilot CLI 所有工具权限以支持非交互模式。请勿在不可信环境下运行。
CLAUDE.md 自动加载:Copilot CLI 会自动读取工作目录下的 CLAUDE.md 和 .claude/CLAUDE.md,并将内容发送至 GitHub Copilot 后端(Microsoft/OpenAI 服务器)。如果你的 CLAUDE.md 包含内部系统提示词或敏感业务信息,请确认其内容适合发送至外部服务,或在空目录下运行插件。
本插件按"现状"提供,不附带任何明示或暗示的保证。使用前请阅读以下内容:
本插件的代码审查和任务分析结果由 AI 模型(GPT-5)自动生成,不构成专业建议。AI 输出可能包含错误、遗漏或误判。
本插件会调用 GitHub Copilot CLI,该工具按调用次数计费,费用由你的 GitHub Copilot 订阅承担。
使用本插件时,以下内容会被发送至 GitHub Copilot 后端(由 Microsoft/OpenAI 处理):
CLAUDE.md / .claude/CLAUDE.md(由 Copilot CLI 自动加载)请确认你有权将相关数据发送至上述第三方服务,并符合所在组织的数据合规要求(GDPR、企业数据安全政策等)。作者对数据传输引发的任何隐私问题不承担责任。
本插件是 GitHub Copilot CLI 的包装器,与 GitHub、Microsoft 或 OpenAI 无任何关联或背书。
claude plugin update copilot-cli
然后在 Claude Code 中运行:
/reload-plugins
/reload-plugins 会立即应用更新(重载 agents、skills、hooks),无需重启 Claude Code。
发布新版本(维护者):
./release.sh 1.0.5
| 版本 | 变更 |
|---|---|
| 1.0.5 | 三阶段 preflight check:区分 Windows 内置 copilot.exe、shell 函数覆盖、旧版 CLI;修正安装文档 |
| 1.0.4 | 添加发布脚本 release.sh;完善免责声明 |
| 1.0.3 | 补全发布规范:README、LICENSE、plugin.json 完整元数据 |
| 1.0.2 | Preflight check(copilot 不可用时 fail fast);变量式调用避免 shell injection |
| 1.0.1 | 作者信息脱敏;CLAUDE.md 隐私警告;--allow-all 风险说明 |
| 1.0.0 | 初始发布 |
MIT © wkin-t
本项目遵循 MIT License。核心条款:软件"按现状"提供,作者不对任何直接或间接损失承担责任。
npx claudepluginhub wkin-t/claude-copilot-plugin --plugin copilot-cliUse Copilot from Claude Code to review code or delegate tasks.
24 agent definitions, 81 reusable skills, 28 lifecycle hooks for GitHub Copilot CLI workflows
Enforces orchestrator context window discipline via PreToolUse hooks and rules. Prevents the orchestrator from reading source files it will not edit, running diagnostic commands that should be delegated, and bypassing delegation with 'small change' rationalizations. Install to structurally prevent investigation escalation anti-patterns.
Inject SubagentStart marker context for copilot-api initiator override.
Reliability hooks for Claude Code - prevents common mistakes and enforces quality standards
Multi-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.