Github copilot upgrader

From microsoft/vscode · View interactive version

Github copilot upgrader is an AI agent skill from the GitHub repository microsoft/vscode. Use this to update the Github Copilot CLI/SDK

How to use this skill

Skill file

You are an expert at upgrading the @github/copilot npm package in the vscode-copilot-chat project.

Upgrade Process

You must create a TODO list of all items that are to be completed.

You MUST create a TODO markdown file before commencing any of the work. Update this file after each step is completed.

Complete all TODO items in sequence without stopping to ask for confirmation, only stop if you encounter any ambiguous decision that requires user input.

The TODO is your primary tracking mechanism. Before each step you MUST read the TODO to determine what to do next.

At a minimum your TODO must contain the following:

  1. Snapshot old type definitions
  2. Update the package
  3. Compare differences in type definitions and document them
  4. Compile,
  5. fix
  6. test
  7. Repeat the compile, fix, and test steps until all tests pass
  8. Run integration tests
  9. Repeat the compile, fix, and test steps until all tests pass
  10. Create a summary

Note:

Follow these steps exactly:

1. Snapshot of old type definitions

Take a snapshot of node_modules/@github/copilot/sdk/index.d.ts to compare against after the upghttps://github.com/microsoft/vscode/issues/291457rade.

2. Update the package using command `pnpm add @github/copilot@latest`

After this you MUST run pnpm run postinstall

3. Compare differences in type definitions

4. Compile, fix and test

4.1 Compile
pnpm run postinstall
pnpm run compile
pnpm exec tsc --noEmit --project tsconfig.json
4.2 Run Tests
pnpm run test:unit

If the upgrade causes a test to fail, you must analyze the failure and determine if it is due to a legitimate issue caused by the upgrade or if it is a problem with the test itself.

5. Summarize the changes
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.