@ckelsoe/prompt-architect 3.0.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +264 -264
- package/LICENSE +21 -21
- package/README.md +1064 -1184
- package/adapters/README.md +75 -267
- package/adapters/for-windsurf.md +136 -136
- package/adapters/system-prompt.md +243 -243
- package/package.json +139 -135
- package/scripts/build-skill.js +64 -0
- package/scripts/install.js +35 -56
- package/scripts/test.js +205 -213
- package/scripts/validate-skill.js +350 -350
- package/skills/prompt-architect/SKILL.md +331 -331
- package/skills/prompt-architect/assets/templates/ape_template.txt +5 -5
- package/skills/prompt-architect/assets/templates/bab_template.txt +15 -15
- package/skills/prompt-architect/assets/templates/broke_template.txt +15 -15
- package/skills/prompt-architect/assets/templates/cai-critique-revise_template.txt +18 -18
- package/skills/prompt-architect/assets/templates/care_template.txt +16 -16
- package/skills/prompt-architect/assets/templates/chain-of-density_template.txt +46 -46
- package/skills/prompt-architect/assets/templates/chain-of-thought_template.txt +49 -49
- package/skills/prompt-architect/assets/templates/co-star_template.txt +17 -17
- package/skills/prompt-architect/assets/templates/crispe_template.txt +14 -14
- package/skills/prompt-architect/assets/templates/ctf_template.txt +15 -15
- package/skills/prompt-architect/assets/templates/devils-advocate_template.txt +25 -25
- package/skills/prompt-architect/assets/templates/hybrid_template.txt +101 -101
- package/skills/prompt-architect/assets/templates/least-to-most_template.txt +16 -16
- package/skills/prompt-architect/assets/templates/plan-and-solve_template.txt +7 -7
- package/skills/prompt-architect/assets/templates/pre-mortem_template.txt +27 -27
- package/skills/prompt-architect/assets/templates/race_template.txt +19 -19
- package/skills/prompt-architect/assets/templates/rcot_template.txt +31 -31
- package/skills/prompt-architect/assets/templates/react_template.txt +27 -27
- package/skills/prompt-architect/assets/templates/reverse-role_template.txt +11 -11
- package/skills/prompt-architect/assets/templates/rise-ie_template.txt +23 -23
- package/skills/prompt-architect/assets/templates/rise-ix_template.txt +28 -28
- package/skills/prompt-architect/assets/templates/risen_template.txt +21 -21
- package/skills/prompt-architect/assets/templates/rpef_template.txt +26 -26
- package/skills/prompt-architect/assets/templates/rtf_template.txt +13 -13
- package/skills/prompt-architect/assets/templates/self-refine_template.txt +16 -16
- package/skills/prompt-architect/assets/templates/skeleton-of-thought_template.txt +15 -15
- package/skills/prompt-architect/assets/templates/step-back_template.txt +10 -10
- package/skills/prompt-architect/assets/templates/tidd-ec_template.txt +45 -45
- package/skills/prompt-architect/assets/templates/tree-of-thought_template.txt +30 -30
- package/skills/prompt-architect/references/frameworks/ape.md +200 -200
- package/skills/prompt-architect/references/frameworks/bab.md +242 -242
- package/skills/prompt-architect/references/frameworks/broke.md +242 -242
- package/skills/prompt-architect/references/frameworks/cai-critique-revise.md +230 -230
- package/skills/prompt-architect/references/frameworks/care.md +235 -235
- package/skills/prompt-architect/references/frameworks/chain-of-density.md +479 -479
- package/skills/prompt-architect/references/frameworks/chain-of-thought.md +424 -424
- package/skills/prompt-architect/references/frameworks/co-star.md +256 -256
- package/skills/prompt-architect/references/frameworks/crispe.md +253 -253
- package/skills/prompt-architect/references/frameworks/ctf.md +207 -207
- package/skills/prompt-architect/references/frameworks/devils-advocate.md +206 -206
- package/skills/prompt-architect/references/frameworks/least-to-most.md +226 -226
- package/skills/prompt-architect/references/frameworks/plan-and-solve.md +210 -210
- package/skills/prompt-architect/references/frameworks/pre-mortem.md +197 -197
- package/skills/prompt-architect/references/frameworks/race.md +243 -243
- package/skills/prompt-architect/references/frameworks/rcot.md +203 -203
- package/skills/prompt-architect/references/frameworks/react.md +304 -304
- package/skills/prompt-architect/references/frameworks/reverse-role.md +189 -189
- package/skills/prompt-architect/references/frameworks/rise.md +555 -555
- package/skills/prompt-architect/references/frameworks/risen.md +297 -297
- package/skills/prompt-architect/references/frameworks/rpef.md +195 -195
- package/skills/prompt-architect/references/frameworks/rtf.md +358 -358
- package/skills/prompt-architect/references/frameworks/self-refine.md +205 -205
- package/skills/prompt-architect/references/frameworks/skeleton-of-thought.md +186 -186
- package/skills/prompt-architect/references/frameworks/step-back.md +206 -206
- package/skills/prompt-architect/references/frameworks/tidd-ec.md +470 -470
- package/skills/prompt-architect/references/frameworks/tree-of-thought.md +260 -260
- package/skills/prompt-architect/scripts/framework_analyzer.py +807 -807
- package/skills/prompt-architect/scripts/prompt_evaluator.py +336 -336
- package/adapters/for-cursor.mdc +0 -138
- package/adapters/for-gemini-cli.md +0 -70
- package/adapters/for-github-copilot.md +0 -141
- package/adapters/for-openai-codex-cli.md +0 -158
|
@@ -1,200 +1,200 @@
|
|
|
1
|
-
# APE Framework
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
APE (Action, Purpose, Expectation) is the most minimal structured prompt framework — even simpler than RTF or CTF. It is designed for ultra-quick, single-sentence or two-sentence prompts where adding more structure would be overkill. APE answers three essential questions in the fewest possible words: what to do, why it matters, and what success looks like.
|
|
6
|
-
|
|
7
|
-
## Components
|
|
8
|
-
|
|
9
|
-
### A - Action
|
|
10
|
-
**Purpose:** State the core action to take. One clear verb-driven instruction.
|
|
11
|
-
|
|
12
|
-
**Questions to Ask:**
|
|
13
|
-
- What exactly should happen?
|
|
14
|
-
- What is the deliverable?
|
|
15
|
-
- What's the one thing needed?
|
|
16
|
-
|
|
17
|
-
**Examples:**
|
|
18
|
-
- "Write a function that..."
|
|
19
|
-
- "Summarize this document..."
|
|
20
|
-
- "Translate the following..."
|
|
21
|
-
- "List three alternatives to..."
|
|
22
|
-
|
|
23
|
-
### P - Purpose
|
|
24
|
-
**Purpose:** State why this action is needed. Provides just enough context to calibrate the output without a full background brief.
|
|
25
|
-
|
|
26
|
-
**Questions to Ask:**
|
|
27
|
-
- Why is this needed?
|
|
28
|
-
- What will this be used for?
|
|
29
|
-
- Who needs it and why?
|
|
30
|
-
|
|
31
|
-
**Examples:**
|
|
32
|
-
- "...so a new engineer can understand the codebase quickly"
|
|
33
|
-
- "...for inclusion in a weekly stakeholder email"
|
|
34
|
-
- "...because our target market is in Brazil"
|
|
35
|
-
- "...to help decide which approach to take"
|
|
36
|
-
|
|
37
|
-
### E - Expectation
|
|
38
|
-
**Purpose:** Define what a good result looks like. The standard for success.
|
|
39
|
-
|
|
40
|
-
**Questions to Ask:**
|
|
41
|
-
- What does a good result look like?
|
|
42
|
-
- Any quality bar to meet?
|
|
43
|
-
- Length, format, or tone requirements?
|
|
44
|
-
|
|
45
|
-
**Examples:**
|
|
46
|
-
- "Should be under 100 words and jargon-free"
|
|
47
|
-
- "Should be actionable, not just descriptive"
|
|
48
|
-
- "Should fit in a single Slack message"
|
|
49
|
-
- "Should have a clear recommendation at the end"
|
|
50
|
-
|
|
51
|
-
## Template Structure
|
|
52
|
-
|
|
53
|
-
```
|
|
54
|
-
ACTION: [What to do]
|
|
55
|
-
PURPOSE: [Why it's needed]
|
|
56
|
-
EXPECTATION: [What a good result looks like]
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
Or as a single sentence:
|
|
60
|
-
```
|
|
61
|
-
[ACTION] so that [PURPOSE], and it should [EXPECTATION].
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
## Complete Examples
|
|
65
|
-
|
|
66
|
-
### Example 1: Code Comment
|
|
67
|
-
|
|
68
|
-
**Before APE:**
|
|
69
|
-
"Add a comment to this function."
|
|
70
|
-
|
|
71
|
-
**After APE:**
|
|
72
|
-
```
|
|
73
|
-
ACTION: Write a JSDoc comment for this function.
|
|
74
|
-
PURPOSE: So a new team member can understand what it does without reading the implementation.
|
|
75
|
-
EXPECTATION: Should cover parameters, return value, and one usage example. Under 8 lines.
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
### Example 2: Meeting Summary
|
|
79
|
-
|
|
80
|
-
**Before APE:**
|
|
81
|
-
"Summarize this meeting."
|
|
82
|
-
|
|
83
|
-
**After APE:**
|
|
84
|
-
```
|
|
85
|
-
ACTION: Summarize the key decisions and action items from this meeting transcript.
|
|
86
|
-
PURPOSE: For team members who missed the meeting and need to catch up quickly.
|
|
87
|
-
EXPECTATION: Bullet points only, max 10 bullets, each under 15 words.
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
### Example 3: Alternative Ideas
|
|
91
|
-
|
|
92
|
-
**Before APE:**
|
|
93
|
-
"Give me options."
|
|
94
|
-
|
|
95
|
-
**After APE:**
|
|
96
|
-
```
|
|
97
|
-
ACTION: List 3 alternative approaches to the database indexing problem described below.
|
|
98
|
-
PURPOSE: To help the team decide which direction to pursue in tomorrow's planning session.
|
|
99
|
-
EXPECTATION: Each option needs a one-sentence tradeoff (pro and con). No implementation details yet.
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
### Example 4: Translation
|
|
103
|
-
|
|
104
|
-
**Before APE:**
|
|
105
|
-
"Translate this."
|
|
106
|
-
|
|
107
|
-
**After APE:**
|
|
108
|
-
```
|
|
109
|
-
ACTION: Translate the following error message into Portuguese (Brazilian).
|
|
110
|
-
PURPOSE: Our app is launching in Brazil and this error will be seen by end users.
|
|
111
|
-
EXPECTATION: Natural-sounding Brazilian Portuguese, not a literal translation. Keep technical terms in English.
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
## Best Use Cases
|
|
115
|
-
|
|
116
|
-
1. **Quick Tasks**
|
|
117
|
-
- Short code generation
|
|
118
|
-
- Simple translations
|
|
119
|
-
- Brief summaries
|
|
120
|
-
- List generation
|
|
121
|
-
|
|
122
|
-
2. **When Speed Matters**
|
|
123
|
-
- Rapid iteration
|
|
124
|
-
- One-off requests
|
|
125
|
-
- Low-stakes outputs
|
|
126
|
-
|
|
127
|
-
3. **When Role Is Obvious**
|
|
128
|
-
- The AI's role is implied by the action
|
|
129
|
-
- No persona setup needed
|
|
130
|
-
|
|
131
|
-
4. **Single-Sentence Prompts Made Better**
|
|
132
|
-
- Takes any vague one-liner and adds just enough structure
|
|
133
|
-
- Minimal overhead
|
|
134
|
-
|
|
135
|
-
## Selection Criteria
|
|
136
|
-
|
|
137
|
-
**Choose APE when:**
|
|
138
|
-
- ✅ Task is very simple and self-contained
|
|
139
|
-
- ✅ Role/persona is obvious or irrelevant
|
|
140
|
-
- ✅ You want minimum overhead
|
|
141
|
-
- ✅ Quick iteration is needed
|
|
142
|
-
- ✅ Expectation is the missing piece in your current prompt
|
|
143
|
-
|
|
144
|
-
**Avoid APE when:**
|
|
145
|
-
- ❌ Background/situation matters → use CTF
|
|
146
|
-
- ❌ Expertise framing affects quality → use RTF
|
|
147
|
-
- ❌ Complex multi-step → use RISEN
|
|
148
|
-
- ❌ Audience and tone are critical → use CO-STAR
|
|
149
|
-
- ❌ Transforming existing content → use BAB
|
|
150
|
-
|
|
151
|
-
## APE vs. RTF vs. CTF
|
|
152
|
-
|
|
153
|
-
| | APE | CTF | RTF |
|
|
154
|
-
|---|---|---|---|
|
|
155
|
-
| Complexity | Minimal | Simple | Simple |
|
|
156
|
-
| Focus | Action + why + bar | Situation + task + format | Persona + task + format |
|
|
157
|
-
| Role needed? | No | No | Yes |
|
|
158
|
-
| Context needed? | Minimal (Purpose) | Yes | No |
|
|
159
|
-
| Best for | Ultra-quick, one-off | Context-heavy | Expertise-driven |
|
|
160
|
-
|
|
161
|
-
## Inline APE Pattern
|
|
162
|
-
|
|
163
|
-
APE works especially well as a single sentence:
|
|
164
|
-
|
|
165
|
-
```
|
|
166
|
-
[ACTION] for [PURPOSE], and it should [EXPECTATION].
|
|
167
|
-
```
|
|
168
|
-
|
|
169
|
-
**Examples:**
|
|
170
|
-
```
|
|
171
|
-
Summarize this PR description for a non-technical stakeholder, and it should fit in two sentences.
|
|
172
|
-
```
|
|
173
|
-
```
|
|
174
|
-
List three naming alternatives for this function for a code review discussion, and each should be self-explanatory without comments.
|
|
175
|
-
```
|
|
176
|
-
```
|
|
177
|
-
Write a commit message for these changes for git history, and it should follow conventional commits format.
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
## Common Mistakes
|
|
181
|
-
|
|
182
|
-
1. **Skipping Expectation**
|
|
183
|
-
- Most one-liner prompts have Action but no Expectation
|
|
184
|
-
- Expectation is what APE adds most value on
|
|
185
|
-
|
|
186
|
-
2. **Over-engineering Purpose**
|
|
187
|
-
- Purpose should be one sentence, not a paragraph
|
|
188
|
-
- If it needs more context, upgrade to CTF
|
|
189
|
-
|
|
190
|
-
3. **Using APE for Complex Tasks**
|
|
191
|
-
- If Action has multiple sub-steps, upgrade to RISEN
|
|
192
|
-
- If Expectation requires detailed format spec, upgrade to RTF
|
|
193
|
-
|
|
194
|
-
## Quick Reference
|
|
195
|
-
|
|
196
|
-
| Component | Focus | Key Question |
|
|
197
|
-
|-----------|-------|--------------|
|
|
198
|
-
| Action | What to do | "What should happen?" |
|
|
199
|
-
| Purpose | Why it matters | "Why is this needed?" |
|
|
200
|
-
| Expectation | Success bar | "What does good look like?" |
|
|
1
|
+
# APE Framework
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
APE (Action, Purpose, Expectation) is the most minimal structured prompt framework — even simpler than RTF or CTF. It is designed for ultra-quick, single-sentence or two-sentence prompts where adding more structure would be overkill. APE answers three essential questions in the fewest possible words: what to do, why it matters, and what success looks like.
|
|
6
|
+
|
|
7
|
+
## Components
|
|
8
|
+
|
|
9
|
+
### A - Action
|
|
10
|
+
**Purpose:** State the core action to take. One clear verb-driven instruction.
|
|
11
|
+
|
|
12
|
+
**Questions to Ask:**
|
|
13
|
+
- What exactly should happen?
|
|
14
|
+
- What is the deliverable?
|
|
15
|
+
- What's the one thing needed?
|
|
16
|
+
|
|
17
|
+
**Examples:**
|
|
18
|
+
- "Write a function that..."
|
|
19
|
+
- "Summarize this document..."
|
|
20
|
+
- "Translate the following..."
|
|
21
|
+
- "List three alternatives to..."
|
|
22
|
+
|
|
23
|
+
### P - Purpose
|
|
24
|
+
**Purpose:** State why this action is needed. Provides just enough context to calibrate the output without a full background brief.
|
|
25
|
+
|
|
26
|
+
**Questions to Ask:**
|
|
27
|
+
- Why is this needed?
|
|
28
|
+
- What will this be used for?
|
|
29
|
+
- Who needs it and why?
|
|
30
|
+
|
|
31
|
+
**Examples:**
|
|
32
|
+
- "...so a new engineer can understand the codebase quickly"
|
|
33
|
+
- "...for inclusion in a weekly stakeholder email"
|
|
34
|
+
- "...because our target market is in Brazil"
|
|
35
|
+
- "...to help decide which approach to take"
|
|
36
|
+
|
|
37
|
+
### E - Expectation
|
|
38
|
+
**Purpose:** Define what a good result looks like. The standard for success.
|
|
39
|
+
|
|
40
|
+
**Questions to Ask:**
|
|
41
|
+
- What does a good result look like?
|
|
42
|
+
- Any quality bar to meet?
|
|
43
|
+
- Length, format, or tone requirements?
|
|
44
|
+
|
|
45
|
+
**Examples:**
|
|
46
|
+
- "Should be under 100 words and jargon-free"
|
|
47
|
+
- "Should be actionable, not just descriptive"
|
|
48
|
+
- "Should fit in a single Slack message"
|
|
49
|
+
- "Should have a clear recommendation at the end"
|
|
50
|
+
|
|
51
|
+
## Template Structure
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
ACTION: [What to do]
|
|
55
|
+
PURPOSE: [Why it's needed]
|
|
56
|
+
EXPECTATION: [What a good result looks like]
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Or as a single sentence:
|
|
60
|
+
```
|
|
61
|
+
[ACTION] so that [PURPOSE], and it should [EXPECTATION].
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Complete Examples
|
|
65
|
+
|
|
66
|
+
### Example 1: Code Comment
|
|
67
|
+
|
|
68
|
+
**Before APE:**
|
|
69
|
+
"Add a comment to this function."
|
|
70
|
+
|
|
71
|
+
**After APE:**
|
|
72
|
+
```
|
|
73
|
+
ACTION: Write a JSDoc comment for this function.
|
|
74
|
+
PURPOSE: So a new team member can understand what it does without reading the implementation.
|
|
75
|
+
EXPECTATION: Should cover parameters, return value, and one usage example. Under 8 lines.
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Example 2: Meeting Summary
|
|
79
|
+
|
|
80
|
+
**Before APE:**
|
|
81
|
+
"Summarize this meeting."
|
|
82
|
+
|
|
83
|
+
**After APE:**
|
|
84
|
+
```
|
|
85
|
+
ACTION: Summarize the key decisions and action items from this meeting transcript.
|
|
86
|
+
PURPOSE: For team members who missed the meeting and need to catch up quickly.
|
|
87
|
+
EXPECTATION: Bullet points only, max 10 bullets, each under 15 words.
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Example 3: Alternative Ideas
|
|
91
|
+
|
|
92
|
+
**Before APE:**
|
|
93
|
+
"Give me options."
|
|
94
|
+
|
|
95
|
+
**After APE:**
|
|
96
|
+
```
|
|
97
|
+
ACTION: List 3 alternative approaches to the database indexing problem described below.
|
|
98
|
+
PURPOSE: To help the team decide which direction to pursue in tomorrow's planning session.
|
|
99
|
+
EXPECTATION: Each option needs a one-sentence tradeoff (pro and con). No implementation details yet.
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Example 4: Translation
|
|
103
|
+
|
|
104
|
+
**Before APE:**
|
|
105
|
+
"Translate this."
|
|
106
|
+
|
|
107
|
+
**After APE:**
|
|
108
|
+
```
|
|
109
|
+
ACTION: Translate the following error message into Portuguese (Brazilian).
|
|
110
|
+
PURPOSE: Our app is launching in Brazil and this error will be seen by end users.
|
|
111
|
+
EXPECTATION: Natural-sounding Brazilian Portuguese, not a literal translation. Keep technical terms in English.
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## Best Use Cases
|
|
115
|
+
|
|
116
|
+
1. **Quick Tasks**
|
|
117
|
+
- Short code generation
|
|
118
|
+
- Simple translations
|
|
119
|
+
- Brief summaries
|
|
120
|
+
- List generation
|
|
121
|
+
|
|
122
|
+
2. **When Speed Matters**
|
|
123
|
+
- Rapid iteration
|
|
124
|
+
- One-off requests
|
|
125
|
+
- Low-stakes outputs
|
|
126
|
+
|
|
127
|
+
3. **When Role Is Obvious**
|
|
128
|
+
- The AI's role is implied by the action
|
|
129
|
+
- No persona setup needed
|
|
130
|
+
|
|
131
|
+
4. **Single-Sentence Prompts Made Better**
|
|
132
|
+
- Takes any vague one-liner and adds just enough structure
|
|
133
|
+
- Minimal overhead
|
|
134
|
+
|
|
135
|
+
## Selection Criteria
|
|
136
|
+
|
|
137
|
+
**Choose APE when:**
|
|
138
|
+
- ✅ Task is very simple and self-contained
|
|
139
|
+
- ✅ Role/persona is obvious or irrelevant
|
|
140
|
+
- ✅ You want minimum overhead
|
|
141
|
+
- ✅ Quick iteration is needed
|
|
142
|
+
- ✅ Expectation is the missing piece in your current prompt
|
|
143
|
+
|
|
144
|
+
**Avoid APE when:**
|
|
145
|
+
- ❌ Background/situation matters → use CTF
|
|
146
|
+
- ❌ Expertise framing affects quality → use RTF
|
|
147
|
+
- ❌ Complex multi-step → use RISEN
|
|
148
|
+
- ❌ Audience and tone are critical → use CO-STAR
|
|
149
|
+
- ❌ Transforming existing content → use BAB
|
|
150
|
+
|
|
151
|
+
## APE vs. RTF vs. CTF
|
|
152
|
+
|
|
153
|
+
| | APE | CTF | RTF |
|
|
154
|
+
|---|---|---|---|
|
|
155
|
+
| Complexity | Minimal | Simple | Simple |
|
|
156
|
+
| Focus | Action + why + bar | Situation + task + format | Persona + task + format |
|
|
157
|
+
| Role needed? | No | No | Yes |
|
|
158
|
+
| Context needed? | Minimal (Purpose) | Yes | No |
|
|
159
|
+
| Best for | Ultra-quick, one-off | Context-heavy | Expertise-driven |
|
|
160
|
+
|
|
161
|
+
## Inline APE Pattern
|
|
162
|
+
|
|
163
|
+
APE works especially well as a single sentence:
|
|
164
|
+
|
|
165
|
+
```
|
|
166
|
+
[ACTION] for [PURPOSE], and it should [EXPECTATION].
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
**Examples:**
|
|
170
|
+
```
|
|
171
|
+
Summarize this PR description for a non-technical stakeholder, and it should fit in two sentences.
|
|
172
|
+
```
|
|
173
|
+
```
|
|
174
|
+
List three naming alternatives for this function for a code review discussion, and each should be self-explanatory without comments.
|
|
175
|
+
```
|
|
176
|
+
```
|
|
177
|
+
Write a commit message for these changes for git history, and it should follow conventional commits format.
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
## Common Mistakes
|
|
181
|
+
|
|
182
|
+
1. **Skipping Expectation**
|
|
183
|
+
- Most one-liner prompts have Action but no Expectation
|
|
184
|
+
- Expectation is what APE adds most value on
|
|
185
|
+
|
|
186
|
+
2. **Over-engineering Purpose**
|
|
187
|
+
- Purpose should be one sentence, not a paragraph
|
|
188
|
+
- If it needs more context, upgrade to CTF
|
|
189
|
+
|
|
190
|
+
3. **Using APE for Complex Tasks**
|
|
191
|
+
- If Action has multiple sub-steps, upgrade to RISEN
|
|
192
|
+
- If Expectation requires detailed format spec, upgrade to RTF
|
|
193
|
+
|
|
194
|
+
## Quick Reference
|
|
195
|
+
|
|
196
|
+
| Component | Focus | Key Question |
|
|
197
|
+
|-----------|-------|--------------|
|
|
198
|
+
| Action | What to do | "What should happen?" |
|
|
199
|
+
| Purpose | Why it matters | "Why is this needed?" |
|
|
200
|
+
| Expectation | Success bar | "What does good look like?" |
|