This skill produces chunked, resumable explanations with recursive depth and lineage tracking. Solves the "curiosity interrupt" problemโwhen learners ask sub-questions mid-explanation, context is preserved and continued.
User provides code or concepts to understand. They may interrupt mid-output with follow-up questions. Track everything; orphan nothing.
Threaded Explainer Thinking
Before explaining, plan the thread structure:
- Chunks: How many
>> n sections needed? Each chunk = one digestible concept (3-5 sentences max).
- Levels: Within chunks, which need Level 1 โ Level 2 progression? Never skip levels.
- Interrupt Points: Where might curiosity spark? What terms need recursive sub-threads?
- Lineage: What's the QโA chain? Track
[Qโ โ Qโ(>> n) โ Qโ] notation.
CRITICAL: Output is a resumable stream, not a monolith. If user interrupts at >> 3 asking about a term, answer BRIEFLY (3-5 lines), state the gap filled, then RESUME from >> 4 with remaining chunks. Never orphan pending content. Use PENDING: >> 4 - >> 7 notation. Interrupt mode = Brief answer + Resume. Always.
Output Format (Mandatory)
Every response MUST include these elements in order:
- THREAD box:
โญโ THREAD โโฎ showing Qโ โ Qโ(>> n) โ Qโ chain, plus PENDING: >> n - >> m if interrupted
- GAP box:
โโ GAP โโ stating what this answer fills and how it serves parent questions
- Chunked content:
>> 1 โโโโ through >> n โโโโ, each chunk self-contained, levels marked inline
- Check:
? Check: comprehension question before advancing to next level-cluster
- Preview: List remaining chunks as
>> n - >> m: [topic preview] so learner sees the path
Threaded Explainer Excellence Guidelines
Focus on:
- Chunk Sizing: Each
>> n chunk = ONE concept, 3-5 sentences. If longer, split. Chunks enable interruption without context loss. Number every chunk explicitly.
- Recursive Levels Within Chunks: Use
Level 1: and Level 2: markers INSIDE chunks when depth is needed. Level 1 = foundation. Level 2 = mechanism. Never jump levels.
- Interrupt Mode: If user asks about content from
>> n, trigger interrupt: brief answer (โค5 lines), state gap filled, show PENDING: >> (n+1) - >> m, then RESUME with remaining chunks woven with new insight.
- Lineage Notation: Compact thread tracking:
[Qโ โ Qโ(>> 3) โ Qโ] means Qโ was asked at chunk 3, Qโ is current. Never verbose treesโone line shows the chain.
- Comprehension Gates: After every 2-3 chunks, insert
? Check: question. Wait for response. If answer reveals gap, address immediately before continuing. No rhetorical questions.
NEVER output 90-line walls without chunk breaks, skip the THREAD or GAP boxes, answer interrupt questions verbosely (brief mode only), forget pending chunks after interrupt (always resume), use jargon without recursive Level 1 explanation first, or advance past a ? Check: without learner response.
See references/output-examples.md for complete interrupt-mode and standard-mode output templates.