@ckelsoe/prompt-architect 3.0.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.
Files changed (76) hide show
  1. package/.claude-plugin/marketplace.json +20 -0
  2. package/.claude-plugin/plugin.json +18 -0
  3. package/CHANGELOG.md +264 -0
  4. package/LICENSE +21 -0
  5. package/MIGRATION.md +66 -0
  6. package/README.md +1184 -0
  7. package/adapters/README.md +267 -0
  8. package/adapters/for-cursor.mdc +138 -0
  9. package/adapters/for-gemini-cli.md +70 -0
  10. package/adapters/for-github-copilot.md +141 -0
  11. package/adapters/for-openai-codex-cli.md +158 -0
  12. package/adapters/for-windsurf.md +136 -0
  13. package/adapters/system-prompt.md +243 -0
  14. package/package.json +135 -0
  15. package/scripts/install.js +490 -0
  16. package/scripts/test.js +213 -0
  17. package/scripts/validate-skill.js +350 -0
  18. package/skills/prompt-architect/SKILL.md +331 -0
  19. package/skills/prompt-architect/assets/templates/ape_template.txt +5 -0
  20. package/skills/prompt-architect/assets/templates/bab_template.txt +15 -0
  21. package/skills/prompt-architect/assets/templates/broke_template.txt +15 -0
  22. package/skills/prompt-architect/assets/templates/cai-critique-revise_template.txt +18 -0
  23. package/skills/prompt-architect/assets/templates/care_template.txt +16 -0
  24. package/skills/prompt-architect/assets/templates/chain-of-density_template.txt +46 -0
  25. package/skills/prompt-architect/assets/templates/chain-of-thought_template.txt +49 -0
  26. package/skills/prompt-architect/assets/templates/co-star_template.txt +17 -0
  27. package/skills/prompt-architect/assets/templates/crispe_template.txt +14 -0
  28. package/skills/prompt-architect/assets/templates/ctf_template.txt +15 -0
  29. package/skills/prompt-architect/assets/templates/devils-advocate_template.txt +25 -0
  30. package/skills/prompt-architect/assets/templates/hybrid_template.txt +101 -0
  31. package/skills/prompt-architect/assets/templates/least-to-most_template.txt +16 -0
  32. package/skills/prompt-architect/assets/templates/plan-and-solve_template.txt +7 -0
  33. package/skills/prompt-architect/assets/templates/pre-mortem_template.txt +27 -0
  34. package/skills/prompt-architect/assets/templates/race_template.txt +19 -0
  35. package/skills/prompt-architect/assets/templates/rcot_template.txt +31 -0
  36. package/skills/prompt-architect/assets/templates/react_template.txt +27 -0
  37. package/skills/prompt-architect/assets/templates/reverse-role_template.txt +11 -0
  38. package/skills/prompt-architect/assets/templates/rise-ie_template.txt +23 -0
  39. package/skills/prompt-architect/assets/templates/rise-ix_template.txt +28 -0
  40. package/skills/prompt-architect/assets/templates/risen_template.txt +21 -0
  41. package/skills/prompt-architect/assets/templates/rpef_template.txt +26 -0
  42. package/skills/prompt-architect/assets/templates/rtf_template.txt +13 -0
  43. package/skills/prompt-architect/assets/templates/self-refine_template.txt +16 -0
  44. package/skills/prompt-architect/assets/templates/skeleton-of-thought_template.txt +15 -0
  45. package/skills/prompt-architect/assets/templates/step-back_template.txt +10 -0
  46. package/skills/prompt-architect/assets/templates/tidd-ec_template.txt +45 -0
  47. package/skills/prompt-architect/assets/templates/tree-of-thought_template.txt +30 -0
  48. package/skills/prompt-architect/references/frameworks/ape.md +200 -0
  49. package/skills/prompt-architect/references/frameworks/bab.md +242 -0
  50. package/skills/prompt-architect/references/frameworks/broke.md +242 -0
  51. package/skills/prompt-architect/references/frameworks/cai-critique-revise.md +230 -0
  52. package/skills/prompt-architect/references/frameworks/care.md +235 -0
  53. package/skills/prompt-architect/references/frameworks/chain-of-density.md +479 -0
  54. package/skills/prompt-architect/references/frameworks/chain-of-thought.md +424 -0
  55. package/skills/prompt-architect/references/frameworks/co-star.md +256 -0
  56. package/skills/prompt-architect/references/frameworks/crispe.md +253 -0
  57. package/skills/prompt-architect/references/frameworks/ctf.md +207 -0
  58. package/skills/prompt-architect/references/frameworks/devils-advocate.md +206 -0
  59. package/skills/prompt-architect/references/frameworks/least-to-most.md +226 -0
  60. package/skills/prompt-architect/references/frameworks/plan-and-solve.md +210 -0
  61. package/skills/prompt-architect/references/frameworks/pre-mortem.md +197 -0
  62. package/skills/prompt-architect/references/frameworks/race.md +243 -0
  63. package/skills/prompt-architect/references/frameworks/rcot.md +203 -0
  64. package/skills/prompt-architect/references/frameworks/react.md +304 -0
  65. package/skills/prompt-architect/references/frameworks/reverse-role.md +189 -0
  66. package/skills/prompt-architect/references/frameworks/rise.md +555 -0
  67. package/skills/prompt-architect/references/frameworks/risen.md +297 -0
  68. package/skills/prompt-architect/references/frameworks/rpef.md +195 -0
  69. package/skills/prompt-architect/references/frameworks/rtf.md +358 -0
  70. package/skills/prompt-architect/references/frameworks/self-refine.md +205 -0
  71. package/skills/prompt-architect/references/frameworks/skeleton-of-thought.md +186 -0
  72. package/skills/prompt-architect/references/frameworks/step-back.md +206 -0
  73. package/skills/prompt-architect/references/frameworks/tidd-ec.md +470 -0
  74. package/skills/prompt-architect/references/frameworks/tree-of-thought.md +260 -0
  75. package/skills/prompt-architect/scripts/framework_analyzer.py +807 -0
  76. package/skills/prompt-architect/scripts/prompt_evaluator.py +336 -0
