/md-composer:md-composerfrom MSApps MD Composer
Audits, composes, and refactors CLAUDE.md files to stay under token budget. Splits monoliths into a 4-level hierarchy and converts negative rules to positive form.
Ships in MSApps MD Composer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Treat CLAUDE.md as a recipe book on the counter, not a filing cabinet. Every token in CLAUDE.md is loaded into every session — so keep only what's needed for every interaction, and push everything else to Skills, docs/, or Commands.
The root CLAUDE.md should fit on one screen (~200 lines max). If it doesn't, something belongs elsewhere.
Enterprise policy ← org-wide, IT-managed, highest precedence
↓
./CLAUDE.md ← project memory (committed)
↓
~/.claude/CLAUDE.md ← user memory (personal, all projects)
↓
./CLAUDE.local.md ← project local (gitignored, private)
Feature-level CLAUDE.md files in subdirs load only when Claude touches that subtree — use them to scope per-folder conventions (/api, /frontend) without paying the token cost globally.
Read the target CLAUDE.md and report:
For each section, decide:
| Keep in CLAUDE.md | Extract |
|---|---|
| Project identity (2-3 sentences) | API documentation → docs/api.md |
| House rules (positive form) | Step-by-step workflows → Skill |
| Output preferences | Reusable prompts → slash command |
| Hard boundaries | File preloads (@file:…) — delete |
| Quick reference (paths, entry points) | Detailed reference tables → docs/ |
See reference/template.md for the canonical ~40-line shape. Sections:
# Project: <Name> — one line## What This Is — 2-3 sentences## Tech Stack — bullet list## Code Conventions — positive-form rules## Output Preferences — how Claude should present work## Boundaries — never-touch files, always-run commands## Quick Reference — pointers to docs/, entry points, test layoutNegative lists burn tokens telling Claude what NOT to do. Replace:
Don't use var. Don't use any. Don't use console.log. Don't use ==.
With:
Use const/let, strict TypeScript, triple equals.
Same rules, ~40% fewer tokens.
Replace @file: preloads and inlined docs with pointers:
## API Reference
See docs/api-reference.md. Read it when working with API endpoints.
Move content to the correct level:
~/.claude/CLAUDE.md./CLAUDE.md./CLAUDE.local.md (gitignored)./<subdir>/CLAUDE.md@file: preloads at rootSee docs/… pointer# Project: <Name> formatSee reference/anti-patterns.md for the full taxonomy:
When running an audit, return:
docs/, what became a Skill, what went to user/local levelSee examples/:
This skill is based on Kjramsy's Medium article "Your CLAUDE.md is eating your token budget (here's how to fix it)" (Jan 2026): https://medium.com/@kjramsy/your-claude-md-is-eating-your-token-budget-heres-how-to-fix-it-b8d6c4d1c986
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub msapps-mobile/claude-plugins --plugin md-composerOther plugins' skills for the same job