dep-hygiene
Purpose
Flag dependency hygiene gaps that raise supply-chain risk before code is built or deployed.
Runbook
- Run the audit from a repository root or a narrowed subdirectory.
- Let
scripts/audit.pydiscover common manifests such as package.json, requirements.txt, pyproject.toml, Cargo.toml, and go.mod. - Review missing lockfiles first, then inspect loose version ranges and git/path-based sources.
- Use the output to plan dependency tightening; the script is intentionally read-only.
Stop conditions
- Abort if the repository uses a package manager that the built-in rules do not understand.
- Abort before calling a dependency malicious based solely on a loose pin or local path reference.
- Abort if the target variant cannot safely read the repository tree.
Output format
- Repository-wide manifest inventory
- Risk findings grouped by manifest path and rule
- Lockfile coverage summary
Example invocations
python3 skills/dep-hygiene/scripts/audit.py .python3 skills/dep-hygiene/scripts/audit.py services/api --markdown