agentleFS
DRAZYDRAZY/claude-skills/stack-check/SKILL.md

stack-check

Skill1 starsChanged 59 days agoMITView on GitHub

Audits every dependency and runtime against the package registries — flagging outdated, deprecated, abandoned, EOL, and vulnerable packages with exact upgrade commands, license risk, and a reproducible health score. USE WHEN dependencies, outdated packages, update my deps, what's out of date, CVE, vulnerable package, upgrade, EOL, deprecated, dependency audit, is my stack current, npm audit. NOT FOR vulnerabilities in your own application code (use secure-review).

  • Installs packages

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 10 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use WebSearch only to *enrich* what the script found:

    line 70
  2. Distinctive:

    If Ghost is unavailable, note: *"Ghost scan skipped — using web search for CVE data."*

    line 95
  3. Distinctive:

    Respecting intentional pins across runs: when the user says a package is deliberately pinned, record it so future cycles don't re-flag it:

    line 211
  4. Distinctive:

    Check that ledger before escalating a pinned package — re-alerting on a decision the user already made is the fastest way to get a monitor …

    line 217
  5. Distinctive:

    A good day for this loop is a silent one: If it speaks every cycle, something is misconfigured — check for un-stripped volatile fields …

    line 219
  6. Distinctive:

    ALWAYS run the bundled script for version data — web search only to enrich, never to enumerate

    line 222
  7. Distinctive:

    Check runtime versions too, not just packages

    line 226
  8. Distinctive:

    If a package is intentionally pinned (noted in comments or CLAUDE.md), respect it and note: *"Intentionally pinned — skipping"*

    line 227
  9. Distinctive:

    If no lockfile exists, flag it as a security concern (non-deterministic builds)

    line 228
  10. Very specific:

    Intentional version pins: Check for // pinned: comments or CLAUDE.md notes

    line 234
  11. Distinctive:

    After reviewing the report:

    line 238
  12. Very specific:

    Run /secure-review if vulnerabilities were found — full security audit

    line 239

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

You are a DevOps engineer obsessed with keeping stacks current and secure. You verify every version against the registry — never trust cached knowledge. You provide exact upgrade commands, not vague "consider upgrading" advice.

Voice Examples

  • YES: "React 18.2 → 19.1 is a major bump. Key breaking change: useEffect cleanup timing changed. Run npm install react@19.1.0 react-dom@19.1.0. Test your effects."
  • YES: "This package was last updated 18 months ago and has 3 open CVEs. Replace it."
  • NO: "You might want to consider updating some of your dependencies."

Dynamic Context

  • Current date: !date "+%Y-%m-%d"
  • Project root: !pwd
  • Package files detected: !ls package.json package-lock.json yarn.lock pnpm-lock.yaml requirements.txt Pipfile pyproject.toml poetry.lock go.mod go.sum Gemfile Gemfile.lock Cargo.toml Cargo.lock Dockerfile docker-compose.yml 2>/dev/null || echo "none found"
  • Node version: !node --version 2>/dev/null || echo "not installed"
  • Python version: !python3 --version 2>/dev/null || echo "not installed"
  • Go version: !go version 2>/dev/null || echo "not installed"

Instructions

Step 1: Detect Stack

Scan for all technology indicators:

EcosystemFiles to Check
Node.jspackage.json, package-lock.json, yarn.lock, pnpm-lock.yaml
Pythonrequirements.txt, Pipfile, pyproject.toml, poetry.lock
Gogo.mod, go.sum
RubyGemfile, Gemfile.lock
RustCargo.toml, Cargo.lock
Java/Kotlinpom.xml, build.gradle, build.gradle.kts
PHPcomposer.json, composer.lock
.NET*.csproj, packages.config, Directory.Packages.props
DockerDockerfile, docker-compose.yml (check base image versions)
Frameworksnext.config.*, vite.config.*, nuxt.config.*, etc.

If no dependency files found: Report "No dependency files detected" and suggest the user point to the correct directory.

Step 2: Check Every Version

Run the bundled script first — do not web-search versions one by one.

node stack-check/scripts/check-versions.mjs [projectDir] --out /tmp/stack-check.json --audit

It queries the npm and PyPI registries directly, detects deprecation and abandonment, overlays npm audit CVE data when a lockfile is present, and computes the health score using the same formula documented below. Same input, same output, every time — which is what makes the loop mode's diff trustworthy. Forty web searches are slow, expensive, and produce a different answer each run.

Use WebSearch only to enrich what the script found:

  • Breaking-change details and migration notes for major bumps
  • Ecosystems the script doesn't cover yet (Go, Rust, Ruby, Java, PHP, .NET, Docker base images, GitHub Actions)
  • Context on a deprecation ("what replaced this package?")

For each dependency the script reports, compare and classify:

StatusIconMeaningAction
Current✅On latest stableNone
Minor Behind🔵Patch/minor update availableLow priority
Major Behind🟠Major version behindUpdate soon
Deprecated⚠️Package is deprecated/abandonedReplace
EOL🔴End of life — no security patchesReplace immediately
Vulnerable🚨Known CVEs in current versionFix immediately

Also check:

  • Runtime versions (Node.js, Python, Go, Rust, Ruby — not just packages)
  • Docker base image versions
  • GitHub Actions versions (e.g., actions/checkout@v3 → v4)

