使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/saaspegasus/django-skills --skill upgrade-js-deps开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
Your task
Upgrade all JavaScript dependencies and verify nothing is broken.
Step 1: Check for available upgrades
Run npx npm-check-updates to see what upgrades are available. Review the output and present the list to the user.
Step 2: Update package.json
Run npx npm-check-updates -u to update package.json with the new versions.
Step 3: Install updated dependencies
Run make npm-install to install the upgraded dependencies and update package-lock.json.
Step 4: Run post-upgrade checks
Run these checks sequentially, stopping if any step fails:
- TypeScript type checking: Run
make npm-type-checkand report any new type errors. - Build: Run
make npm-buildto verify the production build still works. - Tests: Run
make testto verify the test suite still passes.
Step 5: Summarize and commit
Summarize what was done:
- Which packages were upgraded (notable version changes)
- Whether any type errors were introduced
- Whether the build succeeded
- Whether all tests passed
- Any issues that need manual attention
If there were failures, present the issues and ask how the user wants to proceed.
If everything passed, ask the user if they'd like to commit the changes. If yes, commit using the /commit skill.
