copilot-cli by giuseppe-trisciuoglio/developer-kit
npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill copilot-cli使用非交互式命令、显式模型选择、安全权限标志和可共享输出,将 Claude Code 中的选定任务委托给 GitHub Copilot CLI。
此技能标准化了向 GitHub Copilot CLI (copilot) 的委托流程,适用于其他模型可能更适合处理任务的情况。它涵盖:
-p / --prompt 进行非交互式执行--model 选择模型--allow-tool, --allow-all-tools, --allow-all-paths, --allow-all-urls, --yolo)广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
--silent 捕获输出--share 导出会话--resume 恢复会话仅在明确请求委托给 Copilot 或明显有益时使用此技能。
在以下情况使用此技能:
触发短语:
# CLI 可用性
copilot --version
# GitHub 认证状态
gh auth status
如果 copilot 不可用,请要求用户在继续之前安装/设置 GitHub Copilot CLI。
所有委托给 Copilot CLI 的提示必须使用英文。
提示模板:
Task: <清晰的目标>
Context: <项目/模块/文件>
Constraints: <要做的/不要做的约束>
Expected output: <格式 + 深度>
Validation: <要运行或解释的测试/检查>
根据任务类型和用户偏好选择模型。
使用本地 Copilot CLI 模型列表中可用的确切模型名称。
默认使用所需的最小能力。
--allow-tool '<tool>'--allow-all-tools--allow-all-paths--allow-all-urls--yolo基础模式:
copilot -p "<英文提示>" --model <模型名称> --allow-all-tools --silent
仅在需要时添加可选标志:
# 将会话捕获到 markdown
copilot -p "<英文提示>" --model <模型名称> --allow-all-tools --share
# 恢复现有会话
copilot --resume <会话ID> --allow-all-tools
# 严格静默的脚本输出
copilot -p "<英文提示>" --model <模型名称> --allow-all-tools --silent
命令执行后:
--share,提供生成的 markdown 文件路径当被请求时,使用多个模型运行相同的提示并进行比较:
保持比较客观且简洁。
输入:
Ask Copilot to refactor this service using GPT-5.2 and return only concrete code changes.
命令:
copilot -p "Refactor the payment service in src/services/payment.ts to reduce duplication. Keep public behavior unchanged, keep TypeScript strict typing, and output a patch-style response." \
--model gpt-5.2 \
--allow-all-tools \
--silent
输出:
Copilot proposes extracting three private helpers, consolidating error mapping, and provides a patch for payment.ts with unchanged API signatures.
输入:
Use Copilot CLI with Sonnet to review this module and share the session in markdown.
命令:
copilot -p "Review src/modules/auth for security and correctness. Report only high-confidence findings with severity and file references." \
--model claude-sonnet-4.6 \
--allow-all-tools \
--share
输出:
Review completed. Session exported to ./copilot-session-<id>.md.
输入:
Continue the previous Copilot analysis session.
命令:
copilot --resume <session-id> --allow-all-tools
输出:
Session resumed and continued from prior context.
--share 捕获会话--allow-all-tools、--allow-all-paths、--allow-all-urls 和 --yolo 会增加风险;仅在理由充分时使用有关其他选项的详细信息,请参阅 references/cli-command-reference.md。
每周安装次数
92
仓库
GitHub 星标数
173
首次出现
2026年3月4日
安全审计
安装于
claude-code80
codex80
gemini-cli80
github-copilot79
kimi-cli77
amp77
Delegate selected tasks from Claude Code to GitHub Copilot CLI using non-interactive commands, explicit model selection, safe permission flags, and shareable outputs.
This skill standardizes delegation to GitHub Copilot CLI (copilot) for cases where a different model may be more suitable for a task. It covers:
-p / --prompt--model--allow-tool, --allow-all-tools, --allow-all-paths, --allow-all-urls, --yolo)--silent--share--resumeUse this skill only when delegation to Copilot is explicitly requested or clearly beneficial.
Use this skill when:
Trigger phrases:
# CLI availability
copilot --version
# GitHub authentication status
gh auth status
If copilot is unavailable, ask the user to install/setup GitHub Copilot CLI before proceeding.
All delegated prompts to Copilot CLI must be in English.
Prompt template:
Task: <clear objective>
Context: <project/module/files>
Constraints: <do/don't constraints>
Expected output: <format + depth>
Validation: <tests/checks to run or explain>
Pick a model based on task type and user preference.
Use exact model names available in the local Copilot CLI model list.
Default to the minimum required capability.
--allow-tool '<tool>' when task scope is narrow--allow-all-tools only when multiple tools are clearly needed--allow-all-paths only if task requires broad filesystem access--allow-all-urls only if external URLs are required--yolo unless the user explicitly requests full permissionsBase pattern:
copilot -p "<english prompt>" --model <model-name> --allow-all-tools --silent
Add optional flags only as needed:
# Capture session to markdown
copilot -p "<english prompt>" --model <model-name> --allow-all-tools --share
# Resume existing session
copilot --resume <session-id> --allow-all-tools
# Strictly silent scripted output
copilot -p "<english prompt>" --model <model-name> --allow-all-tools --silent
After command execution:
--share is used, provide generated markdown pathWhen requested, run the same prompt with multiple models and compare:
Keep the comparison objective and concise.
Input:
Ask Copilot to refactor this service using GPT-5.2 and return only concrete code changes.
Command:
copilot -p "Refactor the payment service in src/services/payment.ts to reduce duplication. Keep public behavior unchanged, keep TypeScript strict typing, and output a patch-style response." \
--model gpt-5.2 \
--allow-all-tools \
--silent
Output:
Copilot proposes extracting three private helpers, consolidating error mapping, and provides a patch for payment.ts with unchanged API signatures.
Input:
Use Copilot CLI with Sonnet to review this module and share the session in markdown.
Command:
copilot -p "Review src/modules/auth for security and correctness. Report only high-confidence findings with severity and file references." \
--model claude-sonnet-4.6 \
--allow-all-tools \
--share
Output:
Review completed. Session exported to ./copilot-session-<id>.md.
Input:
Continue the previous Copilot analysis session.
Command:
copilot --resume <session-id> --allow-all-tools
Output:
Session resumed and continued from prior context.
--share when auditability matters--allow-all-tools, --allow-all-paths, --allow-all-urls, and --yolo increase risk; use only when justifiedFor additional option details, see references/cli-command-reference.md.
Weekly Installs
92
Repository
GitHub Stars
173
First Seen
Mar 4, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykWarn
Installed on
claude-code80
codex80
gemini-cli80
github-copilot79
kimi-cli77
amp77
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
122,000 周安装