@ckelsoe/prompt-architect 3.0.2 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +264 -264
- package/LICENSE +21 -21
- package/README.md +1064 -1184
- package/adapters/README.md +75 -267
- package/adapters/for-windsurf.md +136 -136
- package/adapters/system-prompt.md +243 -243
- package/package.json +139 -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 +331 -331
- package/skills/prompt-architect/assets/templates/ape_template.txt +5 -5
- package/skills/prompt-architect/assets/templates/bab_template.txt +15 -15
- package/skills/prompt-architect/assets/templates/broke_template.txt +15 -15
- package/skills/prompt-architect/assets/templates/cai-critique-revise_template.txt +18 -18
- package/skills/prompt-architect/assets/templates/care_template.txt +16 -16
- package/skills/prompt-architect/assets/templates/chain-of-density_template.txt +46 -46
- package/skills/prompt-architect/assets/templates/chain-of-thought_template.txt +49 -49
- package/skills/prompt-architect/assets/templates/co-star_template.txt +17 -17
- package/skills/prompt-architect/assets/templates/crispe_template.txt +14 -14
- package/skills/prompt-architect/assets/templates/ctf_template.txt +15 -15
- package/skills/prompt-architect/assets/templates/devils-advocate_template.txt +25 -25
- package/skills/prompt-architect/assets/templates/hybrid_template.txt +101 -101
- package/skills/prompt-architect/assets/templates/least-to-most_template.txt +16 -16
- package/skills/prompt-architect/assets/templates/plan-and-solve_template.txt +7 -7
- package/skills/prompt-architect/assets/templates/pre-mortem_template.txt +27 -27
- package/skills/prompt-architect/assets/templates/race_template.txt +19 -19
- package/skills/prompt-architect/assets/templates/rcot_template.txt +31 -31
- package/skills/prompt-architect/assets/templates/react_template.txt +27 -27
- package/skills/prompt-architect/assets/templates/reverse-role_template.txt +11 -11
- package/skills/prompt-architect/assets/templates/rise-ie_template.txt +23 -23
- package/skills/prompt-architect/assets/templates/rise-ix_template.txt +28 -28
- package/skills/prompt-architect/assets/templates/risen_template.txt +21 -21
- package/skills/prompt-architect/assets/templates/rpef_template.txt +26 -26
- package/skills/prompt-architect/assets/templates/rtf_template.txt +13 -13
- package/skills/prompt-architect/assets/templates/self-refine_template.txt +16 -16
- package/skills/prompt-architect/assets/templates/skeleton-of-thought_template.txt +15 -15
- package/skills/prompt-architect/assets/templates/step-back_template.txt +10 -10
- package/skills/prompt-architect/assets/templates/tidd-ec_template.txt +45 -45
- package/skills/prompt-architect/assets/templates/tree-of-thought_template.txt +30 -30
- package/skills/prompt-architect/references/frameworks/ape.md +200 -200
- package/skills/prompt-architect/references/frameworks/bab.md +242 -242
- package/skills/prompt-architect/references/frameworks/broke.md +242 -242
- package/skills/prompt-architect/references/frameworks/cai-critique-revise.md +230 -230
- package/skills/prompt-architect/references/frameworks/care.md +235 -235
- package/skills/prompt-architect/references/frameworks/chain-of-density.md +479 -479
- package/skills/prompt-architect/references/frameworks/chain-of-thought.md +424 -424
- package/skills/prompt-architect/references/frameworks/co-star.md +256 -256
- package/skills/prompt-architect/references/frameworks/crispe.md +253 -253
- package/skills/prompt-architect/references/frameworks/ctf.md +207 -207
- package/skills/prompt-architect/references/frameworks/devils-advocate.md +206 -206
- package/skills/prompt-architect/references/frameworks/least-to-most.md +226 -226
- package/skills/prompt-architect/references/frameworks/plan-and-solve.md +210 -210
- package/skills/prompt-architect/references/frameworks/pre-mortem.md +197 -197
- package/skills/prompt-architect/references/frameworks/race.md +243 -243
- package/skills/prompt-architect/references/frameworks/rcot.md +203 -203
- package/skills/prompt-architect/references/frameworks/react.md +304 -304
- package/skills/prompt-architect/references/frameworks/reverse-role.md +189 -189
- package/skills/prompt-architect/references/frameworks/rise.md +555 -555
- package/skills/prompt-architect/references/frameworks/risen.md +297 -297
- package/skills/prompt-architect/references/frameworks/rpef.md +195 -195
- package/skills/prompt-architect/references/frameworks/rtf.md +358 -358
- package/skills/prompt-architect/references/frameworks/self-refine.md +205 -205
- package/skills/prompt-architect/references/frameworks/skeleton-of-thought.md +186 -186
- package/skills/prompt-architect/references/frameworks/step-back.md +206 -206
- package/skills/prompt-architect/references/frameworks/tidd-ec.md +470 -470
- package/skills/prompt-architect/references/frameworks/tree-of-thought.md +260 -260
- package/skills/prompt-architect/scripts/framework_analyzer.py +807 -807
- package/skills/prompt-architect/scripts/prompt_evaluator.py +336 -336
- package/adapters/for-cursor.mdc +0 -138
- package/adapters/for-gemini-cli.md +0 -70
- package/adapters/for-github-copilot.md +0 -141
- package/adapters/for-openai-codex-cli.md +0 -158
|
@@ -1,195 +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 |
|
|
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 |
|