claude-md-optimizer

Analyzes CLAUDE.md files and generates actionable optimization reports with optional rewritten versions.

11|2|Updated Nov 17, 2025
One-click install
npx skills add https://github.com/duyet/claude-plugins --skill claude-md-optimizer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-md-optimizer
Source: https://github.com/duyet/claude-plugins/tree/main/plugins/claude-md-optimizer/skills/claude-md-optimizer
Command: npx skills add https://github.com/duyet/claude-plugins --skill claude-md-optimizer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill analyzes CLAUDE.md files across a project to help reduce verbosity, improve structure, and ensure references point to source files rather than embedding content.

Core Features & Use Cases

  • Automated CLAUDE.md assessment: checks for essential sections and overall readability.
  • Progressive Disclosure guidance: encourages referencing existing files instead of copying content.
  • Structured optimization: yields a concise, actionable CLAUDE.md outline and suggestions for edits.

Quick Start

Provide a concise CLAUDE.md optimization request, e.g. "Optimize CLAUDE.md for this project to present a concise, reference-driven guide."

Frequently Asked Questions about claude-md-optimizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize my CLAUDE.md file for better Claude Code effectiveness?

Optimization focuses on reducing verbosity, improving structure, and replacing embedded content with references to source files. The Skill analyzes your CLAUDE.md against best practices and produces a concise, actionable report with specific edits and an optional optimized version.

What should a well-structured CLAUDE.md contain?

A strong CLAUDE.md includes essential sections for project context, uses progressive disclosure by referencing files instead of copying content, and maintains readability through clear organization. The Skill identifies missing sections and suggests structural improvements.

Can I use this to audit an existing CLAUDE.md file?

Yes. Provide your CLAUDE.md and project structure, and the Skill performs an automated assessment checking for essential sections, overall readability, and adherence to best practices, then delivers a 100-200 line report with actionable recommendations.

Why should CLAUDE.md reference files instead of embedding content?

Referencing source files keeps documentation concise, reduces maintenance burden, and ensures Claude Code always reads current content directly from the codebase rather than stale copies, improving accuracy and effectiveness.

What's the difference between a verbose and optimized CLAUDE.md?

A verbose CLAUDE.md duplicates file content and lacks clear structure, forcing Claude to parse unnecessary detail. An optimized version points to relevant files, follows progressive disclosure, and presents only essential context, enabling faster, more accurate interpretation.

Does this work with Claude Code best practices?

Yes. The Skill directly applies Claude Code best practices for documentation, focusing on conciseness, reference-driven guidance, and structured clarity to help Claude interpret your codebase more effectively.