# Dependency Upgrade

> Dependency upgrades, freshness audits, and unused-package cleanup.

- Skill: `muhammedalkhudiry/dependency-upgrade` (Agent Skill)
- Install (CLI): `npx skillmds@latest add muhammedalkhudiry/dependency-upgrade`
- Raw SKILL.md: https://api.skillmd.com/api/skills/muhammedalkhudiry/dependency-upgrade/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: MuhammedAlkhudiry (https://skillmd.com/u/muhammedalkhudiry)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/muhammedalkhudiry/dependency-upgrade

---


## Workflow

1. Define the exact dependency scope and create the durable report before changing versions.
2. Establish the package manager, workspace and runtime boundaries, official project checks, and every in-scope dependency from manifests and
   lockfiles.
3. Use current package-manager help, manifests, lockfiles, runtime metadata, vendor release notes, upgrade guides, and advisories as sources of truth.
   Load $laravel or $react when applicable.
4. Upgrade with the project's package manager and apply straightforward compatibility fixes. Ask before broad migrations, architecture changes,
   many-file rewrites, unclear behavior changes, native rebuilds, or test-suite rewrites.
5. Verify risky batches and the final state. Finish only when every in-scope dependency is upgraded, removed, intentionally skipped, or blocked with a
   recorded reason.

## Unused packages

- Require evidence from manifests, imports, configuration, scripts, providers, tests, build tooling, and runtime integration before declaring a
  package unused.
- Remove only clearly unused packages. Ask before removing anything with unclear dynamic, framework, plugin, or production-only usage.
- Record removed, retained, and unclear candidates with evidence.

## Patching

- Do not permanently modify vendor files, installed dependencies, generated package output, or lockfile internals.
- Remove diagnostic patches before finishing. If an upgrade requires a patch, fork, alias, Composer patch, `patch-package`, or monkey patch, skip it
  and request approval with cleaner alternatives.

## Report

- Create the report outside source control. Share its path early and update it after every dependency or batch.
- On resume, read the report before continuing. Link it with the latest status in every final answer; a summary does not replace it.
- Include every in-scope dependency, even when unchanged: package, ecosystem, old and new versions, reason, scan marker, dependency type, sources,
  notable changes, code/config/test changes, checks, patch status, and final status.