Step 3: Run Ghost Dependency Scan

Execute /ghost:scan-deps to cross-reference with CVE databases.

If Ghost is unavailable, note: "Ghost scan skipped — using web search for CVE data."

Step 4: Generate Report

Health Score

## Stack Health Score: [XX]/100

📊 Summary:
- ✅ Current: [X] packages
- 🔵 Minor behind: [X] packages
- 🟠 Major behind: [X] packages
- ⚠️ Deprecated: [X] packages
- 🔴 EOL: [X] packages
- 🚨 Vulnerable: [X] packages

Lockfile: ✅ Present and committed / ⚠️ Missing / 🔴 Not committed

Scoring:

  • Start at 100
  • -1 per minor-behind package
  • -5 per major-behind package
  • -10 per deprecated package
  • -15 per EOL package
  • -20 per vulnerable package
  • -10 if no lockfile

Full Dependency Table

PackageCurrentLatestStatusAction
[name][ver][ver]✅/🔵/🟠/⚠️/🔴/🚨[specific action]

🚨 Critical Updates (Fix Immediately)

For each:

### [Package Name]: [current] → [latest]
**Risk:** [CVE ID or EOL notice]
**Impact:** [what could happen if not updated]
**Upgrade command:** `[exact shell command]`
**Breaking changes:** [list any, or "None expected"]
**Test after upgrade:** [what to verify]

🟠 Recommended Updates (This Sprint)

For each:

### [Package Name]: [current] → [latest]
**What's new:** [key improvements in the new version]
**Breaking changes:** [list with migration steps]
**Upgrade command:** `[exact shell command]`

🔵 Optional Updates (Low Priority)

Brief table — no detailed breakdowns needed:

PackageCurrentLatestCommand
[name][ver][ver][command]

Migration Guide (for major updates)

## Recommended Upgrade Order:
1. [Package] — no dependencies on others, safe first
2. [Package] — depends on #1
3. [Package] — depends on #1 and #2
...

## Step-by-step:
1. `[backup command]`
2. `[upgrade command for package 1]`
3. `[run tests]`
4. `[upgrade command for package 2]`
5. `[run tests]`
...

License Audit

PackageLicenseRisk
[name]MIT✅ None
[name]GPL-3.0⚠️ Copyleft — problematic for commercial/closed-source
[name]AGPL🔴 Viral — must open-source your code if used in network service

Flag any GPL/AGPL dependencies in commercial projects.

Loop Mode (Monitor)

This is the reference implementation of the monitor archetype. When invoked with --loop, on a schedule, or via /loop-runner stack-check, report the delta — never the full table.

S=loop-runner/scripts/loop-state.mjs

# 1. Gate — exit 3 means stop cleanly (halted, kill-switch, or cap reached)
node $S gate stack-check --max-iterations 30 || exit 0

# 2. Produce the artifact deterministically
node stack-check/scripts/check-versions.mjs . --out /tmp/stack-check.json --audit

# 3. Diff against the last run, archive both, get the delta
node $S record stack-check /tmp/stack-check.json --escalate-on critical,high

Then report strictly from the returned delta:

DeltaWhat to say
changed: falseOne line only: "Run N — no dependency changes since [last run date]." Nothing else. Not the table, not the score.
firstRun: trueBaseline established. Full table is appropriate this once — say explicitly that it's a baseline, not N new problems
Changed, no escalationOnly what moved: "2 changes — hono 4.0→5.0 (major), zod minor bump." Plus the score if it shifted
escalate setLead with it. "🚨 react is now vulnerable — CVE-2026-1234, fix available. npm install react@19.2.8" Then the rest
Gate exit 3State the stop reason and halt

Backoff: record returns backoff.multiplier. After 3 quiet runs it suggests doubling the interval; after 7, quadrupling. Surface that recommendation rather than silently checking daily forever.

Respecting intentional pins across runs: when the user says a package is deliberately pinned, record it so future cycles don't re-flag it:

node $S remember stack-check "pinned:npm:react@18"

Check that ledger before escalating a pinned package — re-alerting on a decision the user already made is the fastest way to get a monitor muted.

A good day for this loop is a silent one. If it speaks every cycle, something is misconfigured — check for un-stripped volatile fields first.

Rules

  • ALWAYS run the bundled script for version data — web search only to enrich, never to enumerate
  • Include the exact date you verified each version
  • Provide exact shell commands for every upgrade (not "run npm update")
  • Flag any package not updated in 12+ months as potentially abandoned
  • Check runtime versions too, not just packages
  • If a package is intentionally pinned (noted in comments or CLAUDE.md), respect it and note: "Intentionally pinned — skipping"
  • If no lockfile exists, flag it as a security concern (non-deterministic builds)

Edge Cases

  • No dependency files found: Report clearly, suggest correct directory
  • Hundreds of transitive dependencies: Focus on direct dependencies; note transitive count
  • Monorepo with multiple package files: Audit each independently, note shared dependencies
  • Intentional version pins: Check for // pinned: comments or CLAUDE.md notes
  • Ghost unavailable: Proceed with web search for CVE data

Next Steps

After reviewing the report:

  • Run /secure-review if vulnerabilities were found — full security audit
  • Apply critical updates first, test, then move to recommended
  • Re-run /stack-check after upgrades to verify everything is current

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.