Loading...
Loading...
Audit project dependencies for risk when the user asks to check dependencies, audit packages, review dependency health, check for vulnerabilities, or assess supply chain risk
npx skill4agent add generaljerel/chalk-skills analyze-dependencies.chalk/docs/engineering/package.jsonpackage-lock.jsonyarn.lockpnpm-lock.yamlpyproject.tomlrequirements.txtPipfilepoetry.lockpubspec.yamlpubspec.lockCargo.tomlCargo.lockgo.modgo.sumGemfileGemfile.lockpom.xmlbuild.gradle$ARGUMENTSnpm outdatedpip list --outdatedpub outdatednpm audityarn auditpnpm auditpip auditsafety checkcargo auditbundle audit.chalk/docs/engineering/*_dependency_audit*.chalk/docs/engineering/<n>_dependency_audit.md<number>_dependency_audit.md5_dependency_audit.md9_dependency_audit.md# Dependency Audit
Last updated: <YYYY-MM-DD>
Package manager: <npm / pip / pub / cargo / etc.>
Manifest: <path to manifest file>
## Summary
| Risk Level | Count | Action Required |
|------------|-------|-----------------|
| Critical | <n> | Immediate action |
| High | <n> | Plan remediation this sprint |
| Medium | <n> | Schedule for next maintenance window |
| Low | <n> | No action needed |
| **Total** | **<n>** | |
## Vulnerability Summary
| CVE | Severity | Package | Installed | Fixed In | Transitive? |
|-----|----------|---------|-----------|----------|-------------|
| CVE-XXXX-XXXXX | Critical | <name> | <version> | <version> | No |
## Critical & High Risk Dependencies
### <package-name> — CRITICAL
| Dimension | Status | Detail |
|-----------|--------|--------|
| Freshness | Outdated | Installed: 2.1.0, Latest: 4.0.0 |
| Vulnerabilities | CVE-XXXX-XXXXX (High) | RCE via crafted input |
| Bundle Impact | 450KB | Pulls in 23 transitive deps |
| License | MIT | No issues |
| Maintenance | Unmaintained | Last release: 2022-01-15 |
**Risk**: <Why this is critical>
**Recommendation**: Replace with `<alternative>`. Migration guide: <link or steps>.
### <package-name> — HIGH
| Dimension | Status | Detail |
|-----------|--------|--------|
| ... | ... | ... |
**Risk**: <explanation>
**Recommendation**: <action>
## Medium Risk Dependencies
| Package | Version | Risk Factors | Recommendation |
|---------|---------|-------------|----------------|
| <name> | <ver> | Stale (3 minor behind), minimal maintenance | Update to <ver> |
## Low Risk Dependencies
| Package | Version | License | Last Updated |
|---------|---------|---------|-------------|
| <name> | <ver> | MIT | 2024-11-01 |
## License Compliance
| License | Count | Packages | Risk |
|---------|-------|----------|------|
| MIT | <n> | <list> | None |
| Apache-2.0 | <n> | <list> | None |
| GPL-3.0 | <n> | <list> | Copyleft — review required |
| Unlicensed | <n> | <list> | Unknown — investigate |
## Recommendations Summary
### Immediate Action
1. <package>: <action and reason>
### This Sprint
1. <package>: <action and reason>
### Next Maintenance Window
1. <package>: <action and reason>
### Monitor
1. <package>: <what to watch for>| Dimension | Low | Medium | High | Critical |
|---|---|---|---|---|
| Freshness | Current or 1 minor behind | 2+ minor behind | 1+ major behind | Abandoned (2+ years) |
| Vulnerabilities | None known | Low severity | High severity, fix available | Critical severity or no fix |
| Bundle Impact | < 50KB, few transitive | 50-200KB | 200KB-1MB | > 1MB or 50+ transitive deps |
| License | MIT, BSD, ISC, Apache-2.0 | LGPL | GPL | AGPL or unlicensed |
| Maintenance | Active (monthly releases) | Maintained (quarterly) | Minimal (yearly) | Unmaintained or archived |
Note: These risk levels assume distributed, proprietary software. Adjust based on your project's distribution model — for internal-only tools, even copyleft licenses may be low risk. For dynamically linked libraries, LGPL is often low risk.
npm auditpip audit