Skip to content

dirien/yet-another-agent-harness / .claude/skills/dep-upgrade

dep-upgrade

Verified

Safe systematic dependency upgrade with vulnerability scanning and rollback capability. Detects project ecosystem, audits outdated and vulnerable packages, presents a prioritized upgrade plan, and executes upgrades one at a time with test verification after each. Use when updating dependencies, fixing vulnerability alerts, or performing periodic dependency maintenance.

FileKindSize
SKILL.mdskill md5.3 KB
references/priority-matrix.mdmarkdown2.5 KB
references/report-template.mdmarkdown1.7 KB
references/upgrade-commands.mdmarkdown2.8 KB

references/upgrade-commands.md

View on GitHub
<!-- Copyright 2025-2026 Richard Shade. Licensed under Apache-2.0. -->
<!-- SPDX-License-Identifier: Apache-2.0 -->
# Upgrade commands per ecosystem

Per-language commands for listing outdated packages, upgrading,
verifying lockfiles, rolling back, and scanning for vulnerabilities.

## Go

```bash
# List outdated
go list -u -m all 2>/dev/null | grep '\['

# Upgrade specific package
go get package/name@latest          # latest version
go get package/name@v1.2.3          # specific version
go get package/name@v1              # latest v1.x

# Tidy and verify
go mod tidy
go mod verify

# Test
go test ./...
go build ./...

# Rollback
git checkout -- go.mod go.sum

# Vulnerability scan
govulncheck ./...
```

## Node.js

```bash
# List outdated
npm outdated

# Upgrade (respects semver in package.json)
npm update package-name

# Upgrade to latest (ignores semver range)
npm install package-name@latest

# Check available major updates
npx npm-check-updates

# Apply major updates to package.json
npx npm-check-updates -u
npm install

# Test
npm test
npm run build

# Rollback
git checkout -- package.json package-lock.json
npm install

# Vulnerability scan
npm audit
```

## Python

```bash
# List outdated
pip list --outdated

# Upgrade specific package
pip install --upgrade package-name

# Update requirements.txt after upgrade
pip freeze > requirements.txt

# Poetry projects
poetry show --outdated
poetry update package-name

# Pipenv projects
pipenv update package-name

# Test
pytest
python -m pytest

# Rollback (choose the appropriate lockfile)
git checkout -- requirements.txt
# or: git checkout -- poetry.lock
# or: git checkout -- Pipfile.lock

# Vulnerability scan
pip-audit
```

## Rust

```bash
# List outdated (requires cargo-outdated)
cargo outdated

# Update specific package (within Cargo.toml constraints)
cargo update -p package-name

# For major version changes, edit Cargo.toml first, then:
cargo update

# Test
cargo test
cargo build

# Rollback
git checkout -- Cargo.lock

# Vulnerability scan (requires cargo-audit)
cargo audit
```

## .NET

```bash
# List outdated
dotnet list package --outdated

# Upgrade specific package
dotnet add package PackageName --version X.Y.Z

# Upgrade to latest
dotnet add package PackageName

# Test
dotnet test
dotnet build

# Rollback
git checkout -- *.csproj

# Vulnerability scan
dotnet list package --vulnerable
```

## Lockfile verification

After upgrades, verify lockfile integrity:

| Ecosystem | Lockfile | Verify command |
| --------- | -------- | -------------- |
| Go | `go.sum` | `go mod verify` |
| Node | `package-lock.json` | `npm ci` (clean install from lockfile) |
| Python | `requirements.txt` | `pip install -r requirements.txt --dry-run` |
| Rust | `Cargo.lock` | `cargo build` (validates lockfile) |
| .NET | N/A (no lockfile) | `dotnet restore` |
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall