dependency-audit
Audit project dependencies for vulnerabilities, outdated packages, license compliance, and supply chain risks.
What this skill does
# Dependency Audit
Scan dependencies for vulnerabilities, check for outdated packages, and verify license compliance.
## Vulnerability Scanning
### Node.js (npm/pnpm)
```bash
# npm audit with summary
npm audit
# JSON output for processing
npm audit --json | jq '{total: .metadata.vulnerabilities, critical: .metadata.vulnerabilities.critical, high: .metadata.vulnerabilities.high}'
# Auto-fix where possible
npm audit fix
# pnpm
pnpm audit --json
```
### Python (pip-audit)
```bash
# Scan installed packages
pip-audit
# Scan from requirements file
pip-audit -r requirements.txt
# JSON output
pip-audit --format json -r requirements.txt
# Fix by upgrading
pip-audit --fix -r requirements.txt
```
### Go
```bash
# Check for known vulnerabilities
govulncheck ./...
# Verbose output with call stacks
govulncheck -show verbose ./...
```
### Rust
```bash
# Install cargo-audit if needed: cargo install cargo-audit
cargo audit
# JSON output
cargo audit --json
```
## Outdated Package Check
```bash
# Node.js
npm outdated --json | jq 'to_entries[] | {package: .key, current: .value.current, wanted: .value.wanted, latest: .value.latest}'
# pnpm
pnpm outdated --format json
# Python
pip list --outdated --format json | jq '.[] | {name, version, latest_version}'
# Go
go list -m -u all 2>/dev/null | grep '\['
# Rust
cargo outdated
```
## License Compliance
### Node.js
```bash
# Install: npm install -g license-checker
license-checker --json | jq 'to_entries[] | {package: .key, license: .value.licenses}' | head -100
# Check for specific problematic licenses
license-checker --failOn "GPL-3.0;AGPL-3.0" --json
# Summary by license type
license-checker --summary
```
### Python
```bash
# Install: pip install pip-licenses
pip-licenses --format json | jq '.[] | {name: .Name, license: .License}'
# Check for copyleft licenses
pip-licenses --allow-only "MIT;BSD-3-Clause;Apache-2.0;ISC"
```
## Dependency Tree
```bash
# Node.js — why is this package here?
npm explain <package-name>
# Full tree
npm ls --all --json | jq '.dependencies | keys'
# Python
pip show <package-name> | grep -E "^(Requires|Required-by)"
# Go
go mod graph | grep <module-name>
# Rust
cargo tree -p <crate-name>
```
## Supply Chain Checks
```bash
# Check package provenance (npm)
npm audit signatures
# Check for typosquatting — compare against known packages
npm info <suspicious-package> | head -5
# Check publish date and download counts
npm view <package-name> time --json | jq 'to_entries | sort_by(.value) | last(3)'
```
## Notes
- Run audits before merging dependency updates, not just on schedule.
- `npm audit fix --force` can introduce breaking changes — review before running.
- License compliance matters for commercial software. GPL/AGPL in dependencies can require open-sourcing your code.
- Zero-day vulnerabilities won't show in audits — keep dependencies minimal.
- Pin exact versions in production (`package-lock.json`, `requirements.txt` with `==`).
Related in Security
mac-ops
IncludedComprehensive macOS workstation operations — diagnose kernel panics, identify failing drives, audit launchd startup items, decode wake reasons, triage TCC permission denials, manage APFS snapshots, recover from no-boot. Use for: Mac is slow, slow bootup, won't boot, kernel panic, kernel_task hot, mds_stores CPU, photoanalysisd, cloudd, login loop, gray screen, sleep wake failure, drive failing, IO errors, APFS snapshots eating space, Time Machine local snapshots, Spotlight indexing, launchd, LaunchAgent, LaunchDaemon, login items, TCC permissions, Full Disk Access, Screen Recording denied, Gatekeeper, quarantine, com.apple.quarantine, app is damaged, helper tool, /Library/PrivilegedHelperTools, pmset, wake reasons, dark wake, sysdiagnose, panic.ips, DiagnosticReports, configuration profile, MDM profile, remote diagnostics over SSH.
a11y-audit
IncludedRun accessibility audits on web projects combining automated scanning (axe-core, Lighthouse) with WCAG 2.1 AA compliance mapping, manual check guidance, and structured reporting. Output is configurable: markdown report only, markdown plus machine-readable JSON, or markdown plus issue tracker integration. Use this skill whenever the user mentions "accessibility audit", "a11y audit", "WCAG audit", "accessibility check", "compliance scan", or asks to check a web project for accessibility issues. Also trigger when the user wants to verify WCAG conformance or map findings to a specific standard (CAN-ASC-6.2, EN 301 549, ADA/AODA).
erpclaw
IncludedAI-native ERP system with self-extending OS. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolidation), and financial reporting. 413 actions across 14 domains, 43 expansion modules. Constitutional guardrails, adversarial audit, schema migration. Double-entry GL, immutable audit trail, US GAAP.
assess
IncludedAssesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use when evaluating code, designs, architectures, or comparing alternative approaches.
spring-boot-security-jwt
IncludedProvides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based access control using Spring Security 6.x. Use when implementing authentication or authorization in Spring Boot applications.
code-hardcode-audit
IncludedDetect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.