@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.
Files changed (76) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +264 -264
  4. package/LICENSE +21 -21
  5. package/README.md +1064 -1184
  6. package/adapters/README.md +75 -267
  7. package/adapters/for-windsurf.md +136 -136
  8. package/adapters/system-prompt.md +243 -243
  9. package/package.json +139 -135
  10. package/scripts/build-skill.js +64 -0
  11. package/scripts/install.js +35 -56
  12. package/scripts/test.js +205 -213
  13. package/scripts/validate-skill.js +350 -350
  14. package/skills/prompt-architect/SKILL.md +331 -331
  15. package/skills/prompt-architect/assets/templates/ape_template.txt +5 -5
  16. package/skills/prompt-architect/assets/templates/bab_template.txt +15 -15
  17. package/skills/prompt-architect/assets/templates/broke_template.txt +15 -15
  18. package/skills/prompt-architect/assets/templates/cai-critique-revise_template.txt +18 -18
  19. package/skills/prompt-architect/assets/templates/care_template.txt +16 -16
  20. package/skills/prompt-architect/assets/templates/chain-of-density_template.txt +46 -46
  21. package/skills/prompt-architect/assets/templates/chain-of-thought_template.txt +49 -49
  22. package/skills/prompt-architect/assets/templates/co-star_template.txt +17 -17
  23. package/skills/prompt-architect/assets/templates/crispe_template.txt +14 -14
  24. package/skills/prompt-architect/assets/templates/ctf_template.txt +15 -15
  25. package/skills/prompt-architect/assets/templates/devils-advocate_template.txt +25 -25
  26. package/skills/prompt-architect/assets/templates/hybrid_template.txt +101 -101
  27. package/skills/prompt-architect/assets/templates/least-to-most_template.txt +16 -16
  28. package/skills/prompt-architect/assets/templates/plan-and-solve_template.txt +7 -7
  29. package/skills/prompt-architect/assets/templates/pre-mortem_template.txt +27 -27
  30. package/skills/prompt-architect/assets/templates/race_template.txt +19 -19
  31. package/skills/prompt-architect/assets/templates/rcot_template.txt +31 -31
  32. package/skills/prompt-architect/assets/templates/react_template.txt +27 -27
  33. package/skills/prompt-architect/assets/templates/reverse-role_template.txt +11 -11
  34. package/skills/prompt-architect/assets/templates/rise-ie_template.txt +23 -23
  35. package/skills/prompt-architect/assets/templates/rise-ix_template.txt +28 -28
  36. package/skills/prompt-architect/assets/templates/risen_template.txt +21 -21
  37. package/skills/prompt-architect/assets/templates/rpef_template.txt +26 -26
  38. package/skills/prompt-architect/assets/templates/rtf_template.txt +13 -13
  39. package/skills/prompt-architect/assets/templates/self-refine_template.txt +16 -16
  40. package/skills/prompt-architect/assets/templates/skeleton-of-thought_template.txt +15 -15
  41. package/skills/prompt-architect/assets/templates/step-back_template.txt +10 -10
  42. package/skills/prompt-architect/assets/templates/tidd-ec_template.txt +45 -45
  43. package/skills/prompt-architect/assets/templates/tree-of-thought_template.txt +30 -30
  44. package/skills/prompt-architect/references/frameworks/ape.md +200 -200
  45. package/skills/prompt-architect/references/frameworks/bab.md +242 -242
  46. package/skills/prompt-architect/references/frameworks/broke.md +242 -242
  47. package/skills/prompt-architect/references/frameworks/cai-critique-revise.md +230 -230
  48. package/skills/prompt-architect/references/frameworks/care.md +235 -235
  49. package/skills/prompt-architect/references/frameworks/chain-of-density.md +479 -479
  50. package/skills/prompt-architect/references/frameworks/chain-of-thought.md +424 -424
  51. package/skills/prompt-architect/references/frameworks/co-star.md +256 -256
  52. package/skills/prompt-architect/references/frameworks/crispe.md +253 -253
  53. package/skills/prompt-architect/references/frameworks/ctf.md +207 -207
  54. package/skills/prompt-architect/references/frameworks/devils-advocate.md +206 -206
  55. package/skills/prompt-architect/references/frameworks/least-to-most.md +226 -226
  56. package/skills/prompt-architect/references/frameworks/plan-and-solve.md +210 -210
  57. package/skills/prompt-architect/references/frameworks/pre-mortem.md +197 -197
  58. package/skills/prompt-architect/references/frameworks/race.md +243 -243
  59. package/skills/prompt-architect/references/frameworks/rcot.md +203 -203
  60. package/skills/prompt-architect/references/frameworks/react.md +304 -304
  61. package/skills/prompt-architect/references/frameworks/reverse-role.md +189 -189
  62. package/skills/prompt-architect/references/frameworks/rise.md +555 -555
  63. package/skills/prompt-architect/references/frameworks/risen.md +297 -297
  64. package/skills/prompt-architect/references/frameworks/rpef.md +195 -195
  65. package/skills/prompt-architect/references/frameworks/rtf.md +358 -358
  66. package/skills/prompt-architect/references/frameworks/self-refine.md +205 -205
  67. package/skills/prompt-architect/references/frameworks/skeleton-of-thought.md +186 -186
  68. package/skills/prompt-architect/references/frameworks/step-back.md +206 -206
  69. package/skills/prompt-architect/references/frameworks/tidd-ec.md +470 -470
  70. package/skills/prompt-architect/references/frameworks/tree-of-thought.md +260 -260
  71. package/skills/prompt-architect/scripts/framework_analyzer.py +807 -807
  72. package/skills/prompt-architect/scripts/prompt_evaluator.py +336 -336
  73. package/adapters/for-cursor.mdc +0 -138
  74. package/adapters/for-gemini-cli.md +0 -70
  75. package/adapters/for-github-copilot.md +0 -141
  76. package/adapters/for-openai-codex-cli.md +0 -158
