dependency-audit
Skill3 starsChanged 10 days agoMITView on GitHub
Use this skill before adding a dependency, when an audit or Dependabot alert fires, or when a lockfile changes in a review - triaging CVEs by real reachability, spotting typosquats and install scripts, pinning and lockfile discipline, and license checks. Covers deciding what actually needs fixing instead of chasing every advisory to zero.
- Installs packages
42 other projects use a version of this.
Adopted by
Most recently taken up by
- petr-korobeinikov/skillstheir own version, first seen Nov 8, 2026
- ymd38/dev-skillstheir own version, first seen Nov 8, 2026
- northraystudio/marudatheir own version, first seen Nov 8, 2026
- Smaui94/ClaudeSkillCollectiontheir own version, first seen Nov 8, 2026
- nisarth/claude-skills-storetheir own version, first seen Nov 8, 2026
- amkisko/prayerstheir own version, first seen Nov 6, 2026
Used with
Projects with it also use api-audit, container-audit and 8 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.
gmanch94Skillapi-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
grichaSkillcontainer-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
conorluddySkillperformance-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
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
GitHubSkillaccessibility-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 3 projects that use this
Other versions42 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 42
- 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
- northraystudio/maruda★ 7same name
32 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.
In this repository72 other files it gives its agents.
- workflow/AGENTS.mdAGENTS.md
- docs/llms.txtllms.txt
- llms.txtllms.txt
- ai-video-prompt-engineerSkill
- api-contract-designSkill
- api-hardeningSkill
- brainstormingSkill
- cavecrewSkill
- caveman-commitSkill
- caveman-compressSkill
- caveman-helpSkill
- caveman-reviewSkill
- cavemanSkill
- councilSkill
- database-migrationsSkill
- deep-researchSkill
- deployment-patternsSkill
- e2e-testingSkill
- error-handlingSkill
- exa-searchSkill
- finishing-a-development-branchSkill
- frontend-securitySkill
- github-opsSkill
- graphifySkill
- graphyloop-wavesSkill
- graphyloop-workflowSkill
- gsap-coreSkill
- gsap-frameworksSkill
- gsap-performanceSkill
- gsap-pluginsSkill
- gsap-reactSkill
- gsap-scrolltriggerSkill
- gsap-timelineSkill
- gsap-utilsSkill
- high-end-visual-designSkill
- image-to-codeSkill
- last30daysSkill
- minimalist-uiSkill
- postgres-patternsSkill
- prisma-patternsSkill
- receiving-code-reviewSkill
- redesign-existing-projectsSkill
- remotion-video-creationSkill
- requesting-code-reviewSkill
- search-firstSkill
- secrets-hygieneSkill
- security-reviewSkill
- security-scanSkill
- short-video-productionSkill
- story-engineeringSkill
- supabase-setupSkill
- swarm-memorySkill
- systematic-debuggingSkill
- tdd-workflowSkill
- terminal-opsSkill
- threejs-animationSkill
- threejs-fundamentalsSkill
- threejs-geometrySkill
- threejs-interactionSkill
- threejs-lightingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 39 edited versions we read keep these.
2
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
- Very specific: line 15
Before npm i <new-package> (or pip/go/cargo/composer equivalent).
- Distinctive: line 40
Run the tool, then think — the count is not the finding.
- Very specific: line 77
Check resolved URLs point at the expected registry (not a random tarball or git URL) and integrity hashes are present.
- Very specific: line 81
Keep .npmrc/registry config in the repo so every machine and CI resolve from the same place.
- Very specific: line 88
Remove what you stopped using: npx depcheck, then delete.
- Distinctive: line 90
Prefer fewer, larger, well-maintained dependencies over many micro-packages.
“Common” is measured: kept by at least 6 in 10 of the 39 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 and supply chain
Two failures, opposite directions: shipping a package nobody vetted (install script, typosquatted name, unmaintained transitive dep), and burning a day on advisories that are unreachable in this app. Both come from not asking is this reachable, and what does it cost to remove.
When to activate
- Before
npm i <new-package>(or pip/go/cargo/composer equivalent). npm audit/ Dependabot / Snyk / GitHub alert, or a CI security job failing.- A PR whose diff includes a lockfile.
- Post-incident: "was this package the way in?"
Adding a dependency — the 60-second vet
- Do you need it? Platform first:
Intl,URL,fetch,crypto.subtle,structuredClone, CSS:has. A 3-line helper beats a transitive tree. - Is the name right? Typosquats live one character away
(
react-domm,lodash.js,crossenv,discord.js-selfbot). Copy the name from the official docs, never from a model's memory or a blog post. - Is it alive? Last publish, open-issue trend, maintainer count, downloads. One maintainer + last release three years ago = you are adopting the code.
- What does it drag in?
npm view <pkg> dependencies/npx howfat <pkg>— count transitives and installed size before, not after. - Does it run code on install?
npm view <pkg> scripts— apostinstallin a utility library is a red flag; install with--ignore-scriptsif you must. - License compatible? MIT/Apache-2.0/BSD fine for most products; AGPL/SSPL and "source-available" licenses are a legal decision, not a dev one.
- Pin it. Exact version in
package.json(no^for anything security- or build-critical), lockfile committed,npm ciin CI — nevernpm installthere.
Triaging an advisory
Run the tool, then think — the count is not the finding.
npm audit --json # or: pnpm audit / yarn npm audit
npm ls <vulnerable-pkg> # WHO pulls it in — the fix lives at that edge
pip-audit # python
govulncheck ./... # go: reports reachable symbols, not just versions
cargo audit # rust
composer audit # phpFor each advisory answer four questions:
- Reachable? Is the vulnerable function called on a path that handles
untrusted input? A ReDoS in a CLI-only formatter, or a dev-dependency in
devDependenciesthat never ships, is not the same risk as a parser in your request path.govulncheckanswers this natively; in JS, grep the call sites. - Runtime or build-time?
devDependenciesstill matter (they run on your machine and in CI, with tokens present) but they are not production exposure. Say which one you mean. - Fix available? Direct dep → bump and test. Transitive → bump the parent;
if the parent is stale,
overrides/resolutions(npm/pnpm/yarn) pin the fixed version, with a comment naming the advisory and a follow-up to remove it. - No fix? Mitigate and record: disable the feature, validate at the boundary,
or replace the package.
npm audit fix --forceis not a triage step — it happily installs a major bump that breaks the build.
Severity from the advisory is a prior, not a verdict. A "critical" in an unused code path is lower priority than a "moderate" in your auth flow. Order the report by reachability, and say which CVEs you are deliberately accepting and why.
Lockfile review
- Exactly one lockfile per project; two package managers means two dependency graphs and a nondeterministic build.
- A lockfile diff with no
package.jsonchange deserves a look: it can be a legitimate transitive bump, or an unrequested major slipping in. - Check
resolvedURLs point at the expected registry (not a random tarball or git URL) andintegrityhashes are present. - Review the added names, not just the count — this is where a typosquat or an install-script package arrives.
- Keep
.npmrc/registry config in the repo so every machine and CI resolve from the same place.
Keeping it clean
- CI:
npm ci+ an audit step with an explicit threshold (fail on high in prod deps), plus Dependabot/Renovate grouped weekly so bumps are reviewable. - Remove what you stopped using:
npx depcheck, then delete. Unused packages are attack surface with no upside. - Prefer fewer, larger, well-maintained dependencies over many micro-packages.
- Record the decision in memory (
memory_store, typedecision) when you accept a risk or add an override, so the next session does not re-litigate it.
Verification
- Show the tool output before and after (
npm auditsummary counts, or the specific advisories resolved). npm cifrom a clean state succeeds and the app builds — a fix that breaks the build is not a fix.- Tests pass after the bump; for a major bump, name what you exercised.
npm ls <pkg>proves the vulnerable version is actually gone from the tree, not merely deduped elsewhere.
Reporting
advisory · package (direct/transitive) · reachable? · runtime/dev · action taken.
List accepted risks separately with the reason and the mitigation. Never report
"0 vulnerabilities" without the command output that says so, and never claim a
package is unreachable without naming where you looked.
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.

