A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
Claude Code skill for optimizing oversized CLAUDE.md files using progressive disclosure
A Claude Code skill that optimizes oversized CLAUDE.md files using progressive disclosure. Analyzes content tiers, detects encryption constraints, creates sub-documents, and rewrites the main file — with zero information loss.
CLAUDE.md files grow organically as projects mature. They accumulate troubleshooting guides, deployment commands, API references, and configuration examples alongside the essential rules needed every session. Since CLAUDE.md is loaded into every Claude Code conversation as system context, oversized files waste context window budget on content that's only needed occasionally.
Projects with 6+ months of development commonly reach 800-1,500+ lines.
The skill uses a 6-phase guided workflow:
Copy this skill to your Claude Code skills directory:
git clone https://github.com/wrsmith108/claude-md-optimizer.git ~/.claude/skills/claude-md-optimizer
The skill is automatically available in all Claude Code sessions after installation.
Trigger the skill by saying any of:
The skill will analyze your file and present a plan for approval before making any changes.
claude-md-optimizer/
├── SKILL.md # Entry point — workflow phases, essential rules, quick reference
├── analysis.md # Content categorization methodology and heuristics
├── patterns.md # 8 progressive disclosure patterns with decision tree
├── constraints.md # Encryption detection, CI dependency scanning, safe path selection
├── validation.md # Before/after diffing, failure modes, rollback procedure
└── README.md # This file
The skill applies these patterns when rewriting CLAUDE.md:
| Pattern | Use Case |
|---|---|
| Sub-Documentation Table | Navigation index at top of CLAUDE.md |
| Quick-Reference + Link | One essential command + link to full guide |
| Compressed Table + Link | Troubleshooting lookup table + link to diagnostics |
| Summary + Link | Brief description + link to comprehensive guide |
| Inline Essential | Content that must stay fully inline (no extraction) |
| Split | Keep essential summary inline, extract details |
| Terse Agent Hint | Compress multi-line code blocks to single-line command references |
Before: 850 lines
After: 320 lines (62% reduction), 4 sub-documents (580 lines), zero information loss
The skill will decline to optimize if:
MIT
A Claude Code skill by Hao (駱君昊) that learns your Facebook voice and auto-posts to FB / IG / Threads / X with a 14-day c
1000+ skills curated from Anthropic, Vercel, Stripe, and other engineering teams
Claude Code skill for YouTube creators — channel audits, video SEO, retention scripts, thumbnails, content strategy, Sho
AI image generation skill for Claude Code -- Creative Director powered by Gemini