@@ -1,189 +1,189 @@
1
- # Reverse Role Prompting (AI-Led Interview)
2
-
3
- ## Overview
4
-
5
- Reverse Role Prompting flips the traditional prompting dynamic: instead of you constructing a detailed prompt, you provide a minimal intent statement and the AI interviews you — asking targeted clarifying questions — until it has enough information to execute the task well. This is the framework for when you know what you want but struggle to articulate all the details needed for a good prompt.
6
-
7
- **Research basis:** Widely circulated as "reverse prompting" in practitioner communities (2023–2024). Formalized academically as **FATA** (First Ask Then Answer), arXiv 2508.08308, August 2025 — showing ~40% improvement over standard prompting. Related to **Socratic Prompting** (Chang et al., arXiv 2303.08769, EMNLP 2023/NAACL 2024).
8
-
9
- ## When to Use
10
-
11
- - You know roughly what you need but struggle to write a detailed prompt
12
- - The task is complex and requirements aren't fully defined upfront
13
- - You want the AI to surface considerations you haven't thought of
14
- - You're a non-expert user in an unfamiliar domain
15
- - You want the AI to generate the full prompt for you from the interview
16
-
17
- ## Components
18
-
19
- ### Intent Statement
20
- **Purpose:** Your minimal starting point — what you want to achieve in 1-2 sentences. Intentionally brief; the AI will fill in the gaps through questions.
21
-
22
- ### Interview Trigger
23
- **Purpose:** The instruction that activates the AI-led interview mode.
24
-
25
- **Core triggers:**
26
- - Minimal: *"Before responding, ask me all the questions you need to give me the best possible answer."*
27
- - Structured: *"Interview me with sequential questions to understand my context, constraints, and goals. Only [start the task] once confident you have enough information."*
28
- - Expert mode: *"You are an expert in [X]. Before beginning, conduct a discovery interview to understand my specific situation. Ask one question at a time."*
29
-
30
- ### Domain Scope
31
- **Purpose:** Optionally specify the domain of expertise the AI should bring to the interview. This shapes the quality and relevance of its questions.
32
-
33
- ### Interview Mode
34
- **Purpose:** Single-batch (FATA: all questions at once) vs. conversational (one question at a time). FATA is faster; conversational is more natural.
35
-
36
- ### Synthesis Instruction (optional)
37
- **Purpose:** After the interview, instruct the AI to either (a) execute the task directly, or (b) first produce a written prompt you can reuse.
38
-
39
- ## Template Structure
40
-
41
- ### Minimal Version
42
- ```
43
- [Your 1-2 sentence intent statement]
44
-
45
- Before responding, ask me all the questions you need to give me the
46
- best possible answer. Then, once I've answered, [execute the task / generate the full prompt].
47
- ```
48
-
49
- ### Structured Expert Version
50
- ```
51
- You are an expert [domain] consultant.
52
-
53
- My goal: [1-2 sentence intent]
54
-
55
- Before you begin, interview me to understand my specific context,
56
- constraints, goals, and any relevant background. Ask your questions
57
- [one at a time / all at once]. Only proceed with [the task] once you
58
- are confident you have everything you need.
59
-
60
- After the interview: [execute directly / write a full structured prompt I can reuse]
61
- ```
62
-
63
- ### Two-Stage Version (Interview → Prompt Generation)
64
- ```
65
- STAGE 1 — INTERVIEW:
66
- You are an expert prompt engineer and [domain expert].
67
- I want to [intent]. Before doing anything, interview me to gather all
68
- the information needed to create an excellent prompt for this task.
69
- Ask me [5-10] targeted questions covering: [specific dimensions relevant to task].
70
-
71
- STAGE 2 — PROMPT GENERATION:
72
- After I answer, synthesize my responses into a well-structured prompt
73
- using the most appropriate framework (CO-STAR / RISEN / RACE / etc.).
74
- Show me the prompt before executing it.
75
- ```
76
-
77
- ## Complete Examples
78
-
79
- ### Example 1: Minimal Trigger
80
-
81
- **User intent:**
82
- ```
83
- I want to create a training program for new customer success managers.
84
- Before responding, ask me all the questions you need to give me the
85
- best possible answer.
86
- ```
87
-
88
- **AI interview questions (FATA style):**
89
- ```
90
- 1. What is the typical background of your CSM hires? (e.g., sales background,
91
- support, fresh graduates, industry-specific experience)
92
- 2. What does "trained" look like — what should a new CSM be able to do
93
- independently after completing the program?
94
- 3. How long is the onboarding period, and how much of it is dedicated to
95
- structured training vs. on-the-job learning?
96
- 4. What are the 2-3 biggest mistakes or gaps you currently see in new CSMs
97
- within their first 90 days?
98
- 5. Do you have existing training materials, playbooks, or product documentation
99
- I should build around?
100
- 6. What format should the program take? (e.g., written modules, video, live
101
- sessions, shadowing, quizzes)
102
- 7. Who else is involved in training — manager, buddy, product team?
103
- ```
104
-
105
- ### Example 2: Expert Domain Interview
106
-
107
- ```
108
- You are an expert in B2B SaaS pricing strategy.
109
-
110
- My goal: Help me design a pricing model for our new product launch.
111
-
112
- Before advising, interview me to understand our specific situation.
113
- Ask one question at a time. Cover: business model, customer segments,
114
- competitive landscape, current revenue, and any pricing constraints.
115
- Only advise once you have a full picture.
116
- ```
117
-
118
- ### Example 3: Two-Stage Prompt Builder
119
-
120
- ```
121
- STAGE 1 — INTERVIEW:
122
- You are an expert prompt engineer and technical writer.
123
-
124
- I want to create documentation for a developer API. Before writing
125
- anything, interview me with 6-8 targeted questions covering: the API's
126
- purpose, target developer audience, existing documentation (if any),
127
- format preferences, code example requirements, and any constraints.
128
-
129
- STAGE 2 — PROMPT GENERATION:
130
- After I answer all questions, write a complete structured prompt using
131
- the RISEN or CO-STAR framework that I can use to generate the full
132
- documentation. Show me the prompt and confirm before executing.
133
- ```
134
-
135
- ## Best Use Cases
136
-
137
- 1. **Complex Tasks with Fuzzy Requirements**
138
- - Strategy development
139
- - Training program design
140
- - Product planning
141
-
142
- 2. **Non-Expert Users**
143
- - Domain unfamiliar → AI surfaces the right questions
144
- - Removes the burden of knowing what details to provide
145
-
146
- 3. **Discovery and Scoping**
147
- - Project kickoffs
148
- - Requirements gathering
149
- - Consulting-style engagements
150
-
151
- 4. **Prompt Engineering Assistance**
152
- - Let the AI build the full prompt from an interview
153
- - Combine with any other framework as a pre-step
154
-
155
- 5. **Two-Stage Workflows**
156
- - Stage 1: Interview → Stage 2: Execute with synthesized context
157
-
158
- ## Selection Criteria
159
-
160
- **Choose Reverse Role Prompting when:**
161
- - ✅ Requirements are unclear or underdeveloped
162
- - ✅ You're not sure what details the AI needs
163
- - ✅ You want the AI to surface considerations you haven't thought of
164
- - ✅ Task is complex enough to warrant a scoping conversation
165
- - ✅ You want a reusable prompt generated from the interview
166
-
167
- **Avoid when:**
168
- - ❌ Requirements are clear → write the prompt directly, or use RPEF to recover one
169
- - ❌ Simple, well-defined task → use APE, RTF, or CTF
170
- - ❌ Time-sensitive → the interview adds a turn
171
-
172
- ## FATA vs. Conversational Interview
173
-
174
- | | FATA (All Questions at Once) | Conversational (One at a Time) |
175
- |---|---|---|
176
- | Speed | Faster (one extra turn) | Slower (one turn per question) |
177
- | Feel | Clinical, structured | Natural, adaptive |
178
- | Depth | Fixed set upfront | Each answer shapes next question |
179
- | Best for | Clear domain, standard questions | Complex tasks with branching requirements |
180
-
181
- ## Quick Reference
182
-
183
- | Component | Purpose |
184
- |-----------|---------|
185
- | Intent Statement | Minimal starting point (1-2 sentences) |
186
- | Interview Trigger | Activates the AI-led questioning mode |
187
- | Domain Scope | Expert lens for the interview |
188
- | Interview Mode | Batch (FATA) vs. conversational |
189
- | Synthesis | Execute directly or generate a reusable prompt |
1
+ # Reverse Role Prompting (AI-Led Interview)
2
+
3
+ ## Overview
4
+
5
+ Reverse Role Prompting flips the traditional prompting dynamic: instead of you constructing a detailed prompt, you provide a minimal intent statement and the AI interviews you — asking targeted clarifying questions — until it has enough information to execute the task well. This is the framework for when you know what you want but struggle to articulate all the details needed for a good prompt.
6
+
7
+ **Research basis:** Widely circulated as "reverse prompting" in practitioner communities (2023–2024). Formalized academically as **FATA** (First Ask Then Answer), arXiv 2508.08308, August 2025 — showing ~40% improvement over standard prompting. Related to **Socratic Prompting** (Chang et al., arXiv 2303.08769, EMNLP 2023/NAACL 2024).
8
+
9
+ ## When to Use
10
+
11
+ - You know roughly what you need but struggle to write a detailed prompt
12
+ - The task is complex and requirements aren't fully defined upfront
13
+ - You want the AI to surface considerations you haven't thought of
14
+ - You're a non-expert user in an unfamiliar domain
15
+ - You want the AI to generate the full prompt for you from the interview
16
+
17
+ ## Components
18
+
19
+ ### Intent Statement
20
+ **Purpose:** Your minimal starting point — what you want to achieve in 1-2 sentences. Intentionally brief; the AI will fill in the gaps through questions.
21
+
22
+ ### Interview Trigger
23
+ **Purpose:** The instruction that activates the AI-led interview mode.
24
+
25
+ **Core triggers:**
26
+ - Minimal: *"Before responding, ask me all the questions you need to give me the best possible answer."*
27
+ - Structured: *"Interview me with sequential questions to understand my context, constraints, and goals. Only [start the task] once confident you have enough information."*
28
+ - Expert mode: *"You are an expert in [X]. Before beginning, conduct a discovery interview to understand my specific situation. Ask one question at a time."*
29
+
30
+ ### Domain Scope
31
+ **Purpose:** Optionally specify the domain of expertise the AI should bring to the interview. This shapes the quality and relevance of its questions.
32
+
33
+ ### Interview Mode
34
+ **Purpose:** Single-batch (FATA: all questions at once) vs. conversational (one question at a time). FATA is faster; conversational is more natural.
35
+
36
+ ### Synthesis Instruction (optional)
37
+ **Purpose:** After the interview, instruct the AI to either (a) execute the task directly, or (b) first produce a written prompt you can reuse.
38
+
39
+ ## Template Structure
40
+
41
+ ### Minimal Version
42
+ ```
43
+ [Your 1-2 sentence intent statement]
44
+
45
+ Before responding, ask me all the questions you need to give me the
46
+ best possible answer. Then, once I've answered, [execute the task / generate the full prompt].
47
+ ```
48
+
49
+ ### Structured Expert Version
50
+ ```
51
+ You are an expert [domain] consultant.
52
+
53
+ My goal: [1-2 sentence intent]
54
+
55
+ Before you begin, interview me to understand my specific context,
56
+ constraints, goals, and any relevant background. Ask your questions
57
+ [one at a time / all at once]. Only proceed with [the task] once you
58
+ are confident you have everything you need.
59
+
60
+ After the interview: [execute directly / write a full structured prompt I can reuse]
61
+ ```
62
+
63
+ ### Two-Stage Version (Interview → Prompt Generation)
64
+ ```
65
+ STAGE 1 — INTERVIEW:
66
+ You are an expert prompt engineer and [domain expert].
67
+ I want to [intent]. Before doing anything, interview me to gather all
68
+ the information needed to create an excellent prompt for this task.
69
+ Ask me [5-10] targeted questions covering: [specific dimensions relevant to task].
70
+
71
+ STAGE 2 — PROMPT GENERATION:
72
+ After I answer, synthesize my responses into a well-structured prompt
73
+ using the most appropriate framework (CO-STAR / RISEN / RACE / etc.).
74
+ Show me the prompt before executing it.
75
+ ```
76
+
77
+ ## Complete Examples
78
+
79
+ ### Example 1: Minimal Trigger
80
+
81
+ **User intent:**
82
+ ```
83
+ I want to create a training program for new customer success managers.
84
+ Before responding, ask me all the questions you need to give me the
85
+ best possible answer.
86
+ ```
87
+
88
+ **AI interview questions (FATA style):**
89
+ ```
90
+ 1. What is the typical background of your CSM hires? (e.g., sales background,
91
+ support, fresh graduates, industry-specific experience)
92
+ 2. What does "trained" look like — what should a new CSM be able to do
93
+ independently after completing the program?
94
+ 3. How long is the onboarding period, and how much of it is dedicated to
95
+ structured training vs. on-the-job learning?
96
+ 4. What are the 2-3 biggest mistakes or gaps you currently see in new CSMs
97
+ within their first 90 days?
98
+ 5. Do you have existing training materials, playbooks, or product documentation
99
+ I should build around?
100
+ 6. What format should the program take? (e.g., written modules, video, live
101
+ sessions, shadowing, quizzes)
102
+ 7. Who else is involved in training — manager, buddy, product team?
103
+ ```
104
+
105
+ ### Example 2: Expert Domain Interview
106
+
107
+ ```
108
+ You are an expert in B2B SaaS pricing strategy.
109
+
110
+ My goal: Help me design a pricing model for our new product launch.
111
+
112
+ Before advising, interview me to understand our specific situation.
113
+ Ask one question at a time. Cover: business model, customer segments,
114
+ competitive landscape, current revenue, and any pricing constraints.
115
+ Only advise once you have a full picture.
116
+ ```
117
+
118
+ ### Example 3: Two-Stage Prompt Builder
119
+
120
+ ```
121
+ STAGE 1 — INTERVIEW:
122
+ You are an expert prompt engineer and technical writer.
123
+
124
+ I want to create documentation for a developer API. Before writing
125
+ anything, interview me with 6-8 targeted questions covering: the API's
126
+ purpose, target developer audience, existing documentation (if any),
127
+ format preferences, code example requirements, and any constraints.
128
+
129
+ STAGE 2 — PROMPT GENERATION:
130
+ After I answer all questions, write a complete structured prompt using
131
+ the RISEN or CO-STAR framework that I can use to generate the full
132
+ documentation. Show me the prompt and confirm before executing.
133
+ ```
134
+
135
+ ## Best Use Cases
136
+
137
+ 1. **Complex Tasks with Fuzzy Requirements**
138
+ - Strategy development
139
+ - Training program design
140
+ - Product planning
141
+
142
+ 2. **Non-Expert Users**
143
+ - Domain unfamiliar → AI surfaces the right questions
144
+ - Removes the burden of knowing what details to provide
145
+
146
+ 3. **Discovery and Scoping**
147
+ - Project kickoffs
148
+ - Requirements gathering
149
+ - Consulting-style engagements
150
+
151
+ 4. **Prompt Engineering Assistance**
152
+ - Let the AI build the full prompt from an interview
153
+ - Combine with any other framework as a pre-step
154
+
155
+ 5. **Two-Stage Workflows**
156
+ - Stage 1: Interview → Stage 2: Execute with synthesized context
157
+
158
+ ## Selection Criteria
159
+
160
+ **Choose Reverse Role Prompting when:**
161
+ - ✅ Requirements are unclear or underdeveloped
162
+ - ✅ You're not sure what details the AI needs
163
+ - ✅ You want the AI to surface considerations you haven't thought of
164
+ - ✅ Task is complex enough to warrant a scoping conversation
165
+ - ✅ You want a reusable prompt generated from the interview
166
+
167
+ **Avoid when:**
168
+ - ❌ Requirements are clear → write the prompt directly, or use RPEF to recover one
169
+ - ❌ Simple, well-defined task → use APE, RTF, or CTF
170
+ - ❌ Time-sensitive → the interview adds a turn
171
+
172
+ ## FATA vs. Conversational Interview
173
+
174
+ | | FATA (All Questions at Once) | Conversational (One at a Time) |
175
+ |---|---|---|
176
+ | Speed | Faster (one extra turn) | Slower (one turn per question) |
177
+ | Feel | Clinical, structured | Natural, adaptive |
178
+ | Depth | Fixed set upfront | Each answer shapes next question |
179
+ | Best for | Clear domain, standard questions | Complex tasks with branching requirements |
180
+
181
+ ## Quick Reference
182
+
183
+ | Component | Purpose |
184
+ |-----------|---------|
185
+ | Intent Statement | Minimal starting point (1-2 sentences) |
186
+ | Interview Trigger | Activates the AI-led questioning mode |
187
+ | Domain Scope | Expert lens for the interview |
188
+ | Interview Mode | Batch (FATA) vs. conversational |
189
+ | Synthesis | Execute directly or generate a reusable prompt |