What problem does it solve? Instruction documents like CLAUDE.md, AGENTS.md, system prompts, and rules files grow sprawling and repetitive over time, wasting context tokens and causing contradictions. This Skill rewrites them into the smallest text that still produces the same agent behavior. ## Core Features & Use Cases - Deduplication and factoring: Collapses repeated or near-duplicate rules into one source of truth and factors shared conditions across rule clusters. - Generalization with guardrails: Lifts overly specific examples into the invariant they illustrate while preserving triggers, actions, absolutes, and concrete handles like commands, paths, and flags. - Behavior validation: Verifies the compressed doc still drives the same behavior by spawning fresh claude -p sessions via the prompt-eval skill. - Use Case: A project CLAUDE.md has grown to hundreds of lines with overlapping rules. Use this Skill to merge duplicates, relocate narrow facts to their owners, and cut the doc to a fraction of its size without changing what the agent does. ## Quick Start Distill my CLAUDE.md file to remove duplication and make it as concise as possible without losing any behavioral rules.