[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FBZFN180VJPSEDY4SB097A":3,"skill-same:01M7FBZFN180VJPSEDY4SB097A":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7FBZFN180VJPSEDY4SB097A","bump-deps",null,"Upgrade dependencies in risk-ordered batches with a rollback point per batch, reading changelogs for breaking changes before editing and never mixing a major bump with a refactor. Use when asked to update dependencies, bump packages, upgrade a library, fix a vulnerable dependency, deal with Dependabot PRs, or get this project onto current versions.","tounsils\u002Fclaude-code-skills","tounsils","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F44228841?v=4","01M7FBZBPTTP3RAHJ0V3NH6AXN","Ilyes Tounsi","01M7FBZBQDYG7RKSEHJ384475F",1,"MIT","https:\u002F\u002Fgithub.com\u002Ftounsils\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbump-deps\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: bump-deps\ndescription: Upgrade dependencies in risk-ordered batches with a rollback point per batch, reading changelogs for breaking changes before editing and never mixing a major bump with a refactor. Use when asked to update dependencies, bump packages, upgrade a library, fix a vulnerable dependency, deal with Dependabot PRs, or get this project onto current versions.\n---\n\n# Upgrade dependencies in batches\n\nA single commit that moves forty packages cannot be reviewed, and when something breaks a week later it cannot be bisected. The whole method is batching by risk with a commit between batches.\n\n## Survey first\n\nDo not upgrade anything yet. Produce the picture.\n\n```bash\nnpm outdated                              # or: pnpm outdated, yarn outdated\nnpm audit --omit=dev\npip list --outdated\nuv pip list --outdated\ngo list -m -u all\ncargo outdated\n```\n\nThen split what comes back into four groups and report them before touching the manifest:\n\n1. **Security**: anything with an advisory that is actually reachable from this project's code. These go first regardless of version distance.\n2. **Patch**: bug fixes within the same minor. Low risk, batch them together.\n3. **Minor**: new features, same public API by convention. Low to medium risk, batch by package family.\n4. **Major**: breaking by declaration. One at a time, never batched.\n\nNote the version distance too. A package three majors behind is a project, not a bump, and saying so up front is more useful than discovering it mid-upgrade.\n\n## Establish the baseline\n\nEverything here depends on knowing the state before you start.\n\n```bash\ngit status --short                 # must be clean\nnpm test                           # record passed \u002F failed \u002F skipped\nnpm run build\nnpm run lint\n```\n\nRecord the counts. If the suite is already red or already carries skips, say so now: otherwise you will spend an hour attributing a pre-existing failure to a bump. If the suite is red, stop and offer to fix it first, because a red baseline makes every upgrade unverifiable.\n\nIf there is no suite covering the library you are about to upgrade, the upgrade is unverified by definition. Say that in the report rather than implying the green build proved something.\n\n## Work the batches\n\nOne batch, one commit, tests between every one. The commit is the rollback point, and it is the only thing that makes a failure a week later tractable.\n\n```bash\n# batch 1: security\nnpm install \u003Cpkg>@\u003Cfixed-version>\nnpm test && npm run build\ngit commit -am \"Upgrade \u003Cpkg> to \u003Cversion> for CVE-xxxx-xxxxx\"\n\n# batch 2: patch versions together\nnpm update --save\nnpm test && npm run build\ngit commit -am \"Update patch versions\"\n\n# batch 3 onward: minors, grouped by family\n```\n\nNever run a blanket \"upgrade everything to latest\" command. It produces exactly the unreviewable, unbisectable commit this method exists to avoid.\n\nAfter each batch, check the lockfile diff, not just the manifest. A one-line manifest change frequently moves dozens of transitive packages, and that is where a surprise arrives.\n\n```bash\ngit diff --stat package-lock.json\ngit diff package-lock.json | rg '^\\+.*\"resolved\"' | wc -l\n```\n\n## Majors, one at a time\n\nRead before editing. For each major:\n\n1. Find the changelog or migration guide. The releases page, `CHANGELOG.md`, or the `BREAKING CHANGE` entries in the git log.\n2. List the breaking changes that apply to this codebase, with the call sites. Grep for each removed or renamed API.\n3. Check whether the package ships a codemod. Many do, and it is more reliable than hand editing.\n4. Report that list before making changes. A major bump with four breaking changes and eleven affected call sites is a decision, not a chore.\n\n**Never mix a major bump with a refactor.** Two commits: one that adapts to the new API and nothing else, one for any cleanup the new API makes possible. A single commit doing both cannot be reverted when the upgrade turns out to be the problem.\n\nCheck the peer dependency graph before starting a major. Upgrading a framework often forces its ecosystem packages too, and that chain is the actual scope of the work.\n\n## Verify at the seam\n\nThe test suite is necessary and not sufficient. Dependency upgrades break at the boundary the tests mock out, which is precisely where the dependency lives.\n\nAfter each batch:\n\n- Run the suite. Report pass, fail, and skip counts every time.\n- Run the build, including a production build. A dev build can pass while the bundler, minifier, or tree-shaker fails on the new version.\n- Run the application once, for real, and exercise the thing the upgraded package does. A mocked HTTP client proves nothing about a new HTTP client.\n- Check for new warnings. Deprecation notices in this major are removals in the next, and they are cheapest to act on now.\n- Re-run `npm audit` and confirm the advisory you targeted is gone rather than assuming.\n\n## Flag what should not be bumped\n\nSome packages need a decision, not an upgrade. Raise these instead of silently moving the version:\n\n- **Unmaintained**: last publish years ago, open security issues, a single maintainer, or an archived repository. The fix is replacement or vendoring, and that is the user's call.\n- **A dependency with one small use**: a package pulled in for one function. Worth noting as removable.\n- **A new or renamed maintainer** on a package that then published a release with install scripts. Worth looking at before installing.\n- **A version pinned on purpose.** Check the git history and the comments before unpinning. A pin with no recorded reason is still probably a pin with a reason.\n- **An unpinned CI action or base image.** A mutable tag is a dependency that upgrades itself without a commit. Pin it to a sha.\n\n## Report\n\n- **Survey**: the four groups, with counts and version distances.\n- **Baseline**: test counts including skips, build, lint.\n- **Each batch**: what moved, the commit, and the test result after it.\n- **Majors**: the breaking changes that applied, the call sites changed, the migration guide used.\n- **Lockfile churn**: how many transitive packages moved.\n- **Verification**: suite counts, production build, and the real run you did.\n- **Not done**: what you deliberately left behind, and why. A package three majors behind, an advisory with no fixed version available, a pin you did not touch.\n","# Upgrade dependencies in batches\n\nA single commit that moves forty packages cannot be reviewed, and when something breaks a week later it cannot be bisected. The whole method is batching by risk with a commit between batches.\n\n## Survey first\n\nDo not upgrade anything yet. Produce the picture.\n\n```bash\nnpm outdated                              # or: pnpm outdated, yarn outdated\nnpm audit --omit=dev\npip list --outdated\nuv pip list --outdated\ngo list -m -u all\ncargo outdated\n```\n\nThen split what comes back into four groups and report them before touching the manifest:\n\n1. **Security**: anything with an advisory that is actually reachable from this project's code. These go first regardless of version distance.\n2. **Patch**: bug fixes within the same minor. Low risk, batch them together.\n3. **Minor**: new features, same public API by convention. Low to medium risk, batch by package family.\n4. **Major**: breaking by declaration. One at a time, never batched.\n\nNote the version distance too. A package three majors behind is a project, not a bump, and saying so up front is more useful than discovering it mid-upgrade.\n\n## Establish the baseline\n\nEverything here depends on knowing the state before you start.\n\n```bash\ngit status --short                 # must be clean\nnpm test                           # record passed \u002F failed \u002F skipped\nnpm run build\nnpm run lint\n```\n\nRecord the counts. If the suite is already red or already carries skips, say so now: otherwise you will spend an hour attributing a pre-existing failure to a bump. If the suite is red, stop and offer to fix it first, because a red baseline makes every upgrade unverifiable.\n\nIf there is no suite covering the library you are about to upgrade, the upgrade is unverified by definition. Say that in the report rather than implying the green build proved something.\n\n## Work the batches\n\nOne batch, one commit, tests between every one. The commit is the rollback point, and it is the only thing that makes a failure a week later tractable.\n\n```bash\n# batch 1: security\nnpm install \u003Cpkg>@\u003Cfixed-version>\nnpm test && npm run build\ngit commit -am \"Upgrade \u003Cpkg> to \u003Cversion> for CVE-xxxx-xxxxx\"\n\n# batch 2: patch versions together\nnpm update --save\nnpm test && npm run build\ngit commit -am \"Update patch versions\"\n\n# batch 3 onward: minors, grouped by family\n```\n\nNever run a blanket \"upgrade everything to latest\" command. It produces exactly the unreviewable, unbisectable commit this method exists to avoid.\n\nAfter each batch, check the lockfile diff, not just the manifest. A one-line manifest change frequently moves dozens of transitive packages, and that is where a surprise arrives.\n\n```bash\ngit diff --stat package-lock.json\ngit diff package-lock.json | rg '^\\+.*\"resolved\"' | wc -l\n```\n\n## Majors, one at a time\n\nRead before editing. For each major:\n\n1. Find the changelog or migration guide. The releases page, `CHANGELOG.md`, or the `BREAKING CHANGE` entries in the git log.\n2. List the breaking changes that apply to this codebase, with the call sites. Grep for each removed or renamed API.\n3. Check whether the package ships a codemod. Many do, and it is more reliable than hand editing.\n4. Report that list before making changes. A major bump with four breaking changes and eleven affected call sites is a decision, not a chore.\n\n**Never mix a major bump with a refactor.** Two commits: one that adapts to the new API and nothing else, one for any cleanup the new API makes possible. A single commit doing both cannot be reverted when the upgrade turns out to be the problem.\n\nCheck the peer dependency graph before starting a major. Upgrading a framework often forces its ecosystem packages too, and that chain is the actual scope of the work.\n\n## Verify at the seam\n\nThe test suite is necessary and not sufficient. Dependency upgrades break at the boundary the tests mock out, which is precisely where the dependency lives.\n\nAfter each batch:\n\n- Run the suite. Report pass, fail, and skip counts every time.\n- Run the build, including a production build. A dev build can pass while the bundler, minifier, or tree-shaker fails on the new version.\n- Run the application once, for real, and exercise the thing the upgraded package does. A mocked HTTP client proves nothing about a new HTTP client.\n- Check for new warnings. Deprecation notices in this major are removals in the next, and they are cheapest to act on now.\n- Re-run `npm audit` and confirm the advisory you targeted is gone rather than assuming.\n\n## Flag what should not be bumped\n\nSome packages need a decision, not an upgrade. Raise these instead of silently moving the version:\n\n- **Unmaintained**: last publish years ago, open security issues, a single maintainer, or an archived repository. The fix is replacement or vendoring, and that is the user's call.\n- **A dependency with one small use**: a package pulled in for one function. Worth noting as removable.\n- **A new or renamed maintainer** on a package that then published a release with install scripts. Worth looking at before installing.\n- **A version pinned on purpose.** Check the git history and the comments before unpinning. A pin with no recorded reason is still probably a pin with a reason.\n- **An unpinned CI action or base image.** A mutable tag is a dependency that upgrades itself without a commit. Pin it to a sha.\n\n## Report\n\n- **Survey**: the four groups, with counts and version distances.\n- **Baseline**: test counts including skips, build, lint.\n- **Each batch**: what moved, the commit, and the test result after it.\n- **Majors**: the breaking changes that applied, the call sites changed, the migration guide used.\n- **Lockfile churn**: how many transitive packages moved.\n- **Verification**: suite counts, production build, and the real run you did.\n- **Not done**: what you deliberately left behind, and why. A package three majors behind, an advisory with no fixed version available, a pin you did not touch.\n",{"name":5,"description":7},"main","807b57c9eb35842569bb3732ff8831ca7e6a3d57","skills\u002Fbump-deps",0,"https:\u002F\u002Fgithub.com\u002Ftounsils\u002Fclaude-code-skills","https:\u002F\u002Fgithub.com\u002Ftounsils\u002Fclaude-code-skills#readme","https:\u002F\u002Fgithub.com\u002Ftounsils","https:\u002F\u002Fwww.tn76.com","I ship products as remote MCP servers, then stay on as fractional CTO. Typed tools, grounded answers, eval-gated releases. 20 years in production.","2026-10-22 03:33:35",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add tounsils\u002Fclaude-code-skills --skill bump-deps",{"tool":40,"command":41},"bunx","bunx skills add tounsils\u002Fclaude-code-skills --skill bump-deps",{"tool":43,"command":44},"pnpm","pnpm dlx skills add tounsils\u002Fclaude-code-skills --skill bump-deps","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftounsils\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbump-deps\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7FC0JHT6K54H9SREG495SQJ","triage-ci","Diagnose a failing CI run by finding the first real failure rather than the last log line, classifying it as defect, flake, infrastructure, or config drift, and fixing the cause without disabling the check. Use when asked to fix the build, fix CI, find out why CI is failing, look at a failing run, or work out what is actually wrong with a red build, and when a pipeline or GitHub Actions run fails, a CI log needs reading, or tests pass locally but fail only in CI.","https:\u002F\u002Fgithub.com\u002Ftounsils\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriage-ci\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7FC0CZ5H5C5KKJJRJ67QEMN","test-gaps","Find the untested branches that matter, write tests that can actually fail, and report pass, fail, and skip counts honestly. Use when asked to add tests, write tests for this, improve coverage, find test gaps, check what is untested, or when a change needs test coverage before it ships.","https:\u002F\u002Fgithub.com\u002Ftounsils\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftest-gaps\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7FC09K4NJXCB6E6QPXG5KWR","ship-pr","Turn a finished change into a commit message and pull request derived from the actual diff, with a pre-submit checklist covering auth gates, secrets, migrations, and breaking changes. Use when asked to commit this, write a commit message, open a PR, raise a pull request, write the PR description, or get this ready to push.","https:\u002F\u002Fgithub.com\u002Ftounsils\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fship-pr\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7FC04XYBN0VP139DKXN8S3Q","root-cause","Debug by reproducing first, isolating the mechanism, then fixing the cause rather than the symptom, and keeping the reproduction as a regression test. Use when asked to debug this, fix this bug, find out why something happens, investigate a failure, or work out what is going wrong, and when a test fails intermittently or flakily, behavior differs between environments, or someone proposes raising a timeout, adding a retry, or skipping a test to make a problem go away.","https:\u002F\u002Fgithub.com\u002Ftounsils\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Froot-cause\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7FC002BQMJ6BHA49NB3J8FM","review-diff","Review uncommitted or branch-local changes for defects, ranked by severity, with a concrete failure scenario behind every finding. Use when asked to review code, review a diff, review my changes, check this before I commit, look over this branch, or do a pre-PR pass. Reviews the change, not the whole repository.","https:\u002F\u002Fgithub.com\u002Ftounsils\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Freview-diff\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7FBZWP0GPT81VC136VKQ183","restructure","https:\u002F\u002Fgithub.com\u002Ftounsils\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Frestructure\u002FSKILL.md",[],[]]