event4u-app/agent-config

dependency-upgrade

Use when upgrading dependencies — 'update framework X', 'bump runtime version', or 'upgrade packages'. Covers changelog review, breaking-change detection, and verification. Stack-agnostic.

98CollectingRuns scripts
See how to use itView GitHub source
npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/dependency-upgrade"

Quick start

Start using it in three steps

Install it or open the source, trigger it with a clear task, then follow the source workflow.

1

Install the Skill

npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/dependency-upgrade"
2

Describe the task

Use dependency-upgrade to help me with: [describe your task]. Before you begin, tell me what input you need, the steps you will follow, and the expected output.

3

Follow the workflow

No structured workflow was detected; follow the original SKILL.md below.

Continue to the workflow

Direct answers

Answers to review before you install

What is dependency-upgrade?

Covers changelog review, breaking-change detection, and verification. Stack-agnostic.

Who should use dependency-upgrade?

It is relevant to workflows involving Engineering.

How do you install dependency-upgrade?

SkillSignal detected this source-specific command: npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/dependency-upgrade". Inspect the repository and command before running it.

Which Agent platforms does it support?

The upstream source does not declare a dedicated Agent platform.

What permissions or risks should you review?

Static analysis detected exec-script signals. Review the cited source lines before installing; these signals are not a security audit.

What are the current evidence limits?

This page combines upstream documentation with deterministic repository, quality, and static-risk signals. It is not described as a manual test or security review.

SkillSignal brief

Decide whether it fits your work first

Covers changelog review, breaking-change detection, and verification. Stack-agnostic.

Useful in these contexts

Not yet included in a workflow collection

Core capabilities

Engineering

Distilled from the source

Understand this Skill in one minute

About 7 min · 13 sections

When it is worth using

  1. Installing new dependencies for the first time

  2. Routine code changes unrelated to package versions

Examples and typical usage

  1. Updated dependency with version constraint change

  2. Breaking changes addressed with code modifications

  3. Test results confirming compatibility

Repository stars
7
Repository forks
1
Quality
98/100
Source repository last pushed

Quality breakdown

Based on traceable docs and repository signals; stars are not treated as quality.

98/100
Documentation30/30
Specificity25/25
Maintenance20/20
Trust signals23/25

Compare before choosing

Related Agent Skills and source variants

These links are selected from shared tasks, functions, stacks, platforms, and same-name variants. Compare the source owner, documentation, permissions, and maintenance signals.

View original Skill.mdThis page is parsed directly from the repository SKILL.md without editorial rewriting. Collected: Jul 28, 2026 · about 7 min

dependency-upgrade

When to use

Use this skill when upgrading project dependencies on any stack — Composer (PHP), npm / pnpm / yarn (JS/TS), pip / poetry / uv (Python), go.mod (Go), Cargo (Rust), or any other language-level package manager.

Do NOT use when:

  • Installing new dependencies for the first time
  • Routine code changes unrelated to package versions

Procedure: Upgrade a dependency

1. Assess

Before upgrading:

  • Read the changelog for every version between current and target.
  • Identify breaking changes — look for "BREAKING", "BC break", major version bumps.
  • Check deprecation notices — code using deprecated APIs needs updating.
  • Review upgrade guides — many packages provide migration docs.
  • Check runtime version requirements — does the new version need a newer PHP / Node / Python / Go / Rust toolchain?

2. Plan

Categorize changes needed:

CategoryAction
No breaking changesUpgrade directly
Deprecation warningsUpgrade, then fix deprecations
Breaking changes (small)Fix code, then upgrade
Breaking changes (large)Create a roadmap, upgrade in steps
Peer dependency conflictsResolve conflicts before upgrading

3. Execute

Composer (PHP)

# Check outdated packages
composer outdated

# Upgrade a specific package
composer update vendor/package

# Upgrade with version constraint change
composer require vendor/package:^3.0

# Dry-run to see what would change
composer update vendor/package --dry-run

npm (JavaScript/TypeScript)

# Check outdated packages
npm outdated

# Upgrade a specific package
npm update package-name

# Upgrade to a new major version
npm install package-name@latest

# Check for vulnerabilities
npm audit

pip / poetry / uv (Python)

# Check outdated packages
pip list --outdated         # pip
poetry show --outdated       # poetry
uv pip list --outdated       # uv

