Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Workflow Dependency Upgrade?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/lugassawan-workflow-dependency-upgrade)
---
name: workflow-dependency-upgrade
description: "Dependency upgrades: upgrade dependencies, Dependabot/Renovate PR batch triage and safe merge, CVE patches, latest-major migration, Gradle Spring Boot and Node Python Rust Go stacks. DAGs, monorepo inventory, green hops; bump lockfiles, build/test, fix breakage, PR delivery."
orchestrator: true
---
# workflow-dependency-upgrade
Structure routine dependency work and coordinated runtime, build-tool, framework, or dependency-stack upgrades.
**Announce at start:** "I'm using the workflow-dependency-upgrade skill to structure this upgrade."
## When to invoke
- Routine dependency sweep, Dependabot/Renovate triage, or CVE patch.
- Major dependency migration with expected API breakage.
- A coordinated stack upgrade that needs compatibility research, ordered hops, and green verification gates.
## When not to invoke
- Design-time dependency-graph minimization or supply-chain posture review → `swe-workbench:principle-security`.
- Release mechanics without an upgrade → `swe-workbench:principle-release-engineering`.
- A feature that happens to change a dependency → `/swe-workbench:implement`.
## Composition
- **`swe-workbench:principle-security`** — supply-chain integrity, CVE triage, SBOM, lockfile pinning, and frozen installs.
- **`swe-workbench:security-auditor`** — CVE confirmation and dependency-graph risk read.
- **`swe-workbench:reviewer`** — large breakage-diff read.
- **`swe-workbench:workflow-development`** — post-approval branch, verification, review, and delivery lifecycle for coordinated-stack mode.
- **`swe-workbench:workflow-commit-and-pr`** — commit convention and PR filing.
## Routine mode
Use this path when no coordinated-stack plan is requested.
### Phase 1 — Triage and batch
1. Classify each pending upgrade as **patch**, **minor**, or **major**.
2. Batch low-risk patch/minor upgrades together.
3. Isolate majors and security-critical bumps.
4. Prefer automated tools for routine patch/minor work and manual review for majors.
### Phase 2 — Bump and regenerate lockfile
1. Update the owning manifest declaration.
2. Regenerate the lockfile immediately; never commit a stale lockfile.
3. Keep lockfile churn separate from source fixes.
4. **Pi / pi-ai only:** when the target repository commits a model-catalog snapshot, compare it with the bundled catalog after regeneration. No catalog-data change is a no-op. On a diff, do exactly one: re-point affected policy tiers and synchronize policy contract tests plus user-facing model-selection documentation in the same PR, or update/acknowledge the snapshot with a reason the current policy remains valid. Never weaken or delete the ratchet merely to make CI green.
### Phase 3 — Build and test
1. Run build, test, typecheck, and lint.
2. Run the ecosystem audit command for CVE work.
3. If an audit still flags the CVE, inspect transitive pins and force-resolve only with evidence.
### Phase 4 — Triage breakage
| Class | Typical cause | Action |
|---|---|---|
| Type / compile | API renamed or signature changed | Update call sites; consult `swe-workbench:reviewer` for large diffs |
| Behavioral test | Dependency semantic change | Read release notes; update assertions |
| Transitive / peer | Incompatible dependency constraints | Resolve or isolate |
| CVE persists | Old transitive pin | Override only the affected transitive version |
| Pi catalog ratchet | Bundled catalog differs from committed snapshot | Follow the Phase 2 re-point-or-acknowledge decision; never bypass the ratchet |
**Abort path:** if a major upgrade will not reconcile cleanly, pin the last-good versions and file an issue rather than ship a half-migration.
### Phase 5 — Deliver
1. Record rationale, before/after versions, breakage fixes, and audit evidence in the PR.
2. Hand off to `swe-workbench:workflow-commit-and-pr`.
## Coordinated stack mode
Use this path only when `/swe-workbench:bump-stack` has normalized targets and selected this mode. Planning stays read-only until the complete plan is approved.
### Stack Stage 1 — Read-only inventory and targets
1. Detect repository shape and module boundaries. Inventory each component instance with ecosystem, module, declared version, resolved version, declaration source, and consumers.
2. Search manifests and locks first: `package.json` and workspaces; `pom.xml`, `build.gradle`, `build.gradle.kts`, wrappers, toolchains, and version catalogs; `pyproject.toml` and lock files; `Cargo.toml` and workspaces; `go.mod` and `go.work`.
3. Before approval, read only manifests, lockfiles, and commands proven not to write caches or build metadata. If a resolved version cannot be read safely, mark it unresolved and block the plan.
4. Group shared declaration owners and surface per-module drift. Bump a centralized source, never duplicated consumers.
5. Normalize unqualified repository-wide targets and bracket-qualified targets. A module-qualified target overrides a matching repository-wide target for that module.
6. For a missing version, propose the current stable/LTS target from an official registry or project channel, then require target confirmation.
### Stack Stage 2 — Evidence and global DAG
1. Use registries to establish version existence and stable/LTS status.
2. Use official release notes or migration guides for every compatibility, ordering, intermediate-version, and breaking-change claim. Cite every material claim with its URL.
3. Model each declaration-owner transition as a node. Add directed edges for prerequisites and compatibility constraints, then create one global DAG for all modules and independent lanes.
4. An unknown compatibility edge blocks approval. Contradictory evidence, ambiguous ownership, or a graph cycle also blocks approval; never infer an ordering from a green local test.
5. When evidence proves no green scalar intermediate exists, create one composite hop for the tightly coupled transitions. Otherwise keep components in scalar hops.
6. Serialize DAG-ready nodes deterministically into a frozen execution order. Render inventory/drift, current-to-target versions, cited edge status, blockers, and a per-hop breaking-change, rollback, and verification checklist.
### Stack Stage 3 — Whole-plan approval
1. Present the cited, frozen plan and obtain whole-plan approval before creating a worktree, installing dependencies, regenerating lockfiles, or editing files.
2. Approval authorizes the complete frozen plan, not a new uncited target or reordered graph. There is no per-hop human confirmation; verification gates control advancement.
3. Unsupported or unresolved nodes remain blocked. Return to target normalization or evidence research rather than mutating the repository.
### Stack Stage 4 — Approved hop execution
1. After approval, activate `swe-workbench:workflow-development` Mode B. Create or resume the worktree only now.
2. Establish a green baseline by running the full detected build, test, typecheck, and lint suite. A red baseline blocks hop 1; do not use baseline-delta semantics.
3. Execute frozen DAG-ready hops sequentially. A hop is a revertible commit range: one declaration and lockfile commit plus zero or more focused source-fix commits.
4. After every hop, run the full detected build, test, typecheck, and lint suite plus relevant audit checks. Green records the commit range and advances automatically.
5. A red hop stops the run. Triage only that hop; never begin the next one while it is red. If unrecoverable, revert the hop range, pin the last-good versions and file an issue, preserving earlier green hops.
6. After all hops are green, complete final verification, both required reviews, and delivery through `swe-workbench:workflow-commit-and-pr`.
## Ecosystem command matrix
| Ecosystem | Bump | Regenerate lockfile | Audit |
|---|---|---|---|
| npm | `npm update <pkg>` / `npx npm-check-updates -u` | `npm install` | `npm audit` |
| Pi / pi-ai (npm) | `npm update @earendil-works/pi-coding-agent` | `npm install`; then conditionally review the catalog snapshot and follow Phase 2's re-point-or-acknowledge decision | `npm audit` |
| pnpm | `pnpm update <pkg>` | `pnpm install` | `pnpm audit` |
| yarn | `yarn upgrade <pkg>` | `yarn install` | `yarn npm audit` |
| cargo | `cargo update -p <crate>` | `cargo update` | `cargo audit` |
| pip/uv | `uv add <pkg>@latest` | `uv lock` | `pip-audit` |
| poetry | `poetry add <pkg>@latest` | `poetry lock --no-update` | `poetry audit` |
| go | `go get <mod>@latest` | `go mod tidy` | `govulncheck ./...` |
| bundler | `bundle update <gem>` | `bundle install` | `bundler-audit check` |
| maven | `mvn versions:use-latest-releases` | automatic | `mvn dependency-check:check` |
| gradle | edit the owning declaration | `./gradlew dependencies` | `./gradlew dependencyCheckAnalyze` |
## Common mistakes
| Mistake | Why it matters |
|---|---|
| Batch majors with patches | Hides API breakage and makes rollback ambiguous |
| Change consumers instead of a central declaration | Leaves module drift and conflicting sources of truth |
| Treat registry existence as compatibility evidence | A published version does not prove a supported stack |
| Skip baseline or per-hop verification | Breakage cannot be attributed to a specific hop |
| Guess through a blocked edge or graph cycle | Produces an unsafe order that is hard to reverse |
| Mix lockfile and source fixes in one commit | Makes the hop difficult to review and revert |