github-copilot-upgrader

Upgrades the @github/copilot npm package and fixes resulting compilation and test failures.

Updated Apr 28, 2026
Ready to run
npx skills add https://github.com/CokiStudios/cokistudios.github.io --skill github-copilot-upgrader-cokistudios
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: github-copilot-upgrader
Source: https://github.com/CokiStudios/cokistudios.github.io/tree/main/vscode-src/extensions/copilot/.agents/skills/github-copilot-upgrader
Command: npx skills add https://github.com/CokiStudios/cokistudios.github.io --skill github-copilot-upgrader-cokistudios

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @github/copilot.

What problem does it solve? Upgrading the @github/copilot npm package in the vscode-copilot-chat project often introduces breaking API changes, type errors, and failing tests that require tedious manual analysis and fixes. ## Core Features & Use Cases - Guided Upgrade Workflow: Snapshots old type definitions, installs the latest package, and runs postinstall steps in a tracked TODO sequence. - API Diff Documentation: Compares old and new index.d.ts files in a background task and documents breaking changes, new features, and deprecations in .build/upgrade-notes.md. - Compile-Fix-Test Loop: Iterates compilation (tsc --noEmit) and unit tests until all errors are resolved, then produces a full change summary. - Use Case: When a new @github/copilot SDK version is released, run this workflow to upgrade the dependency, identify every API change, repair affected code, and verify the test suite passes. ## Quick Start Upgrade the @github/copilot package to the latest version, fix any compilation errors, and make all unit tests pass.

Frequently Asked Questions about github-copilot-upgrader

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I upgrade the @github/copilot npm package in vscode-copilot-chat?▼

Run npm install @github/copilot@latest followed by npm run postinstall. Then snapshot and diff the sdk/index.d.ts type definitions, compile with tsc --noEmit, fix type errors, and run npm run test:unit until all tests pass.

How to find breaking changes after upgrading an npm SDK package?▼

Snapshot the old node_modules/@github/copilot/sdk/index.d.ts before upgrading, then compare it against the new version. Document API changes, new features, and deprecations in .build/upgrade-notes.md.

Why do TypeScript compilation errors appear after a package upgrade?▼

New package versions can rename, remove, or change exported types and function signatures. Run npm run compile and npx tsc --noEmit to surface every type error, then analyze each one before applying fixes.

Should I change test behavior to make tests pass after an upgrade?▼

No. Analyze each failure to determine whether it stems from a legitimate upgrade issue or a flawed test. Fix the underlying code or the test accordingly rather than altering behavior just to force a pass.

Does this upgrade workflow run integration tests?▼

No. The workflow explicitly excludes integration tests despite listing them in the TODO template. It relies on compilation checks and npm run test:unit for verification.