@ckelsoe/prompt-architect 3.0.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +264 -264
- package/LICENSE +21 -21
- package/README.md +1064 -1184
- package/adapters/README.md +75 -267
- package/adapters/for-windsurf.md +136 -136
- package/adapters/system-prompt.md +243 -243
- package/package.json +139 -135
- package/scripts/build-skill.js +64 -0
- package/scripts/install.js +35 -56
- package/scripts/test.js +205 -213
- package/scripts/validate-skill.js +350 -350
- package/skills/prompt-architect/SKILL.md +331 -331
- package/skills/prompt-architect/assets/templates/ape_template.txt +5 -5
- package/skills/prompt-architect/assets/templates/bab_template.txt +15 -15
- package/skills/prompt-architect/assets/templates/broke_template.txt +15 -15
- package/skills/prompt-architect/assets/templates/cai-critique-revise_template.txt +18 -18
- package/skills/prompt-architect/assets/templates/care_template.txt +16 -16
- package/skills/prompt-architect/assets/templates/chain-of-density_template.txt +46 -46
- package/skills/prompt-architect/assets/templates/chain-of-thought_template.txt +49 -49
- package/skills/prompt-architect/assets/templates/co-star_template.txt +17 -17
- package/skills/prompt-architect/assets/templates/crispe_template.txt +14 -14
- package/skills/prompt-architect/assets/templates/ctf_template.txt +15 -15
- package/skills/prompt-architect/assets/templates/devils-advocate_template.txt +25 -25
- package/skills/prompt-architect/assets/templates/hybrid_template.txt +101 -101
- package/skills/prompt-architect/assets/templates/least-to-most_template.txt +16 -16
- package/skills/prompt-architect/assets/templates/plan-and-solve_template.txt +7 -7
- package/skills/prompt-architect/assets/templates/pre-mortem_template.txt +27 -27
- package/skills/prompt-architect/assets/templates/race_template.txt +19 -19
- package/skills/prompt-architect/assets/templates/rcot_template.txt +31 -31
- package/skills/prompt-architect/assets/templates/react_template.txt +27 -27
- package/skills/prompt-architect/assets/templates/reverse-role_template.txt +11 -11
- package/skills/prompt-architect/assets/templates/rise-ie_template.txt +23 -23
- package/skills/prompt-architect/assets/templates/rise-ix_template.txt +28 -28
- package/skills/prompt-architect/assets/templates/risen_template.txt +21 -21
- package/skills/prompt-architect/assets/templates/rpef_template.txt +26 -26
- package/skills/prompt-architect/assets/templates/rtf_template.txt +13 -13
- package/skills/prompt-architect/assets/templates/self-refine_template.txt +16 -16
- package/skills/prompt-architect/assets/templates/skeleton-of-thought_template.txt +15 -15
- package/skills/prompt-architect/assets/templates/step-back_template.txt +10 -10
- package/skills/prompt-architect/assets/templates/tidd-ec_template.txt +45 -45
- package/skills/prompt-architect/assets/templates/tree-of-thought_template.txt +30 -30
- package/skills/prompt-architect/references/frameworks/ape.md +200 -200
- package/skills/prompt-architect/references/frameworks/bab.md +242 -242
- package/skills/prompt-architect/references/frameworks/broke.md +242 -242
- package/skills/prompt-architect/references/frameworks/cai-critique-revise.md +230 -230
- package/skills/prompt-architect/references/frameworks/care.md +235 -235
- package/skills/prompt-architect/references/frameworks/chain-of-density.md +479 -479
- package/skills/prompt-architect/references/frameworks/chain-of-thought.md +424 -424
- package/skills/prompt-architect/references/frameworks/co-star.md +256 -256
- package/skills/prompt-architect/references/frameworks/crispe.md +253 -253
- package/skills/prompt-architect/references/frameworks/ctf.md +207 -207
- package/skills/prompt-architect/references/frameworks/devils-advocate.md +206 -206
- package/skills/prompt-architect/references/frameworks/least-to-most.md +226 -226
- package/skills/prompt-architect/references/frameworks/plan-and-solve.md +210 -210
- package/skills/prompt-architect/references/frameworks/pre-mortem.md +197 -197
- package/skills/prompt-architect/references/frameworks/race.md +243 -243
- package/skills/prompt-architect/references/frameworks/rcot.md +203 -203
- package/skills/prompt-architect/references/frameworks/react.md +304 -304
- package/skills/prompt-architect/references/frameworks/reverse-role.md +189 -189
- package/skills/prompt-architect/references/frameworks/rise.md +555 -555
- package/skills/prompt-architect/references/frameworks/risen.md +297 -297
- package/skills/prompt-architect/references/frameworks/rpef.md +195 -195
- package/skills/prompt-architect/references/frameworks/rtf.md +358 -358
- package/skills/prompt-architect/references/frameworks/self-refine.md +205 -205
- package/skills/prompt-architect/references/frameworks/skeleton-of-thought.md +186 -186
- package/skills/prompt-architect/references/frameworks/step-back.md +206 -206
- package/skills/prompt-architect/references/frameworks/tidd-ec.md +470 -470
- package/skills/prompt-architect/references/frameworks/tree-of-thought.md +260 -260
- package/skills/prompt-architect/scripts/framework_analyzer.py +807 -807
- package/skills/prompt-architect/scripts/prompt_evaluator.py +336 -336
- package/adapters/for-cursor.mdc +0 -138
- package/adapters/for-gemini-cli.md +0 -70
- package/adapters/for-github-copilot.md +0 -141
- package/adapters/for-openai-codex-cli.md +0 -158
|
@@ -1,186 +1,186 @@
|
|
|
1
|
-
# Skeleton of Thought (SoT) Framework
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
Skeleton of Thought (SoT) is a two-phase framework that first generates a concise structural outline ("skeleton") of the answer, then expands each skeleton point — either sequentially or in parallel — into full content. It improves both output quality (by forcing upfront structure) and can dramatically reduce latency when expansion is done in parallel API calls.
|
|
6
|
-
|
|
7
|
-
**Research basis:** "Skeleton-of-Thought: Prompting LLMs for Efficient Parallel Generation" (Ning et al., Microsoft Research, arXiv:2307.15337, ICLR 2024). Demonstrated 2x+ speedup on 8 of 12 tested models with maintained or improved quality.
|
|
8
|
-
|
|
9
|
-
## Components
|
|
10
|
-
|
|
11
|
-
### Phase 1: Skeleton Generation
|
|
12
|
-
**Purpose:** Generate a concise, ordered list of the key points, sections, or sub-answers that will form the complete response. No expansion yet — just the bare bones.
|
|
13
|
-
|
|
14
|
-
**Trigger prompt:**
|
|
15
|
-
```
|
|
16
|
-
You're an organizer of responses. Please provide me with a one-line point outline
|
|
17
|
-
of [topic/question] without any explanation. Your outline must be:
|
|
18
|
-
X. [brief point name] | [one-line description]
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
### Phase 2: Point Expansion
|
|
22
|
-
**Purpose:** Expand each skeleton point into full content. Each point is independent and can be expanded in isolation (enabling parallelism).
|
|
23
|
-
|
|
24
|
-
**Trigger prompt per point:**
|
|
25
|
-
```
|
|
26
|
-
Please expand on the following point in 3-5 sentences:
|
|
27
|
-
Point X: [point name] — [one-line description]
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
### SoT-R Variant (Router)
|
|
31
|
-
**Purpose:** Adds a routing step before Phase 1. If the question is NOT suitable for SoT (e.g., requires continuous prose, math derivation, or linear reasoning), the router falls back to standard generation.
|
|
32
|
-
|
|
33
|
-
**Not suitable for SoT:** Mathematical proofs, code that must flow sequentially, narrative story, continuous logical arguments where each step depends on the last.
|
|
34
|
-
|
|
35
|
-
## Template Structure
|
|
36
|
-
|
|
37
|
-
```
|
|
38
|
-
PHASE 1 — SKELETON:
|
|
39
|
-
Generate a skeleton outline for the following question. List only key points,
|
|
40
|
-
one per line, in the format: [number]. [Point name] | [One-sentence description].
|
|
41
|
-
Do not expand yet.
|
|
42
|
-
|
|
43
|
-
QUESTION/TOPIC:
|
|
44
|
-
[Your question or topic]
|
|
45
|
-
|
|
46
|
-
PHASE 2 — EXPAND:
|
|
47
|
-
Now expand each point into [2-4 sentences / a paragraph / detailed explanation].
|
|
48
|
-
Each point should be self-contained and complete.
|
|
49
|
-
|
|
50
|
-
[Optional: expand points in parallel by sending each as a separate request]
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
### Minimal Single-Pass SoT
|
|
54
|
-
For use in a single prompt when parallel API calls aren't available:
|
|
55
|
-
```
|
|
56
|
-
First, create a brief skeleton outline of [topic] (one line per point).
|
|
57
|
-
Then, expand each skeleton point into [length/detail level].
|
|
58
|
-
Present as: Skeleton → then Full Expansion.
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
## Complete Examples
|
|
62
|
-
|
|
63
|
-
### Example 1: Technical Explanation
|
|
64
|
-
|
|
65
|
-
**Before SoT:**
|
|
66
|
-
"Explain microservices architecture."
|
|
67
|
-
|
|
68
|
-
**After SoT:**
|
|
69
|
-
```
|
|
70
|
-
PHASE 1 — SKELETON:
|
|
71
|
-
Create a skeleton outline for explaining microservices architecture to a
|
|
72
|
-
senior engineer evaluating whether to migrate from a monolith. List 5-7 key
|
|
73
|
-
points in format: N. [name] | [one-sentence description]. Do not expand.
|
|
74
|
-
|
|
75
|
-
PHASE 2 — EXPAND:
|
|
76
|
-
Expand each skeleton point into 2-3 paragraphs. Each section should be
|
|
77
|
-
self-contained. Include specific trade-offs relevant to a migration decision.
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
**Skeleton output (Phase 1):**
|
|
81
|
-
```
|
|
82
|
-
1. Core concept | Each service owns one business capability and runs independently
|
|
83
|
-
2. Service boundaries | How to decompose a monolith into services without creating distributed spaghetti
|
|
84
|
-
3. Communication patterns | Sync (REST/gRPC) vs async (events) and when each applies
|
|
85
|
-
4. Data ownership | Each service owns its database; consequences for queries and consistency
|
|
86
|
-
5. Operational complexity | What microservices add: service mesh, CI per service, distributed tracing
|
|
87
|
-
6. Migration strategy | Strangler fig vs. big-bang; risk profile of each
|
|
88
|
-
7. When NOT to use | Scale thresholds below which microservices create more problems than they solve
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
**Expansion (Phase 2, point 6):**
|
|
92
|
-
```
|
|
93
|
-
Migration Strategy: The strangler fig pattern incrementally wraps the monolith
|
|
94
|
-
by routing new traffic to microservices while the legacy system handles the rest.
|
|
95
|
-
This allows parallel operation and rollback if needed, making it the lower-risk
|
|
96
|
-
option for most teams. The big-bang rewrite is faster in theory but carries high
|
|
97
|
-
risk of scope creep, integration failures, and a multi-month feature freeze...
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
### Example 2: Structured Report
|
|
101
|
-
|
|
102
|
-
**Before SoT:**
|
|
103
|
-
"Write a competitive analysis of our product vs. competitors."
|
|
104
|
-
|
|
105
|
-
**After SoT:**
|
|
106
|
-
```
|
|
107
|
-
PHASE 1 — SKELETON:
|
|
108
|
-
Create a skeleton for a competitive analysis covering our product vs. [Competitor A]
|
|
109
|
-
and [Competitor B]. List 6-8 comparison dimensions in format:
|
|
110
|
-
N. [dimension] | [what to compare]. Do not write the analysis yet.
|
|
111
|
-
|
|
112
|
-
PHASE 2 — EXPAND:
|
|
113
|
-
For each dimension, write 1 paragraph analyzing how our product compares on that
|
|
114
|
-
dimension. Include specific, concrete observations. Flag any dimension where we
|
|
115
|
-
have a clear advantage or significant gap.
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
### Example 3: Learning Content
|
|
119
|
-
|
|
120
|
-
**Before SoT:**
|
|
121
|
-
"Explain how React hooks work."
|
|
122
|
-
|
|
123
|
-
**After SoT (single-pass):**
|
|
124
|
-
```
|
|
125
|
-
First, create a 5-7 point skeleton outline of the key concepts needed to
|
|
126
|
-
understand React hooks (for a developer who knows JavaScript but is new to React).
|
|
127
|
-
Format: N. [concept] | [one sentence]
|
|
128
|
-
|
|
129
|
-
Then expand each skeleton point into 1-2 paragraphs with a code example where relevant.
|
|
130
|
-
Show: skeleton first, then full expansion.
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
## Best Use Cases
|
|
134
|
-
|
|
135
|
-
1. **Structured Explanations**
|
|
136
|
-
- Technical docs
|
|
137
|
-
- Tutorial content
|
|
138
|
-
- Concept breakdowns
|
|
139
|
-
|
|
140
|
-
2. **Long-Form Content Where Structure Matters**
|
|
141
|
-
- Reports and analyses
|
|
142
|
-
- Documentation sections
|
|
143
|
-
- Comparative content
|
|
144
|
-
|
|
145
|
-
3. **When Parallel Generation is Available**
|
|
146
|
-
- API workflows where each skeleton point can be expanded concurrently
|
|
147
|
-
- Systems requiring minimum latency
|
|
148
|
-
- Batch content generation
|
|
149
|
-
|
|
150
|
-
4. **Improving Output Organization**
|
|
151
|
-
- When prose responses tend to meander
|
|
152
|
-
- When you need consistent structure across multiple outputs
|
|
153
|
-
- When you want to review/approve structure before full generation
|
|
154
|
-
|
|
155
|
-
## Selection Criteria
|
|
156
|
-
|
|
157
|
-
**Choose SoT when:**
|
|
158
|
-
- ✅ Output has multiple semi-independent sections
|
|
159
|
-
- ✅ You want to validate structure before full generation
|
|
160
|
-
- ✅ Parallel expansion would reduce latency
|
|
161
|
-
- ✅ Content organization is a primary concern
|
|
162
|
-
- ✅ Multiple similar documents need consistent structure
|
|
163
|
-
|
|
164
|
-
**Avoid SoT when:**
|
|
165
|
-
- ❌ Answer requires continuous linear reasoning → use Chain of Thought
|
|
166
|
-
- ❌ Mathematical proof or derivation → use Plan-and-Solve or CoT
|
|
167
|
-
- ❌ Narrative that flows as a whole → use CO-STAR
|
|
168
|
-
- ❌ Simple, short answer → use APE or RTF
|
|
169
|
-
- ❌ Each section depends on the previous → use Least-to-Most
|
|
170
|
-
|
|
171
|
-
## SoT vs. Other Frameworks
|
|
172
|
-
|
|
173
|
-
| | SoT | Chain of Thought | RISEN | CO-STAR |
|
|
174
|
-
|---|---|---|---|---|
|
|
175
|
-
| Structure | Skeleton → expansion | Linear steps | Methodology-driven | Audience/context-driven |
|
|
176
|
-
| Parallelizable | Yes | No | No | No |
|
|
177
|
-
| Best for | Structured multi-section content | Reasoning | Complex procedures | Writing |
|
|
178
|
-
| Shows work | Structure only | Reasoning steps | Process | N/A |
|
|
179
|
-
|
|
180
|
-
## Quick Reference
|
|
181
|
-
|
|
182
|
-
| Phase | Purpose | Key Question |
|
|
183
|
-
|-------|---------|--------------|
|
|
184
|
-
| Skeleton | Structure first | "What are the key points?" |
|
|
185
|
-
| Expansion | Fill each point | "What does each point contain?" |
|
|
186
|
-
| Router (SoT-R) | Appropriateness check | "Is this suitable for SoT?" |
|
|
1
|
+
# Skeleton of Thought (SoT) Framework
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
Skeleton of Thought (SoT) is a two-phase framework that first generates a concise structural outline ("skeleton") of the answer, then expands each skeleton point — either sequentially or in parallel — into full content. It improves both output quality (by forcing upfront structure) and can dramatically reduce latency when expansion is done in parallel API calls.
|
|
6
|
+
|
|
7
|
+
**Research basis:** "Skeleton-of-Thought: Prompting LLMs for Efficient Parallel Generation" (Ning et al., Microsoft Research, arXiv:2307.15337, ICLR 2024). Demonstrated 2x+ speedup on 8 of 12 tested models with maintained or improved quality.
|
|
8
|
+
|
|
9
|
+
## Components
|
|
10
|
+
|
|
11
|
+
### Phase 1: Skeleton Generation
|
|
12
|
+
**Purpose:** Generate a concise, ordered list of the key points, sections, or sub-answers that will form the complete response. No expansion yet — just the bare bones.
|
|
13
|
+
|
|
14
|
+
**Trigger prompt:**
|
|
15
|
+
```
|
|
16
|
+
You're an organizer of responses. Please provide me with a one-line point outline
|
|
17
|
+
of [topic/question] without any explanation. Your outline must be:
|
|
18
|
+
X. [brief point name] | [one-line description]
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Phase 2: Point Expansion
|
|
22
|
+
**Purpose:** Expand each skeleton point into full content. Each point is independent and can be expanded in isolation (enabling parallelism).
|
|
23
|
+
|
|
24
|
+
**Trigger prompt per point:**
|
|
25
|
+
```
|
|
26
|
+
Please expand on the following point in 3-5 sentences:
|
|
27
|
+
Point X: [point name] — [one-line description]
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### SoT-R Variant (Router)
|
|
31
|
+
**Purpose:** Adds a routing step before Phase 1. If the question is NOT suitable for SoT (e.g., requires continuous prose, math derivation, or linear reasoning), the router falls back to standard generation.
|
|
32
|
+
|
|
33
|
+
**Not suitable for SoT:** Mathematical proofs, code that must flow sequentially, narrative story, continuous logical arguments where each step depends on the last.
|
|
34
|
+
|
|
35
|
+
## Template Structure
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
PHASE 1 — SKELETON:
|
|
39
|
+
Generate a skeleton outline for the following question. List only key points,
|
|
40
|
+
one per line, in the format: [number]. [Point name] | [One-sentence description].
|
|
41
|
+
Do not expand yet.
|
|
42
|
+
|
|
43
|
+
QUESTION/TOPIC:
|
|
44
|
+
[Your question or topic]
|
|
45
|
+
|
|
46
|
+
PHASE 2 — EXPAND:
|
|
47
|
+
Now expand each point into [2-4 sentences / a paragraph / detailed explanation].
|
|
48
|
+
Each point should be self-contained and complete.
|
|
49
|
+
|
|
50
|
+
[Optional: expand points in parallel by sending each as a separate request]
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Minimal Single-Pass SoT
|
|
54
|
+
For use in a single prompt when parallel API calls aren't available:
|
|
55
|
+
```
|
|
56
|
+
First, create a brief skeleton outline of [topic] (one line per point).
|
|
57
|
+
Then, expand each skeleton point into [length/detail level].
|
|
58
|
+
Present as: Skeleton → then Full Expansion.
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Complete Examples
|
|
62
|
+
|
|
63
|
+
### Example 1: Technical Explanation
|
|
64
|
+
|
|
65
|
+
**Before SoT:**
|
|
66
|
+
"Explain microservices architecture."
|
|
67
|
+
|
|
68
|
+
**After SoT:**
|
|
69
|
+
```
|
|
70
|
+
PHASE 1 — SKELETON:
|
|
71
|
+
Create a skeleton outline for explaining microservices architecture to a
|
|
72
|
+
senior engineer evaluating whether to migrate from a monolith. List 5-7 key
|
|
73
|
+
points in format: N. [name] | [one-sentence description]. Do not expand.
|
|
74
|
+
|
|
75
|
+
PHASE 2 — EXPAND:
|
|
76
|
+
Expand each skeleton point into 2-3 paragraphs. Each section should be
|
|
77
|
+
self-contained. Include specific trade-offs relevant to a migration decision.
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
**Skeleton output (Phase 1):**
|
|
81
|
+
```
|
|
82
|
+
1. Core concept | Each service owns one business capability and runs independently
|
|
83
|
+
2. Service boundaries | How to decompose a monolith into services without creating distributed spaghetti
|
|
84
|
+
3. Communication patterns | Sync (REST/gRPC) vs async (events) and when each applies
|
|
85
|
+
4. Data ownership | Each service owns its database; consequences for queries and consistency
|
|
86
|
+
5. Operational complexity | What microservices add: service mesh, CI per service, distributed tracing
|
|
87
|
+
6. Migration strategy | Strangler fig vs. big-bang; risk profile of each
|
|
88
|
+
7. When NOT to use | Scale thresholds below which microservices create more problems than they solve
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
**Expansion (Phase 2, point 6):**
|
|
92
|
+
```
|
|
93
|
+
Migration Strategy: The strangler fig pattern incrementally wraps the monolith
|
|
94
|
+
by routing new traffic to microservices while the legacy system handles the rest.
|
|
95
|
+
This allows parallel operation and rollback if needed, making it the lower-risk
|
|
96
|
+
option for most teams. The big-bang rewrite is faster in theory but carries high
|
|
97
|
+
risk of scope creep, integration failures, and a multi-month feature freeze...
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Example 2: Structured Report
|
|
101
|
+
|
|
102
|
+
**Before SoT:**
|
|
103
|
+
"Write a competitive analysis of our product vs. competitors."
|
|
104
|
+
|
|
105
|
+
**After SoT:**
|
|
106
|
+
```
|
|
107
|
+
PHASE 1 — SKELETON:
|
|
108
|
+
Create a skeleton for a competitive analysis covering our product vs. [Competitor A]
|
|
109
|
+
and [Competitor B]. List 6-8 comparison dimensions in format:
|
|
110
|
+
N. [dimension] | [what to compare]. Do not write the analysis yet.
|
|
111
|
+
|
|
112
|
+
PHASE 2 — EXPAND:
|
|
113
|
+
For each dimension, write 1 paragraph analyzing how our product compares on that
|
|
114
|
+
dimension. Include specific, concrete observations. Flag any dimension where we
|
|
115
|
+
have a clear advantage or significant gap.
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Example 3: Learning Content
|
|
119
|
+
|
|
120
|
+
**Before SoT:**
|
|
121
|
+
"Explain how React hooks work."
|
|
122
|
+
|
|
123
|
+
**After SoT (single-pass):**
|
|
124
|
+
```
|
|
125
|
+
First, create a 5-7 point skeleton outline of the key concepts needed to
|
|
126
|
+
understand React hooks (for a developer who knows JavaScript but is new to React).
|
|
127
|
+
Format: N. [concept] | [one sentence]
|
|
128
|
+
|
|
129
|
+
Then expand each skeleton point into 1-2 paragraphs with a code example where relevant.
|
|
130
|
+
Show: skeleton first, then full expansion.
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## Best Use Cases
|
|
134
|
+
|
|
135
|
+
1. **Structured Explanations**
|
|
136
|
+
- Technical docs
|
|
137
|
+
- Tutorial content
|
|
138
|
+
- Concept breakdowns
|
|
139
|
+
|
|
140
|
+
2. **Long-Form Content Where Structure Matters**
|
|
141
|
+
- Reports and analyses
|
|
142
|
+
- Documentation sections
|
|
143
|
+
- Comparative content
|
|
144
|
+
|
|
145
|
+
3. **When Parallel Generation is Available**
|
|
146
|
+
- API workflows where each skeleton point can be expanded concurrently
|
|
147
|
+
- Systems requiring minimum latency
|
|
148
|
+
- Batch content generation
|
|
149
|
+
|
|
150
|
+
4. **Improving Output Organization**
|
|
151
|
+
- When prose responses tend to meander
|
|
152
|
+
- When you need consistent structure across multiple outputs
|
|
153
|
+
- When you want to review/approve structure before full generation
|
|
154
|
+
|
|
155
|
+
## Selection Criteria
|
|
156
|
+
|
|
157
|
+
**Choose SoT when:**
|
|
158
|
+
- ✅ Output has multiple semi-independent sections
|
|
159
|
+
- ✅ You want to validate structure before full generation
|
|
160
|
+
- ✅ Parallel expansion would reduce latency
|
|
161
|
+
- ✅ Content organization is a primary concern
|
|
162
|
+
- ✅ Multiple similar documents need consistent structure
|
|
163
|
+
|
|
164
|
+
**Avoid SoT when:**
|
|
165
|
+
- ❌ Answer requires continuous linear reasoning → use Chain of Thought
|
|
166
|
+
- ❌ Mathematical proof or derivation → use Plan-and-Solve or CoT
|
|
167
|
+
- ❌ Narrative that flows as a whole → use CO-STAR
|
|
168
|
+
- ❌ Simple, short answer → use APE or RTF
|
|
169
|
+
- ❌ Each section depends on the previous → use Least-to-Most
|
|
170
|
+
|
|
171
|
+
## SoT vs. Other Frameworks
|
|
172
|
+
|
|
173
|
+
| | SoT | Chain of Thought | RISEN | CO-STAR |
|
|
174
|
+
|---|---|---|---|---|
|
|
175
|
+
| Structure | Skeleton → expansion | Linear steps | Methodology-driven | Audience/context-driven |
|
|
176
|
+
| Parallelizable | Yes | No | No | No |
|
|
177
|
+
| Best for | Structured multi-section content | Reasoning | Complex procedures | Writing |
|
|
178
|
+
| Shows work | Structure only | Reasoning steps | Process | N/A |
|
|
179
|
+
|
|
180
|
+
## Quick Reference
|
|
181
|
+
|
|
182
|
+
| Phase | Purpose | Key Question |
|
|
183
|
+
|-------|---------|--------------|
|
|
184
|
+
| Skeleton | Structure first | "What are the key points?" |
|
|
185
|
+
| Expansion | Fill each point | "What does each point contain?" |
|
|
186
|
+
| Router (SoT-R) | Appropriateness check | "Is this suitable for SoT?" |
|