code-dep-audit
Audit dependencies for security vulnerabilities, outdated packages, and license compliance. Use when checking supply chain security, preparing releases, or responding to CVEs.
What this skill does
# /code:dep-audit Audit project dependencies for vulnerabilities and freshness. ## When to Use This Skill | Use this skill when... | Use something else when... | |---|---| | Checking for known CVEs in dependencies | Setting up security scanning CI → /configure:security | | Preparing a release and need dep health check | Looking for code-level security issues → /code:antipatterns | | Responding to a vulnerability advisory | Reviewing code quality → /code:review | | Auditing license compliance | Configuring dependency management → /configure:package-management | ## Context - Package files: !`find . -maxdepth 1 \( -name "package.json" -o -name "package-lock.json" -o -name "yarn.lock" -o -name "bun.lockb" -o -name "pyproject.toml" -o -name "requirements.txt" -o -name "Cargo.toml" -o -name "Cargo.lock" -o -name "go.mod" -o -name "go.sum" \) -type f` ## Parameters - `--type`: Audit type — `security` (default), `outdated`, `licenses`, or `all` - `--fix`: Automatically apply safe updates for vulnerable packages ## Execution Execute this dependency audit workflow: ### Step 1: Detect package ecosystem Identify all package manifests and lock files present. Determine which audit tools are available for each ecosystem. ### Step 2: Run security audit **JavaScript/TypeScript:** ```bash npm audit --json ``` For bun projects: ```bash bun pm ls ``` **Python:** ```bash pip-audit --format json ``` Or with uv: ```bash uv pip audit ``` **Rust:** ```bash cargo audit --json ``` **Go:** ```bash go list -m -json all govulncheck ./... ``` If the audit tool is not installed, report which tool is needed and suggest `/configure:security` to set up the project. ### Step 3: Check outdated packages (if --type outdated or all) **JavaScript/TypeScript:** ```bash npm outdated --json ``` **Python:** ```bash pip list --outdated --format json ``` **Rust:** ```bash cargo outdated --format json ``` ### Step 4: Check license compliance (if --type licenses or all) **JavaScript/TypeScript:** ```bash npx license-checker --json --summary ``` **Python:** ```bash pip-licenses --format json ``` **Rust:** ```bash cargo license --json ``` Flag problematic licenses: GPL (in proprietary projects), AGPL, unlicensed, or unknown. ### Step 5: Apply fixes (if --fix) For security vulnerabilities: 1. Run `npm audit fix` / `cargo update` / `pip install --upgrade` for safe updates 2. Report which vulnerabilities were fixed and which require manual intervention 3. Run project tests to verify nothing broke ### Step 6: Report results Print summary: ``` Dependency Audit Report ======================= Ecosystem: [JS/TS | Python | Rust | Go] Security: Critical: N High: N Medium: N Low: N Outdated: N packages behind latest License issues: N flagged Top actions: 1. [package@version] - critical CVE-XXXX-XXXX 2. [package] - N major versions behind ``` ## Post-Actions - If many vulnerabilities found → suggest `npm audit fix` or equivalent - If audit tools not configured → suggest `/configure:security` - If outdated packages found → suggest updating in a separate branch ## Agentic Optimizations | Context | Command | |---|---| | Quick JS audit | `npm audit --json` | | Python audit | `pip-audit --format json` | | Rust audit | `cargo audit --json` | | Outdated check | `npm outdated --json` | | License check | `npx license-checker --json --summary` | | CI mode | `npm audit --audit-level=critical --json` |
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.