agentleFS
DeadlymindDeadlymind/nanolama/skills/dependency-audit/SKILL.md

dependency-audit

Skill1 starsChanged 5 months agoMITView on GitHub

Audits a project's Python and JavaScript dependencies for known CVEs and version drift — pip-audit for the backend, pnpm audit for the frontend, plus lockfile and pinning hygiene. Use when checking dependencies for vulnerabilities, adding or upgrading a package, reviewing a Dependabot or renovate PR, wiring a supply-chain gate into CI, or triaging an audit finding. Not for reviewing application code changes (see security-review) or general CI pipeline setup (see ci-cd).

32 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 6 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.
  • briiirussellSkill

    api-audit

    Audit REST, GraphQL, and RPC APIs against the OWASP API Security Top 10 (2023). Use when the user mentions 'API security,' 'API audit,' 'BOLA,' 'broken object level authorization,' 'BFLA,' 'function-level authorization,' 'mass assignment,' 'API rate limiting,' 'GraphQL security,' 'REST security,' 'API authentication,' 'API authorization,' 'excessive data exposure,' or needs to review API endpoints for security weaknesses.

    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

  • vbrevikSkill

    secret-scan

    Scan git repositories for leaked secrets (API keys, passwords, tokens, certificates) using gitleaks. Detects secrets in git history and current code. Produces STIG V-ID-tagged findings that feed into /stig-compliance as pipeline evidence. Use when (1) reviewing code changes for accidental secret commits, (2) auditing git history for previously committed secrets, (3) /stig-compliance review needs secret detection evidence. Works air-gapped.

    Also in 3 projects that use this

  • OpenAISkill

    threat-model

    Use when Codex is already in the threat-modeling phase of a security scan, the user explicitly invokes $threat-model, or the user explicitly asks to create, update, or persist a repository threat model. Do not use as the primary trigger for full PR, commit, branch, patch, or repository scans.

    Also in 4 projects that use this

  • renfei-designSkill

    a11y-audit

    Audit Figma designs for WCAG accessibility issues — color contrast, minimum font size, touch target sizing, and missing text alternatives. Use when asked to check accessibility, audit contrast ratios, find a11y issues, verify WCAG compliance, or review designs for accessibility problems. Scans nodes, analyzes offline, and annotates issues in Figma.

    Also in 3 projects that use this

  • SentrySkill

    architecture-review

    Staff-level codebase health review. Finds monolithic modules, silent failures, type safety gaps, test coverage holes, and LLM-friendliness issues.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 30 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before adding or bumping a dependency, when a vulnerability scanner or bot flags one, and on a schedule in CI.

    line 9
  2. Very specific:

    Commit and audit from lockfiles — uv.lock/poetry.lock/pinned requirements.txt and pnpm-lock.yaml.

    line 19
  3. Distinctive:

    Run both scanners; fail the build on the severity you care about:

    line 21

“Common” is measured: kept by at least 6 in 10 of the 30 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 (supply-chain hygiene)

When to use

Before adding or bumping a dependency, when a vulnerability scanner or bot flags one, and on a schedule in CI. A CVE in a transitive package is as real as a bug in your own code — treat the dependency tree as attack surface.

Pattern

Scan both ecosystems against advisory databases, from the committed lockfiles (so you audit exactly what ships), triage each finding (upgrade, or consciously accept with a recorded reason), and run the scan as a CI gate so new CVEs surface on their own.

Steps / idioms

  1. Commit and audit from lockfiles — uv.lock/poetry.lock/pinned requirements.txt and pnpm-lock.yaml. Pin production deps; never audit a floating range.
  2. Run both scanners; fail the build on the severity you care about:

    # Python — pip-audit reads installed pkgs or a requirements file (OSV/PyPI advisories)
    pip-audit -r requirements.txt --strict            # non-zero exit on any known CVE
    #   pip-audit --fix                                # auto-bump where a safe version exists
    
    # JavaScript — audit the pnpm workspace
    pnpm audit --prod --audit-level=high              # non-zero exit at >= high
    #   pnpm audit --fix                              # apply compatible upgrades
    
    # Triage a finding you cannot fix yet: upgrade, or record an explicit, expiring waiver
    #   (e.g. a pip-audit --ignore-vuln GHSA-xxxx with a comment + review date).
  3. Automate the bumps: enable Dependabot or renovate, and review those PRs against this same checklist rather than merging blindly.
  4. Vet new dependencies before adding: real project, active maintenance, sane transitive footprint, and the exact package name (guard against typosquats).

Adapt to your repo

Swap the tools for your package managers (npm audit/yarn npm audit, poetry, uv, osv-scanner, or safety as an alternative to pip-audit). Choose the --audit-level threshold your team enforces, and point the commands at your real lockfile paths.

Gotchas

  • Auditing installed packages instead of the lockfile hides what actually deploys — scan the lock.
  • --audit-level=high still lets moderate CVEs through; pick the threshold deliberately.
  • A "fix" that jumps a major version can break you — read the changelog, don't just take --fix.
  • Dev-only advisories still matter for your build/CI machines; scan dev deps too, separately.
  • Accepting a finding without an expiry turns into a permanent silent risk — set a review date.

See also

  • version-check
  • security-review
  • ci-cd

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.