agentleFS
chatquillchatquill/claude-code-websites/.claude/skills/dependency-audit/SKILL.md

dependency-audit

Skill1 starsChanged 24 days agoMITView on GitHub

Audits third-party dependencies for known vulnerabilities, licence problems, abandoned packages and outdated major versions across npm/pnpm/yarn/bun, pip/uv/poetry, Go, Composer and Bundler. Use before launch, when adding dependencies, when a manifest changes, or on a schedule.

53 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use api-audit, container-audit and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • gmanch94Skill

    api-audit

    Guides a structured API portfolio audit — from discovery through primary-source-verified inventory, shortcomings analysis, prioritized recommendations, executive summary, and options analysis. Enforces primary-source discipline, cross-file consistency, and advisor review gates. Use when auditing an API portfolio, evaluating a vendor's developer ecosystem, or producing defensible technical analysis of an API set.

    Also in 3 projects that use this

  • grichaSkill

    container-audit

    Audit local Docker images and running containers for hardening issues before deploy — privileged flags, root users, stale base images, missing resource limits. Use for pre-deploy container review.

    Also in 3 projects that use this

  • GitHubSkill

    accessibility-audit

    Audits actual components and routes against applicable WCAG 2.2 A/AA criteria using consumer-owned design-system evidence and repository tools. Use when asked for an accessibility audit, a11y check, keyboard or focus review, contrast check, or screen-reader verification.

    Also in 5 projects that use this

  • jamestorrevillasSkill

    threat-modeling

    Use this skill when identifying security threats, designing secure systems, thinking like an attacker, performing security assessments, or applying STRIDE threat modeling. Trigger on keywords: threat model, security design, attack surface, STRIDE, vulnerabilities by design, security review, who can attack this, what could go wrong security-wise.

    Also in 4 projects that use this

  • AnthropicSkill

    threat-model

    Claude Security plugin: create or update a repository's threat model, or check the findings of a report that this plugin wrote against how the system is deployed.

    Also in 4 projects that use this

  • conorluddySkill

    performance-profiling

    Instruments integration and performance analysis workflows for iOS apps. Use when profiling CPU usage, memory allocation, network activity, or energy consumption. Covers Time Profiler, Allocations, Leaks, Network instruments, and performance optimization strategies.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 49 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run bash .claude/scripts/detect-stack.sh and list every manifest found (including monorepo workspaces).

    line 25
  2. Distinctive:

    Run the matching tool for each ecosystem (JSON output where available):

    line 31
  3. Very specific:

    If a tool is missing, print the install command and mark the ecosystem NOT ASSESSED.

    line 44
  4. Very specific:

    Run npx license-checker --summary (or the ecosystem equivalent).

    line 52
  5. Very specific:

    Write the report (template: security-review, section "Dependencies"), with a table per ecosystem and findings ranked Critical / High / …

    line 64

“Common” is measured: kept by at least 6 in 10 of the 49 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 Audit

Reports dependency risk and writes production/audits/deps-YYYY-MM-DD.md. It never upgrades, removes or installs packages without approval, and never runs audit fix --force.

Inputs

  • Manifests and lockfiles at the repo root and in workspaces (package.json + lockfile, pyproject.toml/requirements*.txt/uv.lock, go.mod, composer.json, Gemfile.lock)
  • project.yaml: stack.package_manager, stack.language

Phases

Phase 1: Detect ecosystems

Run bash .claude/scripts/detect-stack.sh and list every manifest found (including monorepo workspaces). A manifest without a lockfile is itself a High finding: installs are not reproducible.

Phase 2: Vulnerabilities

Run the matching tool for each ecosystem (JSON output where available):

EcosystemCommand
npmnpm audit --json
pnpmpnpm audit --json
yarn (berry)yarn npm audit --json
bunbun audit
Pythonpip-audit -f json (or inside uv run)
Gogovulncheck ./...
PHPcomposer audit --format=json
Rubybundle audit check --update

If a tool is missing, print the install command and mark the ecosystem NOT ASSESSED. For each vulnerability, note: package, installed and fixed version, severity, whether it is a dev-only dependency, and whether the vulnerable code path is plausibly reachable (e.g. a ReDoS in a build tool is lower risk than in a request parser).

Phase 3: Licences

Run npx license-checker --summary (or the ecosystem equivalent). Flag copyleft licences (GPL, AGPL, SSPL) in runtime dependencies of a closed-source product and unknown/unlicensed packages. Say this is not legal advice.

Phase 4: Health and freshness

  • Outdated majors (npm outdated, pnpm outdated, composer outdated, bundle outdated): especially the framework, ORM, auth and payment SDKs.
  • Abandoned or risky packages: no release in 2+ years, single maintainer for a critical path, recent ownership change, postinstall scripts.
  • Duplicates and heavy deps that performance-engineer should know about.

Phase 5: Report

Write the report (template: security-review, section "Dependencies"), with a table per ecosystem and findings ranked Critical / High / Medium / Low. For each fix give the exact command (pnpm up <pkg>@<version>) and whether it is a major upgrade that needs a story. Ask before writing.

Phase 6: Follow-up

Offer: a story per major upgrade, a bug per Critical/High vulnerability, and a security-lead review for anything reachable. Nothing is upgraded without a yes.

Output

production/audits/deps-YYYY-MM-DD.md (template: .claude/docs/templates/security-review.md).

Rigor

  • minimal: vulnerabilities only.
  • standard: adds licences and outdated majors.
  • full: adds package health review and reachability analysis by security-lead.

Next step

/bug-triage, or /security-audit if anything Critical is reachable.

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.