# Knowledge Summary Protocol
<!--
ref: @knowledge/knowledge-summary-protocol
triggers: [content feels disorganized, themes are unclear, knowledge clusters are emerging, need to categorize information]
trigger_prompt: When you find that your knowledge is scattered or difficult to navigate, and you want to create a coherent structure based on natural affinities among concepts.
version: 1
updated_at: 2026-01-24T19:24:17.114Z
-->
Extract themes from summaries and convert them to reusable knowledge artifacts (protocols or facts) with emergent taxonomy.
## Core Principle
**Taxonomy emerges from content, not the reverse.**
Like refactoring code: when a class does too much, split it. When knowledge clusters naturally, group it. The LLM discovers structure by observing patterns, not by forcing content into predetermined boxes.
```
"I have a bunch of book info - half seem to be French period romance,
the other half scifi. That's a good differentiator."
"I won the lottery AND I need bread" - captured together,
but stored very separately.
```
## Architecture
```
Content Summaries
↓ read and understand
Theme Discovery (emergent, not prescribed)
↓ cluster by natural affinity
├── Protocols (actionable: "how do I...")
└── Facts (reference: "what is...")
↓ organic path placement
Knowledge Tree (structure follows content)
```
## Theme Discovery
### The LLM as Librarian
Don't match content against a theme list. Instead:
1. **Read the content** - What is this actually about?
2. **Notice patterns** - What concepts recur? What clusters naturally?
3. **Name what you see** - Give the cluster a clear name
4. **Check separation** - Is this one thing or multiple things forced together?
### Separation of Concerns
Ask: "Would these be in the same file if I were organizing my own notes?"
| Together | Separate | Why |
|----------|----------|-----|
| Cold email tactics + subject lines | Cold email + general sales philosophy | Same specific concern |
| French romance novels | Scifi novels | Different genres despite both being "books" |
| Lottery winning | Grocery shopping | Captured same day, totally unrelated |
| AI safety research + alignment theory | AI coding tools | Same domain, different concerns |
### When to Split
Like code refactoring:
- **Too large**: File exceeds ~3k tokens of distinct content
- **Too diverse**: Content answers different questions
- **Too coupled**: Changes to one part shouldn't affect another
- **Hard to name**: If you can't name it simply, it's probably multiple things
### Theme Naming
Name what you observe, not what you expect:
```
Good: "french-period-romance" (specific, discovered)
Bad: "fiction" (too broad, prescribed)
Good: "glucose-management" (specific concern)
Bad: "health" (everything fits, nothing means anything)
Good: "rule-of-100" (Hormozi's specific framework)
Bad: "business-advice" (meaningless bucket)
```
## Classification: Protocol vs Fact
Two questions determine type:
| Question | Answer | Type |
|----------|--------|------|
| "How do I...?" | Steps, process, method | **Protocol** |
| "What is...?" | Definition, evidence, principle | **Fact** |
Some concepts have both:
- `loss-aversion.md` (fact) - What it is, research
- `loss-framing.md` (protocol) - How to use it in sales
## Emergent Taxonomy
### Path = Natural Hierarchy
Paths emerge from how you'd explain where something lives:
```
"This is about outbound sales, specifically cold email"
→ sales/outbound/cold-email.md
"This is Hormozi's rule about doing 100 reps"
→ frameworks/hormozi/rule-of-100.md
"This is about French romantic literature from the 1800s"
→ literature/french-romance/19th-century.md
```
### No Prescribed Domains
Don't start with a domain list. Start with content and ask:
- What is this actually about?
- What would I look under to find it?
- What else would live near it?
### Refactoring Triggers
Create new paths when:
- 3+ items naturally cluster together
- Existing path becomes ambiguous
- You'd explain it as "X, but specifically Y"
Merge paths when:
- Distinction isn't meaningful in practice
- You keep looking in the wrong place
- Names are arbitrary rather than descriptive
## Granularity Control
### Start Coarse, Split When Needed
Begin with broader groupings. Split only when:
- Content answers genuinely different questions
- File becomes unwieldy (~3k tokens)
- You'd explain it as "X, but specifically Y"
### The Naming Test
If you can't name it simply and specifically, reconsider:
- **Can name**: "cold-email-subject-lines" → good granularity
- **Can't name**: "sales-stuff-miscellaneous" → too coarse or forced
### Depth Heuristic
1-2 levels is usually enough. 3+ suggests over-engineering:
```
Good: frameworks/rule-of-100.md
Good: sales/cold-outreach.md
Okay: sales/outbound/cold-email.md
Suspect: business/sales/outbound/cold-email/subject-lines/templates/v2.md
```
## Document Structure
### Protocol Format
```markdown
---
type: protocol
domain: {domain}
path: {full/path}
themes: [theme1, theme2]
sources: [source1, source2]
created: {date}
updated: {date}
---
# {Protocol Name}
> {One-line purpose statement}
## When to Use
{Trigger conditions - when does this protocol apply?}
## Core Process
### Step 1: {Action}
{Details, rationale}
### Step 2: {Action}
{Details, rationale}
## Examples
### Example 1: {Scenario}
{Concrete application}
## Appendix
### A. Background
{Extended context, theory, "why this works"}
### B. Variations
{Alternative approaches for different contexts}
### C. Sources
{Detailed source attribution with quotes}
```
### Fact Format
```markdown
---
type: fact
domain: {domain}
path: {full/path}
themes: [theme1, theme2]
confidence: {high|medium|low}
sources: [source1, source2]
created: {date}
updated: {date}
---
# {Fact Title}
> {Core statement in 1-2 sentences}
## Definition
{Clear, precise definition}
## Key Points
- Point 1 with evidence (source)
- Point 2 with evidence (source)
- Point 3 with evidence (source)
## Context
{When this applies, limitations, nuances}
## Appendix
### A. Evidence
{Detailed research, studies, data}
### B. Related Concepts
{Links to related facts/protocols}
### C. Sources
{Full attribution}
```
## Core vs Appendix Split
The document body should be **succinct** (scannable in 30 seconds). Details go in appendixes.
### What Goes in Core
- Definition/purpose (1-3 sentences)
- Key points (5-7 bullets max)
- Essential steps (for protocols)
- Critical context
### What Goes in Appendix
- Extended background/theory
- Full source quotes
- Edge cases and variations
- Historical context
- Detailed evidence
- Alternative approaches
### Appendix Conventions
| Appendix | Contains |
|----------|----------|
| A. Background | Theory, history, "why this works" |
| B. Evidence | Studies, data, detailed support |
| C. Variations | Alternative approaches, edge cases |
| D. Sources | Full citations and quotes |
| E. Related | Links to related knowledge |
## Processing Pipeline
```bash
# Extract themes from a source's summaries
protocol run knowledge-summary extract \
--source workspace/knowledge/source/doac/summaries/ \
--output workspace/knowledge/source/doac/themes.yaml
# Classify themes as protocol or fact
protocol run knowledge-summary classify \
--themes themes.yaml \
--output classified-themes.yaml
# Generate knowledge artifacts
protocol run knowledge-summary generate \
--classified classified-themes.yaml \
--taxonomy knowledge/taxonomy/ \
--granularity medium
# Roll up to master index
protocol run knowledge-summary index \
--taxonomy knowledge/taxonomy/ \
--output knowledge/index.md
```
## Theme Aggregation
### Cross-Source Synthesis
When a theme appears in multiple sources:
1. **Collect** all instances with source attribution
2. **Compare** perspectives (agreement, conflict, nuance)
3. **Synthesize** into unified knowledge artifact
4. **Preserve** dissenting views in appendix
5. **Track** source diversity in frontmatter
### Confidence Scoring
| Sources | Agreement | Confidence |
|---------|-----------|------------|
| 1 source | N/A | low |
| 2-3 sources | Agree | medium |
| 2-3 sources | Conflict | low (note conflict) |
| 4+ sources | Agree | high |
| 4+ sources | Mixed | medium (note nuance) |
## Example Workflow
Starting with DOAC + Hormozi episode summaries:
```
1. Read summaries, notice what's actually there
→ "These keep talking about doing uncomfortable things consistently"
→ "Multiple episodes mention 100-rep frameworks"
→ "Pricing comes up but in very different contexts"
2. Let clusters emerge naturally
→ Frustration tolerance / discipline (Hormozi's core theme)
→ Rule of 100 (specific framework, appears 3+ times)
→ High-ticket pricing vs low-ticket (related but distinct)
3. Ask: protocol or fact?
→ "How do I build frustration tolerance?" → protocol
→ "What is the Rule of 100?" → fact (or framework)
→ "How do I price at the extremes?" → protocol
4. Name paths by how you'd find them
→ frameworks/hormozi/rule-of-100.md
→ protocols/discipline/frustration-tolerance.md
→ protocols/pricing/extreme-pricing.md
NOT: business/mindset/psychology/discipline/sub-category/...
5. Write core + appendix
→ Core: succinct, scannable, actionable
→ Appendix: source quotes, evidence, variations
6. Notice what's missing
→ "Wait, these two should be separate"
→ "Actually these three are the same thing"
→ Refactor as understanding deepens
```
## Integration
- **Content Summary**: Provides input (episode/content summaries)
- **Search**: Knowledge artifacts become searchable
- **Chat Context**: Relevant facts/protocols loaded as context
- **Protocol Execution**: Protocols can be invoked by name
---
*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).*