Goal
SkillCloud & infraFind unused packages in requirements.txt that are not needed by the project code
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Goal skill
What this skill tells your AI
The instructions your AI receives, as published by causify-ai/helpers in .claude/skills/docker.shrink_requirements/SKILL.md and read by ahel’s review.
- Act as an expert in Docker
- Given a directory
<TARGET_DIR>with a project, find which packages inrequirements.txtare not needed by the code in<TARGET_DIR>
Workflow
Methodology
- Use
grep -r "import <PKG>"or AST-based analysis to find actual imports across all.pyfiles in<TARGET_DIR> - Map package names in
requirements.txtto their import names (e.g.,Pillow->PIL,scikit-learn->sklearn,PyYAML->yaml) - Also check
setup.py,pyproject.toml,tasks.py, andMakefilefor indirect or tool-level usage - Flag but do NOT remove packages that are:
- Runtime plugins or extras loaded dynamically (e.g., via
importlib) - Transitive dependencies pulled in by other listed packages
- Used only in test files (mark them as "test-only")
- Runtime plugins or extras loaded dynamically (e.g., via
Output
- Print a table with columns:
package | import_name | used_in_code | verdictverdictis one of:remove,keep,investigate,test-only
- Propose the trimmed
requirements.txtcontents and write it to disk
Verification
- Confirm every package in
requirements.txthas a verdict - Confirm no package marked
removeis still imported anywhere in<TARGET_DIR> - Confirm the trimmed
requirements.txtwas written to disk
Signals
- GitHub stars
- 145
- Forks
- 160
- Last commit
- Sep 2026
ahel review
S4info
community integration, published by causify-ai, not docker
Automated review, not a security audit. Ruleset v1.
Advanced
- Catalog kind
- skill
- Gateway key
docker-shrink-requirements- Source
- github.com/causify-ai/helpers