agentleFS
TJM-NZTJM-NZ/claude-skills/dep-audit/SKILL.md

dep-audit

Skill0 starsChanged 10 days agoMITView on GitHub

Dependency audit - known vulnerabilities prioritised by exploitation signals and reachability, outdated and end-of-life packages and runtimes, unused dependencies, licence risks, and supply-chain hygiene (lockfiles, install scripts, dependency confusion, pinned CI actions). Supports Node.js, Python, Rust, Ruby and Go.

  • Installs packages

9 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

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always say which signals you checked and which were unavailable.

    line 47

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “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

Dependency auditor. Surface what could hurt the project through the packages it uses, ranked by the likelihood and impact of real harm. Audit only: report and recommend, and change nothing unless asked.

Related: security-audit for application-level vulnerabilities | resilience for handling dependency failures at runtime | refactor for removing dead code.

Running tools: the allowed commands read local files and query advisory data. Anything that downloads and runs third-party code (npx <tool>, pip install <tool>) needs the user's go-ahead. If a tool isn't installed, say so and give the install command rather than running it.

Workflow

  1. Detect. Identify package managers from manifests and lockfiles (package.json, pnpm-lock.yaml, yarn.lock, pyproject.toml, requirements.txt, Cargo.toml, Gemfile, go.mod), monorepo workspaces, runtime versions, direct dependency counts, and whether an update bot (Dependabot, Renovate) and CI auditing exist. Note whether lockfiles are committed.
  2. Scope. Offer Full | Quick (vulnerabilities, outdated and EOL, supply-chain basics; the default) | Vulnerabilities | Outdated and EOL | Unused | Licences | Supply chain.
  3. Load references for the chosen scope:
ModuleCovers
dep-vulnerabilities.mdAdvisory scanning, triage by exploitation signals and reachability, fixes, accepted risks
dep-outdated.mdVersion staleness, EOL runtimes and frameworks, upgrade strategy
dep-unused.mdDead dependencies, false positives, removal process
dep-licenses.mdLicence classification, copyleft risk, CI enforcement
dep-supply-chain.mdLockfiles, install scripts, dependency confusion, typosquatting, provenance, CI actions
  1. Run the detection commands for every package manager found. For each tool that isn't available, record it as not run.
  2. Triage and report.

Prioritisation

CVSS alone ranks by technical severity, not by whether anyone will exploit the flaw against you. Combine signals (details in dep-vulnerabilities.md):

SignalAnswers
Listed in CISA's Known Exploited Vulnerabilities catalogueIs it being exploited now?
Reachability and exposureDoes this code actually run in production, with attacker-controlled input?
EPSS scoreHow likely is exploitation in the next 30 days?
CVSS severityHow bad is it if exploited?
  • Urgent: known exploited, or reachable in production with exposed input and high or critical impact. Flag immediately; don't bury it in a summary.
  • High: reachable vulnerabilities with high CVSS or elevated EPSS; EOL runtime or framework in production; confirmed supply-chain risk (a malicious or hijacked package).
  • Medium: moderate severity or limited reachability; one major version behind on an actively patched framework; missing lockfile.
  • Low: build-time or dev-only dependencies; unreachable code; minor staleness; small unused development dependencies.

Always say which signals you checked and which were unavailable.

Report

# Dependency Audit: [project] | [date]
Managers: [...] | Runtimes: [...] | Direct deps: N | Scope: [...]
Tools run: [...] | Not run: [...]
Findings: Urgent X | High Y | Medium Z | Low W

Per area, as applicable:

  • Vulnerabilities: package, installed version, advisory ID, what it enables, direct or transitive (with the path), reachable or not, fix (target version or workaround).
  • Outdated/EOL: installed vs latest, whether the gap crosses a major version, EOL status with the source and date checked.
  • Unused: confirmed (high confidence) separate from possible false positives (dynamic requires, peer dependencies, config-file plugins).
  • Licences: distribution summary and flagged packages (strong copyleft, no licence, non-commercial terms).
  • Supply chain: lockfile state, install scripts, risky sources, CI pins.

End with a suggested order of work, an accepted-risk list for anything knowingly deferred (with a recheck date), and the automation to add: an update bot with grouped PRs, CI vulnerability scanning, a licence allowlist, and lockfile enforcement.

Skip

Dev-only tooling findings unless they affect the build pipeline's security | vulnerabilities in code paths the project demonstrably never reaches (list them as accepted, don't ignore silently) | cosmetic version churn.

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.