@@ -0,0 +1,297 @@
1
+ # RISEN Framework
2
+
3
+ ## Overview
4
+
5
+ RISEN is a methodology-focused framework that emphasizes process, steps, and boundaries. It's ideal for complex multi-step tasks where following a specific procedure matters, and where defining what NOT to do is as important as what to do.
6
+
7
+ ## Components
8
+
9
+ ### R - Role
10
+ **Purpose:** Define the persona, expertise level, or perspective Claude should adopt.
11
+
12
+ **Questions to Ask:**
13
+ - What expertise should be demonstrated?
14
+ - What perspective is needed?
15
+ - Should Claude adopt a specific persona?
16
+ - What level of knowledge should be shown?
17
+
18
+ **Examples:**
19
+ - "Act as a senior software architect..."
20
+ - "Take the perspective of a security auditor..."
21
+ - "You are a patient teacher explaining to beginners..."
22
+
23
+ ### I - Instructions
24
+ **Purpose:** Provide high-level guidance, principles, and overarching direction.
25
+
26
+ **Questions to Ask:**
27
+ - What are the governing principles?
28
+ - What approach should be taken?
29
+ - Are there important guidelines to follow?
30
+ - What methodology should guide the work?
31
+
32
+ **Examples:**
33
+ - "Follow test-driven development principles..."
34
+ - "Prioritize security over convenience..."
35
+ - "Use clear, simple language throughout..."
36
+
37
+ ### S - Steps
38
+ **Purpose:** Break down the task into detailed, sequential actions.
39
+
40
+ **Questions to Ask:**
41
+ - What's the exact sequence of actions?
42
+ - What substeps are involved?
43
+ - Are there dependencies between steps?
44
+ - What should happen in what order?
45
+
46
+ **Examples:**
47
+ - "1. Analyze requirements, 2. Design architecture, 3. Implement core..."
48
+ - "First validate input, then process, finally output..."
49
+
50
+ ### E - End Goal
51
+ **Purpose:** Define success criteria and the final desired outcome.
52
+
53
+ **Questions to Ask:**
54
+ - What does success look like?
55
+ - What should be true when complete?
56
+ - How will we know it's done correctly?
57
+ - What are the acceptance criteria?
58
+
59
+ **Examples:**
60
+ - "A fully tested API with 95%+ code coverage..."
61
+ - "A comprehensive report that stakeholders can act on..."
62
+ - "Working code that passes all integration tests..."
63
+
64
+ ### N - Narrowing
65
+ **Purpose:** Set constraints, boundaries, and explicitly state what NOT to do.
66
+
67
+ **Questions to Ask:**
68
+ - What should be avoided?
69
+ - What's out of scope?
70
+ - What constraints exist?
71
+ - What approaches should NOT be used?
72
+ - What common mistakes to avoid?
73
+
74
+ **Examples:**
75
+ - "Do NOT use deprecated libraries..."
76
+ - "Avoid premature optimization..."
77
+ - "Stay within the current architecture; don't redesign..."
78
+
79
+ ## Template Structure
80
+
81
+ ```
82
+ ROLE:
83
+ [Expertise, perspective, or persona to adopt]
84
+
85
+ INSTRUCTIONS:
86
+ [High-level principles and guidance]
87
+
88
+ STEPS:
89
+ 1. [First action]
90
+ 2. [Second action]
91
+ 3. [Third action]
92
+ [Continue with detailed sequence]
93
+
94
+ END GOAL:
95
+ [Success criteria and final outcome]
96
+
97
+ NARROWING:
98
+ - Do NOT: [Constraint 1]
99
+ - Avoid: [Constraint 2]
100
+ - Out of scope: [Constraint 3]
101
+ - Stay within: [Boundary]
102
+ ```
103
+
104
+ ## Complete Example
105
+
106
+ ### Before RISEN:
107
+ "Help me review this codebase."
108
+
109
+ ### After RISEN:
110
+ ```
111
+ ROLE:
112
+ You are a senior code reviewer with expertise in Python and system security. You have 10+ years of experience identifying vulnerabilities and architectural issues.
113
+
114
+ INSTRUCTIONS:
115
+ Conduct a thorough security-focused code review following OWASP guidelines. Prioritize identifying security vulnerabilities over style issues. Consider both the code itself and its architectural implications.
116
+
117
+ STEPS:
118
+ 1. Scan for common security vulnerabilities (SQL injection, XSS, auth issues)
119
+ 2. Review authentication and authorization logic
120
+ 3. Examine data validation and sanitization
121
+ 4. Check for sensitive data exposure
122
+ 5. Analyze third-party dependencies for known vulnerabilities
123
+ 6. Assess error handling and logging practices
124
+ 7. Evaluate API security measures
125
+ 8. Review configuration and secrets management
126
+ 9. Document findings with severity ratings
127
+ 10. Provide remediation recommendations
128
+
129
+ END GOAL:
130
+ A comprehensive security assessment report that:
131
+ - Categorizes vulnerabilities by severity (Critical, High, Medium, Low)
132
+ - Includes specific code references with line numbers
133
+ - Provides concrete remediation steps for each issue
134
+ - Prioritizes fixes by risk and effort
135
+ - Can be shared with development team for action
136
+
137
+ NARROWING:
138
+ - Do NOT focus on code style or formatting issues
139
+ - Do NOT suggest complete rewrites; focus on targeted fixes
140
+ - Avoid generic security advice; be specific to this codebase
141
+ - Do NOT include theoretical vulnerabilities that don't apply
142
+ - Stay within Python ecosystem; don't suggest language changes
143
+ - Do NOT redesign the architecture; work within current structure
144
+ ```
145
+
146
+ ## Best Use Cases
147
+
148
+ 1. **Development Tasks**
149
+ - Code generation with specific methodology
150
+ - Refactoring with constraints
151
+ - Testing with particular approach
152
+
153
+ 2. **Analysis Projects**
154
+ - Data analysis with defined process
155
+ - Audits following standards
156
+ - Research with methodology
157
+
158
+ 3. **Process Documentation**
159
+ - Creating procedures
160
+ - Workflow documentation
161
+ - Standard operating procedures
162
+
163
+ 4. **Complex Multi-Step Tasks**
164
+ - Tasks with clear sequential dependencies
165
+ - Projects with important boundaries
166
+ - Work with specific methodology requirements
167
+
168
+ ## Selection Criteria
169
+
170
+ **Choose RISEN when:**
171
+ - ✅ Task has clear sequential steps
172
+ - ✅ Process needs to be followed precisely
173
+ - ✅ Multiple approaches exist but one is preferred
174
+ - ✅ Important to define what NOT to do
175
+ - ✅ Role/expertise context matters
176
+ - ✅ Methodology or principles are important
177
+ - ✅ Success criteria need explicit definition
178
+
179
+ **Avoid RISEN when:**
180
+ - ❌ Task is simple and doesn't need steps
181
+ - ❌ No specific process required
182
+ - ❌ Boundaries and constraints don't matter
183
+ - ❌ Any approach is acceptable
184
+ - ❌ Quick, simple transformation needed
185
+
186
+ ## Common Mistakes
187
+
188
+ 1. **Steps Too High-Level**
189
+ - Be specific and actionable
190
+ - Break down complex steps into substeps
191
+ - Include decision points
192
+
193
+ 2. **Narrowing Too Restrictive**
194
+ - Don't over-constrain unnecessarily
195
+ - Focus on important boundaries
196
+ - Explain why constraints exist
197
+
198
+ 3. **Missing Dependencies**
199
+ - Note when steps depend on each other
200
+ - Clarify what needs to complete first
201
+ - Mention parallel vs. sequential
202
+
203
+ 4. **Vague End Goal**
204
+ - Make success criteria measurable
205
+ - Be specific about deliverables
206
+ - Include quality standards
207
+
208
+ ## Variations and Combinations
209
+
210
+ ### RISEN + CO-STAR
211
+ For procedural tasks with audience considerations:
212
+ ```
213
+ ROLE: [From RISEN]
214
+ CONTEXT: [From CO-STAR]
215
+ INSTRUCTIONS: [From RISEN]
216
+ STEPS: [From RISEN]
217
+ END GOAL: [From RISEN]
218
+ AUDIENCE: [From CO-STAR]
219
+ NARROWING: [From RISEN]
220
+ ```
221
+
222
+ ### RISEN + Chain of Thought
223
+ For complex reasoning with process:
224
+ ```
225
+ [Standard RISEN structure]
226
+
227
+ Within each step, add:
228
+ REASONING: Think through why and how for this step
229
+ ```
230
+
231
+ ### Simplified RISEN (RISE)
232
+ When narrowing isn't critical:
233
+ ```
234
+ ROLE:
235
+ INPUT:
236
+ STEPS:
237
+ EXPECTATION:
238
+ ```
239
+
240
+ ## Quick Reference
241
+
242
+ | Component | Focus | Key Question |
243
+ |-----------|-------|--------------|
244
+ | Role | Expertise | "What perspective is needed?" |
245
+ | Instructions | Principles | "What approach should guide this?" |
246
+ | Steps | Process | "What's the exact sequence?" |
247
+ | End Goal | Success | "What defines completion?" |
248
+ | Narrowing | Boundaries | "What should be avoided?" |
249
+
250
+ ## Step Design Best Practices
251
+
252
+ ### Good Steps:
253
+ ```
254
+ 1. Validate input data against schema (check types, ranges, required fields)
255
+ 2. Sanitize user input (escape HTML, strip dangerous chars)
256
+ 3. Query database with parameterized statements
257
+ 4. Transform results into response format
258
+ 5. Log operation with timestamp and user ID
259
+ ```
260
+
261
+ ### Poor Steps:
262
+ ```
263
+ 1. Get the data
264
+ 2. Process it
265
+ 3. Return results
266
+ ```
267
+
268
+ ### Effective Narrowing:
269
+ ```
270
+ NARROWING:
271
+ - Do NOT trust user input without validation
272
+ - Avoid loading entire dataset into memory (use pagination)
273
+ - Do NOT use string concatenation for SQL queries
274
+ - Stay within 200ms response time target
275
+ - Avoid external API calls in this phase
276
+ ```
277
+
278
+ ### Ineffective Narrowing:
279
+ ```
280
+ NARROWING:
281
+ - Be careful
282
+ - Don't make mistakes
283
+ ```
284
+
285
+ ## Assessment Checklist
286
+
287
+ When applying RISEN, verify:
288
+ - [ ] Role defines clear expertise or perspective
289
+ - [ ] Instructions provide guiding principles
290
+ - [ ] Steps are specific, actionable, and sequential
291
+ - [ ] Dependencies between steps are noted
292
+ - [ ] End goal has measurable success criteria
293
+ - [ ] Narrowing identifies important constraints
294
+ - [ ] Narrowing explains why boundaries exist
295
+ - [ ] All steps contribute to end goal
296
+ - [ ] Nothing in narrowing contradicts instructions
297
+ - [ ] Process is feasible and practical
@@ -0,0 +1,195 @@
1
+ # Reverse Prompt Engineering Framework (RPEF)
2
+
3
+ ## Overview
4
+
5
+ Reverse Prompt Engineering (RPEF) inverts the normal prompt-to-output direction. Instead of writing a prompt to get a desired output, you provide an existing output (or input+output pair) and ask the model to reconstruct the reusable prompt template that would consistently produce it. This is the framework for learning from outputs you already like — recovering what made them work.
6
+
7
+ **Research basis:** Li & Klabjan, "Reverse Prompt Engineering" (arXiv 2411.06729, EMNLP 2025). Practitioner template formalized by inaiwetrust.com as RPEF.
8
+
9
+ ## When to Use RPEF
10
+
11
+ - You have an output you love and want to reproduce it reliably
12
+ - You want to build a reusable template from a successful one-time result
13
+ - You want to understand why a prompt worked
14
+ - You're trying to approximate a system prompt from observed AI behavior
15
+ - You want to generalize from a specific example to a repeatable pattern
16
+
17
+ ## Components
18
+
19
+ ### Input Sample (optional but powerful)
20
+ **Purpose:** If the output was generated from specific input data, include it. The model uses the relationship between input and output to infer transformation rules and prompt logic.
21
+
22
+ ### Output Sample (required)
23
+ **Purpose:** The existing output you want to reverse-engineer. This is the primary source of truth — what you want to be able to reproduce.
24
+
25
+ ### Analysis Instruction
26
+ **Purpose:** Directs the model to analyze the output for its implicit prompt properties: tone, structure, reasoning style, constraints, format, level of detail, persona, and assumptions.
27
+
28
+ ### Confidence Threshold (optional)
29
+ **Purpose:** Instructs the model to only generate the recovered prompt when confident enough. Default: 80-90%.
30
+
31
+ ### Generalization Directive
32
+ **Purpose:** Specifies whether the recovered prompt should be a specific single-use template or a generalized meta-prompt with fill-in placeholders.
33
+
34
+ ## Template Structure
35
+
36
+ ```
37
+ You are an expert Prompt Engineer performing reverse prompt engineering.
38
+
39
+ TASK:
40
+ Analyze the following [input and] output. Reconstruct the prompt that would
41
+ consistently produce this type of output. Your recovered prompt should be
42
+ reusable — replace specific details with clearly marked [PLACEHOLDER] variables.
43
+
44
+ [INPUT DATA (if applicable):]
45
+ [Paste input here, or omit if output-only]
46
+
47
+ OUTPUT SAMPLE:
48
+ [Paste the output you want to reverse-engineer]
49
+
50
+ ANALYSIS INSTRUCTIONS:
51
+ Examine the output for:
52
+ - Implied role or persona (who generated this?)
53
+ - Tone and voice (formal, casual, technical, etc.)
54
+ - Structural patterns (how is it organized?)
55
+ - Level of detail and scope
56
+ - Any implicit constraints (what did it not do?)
57
+ - Format conventions (length, sections, bullet style, etc.)
58
+ - Reasoning style (step-by-step, direct, narrative?)
59
+
60
+ RECOVERED PROMPT:
61
+ Generate a reusable prompt template that would reliably reproduce this
62
+ type of output. Use [PLACEHOLDER] notation for variable elements.
63
+ Only proceed when at least 80% confident in the reconstruction.
64
+ ```
65
+
66
+ ## Complete Examples
67
+
68
+ ### Example 1: Recovering a Writing Style
69
+
70
+ **Scenario:** You got a great product description once and want to reproduce that tone.
71
+
72
+ ```
73
+ You are an expert Prompt Engineer performing reverse prompt engineering.
74
+
75
+ TASK:
76
+ Analyze the following product description. Reconstruct the prompt that
77
+ would consistently produce this style of writing for other products.
78
+
79
+ OUTPUT SAMPLE:
80
+ "Mira is the meeting companion that thinks ahead. While you're present
81
+ in the conversation, Mira is quietly capturing every decision, action
82
+ item, and insight — then turning them into a clean summary the moment
83
+ you close your laptop. No more frantic note-taking. No more 'wait, what
84
+ did we decide?' Just clarity, automatically."
85
+
86
+ ANALYSIS INSTRUCTIONS:
87
+ Examine for: implied persona, tone, structure, what it does vs. doesn't
88
+ say, sentence length patterns, opening hook strategy, implicit audience.
89
+
90
+ RECOVERED PROMPT:
91
+ Generate a reusable template for writing product descriptions in this style.
92
+ ```
93
+
94
+ **Recovered prompt output:**
95
+ ```
96
+ ROLE: You are a B2B SaaS copywriter who specializes in product descriptions
97
+ for productivity tools.
98
+
99
+ TASK: Write a product description for [PRODUCT NAME], a tool that [CORE FUNCTION].
100
+
101
+ STYLE RULES:
102
+ - Open with the product name as subject in a short declarative sentence
103
+ - Use "while you [user action], [product] is [working for you]" structure for the value prop
104
+ - Contrast the painful before-state with the effortless after-state
105
+ - No feature lists — benefits only, in plain language
106
+ - End with a 3-word payoff phrase: "[adjective], [adverb]."
107
+ - Target: 3-4 sentences, under 80 words
108
+ - Voice: confident, warm, smart — like a trusted colleague, not a marketer
109
+ ```
110
+
111
+ ### Example 2: Recovering an Analysis Format
112
+
113
+ **Scenario:** A colleague produced a competitive analysis you want to replicate.
114
+
115
+ ```
116
+ You are an expert Prompt Engineer performing reverse prompt engineering.
117
+
118
+ TASK:
119
+ Analyze the following competitive analysis excerpt. Reconstruct the prompt
120
+ template that produced this format and analytical approach.
121
+
122
+ INPUT DATA:
123
+ Companies to compare: Notion vs. Confluence vs. Linear
124
+ Use case: Engineering team wiki and documentation
125
+
126
+ OUTPUT SAMPLE:
127
+ [Paste the analysis here]
128
+
129
+ ANALYSIS INSTRUCTIONS:
130
+ Identify: comparison dimensions, how trade-offs are framed, what's
131
+ prioritized, how conclusions are drawn, what data is cited vs. inferred.
132
+
133
+ RECOVERED PROMPT:
134
+ Template should work for any set of tools in any category.
135
+ ```
136
+
137
+ ### Example 3: Output-Only Recovery
138
+
139
+ **Scenario:** You have a great email you wrote with AI assistance but can't find the original prompt.
140
+
141
+ ```
142
+ You are an expert Prompt Engineer.
143
+
144
+ TASK:
145
+ I have an email I'm happy with but lost the prompt that generated it.
146
+ Reverse-engineer a reusable prompt from the email so I can produce
147
+ similar emails for other clients.
148
+
149
+ OUTPUT SAMPLE:
150
+ [Paste the email]
151
+
152
+ RECOVERED PROMPT:
153
+ Create a template with [CLIENT NAME], [SITUATION], and [SPECIFIC REQUEST]
154
+ as placeholder variables. Capture the tone, structure, and approach precisely.
155
+ ```
156
+
157
+ ## Best Use Cases
158
+
159
+ 1. **Template Recovery**
160
+ - Lost prompts that worked well
161
+ - Successful AI outputs from colleagues or tools
162
+
163
+ 2. **Style Codification**
164
+ - Turn a one-off great result into a repeatable standard
165
+ - Establish brand voice templates from approved examples
166
+
167
+ 3. **System Prompt Approximation**
168
+ - Understanding what instructions produce specific AI behaviors
169
+ - Debugging AI product behavior
170
+
171
+ 4. **Learning from Excellence**
172
+ - Study what makes a well-structured prompt by working backwards
173
+ - Train yourself in prompt engineering by reverse-engineering results
174
+
175
+ ## Selection Criteria
176
+
177
+ **Choose RPEF when:**
178
+ - ✅ You have an existing output you want to reproduce or templatize
179
+ - ✅ A prompt worked once but you can't replicate it
180
+ - ✅ You want to extract generalizable rules from specific examples
181
+ - ✅ You want to understand *why* an output was good
182
+
183
+ **Avoid RPEF when:**
184
+ - ❌ You're creating from scratch (no existing output) → use another framework
185
+ - ❌ You want to improve an output → use Self-Refine or BAB
186
+ - ❌ You need requirements gathered first → use Reverse Role Prompting
187
+
188
+ ## Quick Reference
189
+
190
+ | Component | Purpose |
191
+ |-----------|---------|
192
+ | Input Sample | The input data (if any) that produced the output |
193
+ | Output Sample | The output to reverse-engineer (required) |
194
+ | Analysis Instructions | What dimensions to examine |
195
+ | Recovered Prompt | Reusable template with [PLACEHOLDER] variables |