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.
npx skills add gpsaggese/helpers --skill coding.fix_bloated_importsgit clone --depth 1 https://github.com/gpsaggese/helpersWrote 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.
[](https://agentmods.dev/skills/gpsaggese/helpers/coding.fix_bloated_imports)<a href="https://agentmods.dev/skills/gpsaggese/helpers/coding.fix_bloated_imports"><img src="https://agentmods.dev/badge/skills/gpsaggese/helpers/coding.fix_bloated_imports/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.
<a href="https://agentmods.dev/skills/gpsaggese/helpers/coding.fix_bloated_imports"><img src="https://agentmods.dev/badge/skills/gpsaggese/helpers/coding.fix_bloated_imports.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00014 | $0.00345 |
| Opus 5.5 | $0.00006 | $0.00138 |
| Sonnet 5.5 | $0.00003 | $0.00069 |
| Haiku 4.5 | $0.00001 | $0.00034 |
Grade A, and why
coding.fix_bloated_imports 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.
What it actually says
-
I pass you one or more files
<FILES>and one or more packages<PACKAGES>that are large to import (e.g.,ipython,pandas) and needed in only a few functions -
In
<FILES>, use a conditional import for type checking and lazy imports for<PACKAGES>- E.g., transform
intodef make_slider() -> "ipywidgets.IntSlider": import ipywidgets ...from typing import TYPE_CHECKING if TYPE_CHECKING: import ipywidgets def make_slider() -> "ipywidgets.IntSlider": import ipywidgets ...
- E.g., transform
-
Use forward references only for the package types, not for the whole expression
- Bad (quotes the whole expression as one string)
"Tuple[Union[ipywidgets.FloatSlider, ipywidgets.IntSlider], ipywidgets.HBox]" - Good (quotes only the package types)
Tuple[Union["ipywidgets.FloatSlider", "ipywidgets.IntSlider"], "ipywidgets.HBox"]
- Bad (quotes the whole expression as one string)
-
If most functions in
<FILES>need<PACKAGES>, suggest not doing this transform
Verification
- Confirm
<PACKAGES>is imported only underTYPE_CHECKINGor inside the functions that use it - Confirm forward references quote only the package types, not full expressions
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.
- yesterday First seen · 46 lines · 14 tokens per session scan A ecc3c776f8e5
coding.fix_bloated_imports is a skill published in the GitHub repository gpsaggese/helpers (158 stars, last pushed today), licensed Apache-2.0. It adds 14 tokens to every session and 345 once invoked, about $0.0001 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.
coding.fix_bloated_imports compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| coding.fix_bloated_importsgpsaggese/helpers | Skill | 158 | today | Apache-2.0 | A | 14 | Claude Code |
| content-hash-cache-patternaffaan-m/ECC | Skill | 299k | today | MIT | A | 30 | Claude Code, Kiro |
| python-releaseComposioHQ/composio | Skill | 31k | today | MIT | A | 53 | Claude Code, Codex |
| python-cli-ops0xDarkMatter/claude-mods | Skill | 79 | today | MIT | A | 35 | Claude Code |
| python-projectmajiayu000/spellbook | Skill | 290 | 3d ago | MIT | C | 43 | Claude Code, Codex |
| temp-file-python-analysisfabioc-aloha/Alex_Skill_Mall | Skill | 5 | today | MIT | A | 14 | Claude Code, Codex |
| uv-workflowbahayonghang/my-ai-cli-toolkit | Skill | 17 | 9d ago | MIT | A | 57 | Claude Code |