Set up the Inbox agent with recommended VS Code settings and gh CLI configuration
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "inbox-setup" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/vscode-team-kit/main/github-inbox/skills/inbox-setup/SKILL.md 2. 保存为 ~/.claude/skills/inbox-setup/SKILL.md 3. 装好后重载技能,告诉我可以用了
Before running any setup steps, use #askQuestions to ask: "Some required settings are missing for the Inbox agent. Would you like me to configure them automatically?" with choices "Yes, set up now" and "Skip for now".
If the user skips, stop and let them proceed without setup.
gh --version
If not installed, see the inbox-install-gh-cli skill.
~/Library/Application Support/Code/User/settings.json on macOS, ~/.config/Code/User/settings.json on Linux, %APPDATA%\Code\User\settings.json on Windows)read tooleditFile tool to insert ONLY the missing keys into the user's settings.json. This is safer than terminal writes for JSON files.CRITICAL: settings.json contains the user's entire VS Code configuration. You MUST NOT remove any existing content. Only ADD the specific missing keys. If chat.tools.terminal.autoApprove already exists with some rules, merge the new rules into the existing object — don't replace it.
Required settings to add if missing:
{
"chat.customAgentInSubagent.enabled": true,
"github.copilot.chat.githubMcpServer.enabled": true,
"chat.tools.terminal.enableAutoApprove": true,
"chat.tools.terminal.autoApprove": {
"/^gh api (?!.*--method (PATCH|PUT|POST|DELETE))/": true,
"/^gh search /": true,
"gh issue view": true,
"gh pr view": true,
"gh --version": true,
"gh config set": true
}
}
Tell the user what was added and why:
chat.customAgentInSubagent.enabled — Required. Enables sub-agent delegation (reviewer, triager, memory, investigator).github.copilot.chat.githubMcpServer.enabled — Enables richer features: PR reviews, comments, labels, assignees.chat.tools.terminal.enableAutoApprove + chat.tools.terminal.autoApprove — Auto-approves read-only gh commands.After updating settings, tell the user:
"✅ Settings updated! One last step — I need to enable auto-approve so read-only commands don't prompt you every time.
👉 When you see the 'Run command?' prompt below, click the Allow ▾ dropdown and select 'Enable Auto Approve'.
This is a one-time opt-in. After this, read-only gh commands will run automatically."
Then run:
gh api /notifications --jq 'length'
This command matches the auto-approve rules. Wait for the user to click "Enable Auto Approve" before proceeding.
Check if the GitHub MCP server is running. If github.copilot.chat.githubMcpServer.enabled was just added, tell the user:
"Make sure the GitHub MCP server is started and running. This gives you access to richer features like PR reviews, comments, and labels."
After setup is complete, save to memory that setup has been completed:
Use the inbox-memory skill to save setup status:
Write to memory: "# Inbox Memory\n\n## Setup State\n- Setup completed on <date>\n- All required VS Code settings are present and verified\n"
If the memory file already exists, use delete first, then create with the merged content.
帮助 AI 代理读写记忆与规则,并按环境自动选择可用存储方案
汇集多模型独立方案与辩论,辅助实现路径和架构决策
为方案、设计与实现提供高质量第二意见,及早发现逻辑与缺陷问题
用于创建和管理 AST 禁用规则,阻止特定代码语法或模式出现在编辑中。
分析 Azure DevOps 中 VS Code 滚动构建健康状况并定位失败提交范围
为 GitHub 议题或拉取请求快速添加表情反应,提升协作反馈效率。