# Content Summary Protocol
<!--
ref: @knowledge/content-summary-protocol
triggers: [content is too long, need actionable insights, summarize for quick reference, extract key themes]
trigger_prompt: When faced with lengthy documents that require distillation into clear, actionable summaries for easier understanding and reference.
version: 1
updated_at: 2026-01-24T19:24:16.958Z
-->

Standards for creating high-quality summaries from source content.

## Core Principles

1. **Preserve Signal, Remove Noise** - Capture essential insights, drop filler
2. **Source Attribution** - Every claim traceable to origin `(source:line-range)`
3. **Actionable Over Descriptive** - "Do X because Y" beats "X was discussed"
4. **Concept Naming** - Bold **key frameworks** for scanning and recall

## Summary Quality Criteria

A good summary:
- Stands alone (reader needs no prior context)
- Captures the **core thesis** in 1-3 sentences
- Extracts **actionable insights** not just topics mentioned
- Preserves **notable quotes** that crystallize ideas
- Includes **source pointers** for verification/deeper reading

A poor summary:
- Lists topics without insight ("They talked about AI")
- Loses nuance through over-compression
- Contains unsourced claims
- Requires reading original to understand

## Summary Tree Architecture

Use hierarchical summarization when content exceeds context limits or needs progressive disclosure.

### When to Use Summary Trees

| Content Size | Approach |
|-------------|----------|
| < 5k tokens | Direct summary |
| 5k-20k tokens | Chunk → Summarize → Merge |
| 20k-100k tokens | Multi-level tree (3 levels) |
| > 100k tokens | Topic-segmented trees |

### Tree Structure

```
Level 0: Raw Content (full fidelity)
    ↓ chunk by semantic boundaries
Level 1: Chunk Summaries (~20% compression each)
    ↓ merge and synthesize
Level 2: Section Summary (~10% of original)
    ↓ extract thesis + key insights
Level 3: Executive Summary (~2-5% of original)
```

### Chunking Strategy

**Semantic Boundaries** (preferred):
- Topic shifts
- Speaker changes
- Logical section breaks
- Time markers in transcripts

**Token-Based** (fallback):
- Target: 4-6k tokens per chunk
- Overlap: 200-500 tokens for context continuity
- Never split mid-sentence or mid-concept

### Merge Strategy

When combining chunk summaries:
1. Deduplicate repeated concepts
2. Identify cross-chunk themes
3. Synthesize conflicting viewpoints
4. Preserve the strongest quotes from each chunk
5. Maintain chronological markers if relevant

## Standard Summary Template

```markdown
---
source: {source-slug}
content_id: {unique-id}
title: "{Title}"
author: {Author/Speaker}
date: {Publication Date}
duration: {Duration or word count}
themes: [theme1, theme2, theme3]
summary_level: {executive|detailed|chunk}
token_budget: {target}
actual_tokens: {actual}
generated: {ISO timestamp}
sources:
  - {path-to-raw}
---

# {Title}

> By {Author} | {Date} | {Duration}

## Core Thesis

{1-3 sentences capturing the central argument or purpose}

## Key Insights

### 1. {Concept Name}

- **Key point** with context and implications (source:lines)
- Supporting detail that adds nuance (source:lines)
- Contrarian or surprising angle if present (source:lines)

### 2. {Next Concept}

{Continue pattern...}

## Actionable Takeaways

1. **{Action}**: {Why and how} (source:lines)
2. **{Action}**: {Why and how} (source:lines)
{5-10 items typically}

## Notable Quotes

> "{Memorable quote that crystallizes a key idea}"
> — {Speaker} (source:lines)

## Source Notes

- Raw content: {path}
- Processing: {chunk-summarize|direct|multi-level}
- Chunks: {N} @ ~{tokens} each (if applicable)
```

## Compression Targets

| Summary Level | Target Ratio | Use Case |
|--------------|--------------|----------|
| Executive | 2-5% | Quick scanning, index entries |
| Standard | 10-15% | Primary reference |
| Detailed | 20-30% | Deep dives, learning |
| Chunk | 15-25% | Intermediate processing |

## Quality Assurance

Before finalizing a summary, verify:

- [ ] **Thesis clarity**: Can someone unfamiliar state the main point?
- [ ] **Insight density**: Every paragraph earns its space
- [ ] **Source coverage**: No major sections of original ignored
- [ ] **Quote quality**: Selected quotes are genuinely memorable
- [ ] **Action clarity**: Takeaways are specific and implementable
- [ ] **Attribution**: Claims link back to source locations

## Processing Commands

```bash
# Summarize single file
protocol run content-summary --input {file} --level standard

# Summarize with tree (auto-detects need)
protocol run content-summary --input {file} --auto-tree

# Force tree structure
protocol run content-summary --input {file} --tree-depth 3

# Batch process directory
protocol run content-summary --input {dir}/*.md --output {dir}/summaries/
```

## Integration Points

- **Ingestion**: Called after raw content captured
- **Knowledge Summary**: Feeds into theme extraction
- **Master Summary**: Provides source material for roll-ups
- **Search Index**: Summaries become searchable artifacts

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*