My work ui

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

My work ui is an AI agent skill from the GitHub repository microsoft/vscode-team-kit. UX principles for the My Work canvas (the my-issues-triage panel). Use before changing, rebuilding, restyling or customising any part of its UI, including layout, toolbars, lists, bands, the details pane, buttons, colours and density, and when reviewing such a change. It keeps the panel looking and

How to use this skill

Skill file

My Work canvas: UX principles

The My Work panel must look and behave like a part of VS Code, not like a web app. It should stay simple: one row of controls per view, no repeated labels, and no boxes where a line will do. Apply every rule below to new UI as well as existing UI. If a request conflicts with a rule, say which rule and ask before breaking it.

Code: com.github.copilot/extensions/my-work/assets/ (app.js, style.css, index.html) and lib/vscodeTheme.mjs. Asset edits reload open panels automatically. Changes in lib/ need an extensions reload and the canvas reopened.

1. VS Code look

| Element | Variables | VS Code tokens |

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

| Band and section headers | --section-bg/fg/border | sideBarSectionHeader.* |

| Row hover | --hover | list.hoverBackground |

| Selected row | --sel-bg/fg, --sel-active-bg/fg | list.inactiveSelection*, list.activeSelection* |

| Focus | --focus | list.focusOutline, focusBorder |

| Counts | --badge-bg/fg | badge.* |

| Primary button | --accent, --accent-fg, --btn-hover, --btn-border, --btn-separator | button.* |

| Other buttons | --btn2-bg/fg/hover/border | button.secondary* |

| Inputs, dropdowns | --input-*, --dropdown-* | input.*, dropdown.* |

| Icon actions | --toolbar-hover, --icon-fg | toolbar.hoverBackground, icon.foreground |

| Toggled actions | --toggle-bg/fg/border | inputOption.active* |

| Tabs | --tab-fg, --tab-active-fg/border | panelTitle.* |

When VS Code has a token for something new, map it in toTokens() and use it.

2. Layout and density

3. Lists and bands

4. Toolbars and actions

5. Details pane

6. Behaviour

7. Check every UI change

Before committing, check the change live in the panel (screenshots) for each of:

  1. Both densities, Default and Compact, and the narrow stacked layout.
  2. The VS Code theme and the panel's own Light and Dark themes. Fallbacks must work when a token is missing.
  3. No horizontal overflow, and nothing clipped at the right edge, including the header split button.
  4. Hover, selection and focus states, and the collapsed and expanded state of bands and sections.
  5. Then run npm test in my-work/ and npm run test:packages at the repository root. Add a line to CHANGELOG.md.
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.