Agent SkillsasJEI/vscode › github-copilot-upgrader

github-copilot-upgrader

GitHub

用于在vscode-copilot-chat项目中升级@github/copilot npm包。通过创建TODO清单,依次执行快照旧类型、更新包、对比差异、编译修复及单元测试,确保所有测试通过后输出变更摘要。

extensions/copilot/.agents/skills/github-copilot-upgrader/SKILL.md asJEI/vscode

触发场景

需要升级Github Copilot CLI/SDK 更新@github/copilot npm包版本

安装

npx skills add asJEI/vscode --skill github-copilot-upgrader -g -y
更多选项

非标准路径

npx skills add https://github.com/asJEI/vscode/tree/main/extensions/copilot/.agents/skills/github-copilot-upgrader -g -y

不安装直接使用

npx skills use asJEI/vscode@github-copilot-upgrader

指定 Agent (Claude Code)

npx skills add asJEI/vscode --skill github-copilot-upgrader -a claude-code -g -y

安装 repo 全部 skill

npx skills add asJEI/vscode --all -g -y

预览 repo 内 skill

npx skills add asJEI/vscode --list

SKILL.md

Frontmatter
{
    "name": "github-copilot-upgrader",
    "model": "Claude Opus 4.6",
    "description": "Use this to update the Github Copilot CLI\/SDK"
}

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. Repease steps Compile, fix and tests until all tests are passing
  8. Run integration tests
  9. Repeate Compile, Fix, Test, until all tests are passing
  10. Create a summary

Note:

  • Do not run any integration test.

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 npm install @github/copilot@latest

After this you MSUT run npm run postinstall

3. Compare differences in type definitions

  • Use mode=background for comparing the files and when done, just let me know its done
  • This is what you need to do in the background task:
    • Analyze the differences between the old and new index.d.ts files to identify any API changes, new features, or breaking changes.
    • Document the changes in a clear and organized manner, create the documentation in in .build/upgrade-notes.md

4. Compile, fix and test

4.1 Compile

  • Run the following commands to identify any type errors caused by the upgrade:
  • You must perform a deep analysis of the compilation errors before attempting to resolve them.
  • Ensure there are no compilation errors before proceeding to run the tests.
npm run postinstall
npm run compile
npx tsc --noEmit --project tsconfig.json

4.2 Run Tests

  • Use the following command to run test
npm run test:unit
  • Do NOT change the behavour of the code just to make the tests pass. 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.
  • Ensure all tests are passing before proceeding to the next step.

5. Summarize the changes

  • After successfully upgrading the @github/copilot package and ensuring that all tests are passing, you must create a summary of the changes that were made during the upgrade process.
  • Give a summary of the changes in the code base
  • Give a summary of the changes in the tests
  • Give a summary of the differenes in the type definitions between the old and new versions of the @github/copilot package.
    • Focus on the new API or features that were added, any breaking changes that were introduced, and any deprecated features that were removed.
  • Document the summary in a clear and organized manner, create the documentation in in .build/upgrade-notes.md

版本历史

  • ce4db66 当前 2026-07-19 08:57

同 Skill 集合

.agents/skills/launch/SKILL.md
.github/skills/accessibility/SKILL.md
.github/skills/add-policy/SKILL.md
.github/skills/agent-host-e2e-tests/SKILL.md
.github/skills/agent-host-logs/SKILL.md
.github/skills/author-contributions/SKILL.md
.github/skills/auto-perf-optimize/SKILL.md
.github/skills/azure-pipelines/SKILL.md
.github/skills/chat-customizations-editor/SKILL.md
.github/skills/chat-perf/SKILL.md
.github/skills/code-oss-logs/SKILL.md
.github/skills/component-fixtures/SKILL.md
.github/skills/cpu-profile-analysis/SKILL.md
.github/skills/design-philosophy/SKILL.md
.github/skills/fix-ci-failures/SKILL.md
.github/skills/fix-errors/SKILL.md
.github/skills/heap-snapshot-analysis/SKILL.md
.github/skills/hygiene/SKILL.md
.github/skills/integrated-browser/SKILL.md
.github/skills/integration-tests/SKILL.md
.github/skills/memory-leak-audit/SKILL.md
.github/skills/otel/SKILL.md
.github/skills/sessions/SKILL.md
.github/skills/smoke-tests/SKILL.md
.github/skills/symbolicate-crash-dump/SKILL.md
.github/skills/tool-rename-deprecation/SKILL.md
.github/skills/unit-tests/SKILL.md
.github/skills/update-screenshots/SKILL.md
.github/skills/ux-css-layout/SKILL.md
.github/skills/ux-theming/SKILL.md
.github/skills/vscode-dev-workbench/SKILL.md
extensions/copilot/.agents/skills/anthropic-sdk-upgrader/SKILL.md
extensions/copilot/.agents/skills/launch/SKILL.md
src/vs/sessions/skills/act-on-feedback/SKILL.md
src/vs/sessions/skills/code-review/SKILL.md
src/vs/sessions/skills/commit/SKILL.md
src/vs/sessions/skills/create-draft-pr/SKILL.md
src/vs/sessions/skills/create-pr/SKILL.md
src/vs/sessions/skills/fix-ci/SKILL.md
src/vs/sessions/skills/generate-run-commands/SKILL.md
src/vs/sessions/skills/merge/SKILL.md
src/vs/sessions/skills/sync-upstream/SKILL.md
src/vs/sessions/skills/sync/SKILL.md
src/vs/sessions/skills/troubleshoot/SKILL.md
src/vs/sessions/skills/update-pr/SKILL.md
src/vs/sessions/skills/update-skills/SKILL.md

元信息

文件数
0
版本
ce4db66
Hash
d90ac065
收录时间
2026-07-19 08:57

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-22 10:09
浙ICP备14020137号-1 $访客地图$