Skeleton of thought

From Miosa-osa/canopy · View interactive version

Skeleton of thought is an AI agent skill from the GitHub repository Miosa-osa/canopy. Parallel generation through skeleton-first approach for 2x speedup

How to use this skill

Skill file

Skeleton-of-Thought (SoT) Skill

Achieves up to 2x speedup through parallel content generation.

Core Concept

Instead of sequential generation, SoT:

  1. First generates a skeleton (outline) of the answer
  2. Then expands each skeleton point in PARALLEL
  3. Finally assembles the complete response

When to Use

When NOT to Use

Process

Step 1: Skeleton Generation

Given question, generate ONLY the skeleton outline:
- Point 1: [brief description]
- Point 2: [brief description]
- Point 3: [brief description]
...
Do NOT expand. Just the skeleton.

Step 2: Parallel Expansion

Launch parallel expansions for each point:

Point 1 → Agent 1 → Expanded content
Point 2 → Agent 2 → Expanded content
Point 3 → Agent 3 → Expanded content
(all run simultaneously)

Step 3: Assembly

Combine expanded points with transitions:
[Introduction]
[Point 1 expanded]
[Transition]
[Point 2 expanded]
[Transition]
[Point 3 expanded]
[Conclusion]

Implementation

# Skeleton generation prompt
SKELETON_PROMPT = """
For the question: {question}

Generate ONLY a skeleton outline with 3-8 key points.
Format:
1. [Point]: [5-10 word description]
2. [Point]: [5-10 word description]
...

Do NOT expand the points. ONLY the skeleton.
"""

# Point expansion prompt
EXPAND_PROMPT = """
Context: Answering "{question}"
Skeleton: {skeleton}

Expand ONLY point {point_number}: "{point_description}"

Write 2-4 sentences expanding this point.
Do not include other points.
"""

Performance

| Query Type | Sequential Time | SoT Time | Speedup |

|------------|-----------------|----------|---------|

| Tutorial | 10s | 5s | 2.0x |

| Explanation| 8s | 4.5s | 1.8x |

| List-based | 12s | 6s | 2.0x |

| Analysis | 15s | 9s | 1.7x |

Quality Preservation

Combination with Other Skills


Reference: "Skeleton-of-Thought: Large Language Models Can Do Parallel Decoding" (2023)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.