# Upgrade a specific package (same shape for composer require / npm install pkg@latest)
pip install --upgrade package-name
poetry update package-name
uv pip install --upgrade package-name

# Check for vulnerabilities
pip-audit                    # via pip-audit
safety check                 # via safety

go.mod (Go)

# List available updates
go list -u -m all

# Upgrade a specific module
go get example.com/pkg@latest
go get example.com/pkg@v1.2.3

# Tidy after upgrade
go mod tidy

# Check for known vulnerabilities
govulncheck ./...

Cargo (Rust)

# Check outdated
cargo outdated               # requires cargo-outdated

# Upgrade
cargo update -p crate-name
cargo add crate-name@1.2     # edition-aware add

# Audit
cargo audit                  # requires cargo-audit

4. Verify

After upgrading, run the project's full verification pipeline. The exact commands depend on the stack — resolve via the project's Taskfile.yml, package.json scripts, composer.json scripts, Makefile, or the quality-tools skill.

StackType-checkLint / autofixTests
PHP / Laravelvendor/bin/phpstan analysevendor/bin/rector process + vendor/bin/ecs check --fixphp artisan test (or vendor/bin/pest)
TypeScripttsc --noEmiteslint --fix + prettier --writepnpm test (or vitest run, jest)
Pythonmypy / pyrightruff check --fix + ruff formatpytest
Gogo vet ./...golangci-lint run --fixgo test ./...
Rustcargo checkcargo clippy --fix + cargo fmtcargo test

Re-run the type-checker after any auto-fixer that can rewrite types (Rector for PHP, eslint --fix for TS).

5. Document

  • Note the upgrade in the commit message: chore: upgrade vendor/package from 2.x to 3.x
  • If breaking changes required code modifications, describe them in the PR body.

Multi-package upgrades

