docker.shrink_requirements

docker.shrink_requirements is a skill for Claude Code from gpsaggese/helpers. It costs 12 tokens per session (355 once invoked), scanned A, original, Apache-2.0.

A dependency-audit workflow for Python projects that compares packages in requirements.txt with imports and project configuration. It identifies packages that may be unused while accounting for plugins, indirect dependencies, and test-only use.

In plain words
What is it for?
Use it to classify each requirement as removable, needed, uncertain, or test-only, and to propose a trimmed requirements file.
Why use it?
It helps reduce unnecessary installed packages without removing dependencies that are loaded indirectly or needed only by tests.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it to classify each requirement as removable, needed, uncertain, or test-only, and to propose a trimmed requirements file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gpsaggese/helpers/docker.shrink_requirements
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add gpsaggese/helpers --skill docker.shrink_requirements
Clone the repo
git clone --depth 1 https://github.com/gpsaggese/helpers

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docker.shrink_requirements

README.md
[![agentmods](https://agentmods.dev/badge/skills/gpsaggese/helpers/docker.shrink_requirements/github.svg)](https://agentmods.dev/skills/gpsaggese/helpers/docker.shrink_requirements)
Your own site
<a href="https://agentmods.dev/skills/gpsaggese/helpers/docker.shrink_requirements"><img src="https://agentmods.dev/badge/skills/gpsaggese/helpers/docker.shrink_requirements/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docker.shrink_requirements

Your own site · 80×15
<a href="https://agentmods.dev/skills/gpsaggese/helpers/docker.shrink_requirements"><img src="https://agentmods.dev/badge/skills/gpsaggese/helpers/docker.shrink_requirements.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 355 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00012 $0.00355
Opus 5.5 $0.00005 $0.00142
Sonnet 5.5 $0.00002 $0.00071
Haiku 4.5 $0.00001 $0.00036

Measured yesterday against content hash f531361d9805, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docker.shrink_requirements scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/docker.shrink_requirements/SKILL.md · 38 lines

What it actually says

Goal

  • Act as an expert in Docker
  • Given a project dir <TARGET_DIR>, find the packages in requirements.txt that its code does not need

Workflow

Methodology

  • Find actual imports in all .py files in <TARGET_DIR> with grep -r "import <PKG>" or AST-based analysis
  • Map each package in requirements.txt to its import name (e.g., Pillow -> PIL, scikit-learn -> sklearn, PyYAML -> yaml)
  • Also check setup.py, pyproject.toml, tasks.py, and Makefile for 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")

Output

  • Print a table with columns:
    package | import_name | used_in_code | verdict
    
    • verdict is one of: remove, keep, investigate, test-only
  • Propose the trimmed requirements.txt contents and write it to disk

Verification

  • Confirm every package in requirements.txt has a verdict
  • Confirm no package marked remove is still imported anywhere in <TARGET_DIR>
  • Confirm the trimmed requirements.txt was written to disk
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 38 lines · 12 tokens per session scan A f531361d9805

Subscribe to this mod's changes

docker.shrink_requirements is a skill published in the GitHub repository gpsaggese/helpers (158 stars, last pushed today), licensed Apache-2.0. It adds 12 tokens to every session and 355 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-06.

Related

docker.shrink_requirements compared with skills from other repositories

docker.shrink_requirements next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docker.shrink_requirementsgpsaggese/helpersSkill158todayApache-2.0A12Claude Code
azure-containerregistry-pybenjaminasterA/antigravity-awesome-skillsSkill465yesterdayMITA0Claude Code, Codex
airflowTerminalSkills/skillsSkill194todayApache-2.0A77Claude Code, Codex
python-install-skilljiushiwon/wg-skillsSkill136todayApache-2.0A49Claude Code, Codex
docker_packagingfdueblab/Micro-AgentSkill1001mo agoMITA0Claude Code, Codex
new-servicevoro6yov/spec-driven-developmentSkill51mo agoApache-2.0A109Claude Code
python-containerslaurigates/claude-pluginsSkill59todayMITC50Claude Code