Instruction Health Skills — AI skill for Claude Code
Agent skills to keep AI instruction files (AGENTS.md, CLAUDE.md, MEMORY.md) lean.
How to install Instruction Health Skills
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ivan-magda/instruction-health-skills and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Instruction Health Skills does
Agent skills to keep AI instruction files (AGENTS.md, CLAUDE.md, MEMORY.md) lean. Guardian runs before edits to prevent bloat; cleanup restructures bloated files. Works with any AGENTS.md-aware tool.
Alternatives in AI
- Humanizer-zh: 去除 AI 写作痕迹 — 你是一位文字编辑,专门识别和去除 AI 生成文本的痕迹,使文字听起来更自然、更有人味 5k ★
- Part 4 — Generate AGENTS.md And AI Agent Configuration Files — I'll help you create the instruction files that will guide your AI coding assistant to build your MVP 2.1k ★
- Mancode — AI coding agent harness 358 ★
README
Instruction Health Skills
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.
Table of Contents
Background
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](https://ivanmagda.dev/posts/fixing-40k-claude-md-warning-monorepo/)). 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.
Philosophy
These skills handle context-budget hygiene as a set of facts, leaving opinions about what belongs in your instruction file to you.
**Covered:**
- Routing: every piece of content has one correct destination (instruction file, skill, rule, doc, memory, or delete).
- Context budget: measuring, condensing, and preventing re-bloat of always-loaded context.
- Compaction survival: which content survives
/compactand which disappears.
**Intentionally excluded:**
- Team workflow opinions. No mandate on what goes in CLAUDE.md vs AGENTS.md vs team docs.
- Naming conventions. No rules about skill names, doc paths, or file structure.
- Prescripti
Related Skills
Safety Guard
Enforces Law 3 (One Thing at a Time) of the 7 Laws of AI Agent Discipline by scoping edits to a directory and
Red Line Skill
A skill for AI agents (Claude, ChatGPT, etc.): clarify scope before planning, lay out an explicit end-to-end p
Pollymetric
Your Mac's health at a glance, in the menu bar. See what's slowing it down by name, catch problems that keep c
Fitness Copilot
AI personal trainer + sports nutritionist + sports-medicine coach — a Claude Code skill. Progressive, recovery
Paper Humanize
Light AI-ism cleanup on a paragraph or section. Strips a small scientific-safe blocklist only. Last pass befor
Project Artifact Cleanup
Stop AI-generated scratch files from piling up. A Codex and Claude Code skill with deletion previews, configur
Related Agents
Repo Auditor
Repository health check agent - analyzes file sizes, detects data files, validates staged commits. Use PROACTI
Git Purist
The sacred guardian of git history. Use this agent to review commits, split bloated changes, enforce conventio
Light Md PruneClaudeMD
Use this agent to prune and tighten a CLAUDE.md (or any agent/skill instruction markdown): cut bloat and dupli