Help us improve
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
By kojott
Audit and optimize CLAUDE.md hierarchies, .claude/rules, ecosystem files, and docs/ folders against Anthropic best practices and Boris Cherny guidelines. Detect redundancies, conflicts, anti-patterns, and receive targeted improvement suggestions to enhance Claude integration.
npx claudepluginhub joshuarweaver/cascade-code-general-misc-1 --plugin kojott-claude-docu-optimizerA Claude Code plugin for optimizing CLAUDE.md files and the docs/ documentation ecosystem following battle-tested patterns from Boris Cherny's team at Anthropic.
Analyzes and optimizes your project documentation to keep Claude Code's context efficient and your docs synchronized with code.
Key features:
| Mode | Description |
|---|---|
analyze | Report issues only (default) |
optimize | Full analysis + optimized version |
apply | Directly update the file |
compare | Before/after with token savings |
create | Generate new CLAUDE.md from project structure |
sync | Semantic check of docs ↔ code synchronization |
audit | Complete audit of documentation ecosystem |
scaffold | Generate docs/ structure for new project |
Add the marketplace and install the plugin:
claude plugin marketplace add https://github.com/kojott/claude-docu-optimizer
claude plugin install docu-optimizer@claude-docu-optimizer
claude plugin marketplace update claude-docu-optimizer
claude plugin update docu-optimizer@claude-docu-optimizer
/docu-optimizer analyze # Report issues
/docu-optimizer optimize # Full analysis + optimized version
/docu-optimizer apply # Directly update CLAUDE.md
/docu-optimizer compare # Before/after comparison
/docu-optimizer create # Generate new CLAUDE.md
/docu-optimizer sync # Check docs ↔ code sync
/docu-optimizer audit # Full documentation ecosystem audit
/docu-optimizer scaffold # Generate docs/ structure
| Metric | Value |
|---|---|
| Ideal CLAUDE.md size | ~2.5k tokens (~100-150 lines) |
| Maximum recommended | 4k tokens |
| Warning threshold | 5k+ tokens (causes context rot) |
MIT + Commons Clause - Free to use, modify, and share. Commercial selling requires author's approval. See LICENSE for details.
Share bugs, ideas, or general feedback.
Based on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Optimize your CLAUDE.md hierarchy — deduplicate, detect misplacement, compress bloat, and visualize token usage across global/project/repo levels
CLAUDE.md lifecycle toolkit: initialise, enhance, sync, and modularise CLAUDE.md files with a 150-line cap, automatic chaining, and Karpathy behavioural guardrails.
Tools to maintain and improve CLAUDE.md files - audit quality, capture session learnings, and keep project memory current.
Rewrite a CLAUDE.md file using <important if> blocks to improve instruction adherence
Evaluate and optimize .claude/ directory token efficiency. Reduce cost, improve response quality.
Use this agent when you need to analyze a service or codebase component and create comprehensive documentation in CLAUDE.md files. This agent should be invoked after implementing new services, major refactoring, or when documentation needs updating to reflect the current codebase structure. Examples: <example>Context: The user has just implemented a new authentication service and wants to document it properly. user: 'I just finished implementing the auth service, can you document how it works?' assistant: 'I'll use the codebase-documenter agent to analyze the authentication service and create detailed documentation in CLAUDE.md' <commentary>Since the user has completed a service implementation and needs documentation, use the Task tool to launch the codebase-documenter agent to create comprehensive CLAUDE.md documentation.</commentary></example> <example>Context: The user wants to ensure a newly added API module is properly documented for the team. user: 'We need documentation for the new payment processing API I just added' assistant: 'Let me use the codebase-documenter agent to analyze the payment processing API and create proper documentation' <commentary>The user needs documentation for a new API module, so use the codebase-documenter agent to create CLAUDE.md files with setup instructions and architectural notes.</commentary></example>
Pre- and post-implementation validation with parallel subagents: /replan validates plans before execution, /recheck verifies implementations match the plan
Get Telegram notifications when Claude Code finishes a task or needs attention. Know when to come back and assign new work.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claim