My work setup

From microsoft/vscode-team-kit · View interactive version

My work setup is an AI agent skill from the GitHub repository microsoft/vscode-team-kit. Set up the My Work canvas and the my-issues index for a new user, or check and repair an existing setup. Use when the user asks to set up, install, configure, onboard or troubleshoot "My Work", the daily triage canvas, the issue index or the indexer automation.

How to use this skill

Skill file

Set up My Work

My Work combines a canvas (the my-issues-triage canvas, titled "My Work"), the my-issues skill and one daily automation that refreshes a local index of the user's issues and hands the day's triage to a reused triage chat. Walk the user through the steps below, checking what already exists first, and confirm before creating anything that runs on a schedule.

Ask every question with the ask_user tool (a form), never as plain text the user has to answer later, and carry on as soon as they answer. Batch the decisions (clone, config values, installing missing tools, the daily automation and its time) into as few forms as possible, so setup never stalls at the end waiting for a "yes". Setup is done only when step 7 passes.

Python command. Below, <python> is the first of python3, python and (Windows) py -3 whose --version prints Python 3.9 or later. On Windows python3 is often the Microsoft Store alias, which exists but only prints "Python was not found"; skip it. Use <python> for every command in these skills and in the automation (step 6). The canvas finds a working one by itself.

Paths: <scripts> is the absolute path of the my-issues skill's scripts/ folder (a sibling of this skill's folder: ../my-issues/scripts). First run <python> "<scripts>/my_issues.py" paths and use the board, configFile, rulesFile, memoryFile and dataDir it prints for every file you read or write. They honour COPILOT_HOME; never assume ~/.copilot or Path.home(). Below, <board> means that board path.

1. Prerequisites

Check each and tell the user what is missing:

| Need | Check | Notes |

|---|---|---|

| GitHub CLI, signed in | gh auth status | The index, notifications and My Work searches all use gh. If it's missing, offer to install it (winget install --id GitHub.cli -e, brew install gh). A freshly installed gh isn't on this chat's PATH: call it by its full path (Windows: C:\Program Files\GitHub CLI\gh.exe) for gh auth login --web -s notifications. No VS Code restart is needed: the canvas and the scripts find gh in its install folder. |

| Python 3.9+ and Node 22+ | <python> --version, node --version | See Python command above. |

| Agents window with canvases enabled | list_canvas_capabilities for my-issues-triage succeeds | VS Code Insiders. Canvases are off in a fresh profile: if the canvas isn't listed, ask the user to turn on the chat.canvases.enabled setting (Settings → search "canvases") and reload the window. Session features read the Agents window's local session store (best effort). |

| Local clone for fix sessions | see below | Optional. |

| Sweeper state clone | see below | Optional, microsoft/vscode only. |

Repository clone (never clone it for the user). First look it up: run <python> "<scripts>/my_issues.py" find-clones --repo <planRepo> (default microsoft/vscode). It reads the Agents window's session store read-only, resolves worktrees to their main clone, checks each folder's git remote, and lists matching clones with how many sessions used them. Then confirm with the user: "Your sessions use ~/work/vscode for microsoft/vscode — use that?" If several match, offer them as choices (most used first); if none match, ask where their clone is. Record the confirmed path in repoPaths (step 2). Run find-clones without --repo to suggest paths for other repositories they work on too. If they have no clone, leave it out (configured paths that don't exist are ignored): fix and investigation sessions then ask where the repository is instead of guessing.

Sweeper. Nothing to set up: the indexer reads Sweeper's published index for microsoft/vscode (sweeperStateRepo, default egamma/vscodesweeper-state) with the signed-in gh, and the review records it needs one at a time. It powers the Cleanup proposals, the Implement view and Sweeper tags. A local clone of the state branch is optional and only makes record reads faster and offline; if the user already has one, record its path as sweeperRepo. Don't suggest cloning it.

2. Configuration (`<board>/my-work.config.json`)

All fields are optional. Ask only about values that differ from the defaults, in one ask_user form that also asks whether to create the daily automation (step 6) and at what time, then write the file (create <board> if needed):

{
  "org": "microsoft",
  "planRepo": "microsoft/vscode",
  "repoPaths": { "microsoft/vscode": "~/work/vscode" },
  "sweeperStateRepo": "egamma/vscodesweeper-state",
  "sweeperRepo": "~/work/vscodesweeper-state",
  "rulesFile": "~/.copilot/github-inbox-rules.md",
  "memoryFile": "~/.copilot/github-inbox-memory.md",
  "dataDir": "~/.agents/data/my-work",
  "fixSkill": "",
  "reviewSkill": "",
  "login": null
}

3. Feature areas (optional)

The first refresh creates <board>/my-issue-features.json with no custom areas; feature areas are then discovered automatically from GitHub feature labels. To group several labels or give an area precedence, add entries with a priority above 10:

{ "id": "settings", "name": "Settings", "labels": ["config", "settings-editor"], "priority": 60 }

4. Open the canvas

Open it now, before the index exists, so the user can start right away: call list_canvas_capabilities for my-issues-triage, then open_canvas with instanceId "triage-board" and input {}. My Work and Notifications work immediately; Today, Cleanup and Implement show the index build's progress and fill in when it finishes. Suggest trying Browse issues & PRs and pasting an issue number into the chat box at the bottom.

5. Build the index

Start <python> "<scripts>/refresh_my_issues.py" in the background (async) and keep going; don't wait for it. On the first run it creates the feature configuration, index and manifest, indexes the user's open issues and publishes them (usually within a minute), then adds their closed issues and publishes again. It fetches issues in batches of 50, so even ten thousand issues take only minutes. It never changes GitHub. The canvas shows its progress; report the final counts when it finishes.

6. Daily automation

Read references/indexer-automation.md, replace {{SCRIPTS}} and {{BOARD}} with absolute paths and {{PYTHON}} with <python>. The user chose whether they want it and at what time (default weekdays 09:00 local) in an earlier form; if not, ask now with ask_user. If yes, create it right away with the automation tool: name "My Issues Indexer", a quick-chat target on the local agent host, and auto-approval so its commands can run unattended. It creates the triage chat (titled "My Work") on its first run and reuses that chat every day after. Don't run it while the first index build is still going.

7. Verify

When the index build has finished, invoke the canvas action refresh and check its result:

Then report each item as done or not, with the counts. Don't tell the user setup is complete while any of them fails.

Troubleshooting

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.