jovidecroock/pracht/audit-deps

Claude Code and agent skill by jovidecroock/pracht

Trust tier 2
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
LLM review pending
Source check pending

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-deps

Semi-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):

LockfileManagerCommand
pnpm-lock.yamlpnpmpnpm audit --json
package-lock.jsonnpmnpm audit --json
yarn.lockyarn Classic (yarn@1.x)yarn audit --json
yarn.lockyarn Berry (yarn@2+)yarn npm audit --json --recursive
bun.lockb / bun.lockbunbun 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:

bash
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:

  1. Grep src/ for import .* from "<dep>" and require("<dep>").
  2. 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.

  1. 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:

FactorWeight
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 test and the route-targeted tests derived from

step 3 after any upgrade.

Rules

  1. Always determine the direct importer; transitive-only output is unhelpful.
  2. Distinguish runtime vs. build-time exposure — they have very different

urgency.

  1. Do not run any upgrade; propose commands only. The user applies them.
  2. If the audit tool reports zero advisories, still note the package counts

and lockfile age — staleness is a precursor to advisories.

  1. Cross-reference with pre-deploy before 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jovidecroock/pracht/audit-deps/badge)](https://verified-skill.com/skills/jovidecroock/pracht/audit-deps)

Something wrong with this skill or its page? Tell us.