dependency-upgrade
БесплатноБез исполняемых скриптовНе проверенPlan, batch, and verify dependency upgrades safely. Triages outdated packages into risk tiers, upgrades in order (dev/minor/patch first, runtime majors last)…
от open-gsd★ 1 399 звёзд на GitHubОб этом скилле
Invocation points:
/gsd start dep-upgradeworkflow is running- Ad-hoc "bump the deps" request
- Security advisory response (CVE in a direct dep)
- Framework major-version update (React 18 → 19, Node LTS bump)
- Monthly hygiene pass
VERIFY BETWEEN BATCHES. Run the test suite after every batch. Don't stack five batches and hope. If a batch breaks something, you need to know which one.
ONE MAJOR PER COMMIT. Major version bumps are where real breakage lives. Keep them isolated so the commit history tells the truth.
Step 1: Take inventory
Run the ecosystem's outdated check. Capture output, don't act on it yet:
- Node:
npm outdatedorpnpm outdatedoryarn outdated - Python:
pip list --outdatedoruv pip list --outdated - Rust:
cargo outdated - Ruby:
bundle outdated - Go:
go list -m -u all
Also capture:
npm audit(or equivalent) — security advisories- Current versions of language runtime, build tool, test runner
Step 2: Classify each outdated package
For each outdated package, note:
- Type: direct dep / dev-dep / transitive
- Kind of bump: patch (1.2.3 → 1.2.4), minor (1.2.3 → 1.3.0), major (1.2.3 → 2.0.0)
- Risk: Low (dev-dep, patch), Medium (runtime minor, dev-dep major), High (runtime major, framework, TypeScript compiler)
- Blast radius: How many files in the repo import it? (Rough count via
rg.) - Has known breaking changes: Check the CHANGELOG or release notes for any major bumps — do NOT skip this, and do NOT infer "probably fine."
Step 3: Build the batch plan
Order:
- Batch 1 — Dev dep patches and minors. Lowest risk, fastest feedback. Includes linters, formatters, type definitions, test runners.
- Batch 2 — Runtime patches. All patch bumps to runtime deps together.
- Batch 3 — Runtime minors. One batch per semantic group if any minor carries risk notes; otherwise one batch for the rest.
- Batch 4+ — Each major, individually. One commit per major. Framework bumps (React, Next.js, Vue, TypeScript) each get their own commit.
- Batch N — Language runtime. If bumping Node/Python/Rust, last — it changes the compile/run env for everything.
Skip (for now):
- Anything with "unreleased", "pre", "beta", "rc" tags unless the user explicitly wants pre-release tracking
- Deps you know are blocked by another dep (e.g., can't bump X until Y supports it)
Present the plan to the user. One round of adjustment. Then execute.
Step 4: Execute a batch
For each batch:
- Start from a clean working tree.
git status— no uncommitted changes. - Apply the upgrades using the ecosystem command (
npm install package@version ...,uv add …,cargo update -p …). - Regenerate the lockfile fully if necessary.
- Build. Run the project's real build — not just typecheck.
- Test. Run the full suite. Not a scoped subset.
- Lint.
lsp diagnosticson changed files + the project linter. - Smoke-test the app if it has a running surface (dev server, CLI command).
If any step fails:
- Investigate before moving on. Don't skip the batch.
- If the failure is trivial (a rename, a deprecated import), fix it in the same commit — the upgrade broke it, the upgrade commit fixes it.
- If the failure is non-trivial (an API you heavily depend on was removed), either pin back or split: upgrade the other deps in the batch in this commit, and handle the problem dep separately in Step 5.
Commit with a precise message:
deps: bump <scope> — <what changed in one line>
- package-a: 1.2.3 → 1.2.9 (patch)
- package-b: 2.1.0 → 2.4.0 (minor — no breaking changes in CHANGELOG)
- package-c: 3.0.1 → 3.0.2 (patch)
Verified: npm test (84/84 pass), npm run build exit 0, lsp diagnostics clean.
Step 5: Handle stuck majors
For each major that breaks something:
- Read the migration guide — do not guess at the API changes.
- Scope the blast radius —
rgfor the symbols that changed. - Decide: upgrade now or defer? If the migration is a weekend'
Установить dependency-upgrade в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл dependency-upgrade?
Plan, batch, and verify dependency upgrades safely. Triages outdated packages into risk tiers, upgrades in order (dev/minor/patch first, runtime majors last), verifies each batch, and produces an auditable commit sequence. Use when asked to "upgrade deps", "bump packages", "update node_modules", "fix vulnerabilities", "upgrade React/Node/TypeScript", or after `/gsd start dep-upgrade`.
Как установить скилл dependency-upgrade?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dependency-upgrade запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic