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.
分析 Azure DevOps 中 VS Code 滚动构建健康状况并定位失败提交范围
帮助开发者快速安装 Component Explorer 轻量环境并接入 AI 代理集成。
帮助用户快速忽略或清理指定的 GitHub 通知,减少收件箱干扰。
帮助用户管理 GitHub 通知线程的订阅状态,减少无关提醒干扰。
一键将 GitHub 通知全部标记为已读,快速清空消息待办。
帮助用户通过 gh 命令获取并查看 GitHub 通知列表,快速处理仓库动态。