Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By ivan-magdav1.4.0MITIn 1 marketplace
Keep CLAUDE.md, AGENTS.md, MEMORY.md, and related instruction files lean. A reactive guardian runs pre-write checks; a three-phase cleanup restructures bloated files.
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Agent skills that keep AI assistant instruction files (AGENTS.md, CLAUDE.md, MEMORY.md) lean.
Two skills work together: a guardian that runs before an instruction file is edited to prevent bloat, and a three-phase cleanup for files that have already grown too large. They work with Claude, Cursor, Windsurf, Copilot, Codex, and other AI coding assistants that support the Agent Skills / AGENTS.md format.
My team's CLAUDE.md hit Claude Code's 40k-character warning at 519 lines, grown over three months. The cost wasn't token count. Instruction-following degrades as the file grows, so a bloated instruction file makes the agent worse at every rule it holds, not only the ones it skips. I cleaned ours up by hand and cut always-loaded context by 73% (writeup). These two skills codify that routine: one prevents the bloat, one fixes it once it lands.
Treat the instruction file as a prompt budget. Spend it on rules the agent needs in front of it every turn.
These skills handle context-budget hygiene as a set of facts, leaving opinions about what belongs in your instruction file to you.
Covered:
/compact and which disappears.Intentionally excluded:
| Skill | When to use it | What it does |
|---|---|---|
instruction-guardian | Day-to-day gate. Runs before every edit to CLAUDE.md / AGENTS.md / MEMORY.md / .claude/rules/, keeping files from re-bloating. | Runs a six-step checklist: line budget, dedup check, litmus test, destination routing, format rules, @-import prevention. Pushes back when content doesn't belong in an instruction file. |
instruction-cleanup | One-time fix. Run when files have grown past ~200 lines or ~40k chars and agent performance has degraded. Produces a written plan you approve before anything is rewritten. | Three-phase audit, plan, and implement procedure. Measures the full context-budget surface area, classifies every section, and restructures with a needle-grep verification step. |
Cleanup fixes the past, guardian prevents the future.
Run one command and pick both skills in the wizard (space to toggle, enter to confirm):
npx skills add https://github.com/ivan-magda/instruction-health-skills
Or install both non-interactively in one shot:
npx skills add https://github.com/ivan-magda/instruction-health-skills --skill instruction-cleanup instruction-guardian
For an unattended setup that also picks every agent, use --all.
Per-skill platform pages:
Both skills ship in a single plugin: one marketplace add, one install, and you get both.
Add the marketplace:
/plugin marketplace add ivan-magda/instruction-health-skills
Install the plugin:
/plugin install instruction-health@instruction-health-skills
npx claudepluginhub ivan-magda/instruction-health-skills --plugin instruction-healthBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground