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 thedoublejayv1.0.0MIT
Finds duplicate, misplaced and bloated rules across your global, project and repo CLAUDE.md files, and reports token cost per file. Interactive by default, with an analyze mode that changes no files and a restore mode that undoes changes.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Optimize your CLAUDE.md hierarchy — deduplicate content, detect misplacement, compress bloat, and visualize token usage across global/project/repo levels.
Every word in your CLAUDE.md files is injected into every Claude request — silently, on every keystroke.
Most developers start with one global ~/.claude/CLAUDE.md. That's fine. But as soon as you work across multiple projects or organizations, the hierarchy grows:
~/.claude/CLAUDE.md ← loaded in EVERY project, for EVERY organization you work in
org-a/
├── CLAUDE.md ← loaded for all repos in org-a
├── repo-a/CLAUDE.md ← loaded when working in repo-a
├── repo-b/CLAUDE.md
├── repo-c/CLAUDE.md
└── repo-d/CLAUDE.md
org-b/
├── CLAUDE.md ← different org, different conventions
├── api/CLAUDE.md
└── frontend/CLAUDE.md
The hidden cost: When working in org-a/repo-a, Claude loads ~/.claude/CLAUDE.md + org-a/CLAUDE.md + org-a/repo-a/CLAUDE.md — all at once, every request. If the same rule appears in all three levels, you're paying for it three times. If your global file has org-specific ticket formats or framework rules that only apply to one project, you're paying for those everywhere.
For a single global CLAUDE.md: Even without a monorepo, your global file loads in every project — personal, work, client. Rules that only make sense for one context (a specific commit format, a framework preference, an internal tool) inflate every other session. This skill identifies exactly what should stay global vs. what belongs in a project-level file.
No tool analyzes the full hierarchy and helps you fix it. This skill does.
.claude/rules/, and @import reference across all levels~/.claude/backups/ for global, .claude-md-backup/ for project)Install via skills.sh marketplace:
npx skills add thedoublejay/please-optimize-my-claude
Note: This skill is designed for and tested with Claude Code. The
analyzemode works best in other agents; interactive and auto modes may have limited support.
Then run from any project directory:
/please-optimize-my-claude
| Command | Mode | Behavior |
|---|---|---|
/please-optimize-my-claude | Interactive (default) | Walk through findings with summary-then-batch approach |
/please-optimize-my-claude auto | Auto | Apply all optimizations automatically (prompts for backup first) |
/please-optimize-my-claude analyze | Analyze | Report only — no files modified |
/please-optimize-my-claude restore | Restore | Undo all changes from latest .claude-md-backup/ |
Any mode + --research | Live research | Also fetch latest best practices from web before analyzing |
# Just see what's wrong — no changes
/please-optimize-my-claude analyze
# Interactive: review findings and decide what to apply
/please-optimize-my-claude
# Auto-apply everything with backup
/please-optimize-my-claude auto
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (thedoublejay/please-optimize-my-claude) — no native marketplace selected
npx claudepluginhub p/thedoublejay-please-optimize-my-claudePlugins from other owners that cover similar ground