Dependency Audit
Commands
Run in parallel:
npm auditnpm outdated
Workflow
- Run audit and outdated check in parallel
- Report critical vulnerabilities with CVE + fix command (see severity-levels.md)
- List outdated packages: table of package/current/latest/type (major vs minor/patch)
- Check for unused deps: grep imports in
src/
Rules
- Never use
npxdirectly - Focus on actionable items
- Prioritize: security > major updates > unused > minor updates
Error Handling
- If
npm auditfails → runnpm installfirst to generatepackage-lock.json, then retry - If
npm outdatedreturns nothing → report all dependencies are current - If
npmis not found → report incompatibility; this skill requires npm