jovidecroock/pracht/audit-deps
Claude Code and agent skill by jovidecroock/pracht
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
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".
Install
npx vskill@latest install jovidecroock/pracht/audit-depsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as jovidecroock/pracht/audit-deps.
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:
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). From pracht inspect routes --json, match the hit against each route's file, loaderFile, and shellFile; resolve middleware names to files via the defineApp({ middleware }) map in the manifest. From pracht inspect api --json, match against each API route's file.
- 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:
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
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/audit-deps/SKILL.md
Popularity
- Repository stars
- 68
- Repository forks
- 2
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 May 2026, 6 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jovidecroock/pracht/audit-deps)