claude-md-optimizer

Audit bloated CLAUDE.md files and extract rules into sub-documents.

1|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/jackneil/claude-jacked --skill claude-md-optimizer-jackneil
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-md-optimizer
Source: https://github.com/jackneil/claude-jacked/tree/main/jacked/data/skills/claude-md-optimizer
Command: npx skills add https://github.com/jackneil/claude-jacked --skill claude-md-optimizer-jackneil

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

CLAUDE.md can become bloated as it accumulates rules, references, and workflow guidance. This skill provides an automated approach to audit, restructure, and extract reference material into sub-docs to reduce token waste while preserving essential operational guidance.

Core Features & Use Cases

  • Audit CLAUDE.md to identify content that should be extracted into sub-docs.
  • Create and organize sub-documents (e.g., DEV_SETUP, TESTING_GUIDE, DESIGN_GUARDRAILS) and replace with focused pointers.
  • Maintain a lean main CLAUDE.md that contains core rules and mandatory pointers, improving clarity and token efficiency in repeated turns.

Quick Start

Run the claude-md-optimizer to audit CLAUDE.md and generate a structured sub-doc set.

Frequently Asked Questions about claude-md-optimizer

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

FAQPage Schema
How do I reduce token usage in a bloated CLAUDE.md file?

To reduce token usage in a bloated CLAUDE.md, this Skill audits the file and extracts accumulated rules and references into organized sub-documents, replacing them with focused pointers to preserve essential guidance while cutting token waste.

What is the best way to organize large project documentation for Claude?

The best way to organize large project documentation is to maintain a lean main CLAUDE.md containing core rules and mandatory pointers, while moving detailed references into structured sub-docs like DEV_SETUP or TESTING_GUIDE to enable a clean doc chain.

How does cross-document reference validation work for sub-docs?

Cross-document reference validation works by enforcing a token-budget-aware workflow that ensures pointers in the main CLAUDE.md correctly link to extracted sub-docs, maintaining a clean documentation chain without broken references across team projects.

Can I audit CLAUDE.md content for teams without losing mandatory rules?

Yes, you can audit CLAUDE.md for teams without losing mandatory rules because the restructuring process specifically preserves essential operational guardrails while identifying only the accumulated content that should be extracted into sub-documents.

When should I extract documentation into sub-docs instead of keeping it in CLAUDE.md?

You should extract documentation into sub-docs when your CLAUDE.md becomes bloated with accumulated rules, references, and workflow guidance, causing token waste during repeated turns and reducing clarity for team operations.