When upgrading multiple packages:

  • Upgrade one at a time — easier to identify which upgrade broke something.
  • Exception: Tightly coupled packages can be upgraded together (e.g., laravel/framework + laravel/*; @nestjs/core + @nestjs/*; react + react-dom; next + @next/*).
  • Run tests after each upgrade — don't batch upgrades and test once at the end.

Common pitfalls

PitfallPrevention
Upgrading without reading changelogAlways read the changelog first
Upgrading all packages at onceOne package at a time (or tightly coupled groups)
Trusting composer update blindlyUse --dry-run first, review changes
Ignoring deprecation warningsFix deprecations before they become errors
Skipping tests after upgradeFull test suite + project type-checker (PHPStan / tsc / mypy / go vet / cargo check) after every upgrade
Lock file conflictsCoordinate upgrades with the team

Version constraint guidelines

ConstraintMeaningWhen to use
^2.0>=2.0.0 <3.0.0Default — allows minor + patch updates
~2.1>=2.1.0 <2.2.0Strict — allows only patch updates
2.1.*>=2.1.0 <2.2.0Same as ~2.1
>=2.0 <2.5Explicit rangeWhen you know specific versions work
dev-mainLatest commitNever in production — only for development

Security upgrades

For security patches:

  • Prioritize — security upgrades should be fast-tracked.
  • Check composer audit / npm audit regularly.
  • Patch versions (e.g., 2.1.3 → 2.1.4) are usually safe to apply immediately.
  • Still run tests — even security patches can break things.

Vulnerability scanning when adding packages

Before adding a new dependency (not just upgrading), run a security audit:

Composer (PHP)

# Check for known vulnerabilities in current dependencies
composer audit

# After adding a new package, re-check
composer require vendor/new-package
composer audit

npm (JavaScript)

# Check before install
npm audit

# After adding, re-check
npm install new-package
npm audit

What to check for new packages

CheckHowWhy
Known CVEscomposer audit / npm auditDirect vulnerabilities
Maintenance statusGitHub: last commit, open issuesAbandoned packages are a risk
Dependency treecomposer show -t vendor/pkg / npm ls new-packageTransitive dependencies may conflict
License compatibilitycomposer licenses / check package.jsonLegal compliance
Bundle size (npm)npx bundlephobia new-packageImpact on frontend bundle

Conflict detection

When composer require or npm install fails with conflicts:

  1. Read the error — which versions conflict?
  2. Check if other packages need updatingcomposer why vendor/conflicting-pkg.
  3. Use --dry-run first — composer require vendor/pkg --dry-run.
  4. Never use --ignore-platform-reqs in production — only for investigation.

Post-update malware & behavior audit

CVE scanning (above) catches known-vulnerable versions. It does not catch a compromised update: a trusted package with a legitimate history ships a normal-looking version bump that quietly adds data-exfiltration or other harmful behavior. This is how the biggest supply-chain attacks landed — event-stream (wallet stealer as a new transitive dep), ua-parser-js (preinstall miner + credential stealer), @solana/web3.js (key exfil hidden inside expected network calls), chalk/debug + 16 (browser crypto-drainer, 2B weekly downloads), the self-propagating Shai-Hulud worm (added a .github/workflows + secret-scanning postinstall), xz-utils (backdoor in the released tarball, not the git repo). Routine updates slip through because the version looks normal and install runs scripts across the whole transitive tree silently — this is the exact lethal-trifecta-guard egress shape.

Run this audit during/after any add or upgrade, then surface findings to the user and hold pending confirmation (per active-remediation — a live supply-chain risk is surfaced, never silently accepted):

  1. Install without running scripts firstnpm install --ignore-scripts (npm v12 defaults to this), composer install --no-scripts, pip install --only-binary :all: (wheels only — no sdist build code) — so install-time code (the #1 RCE vector) cannot run before inspection.
  2. Diff the version delta old→new — the scripts block (any newly-added pre/post/install hook), the dependency tree (any new transitive dependency), and — where feasible — the published tarball vs the git source (xz hid in the tarball).
  3. Capability / behavior diff — did the new version add a capability its job doesn't need: network egress (fetch/net/dns/http), child_process/shell, env/secret/credential reads, filesystem writes, obfuscated/minified blobs, a .github/workflows file? Use socket / guarddog <eco> scan <pkg>@<ver> if available; else read the delta.
  4. Purpose-vs-behavior legitimacy check — a Slack/HTTP client legitimately makes network calls; a date/string/color util does not. For each new capability ask: does the package's stated purpose require this? A network/secret capability with no purpose justification — or a new outbound endpoint even in a package that already uses the network — is high-risk.
  5. Provenance + advisory feedsnpm audit signatures (flag a dep that had provenance and lost it — a hallmark of a token-theft publish); osv-scanner --lockfile=… and the GitHub Advisory / Socket / Snyk malware feeds against the newly-resolved versions.

Surface to the user any: new install script · new transitive dep · new network endpoint / secret read · obfuscated blob · lost provenance · advisory/malware hit — with the version delta and the purpose-vs-behavior verdict, and hold the update until they decide. Never auto-accept a bump that introduced an unexplained capability.

Output format

  1. Updated dependency with version constraint change
  2. Breaking changes addressed with code modifications
  3. Test results confirming compatibility
  4. Post-update audit result: capability delta old→new, purpose-vs-behavior verdict, provenance/advisory status — and any finding surfaced to the user for confirmation

Auto-trigger keywords

  • dependency upgrade
  • package update
  • breaking changes
  • changelog review
  • malicious package
  • supply chain
  • compromised update

Gotcha

  • A trusted package is not a safe version. Every major supply-chain attack (event-stream, ua-parser-js, chalk/debug, xz) shipped through a legitimate package's normal-looking bump — maintainer-authored ≠ safe. Run the post-update behavior audit, not just audit for CVEs.
  • audit (CVE) ≠ malware scan. npm/composer audit only knows published vulnerabilities; a fresh compromised version has no CVE yet. The capability/behavior diff + purpose-vs-behavior check is what catches zero-hour malware.
  • Don't upgrade multiple major versions at once — one major version per upgrade cycle.
  • The model tends to skip reading the CHANGELOG — breaking changes hide in minor releases too.
  • Always run the full test suite after upgrading, not just the affected tests.
  • Lock file conflicts after upgrade are expected — resolve by re-running the package manager's update (composer update, npm update, poetry update).

Do NOT

  • Do NOT manually edit composer.lock or package-lock.json.
  • Do NOT upgrade to dev-* versions in production branches.
  • Do NOT ignore failing tests after an upgrade — fix or revert.
Skill path
src/skills/dependency-upgrade/SKILL.md
Commit SHA
0adf49a8ae84
Repository license
MIT
Data collected