chain-of-density
Installation
SKILL.md
Chain-of-Density Summarization
Compress text through iterative entity injection following the CoD paper methodology. Each pass identifies missing entities from the source and incorporates them while maintaining identical length.
The Method
Chain-of-Density works through multiple iterations:
- Iteration 1: Create sparse, verbose base summary (4-5 sentences at
target_words) - Subsequent iterations: Each iteration:
- Identify 1-3 missing entities from SOURCE (not summary)
- Rewrite summary to include them
- Maintain IDENTICAL word count through compression
Key principle: Never drop entities - only add and compress.
Missing Entity Criteria
Each entity added must meet ALL 5 criteria: