用途:该技能提供 GitHub Copilot CLI(终端原生 AI 编程助手)的专家级指导,覆盖安装更新、命令用法、自定义智能体、MCP 服务器配置、安全权限与 GitHub 工作流集成。
主要能力:安装与更新(brew install copilot-cli、npm install -g @github/copilot、winget install GitHub.Copilot、curl -fsSL https://gh.io/copilot-install | bash,更新用 brew upgrade copilot-cli、npm update -g @github/copilot、winget upgrade GitHub.Copilot,查看版本 copilot --version);斜杠命令(/help、/model、/mcp、/agent、/delegate、/compact、/context、/usage、/diff、/share、/skills);快捷键(@file 引入文件、!cmd 执行 shell、Esc、Ctrl+C、Ctrl+L、Ctrl+O、↑/↓);交互与编程两种模式(copilot 或 copilot -p "..." --allow-tool 'shell(git)');自定义智能体(内置 explore、task、plan、code-review,用户级 ~/.copilot/agents/、仓库 .github/agents/、组织级 .github-private/agents/);MCP 服务器(默认含 GitHub MCP,/mcp add 添加,配置存于 ~/.copilot/mcp-config.json);安全模型(可信目录、工具审批、路径与 URL 权限);会话恢复(copilot --resume、copilot --continue)与工具放行(--allow-all-tools、--allow-tool、--deny-tool)。
使用方式:首次运行 copilot 后 /login 登录,或设置 GH_TOKEN 环境变量;需有效 GitHub Copilot 订阅,npm 安装需 Node.js 22+,Windows 需 PowerShell v6+。
适用场景:咨询 copilot cli、github copilot、安装或更新 copilot、copilot 命令、mcp server、custom agents、copilot skills 等话题时自动触发,也可通过 Skill(skill="github-copilot-cli-expert") 显式调用。
限制:命令语法与模型可用性可能变化,应以 CLI 内 /help 为准;资料未提供具体收费与价格信息。