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 juanmhidalgov0.10.0MITIn 1 marketplace
Scores a CLAUDE.md file from 0-100 for structure, conciseness and memory patterns, then applies optimizations at conservative, moderate or aggressive levels. Backs up the original and asks for confirmation before writing.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
1 caution to review before installing
A command runs shell commands (! syntax) when you invoke it
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Analyze and optimize CLAUDE.md files using Anthropic's official best practices for prompt engineering, XML tags, and memory patterns.
This plugin provides tools to ensure your CLAUDE.md files follow Anthropic's recommended patterns for:
/analyze-claude-md [path]Comprehensive analysis of a CLAUDE.md file against Anthropic's best practices.
Usage:
/analyze-claude-md # Analyzes ./CLAUDE.md or ./.claude/CLAUDE.md
/analyze-claude-md path/to/CLAUDE.md # Analyzes specific file
Generates:
Example output:
# CLAUDE.md Analysis Report
Score: 72/100 (Needs improvement)
## Metrics
- Lines: 332
- Estimated Tokens: ~2656
- Target Range: ~1200-2000 (medium project)
- Status: Above target (32% over)
## High Priority Issues
1. Missing XML structure (lines 1-332)
- Problem: No XML tags to separate sections
- Impact: Claude may confuse instructions with context
- Fix: Add <project_context>, <critical_rules>, etc.
2. Verbose explanations (lines 134-173)
- Problem: 150 tokens explaining basic concepts
- Fix: Reduce to 50 tokens assuming Claude's knowledge
[... detailed analysis continues ...]
/optimize-claude-md [path] [--level=conservative|moderate|aggressive]Automatically optimize a CLAUDE.md file by applying best practices.
Usage:
/optimize-claude-md # Moderate optimization of ./CLAUDE.md
/optimize-claude-md --level=conservative # Only add XML tags, no content changes
/optimize-claude-md --level=aggressive # Maximum optimization (50%+ token savings)
/optimize-claude-md path/to/CLAUDE.md # Optimize specific file
Optimization Levels:
| Level | Changes | Use When |
|---|---|---|
conservative | Add XML tags only, preserve all content | First time optimizing, want minimal disruption |
moderate (default) | XML tags + consolidation + verbosity reduction | Standard optimization, safe balance |
aggressive | Complete restructuring for max efficiency | Expert users, willing to review changes |
Safety features:
.backup-[timestamp])Example output:
# CLAUDE.md Optimization Complete
Level: Moderate
File: ./CLAUDE.md
## Metrics
- Original: 332 lines, ~2656 tokens
- Optimized: 187 lines, ~1496 tokens
- Savings: -44% tokens
## Changes Applied
✓ Added XML tag structure to 7 sections
✓ Consolidated 8 repetitive rules into 1 tagged section
✓ Removed verbose explanations from 3 sections
✓ Externalized 2 long code examples to @docs/patterns/
Backup: ./CLAUDE.md.backup-2026-01-07-143052
/init [--standalone]Initialize or enhance a CLAUDE.md file with best practices baked in from the start.
Two modes:
/init--standalone): Generates optimized CLAUDE.md from scratchUsage:
# Enhance mode - leverages /init from Claude Code
/init # First, generate base CLAUDE.md (Anthropic's analysis)
/agents-md-toolkit:init # Then, enhance with best practices
# Standalone mode - generate optimized from scratch
/agents-md-toolkit:init --standalone # Auto-detects framework and generates optimized file
Why two modes?
/init commandSmart project detection (standalone mode):
7-day copy clicks
npx claudepluginhub juanmhidalgo/claude-plugins --plugin agents-md-toolkitBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground