
Description
Set up the Inbox agent with recommended VS Code settings and gh CLI configuration
SKILL.md
Inbox Agent Setup
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.
Step 0: Detect existing memory
Before touching VS Code settings, check whether the user already has inbox memory from a previous setup (e.g. Copilot CLI):
- Run
ls -la ~/.copilot/github-inbox-*.md 2>/dev/nullto detect existing CLI memory/rules files. - Try
#memory view /memories/github-inbox-memory.mdand/memories/github-inbox-rules.mdto detect existing VS Code memory. - Report what you found in plain language, e.g.:
- "Found existing memory in
~/.copilot/:github-inbox-memory.md(84 lines),github-inbox-rules.md(16 rules)." - "No existing VS Code
#memoryfiles."
- "Found existing memory in
- If existing memory was found in EITHER location, use
#askQuestionsto ask which the inbox agent should use:- "Use existing
~/.copilot/files (recommended — keep your rules and history)" - "Use VS Code
#memory(start fresh)" - "Use VS Code
#memoryand import from~/.copilot/(copy once, then use#memory)"
- "Use existing
- Record the choice in memory under a
## Backendsection so future sessions don't re-prompt.
If no existing memory is found anywhere, default to #memory silently and continue.
Step 1: Check gh CLI
gh --version
If not installed, see the inbox-install-gh-cli skill.
Step 2: Configure VS Code settings
- Ask the user for their VS Code settings.json path if needed, or check common locations (
~/Library/Application Support/Code/User/settings.jsonon macOS,~/.config/Code/User/settings.jsonon Linux,%APPDATA%\Code\User\settings.jsonon Windows) - Read settings using the
readtool - Check which of the required settings below are missing
- If ALL required settings are already present with correct values, skip this step
- If any are missing, use VS Code's
editFiletool 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-onlyghcommands.
Step 3: Enable auto-approve
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.
Step 4: Verify GitHub MCP server
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."
Step 5: Save setup status
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.
More skills from the vscode-team-kit repository
View all 14 skillscouncil-plan
perform multi-model council planning
May 13ArchitectureEngineeringMulti-AgentSystem Designcouncil-review
perform multi-model council code reviews
May 13Code ReviewEngineeringMulti-AgentPull Requestsfollow-goal
manage agent goals and stopping conditions
Jul 7AgentsMicrosoftProductivityinbox-add-reaction
add reactions to GitHub issues and PRs
Jul 7GitHubPull Requestsinbox-install-gh-cli
install GitHub CLI
May 13CLIGitHubinbox-mark-all-read
mark GitHub notifications as read
May 13GitHubProductivity
More from Microsoft
View publisherplaywright-trace
inspect Playwright trace files
playwright
Apr 6DebuggingPlaywrightTestingrushstack-best-practices
manage Rush monorepos with best practices
rushstack
Apr 6EngineeringLocal DevelopmentMicrosoftProject Management +1azure-ai-agents-persistent-dotnet
build AI agents with Azure .NET SDK
skills
Jul 3.NETAgentsAzureLLMazure-ai-anomalydetector-java
build anomaly detection applications with Java
skills
May 13AnalyticsAzureData AnalysisJava +2azure-ai-contentsafety-java
build content moderation applications with Azure AI
skills
Jul 7AI InfrastructureAzureJavaSecurityazure-ai-contentsafety-py
detect harmful content with Azure AI Content Safety
skills
Jul 18AzureComplianceLLMMicrosoft +2