audit-deps
Skill106 starsChanged 7 months agoMITView on GitHub
Run a dependency vulnerability audit and map each advisory to the pracht routes, loaders, middleware, and API handlers that import the package. Use for "audit deps", "scan for CVEs", "npm audit", "which routes use this vulnerable package".
4 other projects use a version of this.
Adopted by
Most recently taken up by
- garfiec/Librechat-Mobiletheir own version, first seen Nov 7, 2026
- latuconsinafr/claude-code-configtheir own version, first seen Oct 13, 2026
- krixon/skillstheir own version, first seen Oct 11, 2026
- me2resh/apexyardtheir own version, first seen Oct 8, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- me2resh/apexyard★ 542same name
- garfiec/Librechat-Mobile★ 149same name
- krixon/skills★ 1same name
- latuconsinafr/claude-code-config★ 0same name
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 repository33 other files it gives its agents.
- AGENTS.mdAGENTS.md
- add-authSkill
- add-capabilitiesSkill
- add-contentSkill
- add-dbSkill
- add-i18nSkill
- add-imagesSkill
- add-observabilitySkill
- add-openapiSkill
- audit-a11ySkill
- audit-agent-surfaceSkill
- audit-authSkill
- audit-bundlesSkill
- audit-csrfSkill
- audit-headersSkill
- audit-islandsSkill
- audit-loadersSkill
- audit-redirectsSkill
- audit-secretsSkill
- audit-seoSkill
- audit-shellsSkill
- configure-isgSkill
- migrate-nextjsSkill
- pracht-debugSkill
- pracht-deploySkill
- pracht-scaffoldSkill
- pracht-test-apiSkill
- pre-deploySkill
- scaffold-e2eSkill
- scaffold-testsSkill
- tune-render-modeSkill
- typed-routesSkill
- upgrade-prachtSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
4
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
- Very specific: line 117
If the direct dependency has a non-breaking range covering the fix: recommend running pnpm up <dep> (or the equivalent for the detected …
- Distinctive: line 120
If a major bump is required: link to the package's CHANGELOG and recommend a deliberate migration.
- Distinctive: line 127
Always determine the direct importer.
- Distinctive: line 130
Do not run any upgrade; propose commands only.
- Distinctive: line 131
If the audit tool reports zero advisories, still note the package counts and lockfile age — staleness is a precursor to advisories.
“Common” is measured: kept by at least 6 in 10 of the 4 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
Pracht Audit Deps
npm audit (or pnpm audit) gives you a list of vulnerable packages. This
skill goes one step further: for each advisory, it tells you which routes
and APIs touch the vulnerable code path so you can prioritize and write
targeted regression tests after upgrading.
Prerequisites: pracht inspect requires a vite config that registers the
pracht plugin.
Step 1: Run the audit
Detect the package manager from the lockfile in repo root; for yarn,
disambiguate Classic vs Berry via the packageManager field in
package.json (fall back to yarn --version):
| Lockfile | Manager | Command |
pnpm-lock.yaml | pnpm | pnpm audit --json |
package-lock.json | npm | npm audit --json |
yarn.lock | yarn Classic (yarn@1.x) | yarn audit --json |
yarn.lock | yarn Berry (yarn@2+) | yarn npm audit --json --recursive |
bun.lockb / bun.lock | bun | bun audit --json (if available; otherwise note as gap) |
Capture the JSON. Track each advisory: package, severity, range, fixed-in.
Step 2: Resolve "which package depends on the vulnerable one"
For transitive vulns, the direct importer matters more than the leaf. Use the package manager:
pnpm why <package>
# or
npm ls <package>Capture the dependency chain. The first non-pracht-internal direct dependency is the one the user owns.
Step 3: Map to routes/APIs
MCP: if pracht dev-mcp is registered, prefer its inspect_*, doctor, and verify tools to the CLI.
For each direct dependency identified in step 2:
- Grep
src/forimport .* from "<dep>"andrequire("<dep>"). - Classify each hit file against the resolved graph — do NOT classify by
directory convention (pages mode uses a configurable
pagesDir, and app layout is not fixed). Frompracht inspect routes --json, match the hit against each route'sfile,loaderFile, andshellFile; resolvemiddlewarenames to files via thedefineApp({ middleware })map in the manifest. Frompracht inspect api --json, match against each API route'sfile. - A hit that matches none of those is a shared module — trace its importers upward until you reach a route, loader, shell, middleware, or API file from the graph.
This produces a "blast radius" per advisory.
Step 4: Categorize urgency
For each advisory, score:
| Factor | Weight |
Advisory severity (critical/high/moderate/low) | base |
| Reachable from a request handler | +1 tier |
| Reachable from an unauthenticated route | +1 tier |
| Reachable only from build scripts / dev tools | -1 tier |
Build scripts that never ship to runtime (e.g., a Vite plugin used only at build time) are lower priority than a package imported into a production loader.
Step 5: Report
Report severity is the primary scale — error (critical/high reachable from
runtime), warn (moderate, or high but build-time only), info (low, or
unreachable) — with the advisory's own severity as a secondary column:
## error
- <pkg> @ <version> — advisory: <severity> — <CVE>
Direct importer: <dep>
Reachable from:
- GET /api/users (src/api/users.ts)
- SSR /dashboard (src/routes/dashboard.tsx → src/server/db.ts)
Fix: upgrade to <range>
Test after upgrade: <list of routes/APIs above>End with a one-line verdict: N critical, N high, N moderate, N low — N
reachable from runtime.
Step 6: Recommend the upgrade
This skill is report-only — do not run any install or upgrade command. For each fix:
- If the direct dependency has a non-breaking range covering the fix:
recommend running
pnpm up <dep>(or the equivalent for the detected package manager). - If a major bump is required: link to the package's CHANGELOG and recommend a deliberate migration.
- Recommend running
pnpm testand the route-targeted tests derived from step 3 after any upgrade.
Rules
- Always determine the direct importer; transitive-only output is unhelpful.
- Distinguish runtime vs. build-time exposure — they have very different urgency.
- Do not run any upgrade; propose commands only. The user applies them.
- If the audit tool reports zero advisories, still note the package counts and lockfile age — staleness is a precursor to advisories.
- Cross-reference with
pre-deploybefore shipping any post-upgrade build.
$ARGUMENTS
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.

