@ckelsoe/prompt-architect 3.0.2 → 3.2.0
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 -138
- package/scripts/build-skill.js +64 -0
- package/scripts/install.js +4 -54
- package/scripts/test.js +205 -213
- package/scripts/validate-skill.js +350 -350
- package/skills/prompt-architect/SKILL.md +343 -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
package/README.md
CHANGED
|
@@ -1,1184 +1,1064 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
Transform vague prompts into expert-level, structured prompts using 27 research-backed frameworks across 7 intent categories.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
[](https://opensource.org/licenses/MIT)
|
|
8
|
-
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
## Table of Contents
|
|
12
|
-
|
|
13
|
-
- [Overview](#overview)
|
|
14
|
-
- [Key Features](#key-features)
|
|
15
|
-
- [Example Transformation](#example-transformation)
|
|
16
|
-
- [Supported Frameworks](#supported-frameworks)
|
|
17
|
-
- [Quick Start](#quick-start)
|
|
18
|
-
- [Installation](#installation)
|
|
19
|
-
- [Usage](#usage)
|
|
20
|
-
- [Framework Selection Guide](#framework-selection-guide)
|
|
21
|
-
- [Project Structure](#project-structure)
|
|
22
|
-
- [Documentation](#documentation)
|
|
23
|
-
- [Contributing](#contributing)
|
|
24
|
-
- [License](#license)
|
|
25
|
-
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
## Overview
|
|
29
|
-
|
|
30
|
-
Prompt Architect is
|
|
31
|
-
|
|
32
|
-
- **Intelligent Analysis** - Evaluates prompts across 5 quality dimensions (clarity, specificity, context, completeness, structure)
|
|
33
|
-
- **Framework Recommendation** - Suggests the best framework(s) for your specific use case with clear reasoning
|
|
34
|
-
- **Guided Dialogue** - Asks targeted clarifying questions to gather missing information progressively
|
|
35
|
-
- **Systematic Application** - Applies selected framework to transform your prompt
|
|
36
|
-
- **Iterative Refinement** - Continues improving based on feedback until perfect
|
|
37
|
-
|
|
38
|
-
**Target Audience:**
|
|
39
|
-
- Developers using Claude Code
|
|
40
|
-
- Prompt engineers optimizing LLM interactions
|
|
41
|
-
- AI practitioners seeking systematic prompt improvement
|
|
42
|
-
- Teams wanting consistent, high-quality prompts
|
|
43
|
-
|
|
44
|
-
---
|
|
45
|
-
|
|
46
|
-
## Key Features
|
|
47
|
-
|
|
48
|
-
### 27 Research-Backed Frameworks Across 7 Intent Categories
|
|
49
|
-
|
|
50
|
-
| Framework | Best For | Complexity |
|
|
51
|
-
|-----------|----------|------------|
|
|
52
|
-
| **CO-STAR** | Content creation, writing tasks | High |
|
|
53
|
-
| **RISEN** | Multi-step processes, procedures | High |
|
|
54
|
-
| **CRISPE** | Comprehensive prompts with multiple output variants | High |
|
|
55
|
-
| **BROKE** | Business deliverables with OKR-style measurable outcomes | Medium |
|
|
56
|
-
| **RISE-IE** | Data analysis, transformations (Input-Expectation) | Medium |
|
|
57
|
-
| **RISE-IX** | Content creation with examples (Instructions-Examples) | Medium |
|
|
58
|
-
| **TIDD-EC** | High-precision tasks with explicit dos/don'ts | Medium |
|
|
59
|
-
| **RACE** | Expert tasks requiring role + context + outcome clarity | Medium |
|
|
60
|
-
| **CARE** | Constraint-driven tasks with explicit rules and examples | Medium |
|
|
61
|
-
| **CTF** | Simple tasks where situational context drives the prompt | Low |
|
|
62
|
-
| **RTF** | Simple, focused tasks where expertise framing matters | Low |
|
|
63
|
-
| **APE** | Ultra-minimal one-off prompts | Low |
|
|
64
|
-
| **BAB** | Rewriting, refactoring, transforming existing content | Low |
|
|
65
|
-
| **Tree of Thought** | Decisions requiring exploration of multiple approaches | Medium |
|
|
66
|
-
| **ReAct** | Agentic / tool-use tasks with iterative reasoning | Medium |
|
|
67
|
-
| **Skeleton of Thought** | Structured long-form content (outline-first) | Medium |
|
|
68
|
-
| **Step-Back** | Principle-grounded reasoning (abstract first, then specific) | Medium |
|
|
69
|
-
| **Least-to-Most** | Compositional multi-hop problems (simplest first) | Medium |
|
|
70
|
-
| **Plan-and-Solve (PS+)** | Zero-shot numerical/calculation reasoning | Low |
|
|
71
|
-
| **Chain of Thought** | Reasoning, problem-solving | Medium |
|
|
72
|
-
| **Chain of Density** | Iterative refinement, summarization | Medium |
|
|
73
|
-
| **Self-Refine** | Iterative output quality improvement (any task) | Medium |
|
|
74
|
-
| **CAI Critique-Revise** | Principle-based critique and revision (Anthropic) | Medium |
|
|
75
|
-
| **Devil's Advocate** | Strongest opposing argument against a position | Low |
|
|
76
|
-
| **Pre-Mortem** | Assume failure, identify specific causes | Low |
|
|
77
|
-
| **RCoT** | Verify reasoning by reconstructing the question | Medium |
|
|
78
|
-
| **RPEF** | Recover/reconstruct a prompt from an existing output | Low |
|
|
79
|
-
| **Reverse Role Prompting** | AI interviews you before executing | Low |
|
|
80
|
-
|
|
81
|
-
### Quality Scoring System
|
|
82
|
-
|
|
83
|
-
Every prompt is evaluated across:
|
|
84
|
-
- **Clarity** (1-10): Is the goal clear and unambiguous?
|
|
85
|
-
- **Specificity** (1-10): Are requirements detailed enough?
|
|
86
|
-
- **Context** (1-10): Is background information provided?
|
|
87
|
-
- **Completeness** (1-10): Are all necessary elements present?
|
|
88
|
-
- **Structure** (1-10): Is the prompt well-organized?
|
|
89
|
-
|
|
90
|
-
### Progressive Disclosure
|
|
91
|
-
|
|
92
|
-
- Asks 3-5 targeted questions at a time (never overwhelming)
|
|
93
|
-
- Adapts questions based on framework selection
|
|
94
|
-
- Builds understanding iteratively
|
|
95
|
-
- Confirms assumptions before proceeding
|
|
96
|
-
|
|
97
|
-
### Continuous Iteration
|
|
98
|
-
|
|
99
|
-
- Shows before/after comparisons with explanations
|
|
100
|
-
- Refines based on your feedback
|
|
101
|
-
- Can switch frameworks if initial choice doesn't fit
|
|
102
|
-
- Continues until you're satisfied
|
|
103
|
-
|
|
104
|
-
---
|
|
105
|
-
|
|
106
|
-
## Example Transformation
|
|
107
|
-
|
|
108
|
-
### Before
|
|
109
|
-
```
|
|
110
|
-
"Write about machine learning"
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
**Analysis Scores:**
|
|
114
|
-
- Clarity: 2/10 (vague goal)
|
|
115
|
-
- Specificity: 1/10 (no details)
|
|
116
|
-
- Context: 0/10 (no background)
|
|
117
|
-
- Completeness: 2/10 (missing most elements)
|
|
118
|
-
- Structure: 3/10 (single sentence)
|
|
119
|
-
- **Overall: 1.6/10**
|
|
120
|
-
|
|
121
|
-
---
|
|
122
|
-
|
|
123
|
-
### After (CO-STAR Framework)
|
|
124
|
-
|
|
125
|
-
```
|
|
126
|
-
CONTEXT:
|
|
127
|
-
Creating content for a business blog aimed at C-level executives exploring
|
|
128
|
-
how AI/ML could benefit their organizations. Readers understand business
|
|
129
|
-
strategy but have limited technical ML knowledge. Part of an emerging
|
|
130
|
-
technologies series.
|
|
131
|
-
|
|
132
|
-
OBJECTIVE:
|
|
133
|
-
Create an engaging article helping executives understand practical machine
|
|
134
|
-
learning applications relevant to their companies. Focus on demonstrating
|
|
135
|
-
tangible business value and real-world implementation without overwhelming
|
|
136
|
-
technical details.
|
|
137
|
-
|
|
138
|
-
STYLE:
|
|
139
|
-
Professional blog style combining narrative with bullet points. Include 2-3
|
|
140
|
-
real-world case studies. Structure with clear subheadings every 150-200 words.
|
|
141
|
-
Balance storytelling with concrete information. Avoid jargon; when necessary,
|
|
142
|
-
provide plain-language explanations.
|
|
143
|
-
|
|
144
|
-
TONE:
|
|
145
|
-
Professional yet approachable and conversational. Confident and authoritative
|
|
146
|
-
without being condescending. Practical and business-focused rather than
|
|
147
|
-
theoretical.
|
|
148
|
-
|
|
149
|
-
AUDIENCE:
|
|
150
|
-
C-suite executives and senior managers at mid-to-large enterprises who:
|
|
151
|
-
- Make strategic technology investment decisions
|
|
152
|
-
- Understand business metrics and ROI
|
|
153
|
-
- Have limited technical ML knowledge
|
|
154
|
-
- Value practical examples over theory
|
|
155
|
-
|
|
156
|
-
RESPONSE FORMAT:
|
|
157
|
-
800-word article structured as:
|
|
158
|
-
- Compelling headline (10 words max)
|
|
159
|
-
- Brief hook (2-3 sentences)
|
|
160
|
-
- 3-4 main sections with descriptive subheadings
|
|
161
|
-
- Mix of paragraphs and bullet points
|
|
162
|
-
- Clear call-to-action conclusion
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
**Result Scores:**
|
|
166
|
-
- Clarity: 9/10
|
|
167
|
-
- Specificity: 9/10
|
|
168
|
-
- Context: 10/10
|
|
169
|
-
- Completeness: 9/10
|
|
170
|
-
- Structure: 9/10
|
|
171
|
-
- **Overall: 8.8/10**
|
|
172
|
-
|
|
173
|
-
---
|
|
174
|
-
|
|
175
|
-
## Supported Frameworks
|
|
176
|
-
|
|
177
|
-
### CO-STAR (Context, Objective, Style, Tone, Audience, Response)
|
|
178
|
-
|
|
179
|
-
**Best for:** Content creation, writing tasks, communications
|
|
180
|
-
|
|
181
|
-
**Components:**
|
|
182
|
-
- **Context** - Background information and situation
|
|
183
|
-
- **Objective** - Clear goal and purpose
|
|
184
|
-
- **Style** - Writing style and formatting approach
|
|
185
|
-
- **Tone** - Voice and emotional quality
|
|
186
|
-
- **Audience** - Target reader characteristics
|
|
187
|
-
- **Response** - Expected format and structure
|
|
188
|
-
|
|
189
|
-
**Example Use Cases:** Blog posts, emails, presentations, marketing copy, documentation
|
|
190
|
-
|
|
191
|
-
---
|
|
192
|
-
|
|
193
|
-
### RISEN (Role, Instructions, Steps, End goal, Narrowing)
|
|
194
|
-
|
|
195
|
-
**Best for:** Multi-step processes, systematic procedures
|
|
196
|
-
|
|
197
|
-
**Components:**
|
|
198
|
-
- **Role** - Expertise and perspective needed
|
|
199
|
-
- **Instructions** - High-level guidance
|
|
200
|
-
- **Steps** - Detailed methodology
|
|
201
|
-
- **End goal** - Success criteria
|
|
202
|
-
- **Narrowing** - Constraints and boundaries
|
|
203
|
-
|
|
204
|
-
**Example Use Cases:** Code reviews, workflows, systematic analysis, project planning
|
|
205
|
-
|
|
206
|
-
---
|
|
207
|
-
|
|
208
|
-
### RISE (Dual Variants)
|
|
209
|
-
|
|
210
|
-
#### RISE-IE (Input-Expectation)
|
|
211
|
-
**Best for:** Data analysis, transformations, processing tasks
|
|
212
|
-
|
|
213
|
-
**Components:**
|
|
214
|
-
- **Role** - Expertise needed
|
|
215
|
-
- **Input** - Data format and characteristics
|
|
216
|
-
- **Steps** - Processing methodology
|
|
217
|
-
- **Expectation** - Output requirements
|
|
218
|
-
|
|
219
|
-
**Example Use Cases:** CSV analysis, data processing, file transformations, report generation
|
|
220
|
-
|
|
221
|
-
#### RISE-IX (Instructions-Examples)
|
|
222
|
-
**Best for:** Content creation with reference examples
|
|
223
|
-
|
|
224
|
-
**Components:**
|
|
225
|
-
- **Role** - Expertise needed
|
|
226
|
-
- **Instructions** - Task guidance
|
|
227
|
-
- **Steps** - Workflow process
|
|
228
|
-
- **Examples** - Reference samples
|
|
229
|
-
|
|
230
|
-
**Example Use Cases:** Creative writing, template-based content, style matching
|
|
231
|
-
|
|
232
|
-
---
|
|
233
|
-
|
|
234
|
-
### TIDD-EC (Task, Instructions, Do, Don't, Examples, Context)
|
|
235
|
-
|
|
236
|
-
**Best for:** High-precision tasks requiring explicit boundaries
|
|
237
|
-
|
|
238
|
-
**Components:**
|
|
239
|
-
- **Task type** - Nature of the work
|
|
240
|
-
- **Instructions** - What to accomplish
|
|
241
|
-
- **Do** - Explicit positive guidance
|
|
242
|
-
- **Don't** - Explicit negative guidance (what to avoid)
|
|
243
|
-
- **Examples** - Reference samples
|
|
244
|
-
- **Context** - Background information
|
|
245
|
-
|
|
246
|
-
**Example Use Cases:** Code generation with standards, compliance tasks, quality-critical work
|
|
247
|
-
|
|
248
|
-
---
|
|
249
|
-
|
|
250
|
-
### CTF (Context, Task, Format)
|
|
251
|
-
|
|
252
|
-
**Best for:** Simple tasks where situational background matters more than expertise framing
|
|
253
|
-
|
|
254
|
-
**Components:**
|
|
255
|
-
- **Context** - Situation and background
|
|
256
|
-
- **Task** - What needs to be done
|
|
257
|
-
- **Format** - Output structure
|
|
258
|
-
|
|
259
|
-
**Example Use Cases:** Handoff documents, mid-project updates, situation-driven requests
|
|
260
|
-
|
|
261
|
-
---
|
|
262
|
-
|
|
263
|
-
### RTF (Role, Task, Format)
|
|
264
|
-
|
|
265
|
-
**Best for:** Simple, well-defined tasks where expertise framing drives output quality
|
|
266
|
-
|
|
267
|
-
**Components:**
|
|
268
|
-
- **Role** - Expertise required
|
|
269
|
-
- **Task** - What needs to be done
|
|
270
|
-
- **Format** - Output structure
|
|
271
|
-
|
|
272
|
-
**Example Use Cases:** Quick conversions, simple formatting, straightforward requests
|
|
273
|
-
|
|
274
|
-
---
|
|
275
|
-
|
|
276
|
-
### APE (Action, Purpose, Expectation)
|
|
277
|
-
|
|
278
|
-
**Best for:** Ultra-minimal prompts — the simplest structured framework
|
|
279
|
-
|
|
280
|
-
**Components:**
|
|
281
|
-
- **Action** - What to do (one clear verb-driven instruction)
|
|
282
|
-
- **Purpose** - Why it's needed (one sentence)
|
|
283
|
-
- **Expectation** - What a good result looks like
|
|
284
|
-
|
|
285
|
-
**Example Use Cases:** Quick summaries, single-function code, one-off requests, rapid iteration
|
|
286
|
-
|
|
287
|
-
---
|
|
288
|
-
|
|
289
|
-
### BAB (Before, After, Bridge)
|
|
290
|
-
|
|
291
|
-
**Best for:** Transforming, rewriting, or refactoring existing content
|
|
292
|
-
|
|
293
|
-
**Components:**
|
|
294
|
-
- **Before** - Current state and what's wrong
|
|
295
|
-
- **After** - Desired end state
|
|
296
|
-
- **Bridge** - Transformation rules and constraints
|
|
297
|
-
|
|
298
|
-
**Example Use Cases:** Code refactoring, copy rewrites, tone changes, document restructuring, version migrations
|
|
299
|
-
|
|
300
|
-
---
|
|
301
|
-
|
|
302
|
-
### RACE (Role, Action, Context, Expectation)
|
|
303
|
-
|
|
304
|
-
**Best for:** Medium-complexity tasks needing expertise + background + explicit success criteria
|
|
305
|
-
|
|
306
|
-
**Components:**
|
|
307
|
-
- **Role** - Expertise or persona
|
|
308
|
-
- **Action** - What needs to be done
|
|
309
|
-
- **Context** - Situational background and constraints
|
|
310
|
-
- **Expectation** - What a good result looks like
|
|
311
|
-
|
|
312
|
-
**Example Use Cases:** Technical reviews, expert analysis, contextual recommendations, documentation with standards
|
|
313
|
-
|
|
314
|
-
---
|
|
315
|
-
|
|
316
|
-
### CRISPE (Capacity+Role, Insight, Instructions, Personality, Experiment)
|
|
317
|
-
|
|
318
|
-
**Best for:** Comprehensive prompts where you want multiple output variants to compare
|
|
319
|
-
|
|
320
|
-
**Components:**
|
|
321
|
-
- **Capacity & Role** - Expertise level and professional persona
|
|
322
|
-
- **Insight** - Background context and situational knowledge
|
|
323
|
-
- **Instructions** - The specific task
|
|
324
|
-
- **Personality** - Tone, voice, communication style
|
|
325
|
-
- **Experiment** - Request N variants to compare (the defining differentiator)
|
|
326
|
-
|
|
327
|
-
**Example Use Cases:** Marketing campaigns (A/B variants), content with tone options, strategic analysis needing multiple angles
|
|
328
|
-
|
|
329
|
-
---
|
|
330
|
-
|
|
331
|
-
### BROKE (Background, Role, Objective, Key Results, Evolve)
|
|
332
|
-
|
|
333
|
-
**Best for:** Business deliverables with measurable outcomes and built-in self-improvement
|
|
334
|
-
|
|
335
|
-
**Components:**
|
|
336
|
-
- **Background** - Situation and context
|
|
337
|
-
- **Role** - Professional persona
|
|
338
|
-
- **Objective** - The task
|
|
339
|
-
- **Key Results** - Measurable business outcomes (OKR-style)
|
|
340
|
-
- **Evolve** - AI self-critiques and suggests 3 improvements
|
|
341
|
-
|
|
342
|
-
**Example Use Cases:** Sales process improvements, content strategy with KPIs, product decisions tied to metrics
|
|
343
|
-
|
|
344
|
-
---
|
|
345
|
-
|
|
346
|
-
### CARE (Context, Ask, Rules, Examples)
|
|
347
|
-
|
|
348
|
-
**Best for:** Tasks with explicit constraints, compliance requirements, or quality standards
|
|
349
|
-
|
|
350
|
-
**Components:**
|
|
351
|
-
- **Context** - Situation and background
|
|
352
|
-
- **Ask** - The specific request
|
|
353
|
-
- **Rules** - Explicit constraints, dos/don'ts, standards
|
|
354
|
-
- **Examples** - Reference samples showing the quality bar
|
|
355
|
-
|
|
356
|
-
**Example Use Cases:** Healthcare/legal content, UI error messages, interview questions with bias constraints, brand-compliant copy
|
|
357
|
-
|
|
358
|
-
---
|
|
359
|
-
|
|
360
|
-
### Skeleton of Thought (SoT)
|
|
361
|
-
|
|
362
|
-
**Best for:** Structured long-form content — generate outline first, then expand
|
|
363
|
-
|
|
364
|
-
**Approach:**
|
|
365
|
-
- Phase 1: Generate a concise skeleton/outline (key points only)
|
|
366
|
-
- Phase 2: Expand each skeleton point independently (parallelizable)
|
|
367
|
-
- SoT-R variant: Route non-suitable questions to standard generation
|
|
368
|
-
|
|
369
|
-
**Example Use Cases:** Technical documentation, structured reports, tutorials, any multi-section content
|
|
370
|
-
|
|
371
|
-
---
|
|
372
|
-
|
|
373
|
-
### Step-Back Prompting
|
|
374
|
-
|
|
375
|
-
**Best for:** Principle-grounded reasoning — abstract to the underlying concept first
|
|
376
|
-
|
|
377
|
-
**Approach:**
|
|
378
|
-
- Generate a higher-level "step-back" question about underlying principles
|
|
379
|
-
- Answer the abstract question to retrieve principles
|
|
380
|
-
- Use those principles as context to answer the original specific question
|
|
381
|
-
|
|
382
|
-
**Example Use Cases:** STEM problems, architecture decisions, debugging, any task where first-principles reasoning matters
|
|
383
|
-
|
|
384
|
-
---
|
|
385
|
-
|
|
386
|
-
### Least-to-Most (LtM)
|
|
387
|
-
|
|
388
|
-
**Best for:** Compositional multi-hop problems with ordered dependencies
|
|
389
|
-
|
|
390
|
-
**Approach:**
|
|
391
|
-
- Decompose the complex problem into ordered subproblems (simplest first)
|
|
392
|
-
- Solve each subproblem sequentially, feeding each answer into the next
|
|
393
|
-
- Use accumulated answers to solve the original problem
|
|
394
|
-
|
|
395
|
-
**Example Use Cases:** Multi-domain questions (legal + technical), complex calculations, architecture problems with prerequisites
|
|
396
|
-
|
|
397
|
-
---
|
|
398
|
-
|
|
399
|
-
### Plan-and-Solve (PS+)
|
|
400
|
-
|
|
401
|
-
**Best for:** Zero-shot numerical and calculation reasoning
|
|
402
|
-
|
|
403
|
-
**Approach:**
|
|
404
|
-
- "Let's first understand the problem, extract relevant variables and their corresponding numerals, and devise a complete plan. Then, let's carry out the plan, calculate intermediate values, pay attention to computation, and solve the problem step by step."
|
|
405
|
-
|
|
406
|
-
**Example Use Cases:** Financial calculations (MRR, CAC, payback), math word problems, resource estimation, any zero-shot reasoning task
|
|
407
|
-
|
|
408
|
-
---
|
|
409
|
-
|
|
410
|
-
### Self-Refine
|
|
411
|
-
|
|
412
|
-
**Best for:** Iterative quality improvement of any output
|
|
413
|
-
|
|
414
|
-
**Approach:** Generate → produce specific actionable feedback → refine → repeat until stopping criterion
|
|
415
|
-
**Research:** Madaan et al. NeurIPS 2023 — +5-40% improvement across 7 task types
|
|
416
|
-
|
|
417
|
-
**Example Use Cases:** Code review and rewriting, writing improvement, plan refinement, pre-submission QA
|
|
418
|
-
|
|
419
|
-
---
|
|
420
|
-
|
|
421
|
-
### CAI Critique-Revise
|
|
422
|
-
|
|
423
|
-
**Best for:** Aligning output to an explicit stated principle or standard
|
|
424
|
-
|
|
425
|
-
**Approach:** Initial output → critique against a specific principle → revision addressing every critique point
|
|
426
|
-
**Research:** Anthropic Constitutional AI (arXiv 2212.08073, 2022) — principle-driven alignment
|
|
427
|
-
|
|
428
|
-
**Example Use Cases:** Plain language compliance, brand voice enforcement, epistemic quality (claims vs. assertions), legal/regulatory language standards
|
|
429
|
-
|
|
430
|
-
---
|
|
431
|
-
|
|
432
|
-
### Devil's Advocate
|
|
433
|
-
|
|
434
|
-
**Best for:** Generating the strongest possible opposing argument against a position
|
|
435
|
-
|
|
436
|
-
**Approach:** Explicitly instructs the AI to attack a position as forcefully as possible — not balanced, not a straw man, but maximum-strength opposition
|
|
437
|
-
**Research:** ACM IUI 2024 peer-reviewed study
|
|
438
|
-
|
|
439
|
-
**Example Use Cases:** Decision stress-testing, architecture reviews, countering groupthink, stakeholder preparation, debiasing
|
|
440
|
-
|
|
441
|
-
---
|
|
442
|
-
|
|
443
|
-
### Pre-Mortem
|
|
444
|
-
|
|
445
|
-
**Best for:** Identifying specific failure causes before they happen
|
|
446
|
-
|
|
447
|
-
**Approach:** Assume the project has already failed → describe the failure → work backwards to specific causes with warning signs
|
|
448
|
-
**Research:** Gary Klein's prospective hindsight — ~30% improvement over forward risk analysis
|
|
449
|
-
|
|
450
|
-
**Example Use Cases:** Project kickoffs, product launches, technical migrations, high-stakes strategic decisions
|
|
451
|
-
|
|
452
|
-
---
|
|
453
|
-
|
|
454
|
-
### RCoT (Reverse Chain-of-Thought)
|
|
455
|
-
|
|
456
|
-
**Best for:** Verifying that reasoning addressed all conditions in a multi-constraint question
|
|
457
|
-
|
|
458
|
-
**Approach:** Generate answer → reconstruct the question from the answer → cross-check conditions → correct overlooked items
|
|
459
|
-
**Research:** Academic backward reasoning literature (ACL 2025, NAACL 2025)
|
|
460
|
-
|
|
461
|
-
**Example Use Cases:** Multi-condition logic problems, complex requirements analysis, high-stakes reasoning verification
|
|
462
|
-
|
|
463
|
-
---
|
|
464
|
-
|
|
465
|
-
### RPEF (Reverse Prompt Engineering)
|
|
466
|
-
|
|
467
|
-
**Best for:** Recovering a reusable prompt template from an existing output
|
|
468
|
-
|
|
469
|
-
**Approach:** Provide an output (and optionally the input) → AI analyzes it for tone, structure, constraints, persona → generates a reusable template with [PLACEHOLDER] variables
|
|
470
|
-
**Research:** Li & Klabjan, EMNLP 2025 (arXiv 2411.06729)
|
|
471
|
-
|
|
472
|
-
**Example Use Cases:** Recovering lost prompts, codifying successful one-time outputs, building style templates, understanding system prompt behavior
|
|
473
|
-
|
|
474
|
-
---
|
|
475
|
-
|
|
476
|
-
### Reverse Role Prompting (AI-Led Interview)
|
|
477
|
-
|
|
478
|
-
**Best for:** Complex tasks where you know the goal but struggle to specify all requirements
|
|
479
|
-
|
|
480
|
-
**Approach:** Provide a minimal intent statement → AI asks targeted clarifying questions → executes once context is complete
|
|
481
|
-
**Research:** FATA framework (arXiv 2508.08308, 2025) — ~40% improvement over standard prompting
|
|
482
|
-
|
|
483
|
-
**Example Use Cases:** Complex strategy tasks, non-expert users, requirements gathering, generating complete prompts from an interview
|
|
484
|
-
|
|
485
|
-
---
|
|
486
|
-
|
|
487
|
-
### Tree of Thought
|
|
488
|
-
|
|
489
|
-
**Best for:** Decisions where multiple approaches need systematic comparison
|
|
490
|
-
|
|
491
|
-
**Approach:**
|
|
492
|
-
- Defines the problem and constraints
|
|
493
|
-
- Explores 2-5 distinct solution branches in parallel
|
|
494
|
-
- Evaluates each branch against defined criteria
|
|
495
|
-
- Synthesizes into a reasoned recommendation
|
|
496
|
-
|
|
497
|
-
**Example Use Cases:** Architecture decisions, debugging with multiple hypotheses, technology selection, strategic trade-offs
|
|
498
|
-
|
|
499
|
-
---
|
|
500
|
-
|
|
501
|
-
### ReAct (Reasoning + Acting)
|
|
502
|
-
|
|
503
|
-
**Best for:** Agentic tasks that interleave reasoning with tool use
|
|
504
|
-
|
|
505
|
-
**Approach:**
|
|
506
|
-
- Defines goal, available tools, and constraints
|
|
507
|
-
- Alternates Thought → Action → Observation cycles
|
|
508
|
-
- Each observation informs the next thought
|
|
509
|
-
- Continues until goal is reached
|
|
510
|
-
|
|
511
|
-
**Example Use Cases:** Agentic workflows, multi-step research, debugging with tools, data investigation
|
|
512
|
-
|
|
513
|
-
---
|
|
514
|
-
|
|
515
|
-
### Chain of Thought
|
|
516
|
-
|
|
517
|
-
**Best for:** Complex reasoning and problem-solving
|
|
518
|
-
|
|
519
|
-
**Approach:**
|
|
520
|
-
- Breaks down reasoning into explicit steps
|
|
521
|
-
- Shows work and intermediate conclusions
|
|
522
|
-
- Verifies logic at each stage
|
|
523
|
-
- Builds to final answer
|
|
524
|
-
|
|
525
|
-
**Example Use Cases:** Math problems, debugging, decision analysis, logical reasoning
|
|
526
|
-
|
|
527
|
-
---
|
|
528
|
-
|
|
529
|
-
### Chain of Density
|
|
530
|
-
|
|
531
|
-
**Best for:** Iterative refinement and compression
|
|
532
|
-
|
|
533
|
-
**Approach:**
|
|
534
|
-
- Starts with baseline version
|
|
535
|
-
- Progressively refines through iterations
|
|
536
|
-
- Increases information density
|
|
537
|
-
- Optimizes for specific goals
|
|
538
|
-
|
|
539
|
-
**Example Use Cases:** Summarization, content compression, explanation optimization
|
|
540
|
-
|
|
541
|
-
---
|
|
542
|
-
|
|
543
|
-
##
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
**
|
|
556
|
-
```bash
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
```
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
**
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
-
|
|
668
|
-
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
```
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
-
|
|
1034
|
-
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
- **self-refine.md** - Generate → Feedback → Refine (NeurIPS 2023)
|
|
1066
|
-
- **cai-critique-revise.md** - Principle-based critique + revision (Anthropic 2022)
|
|
1067
|
-
- **devils-advocate.md** - Strongest opposing argument (ACM IUI 2024)
|
|
1068
|
-
- **pre-mortem.md** - Assumed failure → backward cause analysis (Gary Klein)
|
|
1069
|
-
- **rcot.md** - Reverse Chain-of-Thought verification
|
|
1070
|
-
- **rpef.md** - Reverse Prompt Engineering (EMNLP 2025)
|
|
1071
|
-
- **reverse-role.md** - AI-Led Interview / FATA (arXiv 2025)
|
|
1072
|
-
|
|
1073
|
-
---
|
|
1074
|
-
|
|
1075
|
-
## Contributing
|
|
1076
|
-
|
|
1077
|
-
Contributions are welcome! Here's how you can help:
|
|
1078
|
-
|
|
1079
|
-
### Ways to Contribute
|
|
1080
|
-
|
|
1081
|
-
1. **Add New Frameworks** - Implement additional prompting frameworks
|
|
1082
|
-
2. **Improve Existing Frameworks** - Enhance documentation and examples
|
|
1083
|
-
3. **Bug Fixes** - Report and fix issues
|
|
1084
|
-
4. **Documentation** - Improve guides and examples
|
|
1085
|
-
5. **Testing** - Test with different use cases and report findings
|
|
1086
|
-
|
|
1087
|
-
### Adding New Frameworks
|
|
1088
|
-
|
|
1089
|
-
1. Research and validate the framework has backing
|
|
1090
|
-
2. Create comprehensive framework reference (see existing in `references/frameworks/`)
|
|
1091
|
-
3. Add template file in `assets/templates/`
|
|
1092
|
-
4. Update SKILL.md framework selection logic
|
|
1093
|
-
5. Test with multiple use cases
|
|
1094
|
-
6. Submit pull request with examples and rationale
|
|
1095
|
-
|
|
1096
|
-
### Contribution Guidelines
|
|
1097
|
-
|
|
1098
|
-
**File Structure:**
|
|
1099
|
-
```
|
|
1100
|
-
New framework contributions should include:
|
|
1101
|
-
- references/frameworks/your-framework.md (600+ lines with examples)
|
|
1102
|
-
- assets/templates/your-framework_template.txt
|
|
1103
|
-
- Updates to SKILL.md framework selection
|
|
1104
|
-
- Examples in documentation
|
|
1105
|
-
```
|
|
1106
|
-
|
|
1107
|
-
**Documentation Standards:**
|
|
1108
|
-
- Clear component definitions
|
|
1109
|
-
- Multiple use case examples
|
|
1110
|
-
- Selection criteria explanation
|
|
1111
|
-
- Before/after comparisons
|
|
1112
|
-
- Research citations
|
|
1113
|
-
|
|
1114
|
-
**Testing Requirements:**
|
|
1115
|
-
- Test with 3-5 diverse prompts
|
|
1116
|
-
- Verify scoring improves
|
|
1117
|
-
- Check framework selection logic
|
|
1118
|
-
- Validate template structure
|
|
1119
|
-
|
|
1120
|
-
### Pull Request Process
|
|
1121
|
-
|
|
1122
|
-
1. Fork the repository
|
|
1123
|
-
2. Create a feature branch (`git checkout -b feature/new-framework`)
|
|
1124
|
-
3. Make your changes following the guidelines
|
|
1125
|
-
4. Test thoroughly with multiple examples
|
|
1126
|
-
5. Update relevant documentation
|
|
1127
|
-
6. Commit with clear messages
|
|
1128
|
-
7. Push to your fork
|
|
1129
|
-
8. Submit a Pull Request with:
|
|
1130
|
-
- Clear description of changes
|
|
1131
|
-
- Examples of improvements
|
|
1132
|
-
- Test results
|
|
1133
|
-
- Documentation updates
|
|
1134
|
-
|
|
1135
|
-
---
|
|
1136
|
-
|
|
1137
|
-
## License
|
|
1138
|
-
|
|
1139
|
-
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
1140
|
-
|
|
1141
|
-
### License Summary
|
|
1142
|
-
|
|
1143
|
-
**Permissions:**
|
|
1144
|
-
- Commercial use
|
|
1145
|
-
- Modification
|
|
1146
|
-
- Distribution
|
|
1147
|
-
- Private use
|
|
1148
|
-
|
|
1149
|
-
**Conditions:**
|
|
1150
|
-
- License and copyright notice must be included
|
|
1151
|
-
|
|
1152
|
-
**Limitations:**
|
|
1153
|
-
- No liability
|
|
1154
|
-
- No warranty
|
|
1155
|
-
|
|
1156
|
-
---
|
|
1157
|
-
|
|
1158
|
-
## Support
|
|
1159
|
-
|
|
1160
|
-
### Getting Help
|
|
1161
|
-
|
|
1162
|
-
- **Issues** - Report bugs or request features via [GitHub Issues](https://github.com/ckelsoe/prompt-architect/issues)
|
|
1163
|
-
- **Documentation** - Check framework references in `references/frameworks/`
|
|
1164
|
-
|
|
1165
|
-
### FAQ
|
|
1166
|
-
|
|
1167
|
-
**Q: Why isn't the skill activating?**
|
|
1168
|
-
A: Ensure the skill folder is in the correct location (`~/.claude/skills/prompt-architect/`) and restart Claude Code.
|
|
1169
|
-
|
|
1170
|
-
**Q: Can I use this without Claude Code?**
|
|
1171
|
-
A: Yes! Include SKILL.md content in your Claude API system prompt.
|
|
1172
|
-
|
|
1173
|
-
**Q: Which framework should I use?**
|
|
1174
|
-
A: The skill will recommend one, but check the Framework Selection Guide above.
|
|
1175
|
-
|
|
1176
|
-
**Q: Can I add my own framework?**
|
|
1177
|
-
A: Yes! See the Contributing section for guidelines.
|
|
1178
|
-
|
|
1179
|
-
**Q: Does this work with other LLMs?**
|
|
1180
|
-
A: The frameworks are universal, but the skill is optimized for Claude.
|
|
1181
|
-
|
|
1182
|
-
---
|
|
1183
|
-
|
|
1184
|
-
**Transforming your prompts with research-backed frameworks**
|
|
1
|
+
# Prompt Architect
|
|
2
|
+
|
|
3
|
+
Transform vague prompts into expert-level, structured prompts using 27 research-backed frameworks across 7 intent categories.
|
|
4
|
+
|
|
5
|
+
Works with **Claude Code, ChatGPT, Gemini CLI, Cursor, GitHub Copilot, Windsurf, OpenAI Codex**, and [30+ Agent Skills compatible tools](https://agentskills.io).
|
|
6
|
+
|
|
7
|
+
[](https://opensource.org/licenses/MIT) [](https://www.npmjs.com/package/@ckelsoe/prompt-architect) [](https://agentskills.io)
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Table of Contents
|
|
12
|
+
|
|
13
|
+
- [Overview](#overview)
|
|
14
|
+
- [Key Features](#key-features)
|
|
15
|
+
- [Example Transformation](#example-transformation)
|
|
16
|
+
- [Supported Frameworks](#supported-frameworks)
|
|
17
|
+
- [Quick Start](#quick-start)
|
|
18
|
+
- [Installation](#installation)
|
|
19
|
+
- [Usage](#usage)
|
|
20
|
+
- [Framework Selection Guide](#framework-selection-guide)
|
|
21
|
+
- [Project Structure](#project-structure)
|
|
22
|
+
- [Documentation](#documentation)
|
|
23
|
+
- [Contributing](#contributing)
|
|
24
|
+
- [License](#license)
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Overview
|
|
29
|
+
|
|
30
|
+
Prompt Architect is an [Agent Skills](https://agentskills.io) compatible skill that elevates your prompting capabilities through:
|
|
31
|
+
|
|
32
|
+
- **Intelligent Analysis** - Evaluates prompts across 5 quality dimensions (clarity, specificity, context, completeness, structure)
|
|
33
|
+
- **Framework Recommendation** - Suggests the best framework(s) for your specific use case with clear reasoning
|
|
34
|
+
- **Guided Dialogue** - Asks targeted clarifying questions to gather missing information progressively
|
|
35
|
+
- **Systematic Application** - Applies selected framework to transform your prompt
|
|
36
|
+
- **Iterative Refinement** - Continues improving based on feedback until perfect
|
|
37
|
+
|
|
38
|
+
**Target Audience:**
|
|
39
|
+
- Developers using AI coding agents (Claude Code, Gemini CLI, Cursor, Copilot, etc.)
|
|
40
|
+
- Prompt engineers optimizing LLM interactions
|
|
41
|
+
- AI practitioners seeking systematic prompt improvement
|
|
42
|
+
- Teams wanting consistent, high-quality prompts
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Key Features
|
|
47
|
+
|
|
48
|
+
### 27 Research-Backed Frameworks Across 7 Intent Categories
|
|
49
|
+
|
|
50
|
+
| Framework | Best For | Complexity |
|
|
51
|
+
|-----------|----------|------------|
|
|
52
|
+
| **CO-STAR** | Content creation, writing tasks | High |
|
|
53
|
+
| **RISEN** | Multi-step processes, procedures | High |
|
|
54
|
+
| **CRISPE** | Comprehensive prompts with multiple output variants | High |
|
|
55
|
+
| **BROKE** | Business deliverables with OKR-style measurable outcomes | Medium |
|
|
56
|
+
| **RISE-IE** | Data analysis, transformations (Input-Expectation) | Medium |
|
|
57
|
+
| **RISE-IX** | Content creation with examples (Instructions-Examples) | Medium |
|
|
58
|
+
| **TIDD-EC** | High-precision tasks with explicit dos/don'ts | Medium |
|
|
59
|
+
| **RACE** | Expert tasks requiring role + context + outcome clarity | Medium |
|
|
60
|
+
| **CARE** | Constraint-driven tasks with explicit rules and examples | Medium |
|
|
61
|
+
| **CTF** | Simple tasks where situational context drives the prompt | Low |
|
|
62
|
+
| **RTF** | Simple, focused tasks where expertise framing matters | Low |
|
|
63
|
+
| **APE** | Ultra-minimal one-off prompts | Low |
|
|
64
|
+
| **BAB** | Rewriting, refactoring, transforming existing content | Low |
|
|
65
|
+
| **Tree of Thought** | Decisions requiring exploration of multiple approaches | Medium |
|
|
66
|
+
| **ReAct** | Agentic / tool-use tasks with iterative reasoning | Medium |
|
|
67
|
+
| **Skeleton of Thought** | Structured long-form content (outline-first) | Medium |
|
|
68
|
+
| **Step-Back** | Principle-grounded reasoning (abstract first, then specific) | Medium |
|
|
69
|
+
| **Least-to-Most** | Compositional multi-hop problems (simplest first) | Medium |
|
|
70
|
+
| **Plan-and-Solve (PS+)** | Zero-shot numerical/calculation reasoning | Low |
|
|
71
|
+
| **Chain of Thought** | Reasoning, problem-solving | Medium |
|
|
72
|
+
| **Chain of Density** | Iterative refinement, summarization | Medium |
|
|
73
|
+
| **Self-Refine** | Iterative output quality improvement (any task) | Medium |
|
|
74
|
+
| **CAI Critique-Revise** | Principle-based critique and revision (Anthropic) | Medium |
|
|
75
|
+
| **Devil's Advocate** | Strongest opposing argument against a position | Low |
|
|
76
|
+
| **Pre-Mortem** | Assume failure, identify specific causes | Low |
|
|
77
|
+
| **RCoT** | Verify reasoning by reconstructing the question | Medium |
|
|
78
|
+
| **RPEF** | Recover/reconstruct a prompt from an existing output | Low |
|
|
79
|
+
| **Reverse Role Prompting** | AI interviews you before executing | Low |
|
|
80
|
+
|
|
81
|
+
### Quality Scoring System
|
|
82
|
+
|
|
83
|
+
Every prompt is evaluated across:
|
|
84
|
+
- **Clarity** (1-10): Is the goal clear and unambiguous?
|
|
85
|
+
- **Specificity** (1-10): Are requirements detailed enough?
|
|
86
|
+
- **Context** (1-10): Is background information provided?
|
|
87
|
+
- **Completeness** (1-10): Are all necessary elements present?
|
|
88
|
+
- **Structure** (1-10): Is the prompt well-organized?
|
|
89
|
+
|
|
90
|
+
### Progressive Disclosure
|
|
91
|
+
|
|
92
|
+
- Asks 3-5 targeted questions at a time (never overwhelming)
|
|
93
|
+
- Adapts questions based on framework selection
|
|
94
|
+
- Builds understanding iteratively
|
|
95
|
+
- Confirms assumptions before proceeding
|
|
96
|
+
|
|
97
|
+
### Continuous Iteration
|
|
98
|
+
|
|
99
|
+
- Shows before/after comparisons with explanations
|
|
100
|
+
- Refines based on your feedback
|
|
101
|
+
- Can switch frameworks if initial choice doesn't fit
|
|
102
|
+
- Continues until you're satisfied
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Example Transformation
|
|
107
|
+
|
|
108
|
+
### Before
|
|
109
|
+
```
|
|
110
|
+
"Write about machine learning"
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
**Analysis Scores:**
|
|
114
|
+
- Clarity: 2/10 (vague goal)
|
|
115
|
+
- Specificity: 1/10 (no details)
|
|
116
|
+
- Context: 0/10 (no background)
|
|
117
|
+
- Completeness: 2/10 (missing most elements)
|
|
118
|
+
- Structure: 3/10 (single sentence)
|
|
119
|
+
- **Overall: 1.6/10**
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
### After (CO-STAR Framework)
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
CONTEXT:
|
|
127
|
+
Creating content for a business blog aimed at C-level executives exploring
|
|
128
|
+
how AI/ML could benefit their organizations. Readers understand business
|
|
129
|
+
strategy but have limited technical ML knowledge. Part of an emerging
|
|
130
|
+
technologies series.
|
|
131
|
+
|
|
132
|
+
OBJECTIVE:
|
|
133
|
+
Create an engaging article helping executives understand practical machine
|
|
134
|
+
learning applications relevant to their companies. Focus on demonstrating
|
|
135
|
+
tangible business value and real-world implementation without overwhelming
|
|
136
|
+
technical details.
|
|
137
|
+
|
|
138
|
+
STYLE:
|
|
139
|
+
Professional blog style combining narrative with bullet points. Include 2-3
|
|
140
|
+
real-world case studies. Structure with clear subheadings every 150-200 words.
|
|
141
|
+
Balance storytelling with concrete information. Avoid jargon; when necessary,
|
|
142
|
+
provide plain-language explanations.
|
|
143
|
+
|
|
144
|
+
TONE:
|
|
145
|
+
Professional yet approachable and conversational. Confident and authoritative
|
|
146
|
+
without being condescending. Practical and business-focused rather than
|
|
147
|
+
theoretical.
|
|
148
|
+
|
|
149
|
+
AUDIENCE:
|
|
150
|
+
C-suite executives and senior managers at mid-to-large enterprises who:
|
|
151
|
+
- Make strategic technology investment decisions
|
|
152
|
+
- Understand business metrics and ROI
|
|
153
|
+
- Have limited technical ML knowledge
|
|
154
|
+
- Value practical examples over theory
|
|
155
|
+
|
|
156
|
+
RESPONSE FORMAT:
|
|
157
|
+
800-word article structured as:
|
|
158
|
+
- Compelling headline (10 words max)
|
|
159
|
+
- Brief hook (2-3 sentences)
|
|
160
|
+
- 3-4 main sections with descriptive subheadings
|
|
161
|
+
- Mix of paragraphs and bullet points
|
|
162
|
+
- Clear call-to-action conclusion
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
**Result Scores:**
|
|
166
|
+
- Clarity: 9/10
|
|
167
|
+
- Specificity: 9/10
|
|
168
|
+
- Context: 10/10
|
|
169
|
+
- Completeness: 9/10
|
|
170
|
+
- Structure: 9/10
|
|
171
|
+
- **Overall: 8.8/10**
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
## Supported Frameworks
|
|
176
|
+
|
|
177
|
+
### CO-STAR (Context, Objective, Style, Tone, Audience, Response)
|
|
178
|
+
|
|
179
|
+
**Best for:** Content creation, writing tasks, communications
|
|
180
|
+
|
|
181
|
+
**Components:**
|
|
182
|
+
- **Context** - Background information and situation
|
|
183
|
+
- **Objective** - Clear goal and purpose
|
|
184
|
+
- **Style** - Writing style and formatting approach
|
|
185
|
+
- **Tone** - Voice and emotional quality
|
|
186
|
+
- **Audience** - Target reader characteristics
|
|
187
|
+
- **Response** - Expected format and structure
|
|
188
|
+
|
|
189
|
+
**Example Use Cases:** Blog posts, emails, presentations, marketing copy, documentation
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
### RISEN (Role, Instructions, Steps, End goal, Narrowing)
|
|
194
|
+
|
|
195
|
+
**Best for:** Multi-step processes, systematic procedures
|
|
196
|
+
|
|
197
|
+
**Components:**
|
|
198
|
+
- **Role** - Expertise and perspective needed
|
|
199
|
+
- **Instructions** - High-level guidance
|
|
200
|
+
- **Steps** - Detailed methodology
|
|
201
|
+
- **End goal** - Success criteria
|
|
202
|
+
- **Narrowing** - Constraints and boundaries
|
|
203
|
+
|
|
204
|
+
**Example Use Cases:** Code reviews, workflows, systematic analysis, project planning
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
### RISE (Dual Variants)
|
|
209
|
+
|
|
210
|
+
#### RISE-IE (Input-Expectation)
|
|
211
|
+
**Best for:** Data analysis, transformations, processing tasks
|
|
212
|
+
|
|
213
|
+
**Components:**
|
|
214
|
+
- **Role** - Expertise needed
|
|
215
|
+
- **Input** - Data format and characteristics
|
|
216
|
+
- **Steps** - Processing methodology
|
|
217
|
+
- **Expectation** - Output requirements
|
|
218
|
+
|
|
219
|
+
**Example Use Cases:** CSV analysis, data processing, file transformations, report generation
|
|
220
|
+
|
|
221
|
+
#### RISE-IX (Instructions-Examples)
|
|
222
|
+
**Best for:** Content creation with reference examples
|
|
223
|
+
|
|
224
|
+
**Components:**
|
|
225
|
+
- **Role** - Expertise needed
|
|
226
|
+
- **Instructions** - Task guidance
|
|
227
|
+
- **Steps** - Workflow process
|
|
228
|
+
- **Examples** - Reference samples
|
|
229
|
+
|
|
230
|
+
**Example Use Cases:** Creative writing, template-based content, style matching
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
### TIDD-EC (Task, Instructions, Do, Don't, Examples, Context)
|
|
235
|
+
|
|
236
|
+
**Best for:** High-precision tasks requiring explicit boundaries
|
|
237
|
+
|
|
238
|
+
**Components:**
|
|
239
|
+
- **Task type** - Nature of the work
|
|
240
|
+
- **Instructions** - What to accomplish
|
|
241
|
+
- **Do** - Explicit positive guidance
|
|
242
|
+
- **Don't** - Explicit negative guidance (what to avoid)
|
|
243
|
+
- **Examples** - Reference samples
|
|
244
|
+
- **Context** - Background information
|
|
245
|
+
|
|
246
|
+
**Example Use Cases:** Code generation with standards, compliance tasks, quality-critical work
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
### CTF (Context, Task, Format)
|
|
251
|
+
|
|
252
|
+
**Best for:** Simple tasks where situational background matters more than expertise framing
|
|
253
|
+
|
|
254
|
+
**Components:**
|
|
255
|
+
- **Context** - Situation and background
|
|
256
|
+
- **Task** - What needs to be done
|
|
257
|
+
- **Format** - Output structure
|
|
258
|
+
|
|
259
|
+
**Example Use Cases:** Handoff documents, mid-project updates, situation-driven requests
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
### RTF (Role, Task, Format)
|
|
264
|
+
|
|
265
|
+
**Best for:** Simple, well-defined tasks where expertise framing drives output quality
|
|
266
|
+
|
|
267
|
+
**Components:**
|
|
268
|
+
- **Role** - Expertise required
|
|
269
|
+
- **Task** - What needs to be done
|
|
270
|
+
- **Format** - Output structure
|
|
271
|
+
|
|
272
|
+
**Example Use Cases:** Quick conversions, simple formatting, straightforward requests
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
### APE (Action, Purpose, Expectation)
|
|
277
|
+
|
|
278
|
+
**Best for:** Ultra-minimal prompts — the simplest structured framework
|
|
279
|
+
|
|
280
|
+
**Components:**
|
|
281
|
+
- **Action** - What to do (one clear verb-driven instruction)
|
|
282
|
+
- **Purpose** - Why it's needed (one sentence)
|
|
283
|
+
- **Expectation** - What a good result looks like
|
|
284
|
+
|
|
285
|
+
**Example Use Cases:** Quick summaries, single-function code, one-off requests, rapid iteration
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
### BAB (Before, After, Bridge)
|
|
290
|
+
|
|
291
|
+
**Best for:** Transforming, rewriting, or refactoring existing content
|
|
292
|
+
|
|
293
|
+
**Components:**
|
|
294
|
+
- **Before** - Current state and what's wrong
|
|
295
|
+
- **After** - Desired end state
|
|
296
|
+
- **Bridge** - Transformation rules and constraints
|
|
297
|
+
|
|
298
|
+
**Example Use Cases:** Code refactoring, copy rewrites, tone changes, document restructuring, version migrations
|
|
299
|
+
|
|
300
|
+
---
|
|
301
|
+
|
|
302
|
+
### RACE (Role, Action, Context, Expectation)
|
|
303
|
+
|
|
304
|
+
**Best for:** Medium-complexity tasks needing expertise + background + explicit success criteria
|
|
305
|
+
|
|
306
|
+
**Components:**
|
|
307
|
+
- **Role** - Expertise or persona
|
|
308
|
+
- **Action** - What needs to be done
|
|
309
|
+
- **Context** - Situational background and constraints
|
|
310
|
+
- **Expectation** - What a good result looks like
|
|
311
|
+
|
|
312
|
+
**Example Use Cases:** Technical reviews, expert analysis, contextual recommendations, documentation with standards
|
|
313
|
+
|
|
314
|
+
---
|
|
315
|
+
|
|
316
|
+
### CRISPE (Capacity+Role, Insight, Instructions, Personality, Experiment)
|
|
317
|
+
|
|
318
|
+
**Best for:** Comprehensive prompts where you want multiple output variants to compare
|
|
319
|
+
|
|
320
|
+
**Components:**
|
|
321
|
+
- **Capacity & Role** - Expertise level and professional persona
|
|
322
|
+
- **Insight** - Background context and situational knowledge
|
|
323
|
+
- **Instructions** - The specific task
|
|
324
|
+
- **Personality** - Tone, voice, communication style
|
|
325
|
+
- **Experiment** - Request N variants to compare (the defining differentiator)
|
|
326
|
+
|
|
327
|
+
**Example Use Cases:** Marketing campaigns (A/B variants), content with tone options, strategic analysis needing multiple angles
|
|
328
|
+
|
|
329
|
+
---
|
|
330
|
+
|
|
331
|
+
### BROKE (Background, Role, Objective, Key Results, Evolve)
|
|
332
|
+
|
|
333
|
+
**Best for:** Business deliverables with measurable outcomes and built-in self-improvement
|
|
334
|
+
|
|
335
|
+
**Components:**
|
|
336
|
+
- **Background** - Situation and context
|
|
337
|
+
- **Role** - Professional persona
|
|
338
|
+
- **Objective** - The task
|
|
339
|
+
- **Key Results** - Measurable business outcomes (OKR-style)
|
|
340
|
+
- **Evolve** - AI self-critiques and suggests 3 improvements
|
|
341
|
+
|
|
342
|
+
**Example Use Cases:** Sales process improvements, content strategy with KPIs, product decisions tied to metrics
|
|
343
|
+
|
|
344
|
+
---
|
|
345
|
+
|
|
346
|
+
### CARE (Context, Ask, Rules, Examples)
|
|
347
|
+
|
|
348
|
+
**Best for:** Tasks with explicit constraints, compliance requirements, or quality standards
|
|
349
|
+
|
|
350
|
+
**Components:**
|
|
351
|
+
- **Context** - Situation and background
|
|
352
|
+
- **Ask** - The specific request
|
|
353
|
+
- **Rules** - Explicit constraints, dos/don'ts, standards
|
|
354
|
+
- **Examples** - Reference samples showing the quality bar
|
|
355
|
+
|
|
356
|
+
**Example Use Cases:** Healthcare/legal content, UI error messages, interview questions with bias constraints, brand-compliant copy
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
360
|
+
### Skeleton of Thought (SoT)
|
|
361
|
+
|
|
362
|
+
**Best for:** Structured long-form content — generate outline first, then expand
|
|
363
|
+
|
|
364
|
+
**Approach:**
|
|
365
|
+
- Phase 1: Generate a concise skeleton/outline (key points only)
|
|
366
|
+
- Phase 2: Expand each skeleton point independently (parallelizable)
|
|
367
|
+
- SoT-R variant: Route non-suitable questions to standard generation
|
|
368
|
+
|
|
369
|
+
**Example Use Cases:** Technical documentation, structured reports, tutorials, any multi-section content
|
|
370
|
+
|
|
371
|
+
---
|
|
372
|
+
|
|
373
|
+
### Step-Back Prompting
|
|
374
|
+
|
|
375
|
+
**Best for:** Principle-grounded reasoning — abstract to the underlying concept first
|
|
376
|
+
|
|
377
|
+
**Approach:**
|
|
378
|
+
- Generate a higher-level "step-back" question about underlying principles
|
|
379
|
+
- Answer the abstract question to retrieve principles
|
|
380
|
+
- Use those principles as context to answer the original specific question
|
|
381
|
+
|
|
382
|
+
**Example Use Cases:** STEM problems, architecture decisions, debugging, any task where first-principles reasoning matters
|
|
383
|
+
|
|
384
|
+
---
|
|
385
|
+
|
|
386
|
+
### Least-to-Most (LtM)
|
|
387
|
+
|
|
388
|
+
**Best for:** Compositional multi-hop problems with ordered dependencies
|
|
389
|
+
|
|
390
|
+
**Approach:**
|
|
391
|
+
- Decompose the complex problem into ordered subproblems (simplest first)
|
|
392
|
+
- Solve each subproblem sequentially, feeding each answer into the next
|
|
393
|
+
- Use accumulated answers to solve the original problem
|
|
394
|
+
|
|
395
|
+
**Example Use Cases:** Multi-domain questions (legal + technical), complex calculations, architecture problems with prerequisites
|
|
396
|
+
|
|
397
|
+
---
|
|
398
|
+
|
|
399
|
+
### Plan-and-Solve (PS+)
|
|
400
|
+
|
|
401
|
+
**Best for:** Zero-shot numerical and calculation reasoning
|
|
402
|
+
|
|
403
|
+
**Approach:**
|
|
404
|
+
- "Let's first understand the problem, extract relevant variables and their corresponding numerals, and devise a complete plan. Then, let's carry out the plan, calculate intermediate values, pay attention to computation, and solve the problem step by step."
|
|
405
|
+
|
|
406
|
+
**Example Use Cases:** Financial calculations (MRR, CAC, payback), math word problems, resource estimation, any zero-shot reasoning task
|
|
407
|
+
|
|
408
|
+
---
|
|
409
|
+
|
|
410
|
+
### Self-Refine
|
|
411
|
+
|
|
412
|
+
**Best for:** Iterative quality improvement of any output
|
|
413
|
+
|
|
414
|
+
**Approach:** Generate → produce specific actionable feedback → refine → repeat until stopping criterion
|
|
415
|
+
**Research:** Madaan et al. NeurIPS 2023 — +5-40% improvement across 7 task types
|
|
416
|
+
|
|
417
|
+
**Example Use Cases:** Code review and rewriting, writing improvement, plan refinement, pre-submission QA
|
|
418
|
+
|
|
419
|
+
---
|
|
420
|
+
|
|
421
|
+
### CAI Critique-Revise
|
|
422
|
+
|
|
423
|
+
**Best for:** Aligning output to an explicit stated principle or standard
|
|
424
|
+
|
|
425
|
+
**Approach:** Initial output → critique against a specific principle → revision addressing every critique point
|
|
426
|
+
**Research:** Anthropic Constitutional AI (arXiv 2212.08073, 2022) — principle-driven alignment
|
|
427
|
+
|
|
428
|
+
**Example Use Cases:** Plain language compliance, brand voice enforcement, epistemic quality (claims vs. assertions), legal/regulatory language standards
|
|
429
|
+
|
|
430
|
+
---
|
|
431
|
+
|
|
432
|
+
### Devil's Advocate
|
|
433
|
+
|
|
434
|
+
**Best for:** Generating the strongest possible opposing argument against a position
|
|
435
|
+
|
|
436
|
+
**Approach:** Explicitly instructs the AI to attack a position as forcefully as possible — not balanced, not a straw man, but maximum-strength opposition
|
|
437
|
+
**Research:** ACM IUI 2024 peer-reviewed study
|
|
438
|
+
|
|
439
|
+
**Example Use Cases:** Decision stress-testing, architecture reviews, countering groupthink, stakeholder preparation, debiasing
|
|
440
|
+
|
|
441
|
+
---
|
|
442
|
+
|
|
443
|
+
### Pre-Mortem
|
|
444
|
+
|
|
445
|
+
**Best for:** Identifying specific failure causes before they happen
|
|
446
|
+
|
|
447
|
+
**Approach:** Assume the project has already failed → describe the failure → work backwards to specific causes with warning signs
|
|
448
|
+
**Research:** Gary Klein's prospective hindsight — ~30% improvement over forward risk analysis
|
|
449
|
+
|
|
450
|
+
**Example Use Cases:** Project kickoffs, product launches, technical migrations, high-stakes strategic decisions
|
|
451
|
+
|
|
452
|
+
---
|
|
453
|
+
|
|
454
|
+
### RCoT (Reverse Chain-of-Thought)
|
|
455
|
+
|
|
456
|
+
**Best for:** Verifying that reasoning addressed all conditions in a multi-constraint question
|
|
457
|
+
|
|
458
|
+
**Approach:** Generate answer → reconstruct the question from the answer → cross-check conditions → correct overlooked items
|
|
459
|
+
**Research:** Academic backward reasoning literature (ACL 2025, NAACL 2025)
|
|
460
|
+
|
|
461
|
+
**Example Use Cases:** Multi-condition logic problems, complex requirements analysis, high-stakes reasoning verification
|
|
462
|
+
|
|
463
|
+
---
|
|
464
|
+
|
|
465
|
+
### RPEF (Reverse Prompt Engineering)
|
|
466
|
+
|
|
467
|
+
**Best for:** Recovering a reusable prompt template from an existing output
|
|
468
|
+
|
|
469
|
+
**Approach:** Provide an output (and optionally the input) → AI analyzes it for tone, structure, constraints, persona → generates a reusable template with [PLACEHOLDER] variables
|
|
470
|
+
**Research:** Li & Klabjan, EMNLP 2025 (arXiv 2411.06729)
|
|
471
|
+
|
|
472
|
+
**Example Use Cases:** Recovering lost prompts, codifying successful one-time outputs, building style templates, understanding system prompt behavior
|
|
473
|
+
|
|
474
|
+
---
|
|
475
|
+
|
|
476
|
+
### Reverse Role Prompting (AI-Led Interview)
|
|
477
|
+
|
|
478
|
+
**Best for:** Complex tasks where you know the goal but struggle to specify all requirements
|
|
479
|
+
|
|
480
|
+
**Approach:** Provide a minimal intent statement → AI asks targeted clarifying questions → executes once context is complete
|
|
481
|
+
**Research:** FATA framework (arXiv 2508.08308, 2025) — ~40% improvement over standard prompting
|
|
482
|
+
|
|
483
|
+
**Example Use Cases:** Complex strategy tasks, non-expert users, requirements gathering, generating complete prompts from an interview
|
|
484
|
+
|
|
485
|
+
---
|
|
486
|
+
|
|
487
|
+
### Tree of Thought
|
|
488
|
+
|
|
489
|
+
**Best for:** Decisions where multiple approaches need systematic comparison
|
|
490
|
+
|
|
491
|
+
**Approach:**
|
|
492
|
+
- Defines the problem and constraints
|
|
493
|
+
- Explores 2-5 distinct solution branches in parallel
|
|
494
|
+
- Evaluates each branch against defined criteria
|
|
495
|
+
- Synthesizes into a reasoned recommendation
|
|
496
|
+
|
|
497
|
+
**Example Use Cases:** Architecture decisions, debugging with multiple hypotheses, technology selection, strategic trade-offs
|
|
498
|
+
|
|
499
|
+
---
|
|
500
|
+
|
|
501
|
+
### ReAct (Reasoning + Acting)
|
|
502
|
+
|
|
503
|
+
**Best for:** Agentic tasks that interleave reasoning with tool use
|
|
504
|
+
|
|
505
|
+
**Approach:**
|
|
506
|
+
- Defines goal, available tools, and constraints
|
|
507
|
+
- Alternates Thought → Action → Observation cycles
|
|
508
|
+
- Each observation informs the next thought
|
|
509
|
+
- Continues until goal is reached
|
|
510
|
+
|
|
511
|
+
**Example Use Cases:** Agentic workflows, multi-step research, debugging with tools, data investigation
|
|
512
|
+
|
|
513
|
+
---
|
|
514
|
+
|
|
515
|
+
### Chain of Thought
|
|
516
|
+
|
|
517
|
+
**Best for:** Complex reasoning and problem-solving
|
|
518
|
+
|
|
519
|
+
**Approach:**
|
|
520
|
+
- Breaks down reasoning into explicit steps
|
|
521
|
+
- Shows work and intermediate conclusions
|
|
522
|
+
- Verifies logic at each stage
|
|
523
|
+
- Builds to final answer
|
|
524
|
+
|
|
525
|
+
**Example Use Cases:** Math problems, debugging, decision analysis, logical reasoning
|
|
526
|
+
|
|
527
|
+
---
|
|
528
|
+
|
|
529
|
+
### Chain of Density
|
|
530
|
+
|
|
531
|
+
**Best for:** Iterative refinement and compression
|
|
532
|
+
|
|
533
|
+
**Approach:**
|
|
534
|
+
- Starts with baseline version
|
|
535
|
+
- Progressively refines through iterations
|
|
536
|
+
- Increases information density
|
|
537
|
+
- Optimizes for specific goals
|
|
538
|
+
|
|
539
|
+
**Example Use Cases:** Summarization, content compression, explanation optimization
|
|
540
|
+
|
|
541
|
+
---
|
|
542
|
+
|
|
543
|
+
## Installation
|
|
544
|
+
|
|
545
|
+
Choose the method that matches your AI tool:
|
|
546
|
+
|
|
547
|
+
### Claude Code
|
|
548
|
+
|
|
549
|
+
**Option A: Plugin system (recommended)**
|
|
550
|
+
```
|
|
551
|
+
/plugin marketplace add ckelsoe/prompt-architect
|
|
552
|
+
/plugin install prompt-architect@prompt-architect-marketplace
|
|
553
|
+
```
|
|
554
|
+
|
|
555
|
+
**Option B: npm**
|
|
556
|
+
```bash
|
|
557
|
+
npm install -g @ckelsoe/prompt-architect
|
|
558
|
+
```
|
|
559
|
+
The installer runs automatically and copies the skill to `~/.claude/skills/`. Restart Claude Code to load it.
|
|
560
|
+
|
|
561
|
+
**Option C: Interactive multi-agent installer**
|
|
562
|
+
```bash
|
|
563
|
+
npx @ckelsoe/prompt-architect
|
|
564
|
+
```
|
|
565
|
+
Detects all installed AI agents and lets you choose where to install.
|
|
566
|
+
|
|
567
|
+
### ChatGPT
|
|
568
|
+
|
|
569
|
+
ChatGPT natively supports [Agent Skills](https://agentskills.io). Available on Business, Enterprise, Edu, Teachers, and Healthcare plans.
|
|
570
|
+
|
|
571
|
+
1. Download [`prompt-architect.skill`](https://github.com/ckelsoe/prompt-architect/releases/latest) from GitHub Releases
|
|
572
|
+
2. In ChatGPT, click your profile icon → **Skills**
|
|
573
|
+
3. Click **New skill** → **Upload from your computer**
|
|
574
|
+
4. Upload the `.skill` file
|
|
575
|
+
|
|
576
|
+
### Gemini CLI
|
|
577
|
+
|
|
578
|
+
```bash
|
|
579
|
+
gemini skills install https://github.com/ckelsoe/prompt-architect.git
|
|
580
|
+
```
|
|
581
|
+
|
|
582
|
+
Or manually: copy `skills/prompt-architect/` to `~/.gemini/skills/prompt-architect/`
|
|
583
|
+
|
|
584
|
+
### Cursor, Copilot, Windsurf, Codex CLI
|
|
585
|
+
|
|
586
|
+
Use the interactive installer to auto-detect and install:
|
|
587
|
+
```bash
|
|
588
|
+
npx @ckelsoe/prompt-architect
|
|
589
|
+
```
|
|
590
|
+
|
|
591
|
+
Or copy `skills/prompt-architect/` to your tool's skills directory. All of these tools support the [Agent Skills standard](https://agentskills.io) natively:
|
|
592
|
+
|
|
593
|
+
| Tool | Skills directory |
|
|
594
|
+
|------|----------------|
|
|
595
|
+
| **Cursor** | `.agents/skills/` or `.cursor/skills/` (project) |
|
|
596
|
+
| **GitHub Copilot** | `.github/skills/` or `~/.copilot/skills/` |
|
|
597
|
+
| **OpenAI Codex** | `.agents/skills/` (project) or `~/.agents/skills/` |
|
|
598
|
+
| **VS Code, Roo Code, Kiro, Amp, Junie, Goose, 30+ others** | `~/.agents/skills/` (universal) |
|
|
599
|
+
|
|
600
|
+
### Windsurf
|
|
601
|
+
|
|
602
|
+
Windsurf does not yet support Agent Skills natively:
|
|
603
|
+
```bash
|
|
604
|
+
cat adapters/for-windsurf.md >> .windsurfrules
|
|
605
|
+
```
|
|
606
|
+
|
|
607
|
+
### Any LLM API or Chat Interface
|
|
608
|
+
|
|
609
|
+
Paste the contents of [`adapters/system-prompt.md`](https://raw.githubusercontent.com/ckelsoe/prompt-architect/main/adapters/system-prompt.md) into your system prompt field. Works with OpenAI API, Anthropic API, Google Gemini API, Custom GPTs, or any tool with a system prompt.
|
|
610
|
+
|
|
611
|
+
See [`adapters/README.md`](adapters/README.md) for detailed instructions for each platform.
|
|
612
|
+
|
|
613
|
+
---
|
|
614
|
+
|
|
615
|
+
## Quick Start
|
|
616
|
+
|
|
617
|
+
After installing, test with:
|
|
618
|
+
|
|
619
|
+
```
|
|
620
|
+
"Help me improve this prompt: write a technical blog post"
|
|
621
|
+
```
|
|
622
|
+
|
|
623
|
+
The skill will automatically:
|
|
624
|
+
1. Analyze your prompt and score it
|
|
625
|
+
2. Recommend the best framework (likely CO-STAR)
|
|
626
|
+
3. Ask clarifying questions
|
|
627
|
+
4. Generate an improved, structured prompt
|
|
628
|
+
5. Explain the changes made
|
|
629
|
+
|
|
630
|
+
---
|
|
631
|
+
|
|
632
|
+
## Updating
|
|
633
|
+
|
|
634
|
+
```bash
|
|
635
|
+
# npm
|
|
636
|
+
npm update -g @ckelsoe/prompt-architect
|
|
637
|
+
|
|
638
|
+
# Check version
|
|
639
|
+
npm list -g @ckelsoe/prompt-architect
|
|
640
|
+
|
|
641
|
+
# Claude Code plugin
|
|
642
|
+
/plugin update prompt-architect@prompt-architect-marketplace
|
|
643
|
+
```
|
|
644
|
+
|
|
645
|
+
> **Migrating from v2.x?** The package was renamed from `@ckelsoe/claude-skill-prompt-architect`. See [MIGRATION.md](MIGRATION.md) for details.
|
|
646
|
+
|
|
647
|
+
---
|
|
648
|
+
|
|
649
|
+
## Usage
|
|
650
|
+
|
|
651
|
+
### Basic Usage
|
|
652
|
+
|
|
653
|
+
Simply ask Claude Code to improve any prompt:
|
|
654
|
+
|
|
655
|
+
```
|
|
656
|
+
"Help me improve this prompt: [your prompt here]"
|
|
657
|
+
```
|
|
658
|
+
|
|
659
|
+
### Example Interaction
|
|
660
|
+
|
|
661
|
+
```
|
|
662
|
+
User: "Help me improve this prompt: create a function to process user data"
|
|
663
|
+
|
|
664
|
+
Skill: I'll analyze this prompt and help improve it.
|
|
665
|
+
|
|
666
|
+
**Analysis**:
|
|
667
|
+
- Clarity: 4/10 (basic goal stated)
|
|
668
|
+
- Specificity: 2/10 (what kind of data? what processing?)
|
|
669
|
+
- Context: 1/10 (no background)
|
|
670
|
+
- Completeness: 2/10 (missing many details)
|
|
671
|
+
- Structure: 3/10 (single sentence)
|
|
672
|
+
- **Overall: 2.4/10**
|
|
673
|
+
|
|
674
|
+
**Recommendation**: RISEN framework (multi-step process requiring methodology)
|
|
675
|
+
|
|
676
|
+
**Questions**:
|
|
677
|
+
1. What type of user data? (names, emails, profiles, etc.)
|
|
678
|
+
2. What processing is needed? (validation, transformation, storage?)
|
|
679
|
+
3. What's the tech stack? (Python, JavaScript, database type?)
|
|
680
|
+
4. Any constraints? (performance, security requirements?)
|
|
681
|
+
5. Expected error handling approach?
|
|
682
|
+
|
|
683
|
+
User: "It's a Python function processing CSV user registrations. Need to validate
|
|
684
|
+
emails, normalize names, and save to PostgreSQL. Should handle invalid data gracefully."
|
|
685
|
+
|
|
686
|
+
Skill: Perfect! Let me apply the RISEN framework...
|
|
687
|
+
|
|
688
|
+
[Improved prompt generated with clear role, instructions, steps, end goal, and constraints]
|
|
689
|
+
```
|
|
690
|
+
|
|
691
|
+
### Advanced Usage
|
|
692
|
+
|
|
693
|
+
**Request Specific Framework:**
|
|
694
|
+
```
|
|
695
|
+
"Use the CO-STAR framework to improve: write marketing copy"
|
|
696
|
+
```
|
|
697
|
+
|
|
698
|
+
**Iterate on Existing Prompts:**
|
|
699
|
+
```
|
|
700
|
+
"Review this prompt and suggest improvements: [existing structured prompt]"
|
|
701
|
+
```
|
|
702
|
+
|
|
703
|
+
**Switch Frameworks:**
|
|
704
|
+
```
|
|
705
|
+
"Try using TIDD-EC instead for more explicit guidance"
|
|
706
|
+
```
|
|
707
|
+
|
|
708
|
+
---
|
|
709
|
+
|
|
710
|
+
## Framework Selection Guide
|
|
711
|
+
|
|
712
|
+
### Decision Tree
|
|
713
|
+
|
|
714
|
+
```
|
|
715
|
+
Are you transforming existing content (rewrite, refactor, convert)?
|
|
716
|
+
├─ YES → BAB (Before, After, Bridge)
|
|
717
|
+
└─ NO ↓
|
|
718
|
+
|
|
719
|
+
Is it an agentic/tool-use task?
|
|
720
|
+
├─ YES → ReAct (Thought-Action-Observation cycles)
|
|
721
|
+
└─ NO ↓
|
|
722
|
+
|
|
723
|
+
Is it a decision between multiple approaches?
|
|
724
|
+
├─ YES → Tree of Thought (branching exploration)
|
|
725
|
+
└─ NO ↓
|
|
726
|
+
|
|
727
|
+
Is it content/writing focused with audience and tone?
|
|
728
|
+
├─ YES → CO-STAR
|
|
729
|
+
└─ NO ↓
|
|
730
|
+
|
|
731
|
+
Is it a multi-step process with methodology?
|
|
732
|
+
├─ YES → RISEN
|
|
733
|
+
└─ NO ↓
|
|
734
|
+
|
|
735
|
+
Is it a data transformation (input → output)?
|
|
736
|
+
├─ YES → RISE-IE
|
|
737
|
+
└─ NO ↓
|
|
738
|
+
|
|
739
|
+
Does it need reference examples?
|
|
740
|
+
├─ YES → RISE-IX
|
|
741
|
+
└─ NO ↓
|
|
742
|
+
|
|
743
|
+
Does it need explicit dos/don'ts?
|
|
744
|
+
├─ YES → TIDD-EC
|
|
745
|
+
└─ NO ↓
|
|
746
|
+
|
|
747
|
+
Is it complex reasoning (one clear path)?
|
|
748
|
+
├─ YES → Chain of Thought
|
|
749
|
+
└─ NO ↓
|
|
750
|
+
|
|
751
|
+
Does it need iterative refinement?
|
|
752
|
+
├─ YES → Chain of Density
|
|
753
|
+
└─ NO ↓
|
|
754
|
+
|
|
755
|
+
Is it a numerical/calculation problem (zero-shot)?
|
|
756
|
+
├─ YES → Plan-and-Solve PS+
|
|
757
|
+
└─ NO ↓
|
|
758
|
+
|
|
759
|
+
Is it compositional / multi-hop (answer A needed before B)?
|
|
760
|
+
├─ YES → Least-to-Most
|
|
761
|
+
└─ NO ↓
|
|
762
|
+
|
|
763
|
+
Does it need first-principles reasoning?
|
|
764
|
+
├─ YES → Step-Back Prompting
|
|
765
|
+
└─ NO ↓
|
|
766
|
+
|
|
767
|
+
Is it structured long-form content (multiple semi-independent sections)?
|
|
768
|
+
├─ YES → Skeleton of Thought
|
|
769
|
+
└─ NO ↓
|
|
770
|
+
|
|
771
|
+
Do you need to recover a prompt from an existing output?
|
|
772
|
+
├─ YES → RPEF (Reverse Prompt Engineering)
|
|
773
|
+
└─ NO ↓
|
|
774
|
+
|
|
775
|
+
Do you need to clarify requirements before starting?
|
|
776
|
+
├─ YES → Reverse Role Prompting (AI interviews you first)
|
|
777
|
+
└─ NO ↓
|
|
778
|
+
|
|
779
|
+
Do you need to critique, stress-test, or verify something?
|
|
780
|
+
├─ General quality improvement → Self-Refine
|
|
781
|
+
├─ Align to explicit principle → CAI Critique-Revise
|
|
782
|
+
├─ Find opposing argument → Devil's Advocate
|
|
783
|
+
├─ Find failure modes → Pre-Mortem
|
|
784
|
+
└─ Verify conditions weren't missed → RCoT
|
|
785
|
+
|
|
786
|
+
Is it a simple task? Choose by primary driver:
|
|
787
|
+
├─ Expert role matters most → RTF
|
|
788
|
+
├─ Situational context matters most → CTF
|
|
789
|
+
├─ Need role + context + outcome bar → RACE
|
|
790
|
+
├─ Business deliverable with KPIs → BROKE
|
|
791
|
+
├─ Want multiple variants to compare → CRISPE
|
|
792
|
+
├─ Have explicit rules/constraints → CARE
|
|
793
|
+
└─ Ultra-minimal, one-off → APE
|
|
794
|
+
```
|
|
795
|
+
|
|
796
|
+
### Quick Reference
|
|
797
|
+
|
|
798
|
+
| Your Task | Recommended Framework | Why |
|
|
799
|
+
|-----------|----------------------|-----|
|
|
800
|
+
| Write blog post | CO-STAR | Audience and tone critical |
|
|
801
|
+
| Code review process | RISEN | Multi-step with constraints |
|
|
802
|
+
| Analyze CSV data | RISE-IE | Clear input→output transformation |
|
|
803
|
+
| Generate with examples | RISE-IX | Need reference samples |
|
|
804
|
+
| Generate secure code | TIDD-EC | Explicit dos/don'ts needed |
|
|
805
|
+
| Debug logic error | Chain of Thought | Requires reasoning steps |
|
|
806
|
+
| Compress explanation | Chain of Density | Iterative refinement |
|
|
807
|
+
| Simple conversion | RTF | Straightforward, expertise-driven |
|
|
808
|
+
| Mid-project update | CTF | Background is the key driver |
|
|
809
|
+
| Summarize a meeting | APE | Ultra-minimal, one-off |
|
|
810
|
+
| Refactor existing code | BAB | Clear before/after transformation |
|
|
811
|
+
| Rewrite copy for new audience | BAB | Current content → desired state |
|
|
812
|
+
| Architecture decision | Tree of Thought | Multiple approaches to compare |
|
|
813
|
+
| Choose database tech | Tree of Thought | Trade-offs need systematic analysis |
|
|
814
|
+
| Agentic research task | ReAct | Tool use with iterative reasoning |
|
|
815
|
+
| Expert review with context | RACE | Role + background + outcome bar |
|
|
816
|
+
| Financial calculation | Plan-and-Solve (PS+) | Zero-shot + variable extraction |
|
|
817
|
+
| Multi-hop technical question | Least-to-Most | Dependencies must be solved in order |
|
|
818
|
+
| Architecture principle question | Step-Back | Abstract to first principles first |
|
|
819
|
+
| Write structured docs/report | Skeleton of Thought | Outline first, expand second |
|
|
820
|
+
| Marketing copy A/B options | CRISPE | Experiment component generates variants |
|
|
821
|
+
| Business strategy with KPIs | BROKE | Key Results + Evolve self-critique |
|
|
822
|
+
| Healthcare/compliance content | CARE | Explicit rules and quality standards |
|
|
823
|
+
| Improve any output quality | Self-Refine | Multi-dimensional feedback + refine loop |
|
|
824
|
+
| Enforce plain language standard | CAI Critique-Revise | Principle-based critique |
|
|
825
|
+
| Stress-test a strategy | Devil's Advocate | Strongest opposing argument |
|
|
826
|
+
| Project risk analysis | Pre-Mortem | Assumed failure → backward causes |
|
|
827
|
+
| Multi-condition logic verification | RCoT | Backward reconstruction cross-check |
|
|
828
|
+
| Lost/need to recover a prompt | RPEF | Output → reconstructed template |
|
|
829
|
+
| Requirements unclear upfront | Reverse Role Prompting | AI interviews you first |
|
|
830
|
+
|
|
831
|
+
---
|
|
832
|
+
|
|
833
|
+
## Project Structure
|
|
834
|
+
|
|
835
|
+
```
|
|
836
|
+
prompt-architect/
|
|
837
|
+
│
|
|
838
|
+
├── README.md # This file
|
|
839
|
+
├── LICENSE # MIT License
|
|
840
|
+
│
|
|
841
|
+
└── prompt-architect/ # The skill
|
|
842
|
+
├── SKILL.md # Core skill instructions (5 KB)
|
|
843
|
+
│
|
|
844
|
+
├── scripts/ # Analysis Utilities
|
|
845
|
+
│ ├── framework_analyzer.py # Framework recommendation logic
|
|
846
|
+
│ └── prompt_evaluator.py # Quality scoring system
|
|
847
|
+
│
|
|
848
|
+
├── references/ # Framework Documentation
|
|
849
|
+
│ └── frameworks/ # Loaded on-demand
|
|
850
|
+
│ ├── co-star.md # CO-STAR reference (600+ lines)
|
|
851
|
+
│ ├── risen.md # RISEN reference (600+ lines)
|
|
852
|
+
│ ├── rise.md # RISE (IE/IX) reference (700+ lines)
|
|
853
|
+
│ ├── tidd-ec.md # TIDD-EC reference (600+ lines)
|
|
854
|
+
│ ├── ctf.md # CTF reference
|
|
855
|
+
│ ├── rtf.md # RTF reference (500+ lines)
|
|
856
|
+
│ ├── ape.md # APE reference
|
|
857
|
+
│ ├── bab.md # BAB reference
|
|
858
|
+
│ ├── race.md # RACE reference
|
|
859
|
+
│ ├── crispe.md # CRISPE reference
|
|
860
|
+
│ ├── broke.md # BROKE reference
|
|
861
|
+
│ ├── care.md # CARE reference
|
|
862
|
+
│ ├── tree-of-thought.md # Tree of Thought reference
|
|
863
|
+
│ ├── react.md # ReAct reference
|
|
864
|
+
│ ├── skeleton-of-thought.md # Skeleton of Thought reference (ICLR 2024)
|
|
865
|
+
│ ├── step-back.md # Step-Back Prompting reference (Google DeepMind)
|
|
866
|
+
│ ├── least-to-most.md # Least-to-Most reference (Google Brain)
|
|
867
|
+
│ ├── plan-and-solve.md # Plan-and-Solve PS+ reference (ACL 2023)
|
|
868
|
+
│ ├── chain-of-thought.md # CoT reference (500+ lines)
|
|
869
|
+
│ ├── chain-of-density.md # CoD reference (500+ lines)
|
|
870
|
+
│ ├── self-refine.md # Self-Refine (NeurIPS 2023)
|
|
871
|
+
│ ├── cai-critique-revise.md # CAI Critique-Revise (Anthropic 2022)
|
|
872
|
+
│ ├── devils-advocate.md # Devil's Advocate (ACM IUI 2024)
|
|
873
|
+
│ ├── pre-mortem.md # Pre-Mortem (Gary Klein)
|
|
874
|
+
│ ├── rcot.md # Reverse Chain-of-Thought
|
|
875
|
+
│ ├── rpef.md # Reverse Prompt Engineering (EMNLP 2025)
|
|
876
|
+
│ └── reverse-role.md # AI-Led Interview / FATA (arXiv 2025)
|
|
877
|
+
│
|
|
878
|
+
└── assets/
|
|
879
|
+
└── templates/ # Framework Templates
|
|
880
|
+
├── co-star_template.txt
|
|
881
|
+
├── risen_template.txt
|
|
882
|
+
├── rise-ie_template.txt
|
|
883
|
+
├── rise-ix_template.txt
|
|
884
|
+
├── tidd-ec_template.txt
|
|
885
|
+
├── ctf_template.txt
|
|
886
|
+
├── rtf_template.txt
|
|
887
|
+
├── ape_template.txt
|
|
888
|
+
├── bab_template.txt
|
|
889
|
+
├── race_template.txt
|
|
890
|
+
├── crispe_template.txt
|
|
891
|
+
├── broke_template.txt
|
|
892
|
+
├── care_template.txt
|
|
893
|
+
├── tree-of-thought_template.txt
|
|
894
|
+
├── react_template.txt
|
|
895
|
+
├── skeleton-of-thought_template.txt
|
|
896
|
+
├── step-back_template.txt
|
|
897
|
+
├── least-to-most_template.txt
|
|
898
|
+
├── plan-and-solve_template.txt
|
|
899
|
+
├── chain-of-thought_template.txt
|
|
900
|
+
├── chain-of-density_template.txt
|
|
901
|
+
├── self-refine_template.txt
|
|
902
|
+
├── cai-critique-revise_template.txt
|
|
903
|
+
├── devils-advocate_template.txt
|
|
904
|
+
├── pre-mortem_template.txt
|
|
905
|
+
├── rcot_template.txt
|
|
906
|
+
├── rpef_template.txt
|
|
907
|
+
├── reverse-role_template.txt
|
|
908
|
+
└── hybrid_template.txt
|
|
909
|
+
```
|
|
910
|
+
|
|
911
|
+
**Core Components:**
|
|
912
|
+
- **SKILL.md** - Main skill logic and instructions (intent-based selection system)
|
|
913
|
+
- **27 Framework Docs** - Complete references with examples
|
|
914
|
+
- **29 Templates** - Ready-to-use structures (27 frameworks + hybrid + chain variants)
|
|
915
|
+
- **2 Python Scripts** - Analysis and scoring utilities
|
|
916
|
+
|
|
917
|
+
---
|
|
918
|
+
|
|
919
|
+
## Documentation
|
|
920
|
+
|
|
921
|
+
### Framework References
|
|
922
|
+
|
|
923
|
+
Detailed documentation for each framework in `prompt-architect/references/frameworks/`:
|
|
924
|
+
|
|
925
|
+
- **co-star.md** - Context, Objective, Style, Tone, Audience, Response
|
|
926
|
+
- **risen.md** - Role, Instructions, Steps, End goal, Narrowing
|
|
927
|
+
- **rise.md** - Dual variants (IE & IX)
|
|
928
|
+
- **tidd-ec.md** - Task, Instructions, Do, Don't, Examples, Context
|
|
929
|
+
- **ctf.md** - Context, Task, Format
|
|
930
|
+
- **rtf.md** - Role, Task, Format
|
|
931
|
+
- **ape.md** - Action, Purpose, Expectation
|
|
932
|
+
- **bab.md** - Before, After, Bridge
|
|
933
|
+
- **race.md** - Role, Action, Context, Expectation
|
|
934
|
+
- **crispe.md** - Capacity+Role, Insight, Instructions, Personality, Experiment
|
|
935
|
+
- **broke.md** - Background, Role, Objective, Key Results, Evolve
|
|
936
|
+
- **care.md** - Context, Ask, Rules, Examples
|
|
937
|
+
- **tree-of-thought.md** - Branching multi-path exploration
|
|
938
|
+
- **react.md** - Reasoning + Acting (agentic tool use)
|
|
939
|
+
- **skeleton-of-thought.md** - Skeleton-first parallel expansion (ICLR 2024)
|
|
940
|
+
- **step-back.md** - Abstract to principles first (Google DeepMind, ICLR 2024)
|
|
941
|
+
- **least-to-most.md** - Sequential subproblem solving (Google Brain, ICLR 2023)
|
|
942
|
+
- **plan-and-solve.md** - Zero-shot PS+ trigger (ACL 2023)
|
|
943
|
+
- **chain-of-thought.md** - Step-by-step reasoning
|
|
944
|
+
- **chain-of-density.md** - Iterative refinement
|
|
945
|
+
- **self-refine.md** - Generate → Feedback → Refine (NeurIPS 2023)
|
|
946
|
+
- **cai-critique-revise.md** - Principle-based critique + revision (Anthropic 2022)
|
|
947
|
+
- **devils-advocate.md** - Strongest opposing argument (ACM IUI 2024)
|
|
948
|
+
- **pre-mortem.md** - Assumed failure → backward cause analysis (Gary Klein)
|
|
949
|
+
- **rcot.md** - Reverse Chain-of-Thought verification
|
|
950
|
+
- **rpef.md** - Reverse Prompt Engineering (EMNLP 2025)
|
|
951
|
+
- **reverse-role.md** - AI-Led Interview / FATA (arXiv 2025)
|
|
952
|
+
|
|
953
|
+
---
|
|
954
|
+
|
|
955
|
+
## Contributing
|
|
956
|
+
|
|
957
|
+
Contributions are welcome! Here's how you can help:
|
|
958
|
+
|
|
959
|
+
### Ways to Contribute
|
|
960
|
+
|
|
961
|
+
1. **Add New Frameworks** - Implement additional prompting frameworks
|
|
962
|
+
2. **Improve Existing Frameworks** - Enhance documentation and examples
|
|
963
|
+
3. **Bug Fixes** - Report and fix issues
|
|
964
|
+
4. **Documentation** - Improve guides and examples
|
|
965
|
+
5. **Testing** - Test with different use cases and report findings
|
|
966
|
+
|
|
967
|
+
### Adding New Frameworks
|
|
968
|
+
|
|
969
|
+
1. Research and validate the framework has backing
|
|
970
|
+
2. Create comprehensive framework reference (see existing in `references/frameworks/`)
|
|
971
|
+
3. Add template file in `assets/templates/`
|
|
972
|
+
4. Update SKILL.md framework selection logic
|
|
973
|
+
5. Test with multiple use cases
|
|
974
|
+
6. Submit pull request with examples and rationale
|
|
975
|
+
|
|
976
|
+
### Contribution Guidelines
|
|
977
|
+
|
|
978
|
+
**File Structure:**
|
|
979
|
+
```
|
|
980
|
+
New framework contributions should include:
|
|
981
|
+
- references/frameworks/your-framework.md (600+ lines with examples)
|
|
982
|
+
- assets/templates/your-framework_template.txt
|
|
983
|
+
- Updates to SKILL.md framework selection
|
|
984
|
+
- Examples in documentation
|
|
985
|
+
```
|
|
986
|
+
|
|
987
|
+
**Documentation Standards:**
|
|
988
|
+
- Clear component definitions
|
|
989
|
+
- Multiple use case examples
|
|
990
|
+
- Selection criteria explanation
|
|
991
|
+
- Before/after comparisons
|
|
992
|
+
- Research citations
|
|
993
|
+
|
|
994
|
+
**Testing Requirements:**
|
|
995
|
+
- Test with 3-5 diverse prompts
|
|
996
|
+
- Verify scoring improves
|
|
997
|
+
- Check framework selection logic
|
|
998
|
+
- Validate template structure
|
|
999
|
+
|
|
1000
|
+
### Pull Request Process
|
|
1001
|
+
|
|
1002
|
+
1. Fork the repository
|
|
1003
|
+
2. Create a feature branch (`git checkout -b feature/new-framework`)
|
|
1004
|
+
3. Make your changes following the guidelines
|
|
1005
|
+
4. Test thoroughly with multiple examples
|
|
1006
|
+
5. Update relevant documentation
|
|
1007
|
+
6. Commit with clear messages
|
|
1008
|
+
7. Push to your fork
|
|
1009
|
+
8. Submit a Pull Request with:
|
|
1010
|
+
- Clear description of changes
|
|
1011
|
+
- Examples of improvements
|
|
1012
|
+
- Test results
|
|
1013
|
+
- Documentation updates
|
|
1014
|
+
|
|
1015
|
+
---
|
|
1016
|
+
|
|
1017
|
+
## License
|
|
1018
|
+
|
|
1019
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
1020
|
+
|
|
1021
|
+
### License Summary
|
|
1022
|
+
|
|
1023
|
+
**Permissions:**
|
|
1024
|
+
- Commercial use
|
|
1025
|
+
- Modification
|
|
1026
|
+
- Distribution
|
|
1027
|
+
- Private use
|
|
1028
|
+
|
|
1029
|
+
**Conditions:**
|
|
1030
|
+
- License and copyright notice must be included
|
|
1031
|
+
|
|
1032
|
+
**Limitations:**
|
|
1033
|
+
- No liability
|
|
1034
|
+
- No warranty
|
|
1035
|
+
|
|
1036
|
+
---
|
|
1037
|
+
|
|
1038
|
+
## Support
|
|
1039
|
+
|
|
1040
|
+
### Getting Help
|
|
1041
|
+
|
|
1042
|
+
- **Issues** - Report bugs or request features via [GitHub Issues](https://github.com/ckelsoe/prompt-architect/issues)
|
|
1043
|
+
- **Documentation** - Check framework references in `references/frameworks/`
|
|
1044
|
+
|
|
1045
|
+
### FAQ
|
|
1046
|
+
|
|
1047
|
+
**Q: Why isn't the skill activating?**
|
|
1048
|
+
A: Ensure the skill folder is in the correct location (`~/.claude/skills/prompt-architect/`) and restart Claude Code.
|
|
1049
|
+
|
|
1050
|
+
**Q: Can I use this without Claude Code?**
|
|
1051
|
+
A: Yes! Include SKILL.md content in your Claude API system prompt.
|
|
1052
|
+
|
|
1053
|
+
**Q: Which framework should I use?**
|
|
1054
|
+
A: The skill will recommend one, but check the Framework Selection Guide above.
|
|
1055
|
+
|
|
1056
|
+
**Q: Can I add my own framework?**
|
|
1057
|
+
A: Yes! See the Contributing section for guidelines.
|
|
1058
|
+
|
|
1059
|
+
**Q: Does this work with other LLMs?**
|
|
1060
|
+
A: The frameworks are universal, but the skill is optimized for Claude.
|
|
1061
|
+
|
|
1062
|
+
---
|
|
1063
|
+
|
|
1064
|
+
**Transforming your prompts with research-backed frameworks**
|