dependency-audit
Skill1 starsChanged 2 months agoMITView on GitHub
Use when adding dependencies, reviewing a project's dependency tree, or checking for known vulnerabilities and ownership risk — covers pip-audit, npm audit, govulncheck, lock file hygiene, update policy, and trust assessment.
- Installs packages
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 34 edited versions we read keep these.
4
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
- Distinctive: line 20
Before shipping a new feature or release.
- Distinctive: line 21
When adding a new dependency.
- Distinctive: line 22
When a CVE advisory mentions a package you use.
- Distinctive: line 136
If no fix exists: document the accepted risk as a comment in the lock/requirements file, create a tracking issue, and set a review date.
“Common” is measured: kept by at least 6 in 10 of the 34 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.
Files
Dependency Audit
Checking and managing third-party dependencies for known vulnerabilities and supply-chain risks. This operationalises OWASP A06 (Vulnerable and Outdated Components) at the dependency level.
When to run an audit
- Before shipping a new feature or release.
- When adding a new dependency.
- When a CVE advisory mentions a package you use.
- On a scheduled basis (weekly or monthly, via CI).
Python — pip-audit
# Install
pip install pip-audit
# Audit current environment
pip-audit
# Audit against a requirements file
pip-audit -r requirements.txt
# Exit non-zero on any vulnerability (CI gate)
pip-audit --strictFix: upgrade the package (pip install --upgrade <package>) or pin to
a patched version in requirements.txt. If no fix is available, document
the accepted risk in a comment near the pin.
Node / TypeScript — npm audit
# Audit and show summary
npm audit
# Show only high and critical
npm audit --audit-level=high
# Fix automatically (updates package-lock.json)
npm audit fix
# Fix including semver-major bumps (review carefully)
npm audit fix --forceFor CI, prefer npm audit --audit-level=high so the exit code gates
the build on high/critical findings:
npm audit --audit-level=high || { echo "High/critical vulnerabilities found"; exit 1; }Or use audit-ci for more control:
npx audit-ci --high # fail on high+
npx audit-ci --config .audit-ci.json # custom config for allowlistGo — govulncheck
# Install
go install golang.org/x/vuln/cmd/govulncheck@latest
# Audit the module
govulncheck ./...
# JSON output for CI parsing
govulncheck -json ./...govulncheck only reports vulnerabilities in code paths that are actually
reachable — it doesn't flag packages you import but never call.
Lock files — never skip them
| Language | Lock file | Commit it? |
| Python | requirements.txt (pinned) or uv.lock / poetry.lock | Yes |
| Node | package-lock.json or yarn.lock or pnpm-lock.yaml | Yes |
| Go | go.sum | Yes |
Always commit lock files. They guarantee reproducible builds. Running
npm install (without npm ci) on a system without a lock file can
silently pull in newer, potentially vulnerable versions.
In CI, use the install command that respects the lock file:
- Python:
pip install -r requirements.txt(pinned versions) oruv sync - Node:
npm ci(notnpm install) - Go:
go build ./...(go.sum is always respected)
Version pinning policy
| Scenario | Recommendation |
| Direct production dependencies | Pin to exact version or narrow range |
| Dev/test tools | Minor-range pinning (^1.2.0) is acceptable |
| Transitive dependencies | Managed via lock file; don't pin manually |
latest tag | Never use in production |
What to do with a finding
- Check severity. CRITICAL/HIGH: fix before shipping. MEDIUM: fix within the sprint. LOW/INFO: schedule or accept with documentation.
- Check if the vulnerable code path is actually called.
govulncheckdoes this for Go; for Python/Node you may need to trace manually. - Upgrade or patch. Pin to the patched version in the lock file.
- If no fix exists: document the accepted risk as a comment in the lock/requirements file, create a tracking issue, and set a review date.
- Never just silence the audit. Suppressions require documented justification.
Dependency ownership — trust beyond CVEs
A clean CVE scan doesn't mean a package is safe to trust. Install/build scripts execute code at install time; network access at build or runtime; transitive trees spanning hundreds of packages; provenance gaps; abandoned maintenance; or high replacement cost are all real risks that CVE scanners never surface.
Risk-tiered ownership record:
| Tier | Examples | Minimum check |
| Trivial dev tool | linters, formatters, CLI utilities | Pinned version? Trusted source? |
| Runtime dependency | production code in your app/service | Full ownership checklist (see below) |
| Agent-executed | GitHub Actions, plugins, MCP servers, tools | Full checklist + SHA pin + provenance audit |
Ownership checklist (required for runtime and agent-executed):
- Capability justification — could stdlib or existing dep do this instead?
- Trust basis — official source? known maintainer? organization with reputation at stake?
- Exposure surface — direct/transitive? build/runtime? network access? install-time scripts?
- Provenance — pinned by SHA/hash? official registry source? can you verify integrity?
- Maintenance health — last release <12 months? active issue response? plan if abandoned?
- Replacement path — can you fork, patch locally, or swap it for an alternative?
- Verification method — how will you detect tampering, unexpected network access, or malicious version bumps?
Ecosystem notes:
- Python:
pip-audit --strictreports CVEs; separately, a source build runs the package'ssetup.pyat install time (install-time code execution). A wheel doesn't, but a--no-binarypin forces a source build — e.g.PyYAMLis pinned--no-binaryinrequirements-runtime.lockfor reproducibility, which means itssetup.pyruns on install and is worth reviewing. - Node/TS:
npm auditcovers CVEs; separately verify GitHub Actions pinned by commit SHA (never tag/branch). - Go:
govulncheck ./...reports reachable CVEs;go.sumprovides provenance baseline. - GitHub Actions: Third-party Actions run in CI with repo/CI context access. Pin by full commit SHA; verify code before use. Treat as agent-executed tier.
- Plugins/MCP/Agents: Tools running with your credentials (repo write, API keys, tool access) need full checklist + verification method (hash changes, network logs, version-bump alerts).
Scanner evidence vs. trust judgment:
pip-audit,npm audit,govulncheck: Are there known CVEs?- Ownership checklist: Should I trust this code in my environment?
Different questions. Clean scan + weak ownership = risky. Strong ownership + old CVE (unused code path) = documented risk. Use both.
Real example: GitHub Actions like lycheeverse/lychee-action are SHA-pinned in CI workflows, run with repo access, and don't appear in CVE scanners — ownership checklist is essential.
Review checklist
- Lock file committed and up to date
npm ci/pip install -r requirements.txt/go buildused in CI- Audit run before this release (
pip-audit,npm audit,govulncheck) - No HIGH or CRITICAL open CVEs
- New dependencies justified (do you need a whole library for this?)
- No
latestversion tags in dependency files
Other versions37 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 37
- web-infra-dev/modern.js★ 5ksame name
- briiirussell/cybersecurity-skills★ 489same name
- Mathews-Tom/armory★ 340same name
- PerryLink/dsh-skill-pack-security★ 22same name
- Indium-AI-Labs/indium-agentkit★ 18same name
- Ionate-Technologies/indium-agentkit★ 17same name
- Quality-Max/free-qa-skills★ 13same name
- jnotsknab/mux-swarm★ 9same name
- greglas75/zuvo★ 7same name
- viknesh20-20/claude-code-tool-kit★ 7same name
27 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use threat-model, a11y-audit and 4 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.
OpenAISkillthreat-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-designSkilla11y-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
OpenAISkillsecurity-scan
Use for a standard, single-pass security audit of an entire repository or a scoped path, package, folder, or submodule with no diff to review. This is the default repository scan. Do not use for PR, commit, branch, or working-tree diffs, or for deep, multi-pass scans.
Also in 4 projects that use this
SentrySkillarchitecture-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
CloudflareSkillsecurity-audit
Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.
Also in 4 projects that use this
HashiCorpSkillchangelog
Add a `.changelog/<PR_NUMBER>.txt` entry for a GitHub Pull Request, commit, and push.
Also in 3 projects that use this
In this repository77 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/accessibility.mdcCursor rule
- .cursor/rules/agentharness-router.mdcCursor rule
- .cursor/rules/agentic-loops.mdcCursor rule
- .cursor/rules/api-design.mdcCursor rule
- .cursor/rules/audit-review-followup.mdcCursor rule
- .cursor/rules/big-work-plan-review.mdcCursor rule
- .cursor/rules/branching.mdcCursor rule
- .cursor/rules/clean-architecture.mdcCursor rule
- .cursor/rules/code-review-api.mdcCursor rule
- .cursor/rules/code-review-db.mdcCursor rule
- .cursor/rules/code-review.mdcCursor rule
- .cursor/rules/code-review-ui.mdcCursor rule
- .cursor/rules/committing.mdcCursor rule
- .cursor/rules/database-conventions.mdcCursor rule
- .cursor/rules/dependency-audit.mdcCursor rule
- .cursor/rules/dependency-injection.mdcCursor rule
- .cursor/rules/design-patterns.mdcCursor rule
- .cursor/rules/docker-conventions.mdcCursor rule
- .cursor/rules/error-handling.mdcCursor rule
- .cursor/rules/file-placement-policy.mdcCursor rule
- .cursor/rules/github-issue-triage.mdcCursor rule
- .cursor/rules/go-conventions.mdcCursor rule
- .cursor/rules/harness-feedback.mdcCursor rule
- .cursor/rules/logging.mdcCursor rule
- .cursor/rules/multi-agent-coordination.mdcCursor rule
- .cursor/rules/mutation-testing.mdcCursor rule
- .cursor/rules/performance-profiling.mdcCursor rule
- .cursor/rules/planning-with-files.mdcCursor rule
- .cursor/rules/port-agent-config.mdcCursor rule
- .cursor/rules/project-bootstrap.mdcCursor rule
- .cursor/rules/python-conventions.mdcCursor rule
- .cursor/rules/react-best-practices.mdcCursor rule
- .cursor/rules/refactoring.mdcCursor rule
- .cursor/rules/requirements-clarification.mdcCursor rule
- .cursor/rules/security-review.mdcCursor rule
- .cursor/rules/solid-principles.mdcCursor rule
- .cursor/rules/testing.mdcCursor rule
- .cursor/rules/typescript-conventions.mdcCursor rule
- accessibilitySkill
- agentic-loopsSkill
- api-designSkill
- audit-review-followupSkill
- big-work-plan-reviewSkill
- branchingSkill
- clean-architectureSkill
- code-review-apiSkill
- code-review-dbSkill
- code-reviewSkill
- code-review-uiSkill
- committingSkill
- database-conventionsSkill
- dependency-injectionSkill
- design-patternsSkill
- docker-conventionsSkill
- error-handlingSkill
- file-placement-policySkill
- github-issue-triageSkill
- The first 60 shown.
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
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.

