| name | dependency-audit |
| description | Audit dependencies for security vulnerabilities, licensing, and maintenance. |
Dependency Audit Skill
Audit project dependencies for security vulnerabilities, licensing issues, and maintenance status.
When to use this skill
- Regular security audits
- Before deploying to production
- When adding new dependencies
- Investigating vulnerability reports
- Updating outdated packages
Workflow
- Run audit tools — npm audit, license-checker
- Analyze results — Identify critical vulnerabilities
- Research fixes — Find updates or alternatives
- Test updates — Ensure compatibility
- Document decisions — Record audit findings
Audit Commands
npm audit
npm audit --json
npx license-checker --summary
npx license-checker --failOn "GPL-3.0"
npm outdated
npx npm-check-updates
npx webpack-bundle-analyzer stats.json
Vulnerability Severity
| Severity | Action |
|---|
| Critical | Fix immediately |
| High | Fix within 24 hours |
| Moderate | Fix within 1 week |
| Low | Plan for next sprint |
Common Vulnerabilities
- prototype pollution — Use Object.create(null) or Map
- SQL injection — Use parameterized queries
- XSS — Sanitize user input
- CSRF — Use CSRF tokens
- Dependency confusion — Use scoped packages
Checklist