@ckelsoe/prompt-architect 3.3.1 → 3.5.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 (69) hide show
  1. package/.claude-plugin/marketplace.json +3 -3
  2. package/.claude-plugin/plugin.json +2 -2
  3. package/CHANGELOG.md +34 -0
  4. package/README.md +7 -3
  5. package/adapters/system-prompt.md +96 -55
  6. package/package.json +6 -4
  7. package/scripts/test.js +32 -0
  8. package/skills/prompt-architect/SKILL.md +74 -41
  9. package/skills/prompt-architect/assets/templates/ape_template.txt +14 -3
  10. package/skills/prompt-architect/assets/templates/bab_template.txt +23 -10
  11. package/skills/prompt-architect/assets/templates/broke_template.txt +31 -6
  12. package/skills/prompt-architect/assets/templates/cai-critique-revise_template.txt +16 -8
  13. package/skills/prompt-architect/assets/templates/care_template.txt +4 -0
  14. package/skills/prompt-architect/assets/templates/chain-of-density_template.txt +30 -31
  15. package/skills/prompt-architect/assets/templates/chain-of-thought_template.txt +8 -0
  16. package/skills/prompt-architect/assets/templates/chain-of-verification_template.txt +26 -0
  17. package/skills/prompt-architect/assets/templates/co-star_template.txt +8 -0
  18. package/skills/prompt-architect/assets/templates/crispe_template.txt +6 -0
  19. package/skills/prompt-architect/assets/templates/ctf_template.txt +8 -0
  20. package/skills/prompt-architect/assets/templates/devils-advocate_template.txt +7 -0
  21. package/skills/prompt-architect/assets/templates/hybrid_template.txt +44 -24
  22. package/skills/prompt-architect/assets/templates/iterative-compression_template.txt +43 -28
  23. package/skills/prompt-architect/assets/templates/least-to-most_template.txt +4 -0
  24. package/skills/prompt-architect/assets/templates/plan-and-solve_template.txt +4 -0
  25. package/skills/prompt-architect/assets/templates/pre-mortem_template.txt +24 -14
  26. package/skills/prompt-architect/assets/templates/race_template.txt +9 -0
  27. package/skills/prompt-architect/assets/templates/rcot_template.txt +8 -0
  28. package/skills/prompt-architect/assets/templates/react_template.txt +38 -16
  29. package/skills/prompt-architect/assets/templates/rise-ie_template.txt +4 -0
  30. package/skills/prompt-architect/assets/templates/rise-ix_template.txt +3 -3
  31. package/skills/prompt-architect/assets/templates/risen_template.txt +7 -0
  32. package/skills/prompt-architect/assets/templates/rpef_template.txt +16 -11
  33. package/skills/prompt-architect/assets/templates/rtf_template.txt +9 -0
  34. package/skills/prompt-architect/assets/templates/self-consistency_template.txt +12 -0
  35. package/skills/prompt-architect/assets/templates/skeleton-of-thought_template.txt +18 -10
  36. package/skills/prompt-architect/assets/templates/step-back_template.txt +4 -0
  37. package/skills/prompt-architect/assets/templates/tidd-ec_template.txt +54 -31
  38. package/skills/prompt-architect/assets/templates/tree-of-thought_template.txt +37 -21
  39. package/skills/prompt-architect/references/frameworks/ape.md +143 -57
  40. package/skills/prompt-architect/references/frameworks/bab.md +137 -58
  41. package/skills/prompt-architect/references/frameworks/broke.md +157 -57
  42. package/skills/prompt-architect/references/frameworks/cai-critique-revise.md +183 -75
  43. package/skills/prompt-architect/references/frameworks/care.md +67 -36
  44. package/skills/prompt-architect/references/frameworks/chain-of-density.md +49 -27
  45. package/skills/prompt-architect/references/frameworks/chain-of-thought.md +28 -7
  46. package/skills/prompt-architect/references/frameworks/chain-of-verification.md +231 -0
  47. package/skills/prompt-architect/references/frameworks/co-star.md +100 -44
  48. package/skills/prompt-architect/references/frameworks/crispe.md +7 -5
  49. package/skills/prompt-architect/references/frameworks/ctf.md +73 -37
  50. package/skills/prompt-architect/references/frameworks/devils-advocate.md +105 -58
  51. package/skills/prompt-architect/references/frameworks/iterative-compression.md +236 -269
  52. package/skills/prompt-architect/references/frameworks/least-to-most.md +35 -13
  53. package/skills/prompt-architect/references/frameworks/plan-and-solve.md +38 -9
  54. package/skills/prompt-architect/references/frameworks/pre-mortem.md +176 -66
  55. package/skills/prompt-architect/references/frameworks/race.md +91 -38
  56. package/skills/prompt-architect/references/frameworks/rcot.md +1 -1
  57. package/skills/prompt-architect/references/frameworks/react.md +230 -97
  58. package/skills/prompt-architect/references/frameworks/reverse-role.md +22 -15
  59. package/skills/prompt-architect/references/frameworks/rise.md +94 -70
  60. package/skills/prompt-architect/references/frameworks/risen.md +80 -28
  61. package/skills/prompt-architect/references/frameworks/rpef.md +227 -58
  62. package/skills/prompt-architect/references/frameworks/rtf.md +2 -2
  63. package/skills/prompt-architect/references/frameworks/self-consistency.md +195 -0
  64. package/skills/prompt-architect/references/frameworks/self-refine.md +4 -2
  65. package/skills/prompt-architect/references/frameworks/skeleton-of-thought.md +67 -21
  66. package/skills/prompt-architect/references/frameworks/step-back.md +47 -15
  67. package/skills/prompt-architect/references/frameworks/tidd-ec.md +110 -45
  68. package/skills/prompt-architect/references/frameworks/tree-of-thought.md +112 -37
  69. package/skills/prompt-architect/references/techniques/few-shot.md +121 -0
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: prompt-architect
3
- description: Analyzes and improves prompts using 29 frameworks across 7 intent categories. Use when a user wants to improve, rewrite, structure, or engineer a prompt — including requests like "help me write a better prompt", "improve this prompt", "what framework should I use", "make this prompt more effective", or any prompt engineering task. Recommends the right framework based on intent (create, transform, reason, critique, recover, clarify, agentic), asks targeted questions, and delivers a structured, high-quality result.
3
+ description: Analyzes and improves prompts using 31 frameworks across 7 intent categories. Use when a user wants to improve, rewrite, structure, or engineer a prompt — including requests like "help me write a better prompt", "improve this prompt", "what framework should I use", "make this prompt more effective", or any prompt engineering task. Recommends the right framework based on intent (create, transform, reason, critique, recover, clarify, agentic), asks targeted questions, and delivers a structured, high-quality result.
4
4
  license: MIT
5
5
  compatibility: Requires no external dependencies. Works with any Agent Skills compatible tool.
6
6
  metadata:
7
7
  author: ckelsoe
8
- version: "3.3.1"
8
+ version: "3.5.0"
9
9
  homepage: https://github.com/ckelsoe/prompt-architect
10
10
  ---
11
11
 
@@ -40,7 +40,9 @@ Score the prompt *as written*, not as you charitably interpret it — the gap be
40
40
 
41
41
  ### 2. Intent-Based Framework Selection
42
42
 
43
- With 29 frameworks, identify the user's **primary intent** first, then use the discriminating questions within that category.
43
+ With 31 frameworks, identify the user's **primary intent** first, then use the discriminating questions within that category.
44
+
45
+ **When two frameworks would produce the same prompt, say so and pick the simpler one.** Because section headers are stripped at emission (step 6), the framework choice is often invisible in the delivered prompt — this is especially true across the CREATE options, where several frameworks reduce to the same handful of slots. When you cannot point to a concrete difference the *emitted* prompt would show, do not manufacture one: name the tie plainly, choose the simpler framework, and move on. A confident rationale for an unobservable choice is exactly the overstatement this skill exists to remove.
44
46
 
45
47
  ---
46
48
 
@@ -98,6 +100,7 @@ With 29 frameworks, identify the user's **primary intent** first, then use the d
98
100
  | Multiple distinct approaches to compare | **Tree of Thought** |
99
101
  | Verify reasoning didn't overlook conditions | **RCoT** |
100
102
  | Linear step-by-step reasoning | **Chain of Thought** |
103
+ | Answer must be robust; sample many paths and majority-vote | **Self-Consistency** |
101
104
 
102
105
  ---
103
106
 
@@ -110,8 +113,9 @@ With 29 frameworks, identify the user's **primary intent** first, then use the d
110
113
  | Find the strongest opposing argument | **Devil's Advocate** |
111
114
  | Identify failure modes before they happen | **Pre-Mortem** |
112
115
  | Verify reasoning didn't miss conditions | **RCoT** |
116
+ | Draft may contain hallucinated facts; verify each claim | **Chain-of-Verification** |
113
117
 
114
- *Self-Refine = any quality. CAI = principle compliance. Devil's Advocate = opposing arguments. Pre-Mortem = failure analysis. RCoT = condition verification.*
118
+ *Self-Refine = any quality. CAI = compliance with an **explicitly stated** standard or requirement set (and aligning the artifact to it — e.g. auditing a plan against a brief's constraints). Devil's Advocate = opposing arguments. Pre-Mortem = failure analysis. RCoT = an answer or plan overlooked a condition **implicit in the problem** (units, edge cases, unstated dependencies). Chain-of-Verification = independent fact-checking of a draft's factual claims.*
115
119
 
116
120
  ---
117
121
 
@@ -131,7 +135,13 @@ Most prompts need exactly one framework. Combine only when the task genuinely ha
131
135
  | Multi-step procedure executed with tools | **RISEN + ReAct** | RISEN specifies the steps and success criteria; ReAct governs the tool-use cycle within each step |
132
136
  | Business deliverable with a hostile audience | **BROKE + Devil's Advocate** | BROKE sets objective and key results; Devil's Advocate stress-tests them before they reach a stakeholder |
133
137
 
134
- When you combine, load `assets/templates/hybrid_template.txt` and state plainly in your analysis which framework owns which phase. Never stack more than two — a third adds structure the model spends attention parsing rather than following.
138
+ When you combine, load `assets/templates/hybrid_template.txt` and state plainly in your analysis which framework owns which phase. Never stack more than two — beyond that the frameworks' instructions start to overlap and contradict, and no single framework clearly owns any phase.
139
+
140
+ #### Composable Techniques
141
+
142
+ Some techniques are not frameworks you choose *between* — they are layers you add *on top of* whichever framework you picked. They answer "how should this prompt be built?", not "which shape is it?", so they never appear in the routing tables above.
143
+
144
+ - **Few-shot / in-context examples** — showing 2–5 worked input→output examples inside the emitted prompt. This is the highest-leverage technique in prompting and applies to almost any framework, not just the two with a dedicated examples slot (CARE, RISE-IX). After you draft the framework prompt, decide whether examples earn their place; if they do, insert them before the final instruction, in the exact target output format, and end with the actual task. Load `references/techniques/few-shot.md` for when to use it, how many, ordering and recency effects, and the label-space rules — and for the rule that you never invent examples the user or their material did not supply.
135
145
 
136
146
  ---
137
147
 
@@ -143,53 +153,69 @@ One-line per framework (load `references/frameworks/` for full detail):
143
153
  **Medium:** RACE | CARE | BAB | BROKE | CRISPE
144
154
  **Comprehensive:** CO-STAR | RISEN | TIDD-EC
145
155
  **Data:** RISE-IE | RISE-IX
146
- **Reasoning:** Plan-and-Solve | Chain of Thought | Least-to-Most | Step-Back | Tree of Thought | RCoT
156
+ **Reasoning:** Plan-and-Solve | Chain of Thought | Least-to-Most | Step-Back | Tree of Thought | RCoT | Self-Consistency
147
157
  **Structure/Iteration:** Skeleton of Thought | Chain of Density | Iterative Compression
148
- **Critique/Quality:** Self-Refine | CAI Critique-Revise | Devil's Advocate | Pre-Mortem
158
+ **Critique/Quality:** Self-Refine | CAI Critique-Revise | Devil's Advocate | Pre-Mortem | Chain-of-Verification
149
159
  **Meta/Reverse:** RPEF | Reverse Role Prompting
150
160
  **Agentic:** ReAct
151
161
 
162
+ **Composable technique (layered onto any framework, not selected between):** Few-shot / in-context examples
163
+
152
164
  ### 4. Clarification Questions
153
165
 
154
166
  Ask targeted questions (3-5 at a time) based on identified gaps:
155
167
 
156
- **For CO-STAR**: Context, audience, tone, style, objective, format?
157
- **For RISEN**: Role, principles, steps, success criteria, constraints?
158
- **For RISE-IE**: Role, input format/characteristics, processing steps, output expectations?
159
- **For RISE-IX**: Role, task instructions, workflow steps, reference examples?
160
- **For TIDD-EC**: Task type, exact steps, what to include (dos), what to avoid (don'ts), examples, context?
161
- **For CTF**: What is the situation/background, exact task, output format?
162
- **For RTF**: Expertise needed, exact task, output format?
163
- **For APE**: Core action, why it's needed, what success looks like?
164
- **For BAB**: What is the current state/problem, what should it become, transformation rules?
165
- **For RACE**: Role/expertise, action, situational context, explicit expectation?
166
- **For CRISPE**: Capacity/role, background insight, instructions, personality/style, how many variants?
167
- **For BROKE**: Background situation, role, objective, measurable key results, evolve instructions?
168
- **For CARE**: Context/situation, specific ask, explicit rules and constraints, examples of good output?
169
- **For Tree of Thought**: Problem, distinct solution branches to explore, evaluation criteria?
170
- **For ReAct**: Goal, available tools, constraints and stop condition?
171
- **For Skeleton of Thought**: Topic/question, number of skeleton points, expansion depth per point?
172
- **For Step-Back**: Original question, what higher-level principle governs it?
173
- **For Least-to-Most**: Full problem, decomposed subproblems in dependency order?
174
- **For Plan-and-Solve**: Problem with all relevant numbers/variables?
175
- **For Chain of Thought**: Problem, reasoning steps, verification?
176
- **For Chain of Density**: Source document to summarize, fixed target length, number of iterations?
177
- **For Iterative Compression**: Content to compress, target length, optimization goal, stopping criterion?
178
- **For Self-Refine**: Output to improve, feedback dimensions, stop condition?
179
- **For CAI Critique-Revise**: The principle to enforce, output to critique?
180
- **For Devil's Advocate**: Position to attack, attack dimensions, severity ranking needed?
181
- **For Pre-Mortem**: Project/decision, time horizon, domains to analyze?
182
- **For RCoT**: Question with all conditions, initial answer to verify?
183
- **For RPEF**: Output sample to reverse-engineer, input data if available?
184
- **For Reverse Role**: Intent statement, domain of expertise, interview mode (batch vs. conversational)?
168
+ **For CO-STAR**: Paste the material this is built from if any, the situation and constraints behind it, who the audience is and what you want them to do, the tone and style to write in, the output format and length?
169
+ **For RISEN**: Paste the material the procedure runs on if any, the expertise and methodology to adopt, the steps in order, what must be true when it is done, what is out of scope or must not happen?
170
+ **For RISE-IE**: Paste the actual data to be processed (not a description of it), its format and any quirks to expect, the expertise needed, the processing steps in order, what the output must look like?
171
+ **For RISE-IX**: The expertise to embody, what to create and its core requirements, the workflow steps, paste 2-3 actual samples whose style and format the output should match?
172
+ **For TIDD-EC**: Paste the material this task operates on (the message, document, or dataset itself, not a description of it), what kind of task this is and the background that shapes it, the exact steps in order, what must always be included and what must never happen (state each as a prohibition, not a topic), examples of a good result?
173
+ **For CTF**: Paste the artifact this operates on if you have one, the situation and background around it, the exact task and deliverable, the output format?
174
+ **For RTF**: Paste the material the task applies to if any, the expertise needed, the exact task and deliverable, the output format and length?
175
+ **For APE**: Paste the material the action applies to if any, the one action to perform, why it is needed and who uses the result, what a good result looks like?
176
+ **For BAB**: Paste the actual artifact being transformed, what is wrong with it now, what it should become, what rules govern the transformation?
177
+ **For RACE**: Paste the material the task applies to if any, the role and expertise needed, the action to perform, the situational context and audience, what a successful output looks like?
178
+ **For CRISPE**: The expertise and role to embody, paste the data or style sample it should work from, the background it needs, the exact task and deliverable, the tone and how many variants?
179
+ **For BROKE**: Paste the supporting material or performance data if you have it, the current situation and why this task exists, the role to embody, the specific deliverable and the structure and length the response should have, the measurable business outcome it should move?
180
+ **For CARE**: Paste the source document or draft this works from if any, your situation and why this task exists, the specific ask and deliverable, what must be included and what would make this output wrong or unusable, an example of what good looks like?
181
+ **For Tree of Thought**: The decision or problem and its constraints, paste the evidence the branches must be judged against, the 2-5 distinct approaches to compare, the criteria that decide between them?
182
+ **For ReAct**: Does the environment this runs in actually have callable tools — if not, stop and use Chain of Thought instead, which tools are available and how each is invoked, what end state counts as success, what limits apply and when to stop?
183
+ **For Skeleton of Thought**: The topic or question to outline, paste the document, data, or notes the answer must be drawn from if you have any, who the answer is for and what scope it should cover, how far each point should be expanded (a few sentences, a paragraph, full detail)?
184
+ **For Step-Back**: The specific question you want answered, paste the code, document, or design it is about if any, what higher-level principle or concept governs it?
185
+ **For Least-to-Most**: The full problem in one statement, paste the material the subproblems must reason over, what is the simplest thing that must be answered first, what does the final answer depend on?
186
+ **For Plan-and-Solve**: The problem with every number, unit, and constraint written out, paste the dataset or figures the calculation runs on if any, which values are given and which must be derived?
187
+ **For Chain of Thought**: The problem with all its conditions stated, paste the code, data, or document to reason over if any, what the reasoning steps should be?
188
+ **For Self-Consistency**: The problem with all its conditions stated, paste the data or figures it runs on if any, what the single final answer should look like so every sampled run ends in a comparable `FINAL ANSWER:` line, how many samples to run and majority-vote over (the paper uses 40; 5-10 is usually enough)?
189
+ **For Chain of Density**: Paste the full document to summarize, the fixed word budget every summary must hit, how many densification passes (the paper uses 5)?
190
+ **For Iterative Compression**: Paste the content to compress, where it should end up (word count, reading level, single paragraph), what should improve on each pass, how many passes and when to stop?
191
+ **For Self-Refine**: Paste the actual draft to improve, which dimensions the critique should cover (clarity, completeness, tone), what would make this output wrong or unusable?
192
+ **For CAI Critique-Revise**: Paste the actual output to be critiqued, the specific standard it must satisfy stated precisely enough to be checkable, what would make this output wrong or unusable?
193
+ **For Devil's Advocate**: The position, plan, or decision to attack, paste the proposal or memo that sets it out if you have one, which dimensions the attack should cover?
194
+ **For Pre-Mortem**: The project or decision being analyzed with its team, timeline, and goals, paste the plan or proposal document if you have one, how far in the future the imagined failure should be dated?
195
+ **For RCoT**: The question with every condition and constraint written out, paste the document those conditions come from if any, any implicit requirement not yet written into the question (units, deadlines, exclusions, edge cases) that a correct answer must still satisfy?
196
+ **For Chain-of-Verification**: Paste the draft answer to fact-check if you have one, or the factual question to answer carefully, which specific claims are most at risk of being wrong, what a correct final answer must not get wrong?
197
+ **For RPEF**: Paste the actual output sample to reverse-engineer, paste the input that produced it or confirm it is output-only, which details are one-off specifics that should become [PLACEHOLDER] variables?
198
+ **For Reverse Role**: What you want to achieve in one or two sentences, the domain of expertise to consult, questions one at a time or all at once, should it then do the task or synthesize a structured prompt for you to approve?
199
+
200
+ Every set above asks for the user's own material, because a framework that operates on an
201
+ artifact and never asks for it will invent one. Three frameworks are deliberately exempt:
202
+ **ReAct** (its material arrives as live tool output, not pasted text), **Reverse Role** (it
203
+ elicits everything through the interview and its template has no material slot), and
204
+ **RISE-IX** (its samples land in the EXAMPLES slot, which its own question already covers).
205
+ Do not add a material question to those three.
185
206
 
186
207
  ### 5. Apply Framework
187
208
 
188
209
  Using gathered information:
189
210
  1. Load appropriate template from `assets/templates/`
190
211
  2. Map user's information to framework components
191
- 3. Fill missing elements with reasonable defaults
212
+ 3. Fill missing elements with reasonable defaults — **with two exceptions, below**
192
213
  4. Structure according to framework format
214
+ 5. **Decide whether worked examples would materially improve the output**; if so, layer in few-shot examples per `references/techniques/few-shot.md` — this applies to any framework, not only the two with a built-in examples slot. Reach for it especially on classification, extraction, strict-format, and style-matching tasks, and only when the user or their material supplies real examples.
215
+
216
+ **Never default a fact about the user's world.** Their business, metrics, history, policies, staff, customers, data, or constraints are things only they know. A plausible-sounding default here is a fabrication the user may not notice before sending — asserting "our first price increase in three years" in an email to paying customers, or inventing a phone number in a published review reply. Where such a slot is unanswered, emit a visible `[you fill this in: <what is needed>]` placeholder and list every placeholder in your analysis section.
217
+
218
+ **Never soften or drop a prohibition.** If the user said something must not happen, it must survive into the emitted prompt as an explicit "Do not…" or "Never…" instruction. It cannot rely on a section header to carry the negation, because headers are stripped at emission (see step 6).
193
219
 
194
220
  ### 6. Present Improvements
195
221
 
@@ -211,14 +237,14 @@ Structure your output in this exact order:
211
237
  - **No framework section headers** (no "BEFORE:", "BRIDGE:", "CONTEXT:", etc.) — these are scaffolding, not part of the deliverable
212
238
  - **No indentation** beyond what the prompt itself genuinely requires
213
239
  - **No markdown formatting** inside the block unless the prompt explicitly needs it (e.g., it asks for tables)
214
- - The user must be able to copy the entire block contents and paste it verbatim with zero editing
240
+ - The user must be able to copy the entire block contents and paste it verbatim with zero editing — the one exception is `[...]` placeholders for material or facts only the user can supply (see step 5). Keep these to a minimum, make each self-explanatory, and name them in the analysis section so the user knows exactly what to fill in before sending.
215
241
  - **Nothing after the code block** — the revised prompt must be the absolute last element in the response. No trailing suggestions, tips, or follow-up text after the closing backticks.
216
242
 
217
243
  ### 7. Iterate
218
244
 
219
245
  - Confirm improvements align with intent
220
246
  - Refine based on feedback
221
- - Switch or combine frameworks if needed (see **Combining Frameworks** below)
247
+ - Switch or combine frameworks if needed (see **Combining Frameworks** above)
222
248
  - Continue until satisfactory
223
249
 
224
250
  ## Framework References
@@ -252,9 +278,14 @@ Detailed framework docs in `references/frameworks/`:
252
278
  - `rcot.md` - Reverse Chain-of-Thought: verify by reconstructing the question
253
279
  - `rpef.md` - Reverse Prompt Engineering: recover prompt from output (EMNLP 2025)
254
280
  - `reverse-role.md` - AI-Led Interview: AI asks you questions first (FATA)
281
+ - `self-consistency.md` - Sample N reasoning paths, majority-vote externally (Wang et al., ICLR 2023)
282
+ - `chain-of-verification.md` - Draft, plan checks, verify independently, revise (Dhuliawala et al., Findings of ACL 2024)
255
283
 
256
284
  Load these when applying specific frameworks for detailed component guidance, selection criteria, and examples.
257
285
 
286
+ **Composable techniques** (layered onto a framework, not selected from the routing tables) live in `references/techniques/`:
287
+ - `few-shot.md` - In-context examples: when to add them, how many, ordering, label-space rules
288
+
258
289
  ## Templates
259
290
 
260
291
  Every framework has a fill-in template at `assets/templates/<framework>_template.txt`, named after the framework's reference doc (e.g. `co-star.md` → `co-star_template.txt`). RISE has two: `rise-ie_template.txt` and `rise-ix_template.txt`. One extra template, `hybrid_template.txt`, is for combined-framework prompts (see **Combining Frameworks**).
@@ -316,10 +347,10 @@ This example shows the full intent-based flow — detecting intent, using the di
316
347
  > - **Same chat**: Tell the assistant: *"Use the revised prompt you just provided as a new instruction and execute it."*
317
348
 
318
349
  ```
319
- Rewrite the following job posting. The current version suffers from corporate-speak, passive voice, overly formal tone, and generic language that doesn't reflect actual team culture.
320
-
321
350
  [Paste the current job posting here]
322
351
 
352
+ The job posting above suffers from corporate-speak, passive voice, overly formal tone, and generic language that doesn't reflect actual team culture.
353
+
323
354
  The rewritten version should sound like it was written by engineers, for engineers. Early-career developers should read it and think "I want to work there." It should feel honest, direct, and human — not like legal boilerplate.
324
355
 
325
356
  Follow these rules:
@@ -329,6 +360,8 @@ Follow these rules:
329
360
  - Keep all technical requirements and must-haves verbatim — do not change these.
330
361
  - Target reading level: conversational, not academic.
331
362
  - Length: same or shorter than the original. Cut fluff, don't add it.
363
+
364
+ Now rewrite the job posting above.
332
365
  ```
333
366
 
334
367
  ---
@@ -1,5 +1,16 @@
1
- ACTION: [What to do — one clear verb-driven instruction]
1
+ SOURCE MATERIAL:
2
+ [Optional — paste the artifact the task operates on here, named concretely (the meeting
3
+ transcript, the function). If the task creates something from scratch, delete this
4
+ bracketed block along with the sentence directly below it.]
5
+ Use the material above as the input for the task described below.
2
6
 
3
- PURPOSE: [Why it's needed — one sentence on how it will be used or who needs it]
7
+ ACTION:
8
+ [One complete imperative sentence naming what to produce, e.g. "Summarize the decisions in
9
+ the transcript above." Never a bare noun phrase like "meeting summary" — nothing else here
10
+ states the task. The two fields below may be fragments.]
4
11
 
5
- EXPECTATION: [What a good result looks like — format, length, quality bar, or tone]
12
+ PURPOSE:
13
+ Calibrate the result to this purpose: [who needs it and what they will do with it].
14
+
15
+ EXPECTATION:
16
+ A good result meets this standard: [the success bar — length, format, tone, or quality].
@@ -1,15 +1,28 @@
1
+ SOURCE MATERIAL:
2
+ [Paste the artifact to be transformed here — the artifact itself, never a description of it.
3
+ Name it concretely and keep it bracketed for the user to fill in, e.g. "[Paste the current
4
+ job posting here]".]
5
+ Use the material above as the material to be transformed for the work described below.
6
+
1
7
  BEFORE:
2
- [Describe the current state what exists now, what's wrong with it, what needs to change.
3
- Be specific: quote actual content, describe current problems, name limitations.]
8
+ This is the state that material is in now, and why it must change:
9
+ [Describe the current state in complete sentences, not a bare noun phrase. Say what exists
10
+ now, what is wrong with it, and what needs to change. Quote the material above wherever a
11
+ specific flaw is visible in it.]
4
12
 
5
13
  AFTER:
6
- [Describe the desired end state what it should look like once transformed.
7
- Include: qualities it should have, audience/consumer of the result, success criteria.]
14
+ This is what it must become once the transformation is complete:
15
+ [Describe the desired end state in complete sentences. Cover the qualities the result must
16
+ have and the criteria that make it successful. Name the audience only if the user identified
17
+ one; otherwise leave "[you fill this in: who will read the result]".]
8
18
 
9
19
  BRIDGE:
10
- [Define the transformation rules how to get from Before to After.
11
- Include:
12
- - What must be preserved (do not change)
13
- - What should change
14
- - Any constraints on approach or style
15
- - Tone, length, or format requirements for the result]
20
+ Follow these rules when carrying out the transformation:
21
+ [State each rule as a self-contained imperative carrying its own verb — "Preserve every salary
22
+ and benefits detail exactly as written", not "salary details". Write prohibitions as
23
+ "Do not…" or "Never…". Cover:
24
+ - What must be preserved unchanged, and what should change
25
+ - Any constraint on approach, style, tone, length, or format]
26
+
27
+ Now [state the transformation as an imperative naming the material, e.g. "rewrite the job
28
+ posting above"].
@@ -1,15 +1,40 @@
1
+ This is a business task with a defined success bar. Everything below describes one
2
+ deliverable.
3
+
4
+ SOURCE MATERIAL:
5
+ [Optional — paste the material this task works from here, named specifically: the current
6
+ process document, the performance data, the existing draft. If you have nothing to paste,
7
+ delete this bracketed block along with the sentence directly below it.]
8
+ Use the material above as the factual basis for the work described below.
9
+
1
10
  BACKGROUND:
2
- [Current situation, why this task exists, relevant history and constraints]
11
+ Here is the situation this task arises from:
12
+ [Describe the current state as narrative prose: what the organization is, what is
13
+ happening now, and why this task exists. Add prior attempts and constraints only where the
14
+ user supplied them; never invent them.]
3
15
 
4
16
  ROLE:
5
- [Professional persona and expertise to embody]
17
+ Take on this professional persona for the work:
18
+ [One second-person sentence beginning "You are…", naming the domain expertise and level of
19
+ experience this task requires.]
6
20
 
7
21
  OBJECTIVE:
8
- [The specific task and deliverable]
22
+ Your task is to do the following:
23
+ [One imperative sentence naming what to analyze or produce and what the finished artifact
24
+ is.]
25
+
26
+ OUTPUT FORMAT:
27
+ Deliver your response in this shape:
28
+ [Name the sections the response should contain, its approximate length or item count, and
29
+ how much supporting detail each part carries.]
9
30
 
10
31
  KEY RESULTS:
11
- [Measurable outcomes this output should help achieve how success is defined in business terms]
32
+ Your response will be judged on whether it can plausibly move the measurable outcomes
33
+ below. They are the success bar, not tasks to carry out:
34
+ [List each outcome as a statement naming the metric and its target. Add a baseline or time
35
+ frame only where the user gave one; never invent one — write "[you fill this in: current
36
+ value of <metric>]" instead.]
12
37
 
13
38
  EVOLVE:
14
- After completing your response, provide 3 specific suggestions for improving
15
- this output or approach in a follow-up iteration.
39
+ After completing your response, provide 3 specific suggestions for improving this output
40
+ or approach in a follow-up iteration.
@@ -1,18 +1,26 @@
1
+ You are enforcing a stated principle against an existing piece of writing. This is a
2
+ two-phase task: write a critique, then write a revision. Do not skip the critique and go
3
+ straight to the rewrite, and do not merge the two.
4
+
1
5
  PRINCIPLE:
2
- [State the specific standard the output must satisfy — be precise and measurable]
6
+ The principle to enforce is this:
7
+ [State the standard the output must satisfy — one principle or a small set — as complete
8
+ sentences whose compliance a reader could check. Be precise and measurable.]
3
9
 
4
- INITIAL OUTPUT:
5
- [The output to evaluate — AI-generated or human-written]
10
+ SOURCE MATERIAL:
11
+ [Paste the output to be critiqued here — AI-generated or human-written.]
12
+ Use the material above as the text to be critiqued and revised for the work described
13
+ below.
6
14
 
7
15
  CRITIQUE:
8
- Identify specific ways the output above violates or falls short of the
9
- principle stated above.
16
+ Before rewriting anything, identify the specific ways the material above violates or falls
17
+ short of the principle.
10
18
  - Quote the specific passages that are problematic
11
19
  - Explain precisely why each passage violates the principle
12
- - Focus only on failures against the principle (not general quality)
20
+ - Focus only on failures against the principle, not general quality
13
21
 
14
22
  REVISION:
15
- Rewrite the output to fully satisfy the principle.
23
+ Then rewrite the material above so it fully satisfies the principle.
16
24
  - Address every critique point identified above
17
25
  - Preserve all content that already satisfies the principle
18
- - Do not introduce new violations of the principle
26
+ - Do not introduce new violations
@@ -1,3 +1,7 @@
1
+ SOURCE MATERIAL:
2
+ [Optional — include only if this task works from material you already have. Paste the source document, data, or draft this task operates on here. If you have nothing to paste, delete this bracketed block along with the sentence directly below it.]
3
+ Use the material above as the factual basis for the work described below.
4
+
1
5
  CONTEXT:
2
6
  [Who you are, the situation you're in, and why this task exists]
3
7
 
@@ -1,33 +1,39 @@
1
1
  === CHAIN OF DENSITY (CoD) TEMPLATE ===
2
2
 
3
+ Everything down to the first divider rule is guidance for whoever assembles this
4
+ prompt and never belongs in the finished prompt. The prompt itself runs from that
5
+ divider to the end of the file: fill in every bracketed field there, and drop the
6
+ section headers and divider rules when emitting it. 'Step 1.', 'Step 2.' and
7
+ 'Guidelines:' are literal labels in this protocol, not headings — keep them exactly
8
+ as written. [TARGET] is the fixed word budget and [N] the number of summaries, both
9
+ as bare numerals; substitute the same numeral at every occurrence of each.
10
+
3
11
  Use when: summarizing a document and you want maximum information in a fixed
4
12
  length — articles, papers, reports, executive summaries, abstracts.
5
13
 
6
14
  NOT for: general rewriting (use Self-Refine), or progressive shortening to a
7
15
  target word count (use Iterative Compression). CoD holds length FIXED
8
- and raises density. If your text is getting shorter, this is the
16
+ and raises density if your text is getting shorter, this is the
9
17
  wrong template.
10
18
 
11
19
  Based on Adams et al., "From Sparse to Dense: GPT-4 Summarization with Chain of
12
- Density Prompting" (arXiv 2309.04269, NewSum @ EMNLP 2023).
13
-
14
- ─────────────────────────────────────────────
15
- SOURCE ARTICLE:
16
- [Paste the full document to be summarized here]
20
+ Density Prompting" (arXiv 2309.04269, NewSum @ EMNLP 2023). The paper's settings are
21
+ [TARGET] = 80 and [N] = 5; fewer summaries works, more gives diminishing returns. Use
22
+ those if the user gave no numbers of their own.
17
23
 
18
- ─────────────────────────────────────────────
19
- TARGET LENGTH:
20
- [The fixed word budget every summary must hit. Paper uses ~80 words.]
24
+ The padded first summary is intentional, not a mistake — the filler is the slack that
25
+ later iterations convert into entities. A dense first summary leaves no room and the
26
+ chain stalls.
21
27
 
22
28
  ─────────────────────────────────────────────
23
- NUMBER OF ITERATIONS:
24
- [Paper uses 5. Fewer works; more gives diminishing returns.]
29
+ SOURCE MATERIAL:
30
+ [Paste the full document to be summarized here.]
31
+ Use the material above as the article to be summarized for the work described below.
25
32
 
26
33
  ─────────────────────────────────────────────
27
- THE PROMPT copy from here down, with the fields above filled in:
28
-
29
- You will generate increasingly concise, entity-dense summaries of the above
30
- article.
34
+ You will generate increasingly concise, entity-dense summaries of the article above.
35
+ Produce [N] summaries in total, each denser than the last, all in a single response.
36
+ Every summary must be exactly [TARGET] words long.
31
37
 
32
38
  Repeat the following 2 steps [N] times.
33
39
 
@@ -45,9 +51,9 @@ A missing entity is:
45
51
 
46
52
  Guidelines:
47
53
  - The first summary should be long (4-5 sentences, ~[TARGET] words) yet highly
48
- non-specific, containing little information beyond the entities marked as
49
- missing. Use overly verbose language and fillers (e.g., "this article
50
- discusses") to reach ~[TARGET] words.
54
+ non-specific, containing little information beyond the entities marked as missing.
55
+ Use overly verbose language and fillers (e.g., "this article discusses") to reach
56
+ ~[TARGET] words.
51
57
  - Make every word count: re-write the previous summary to improve flow and make
52
58
  space for additional entities.
53
59
  - Make space with fusion, compression, and removal of uninformative phrases like
@@ -60,17 +66,10 @@ Guidelines:
60
66
 
61
67
  Remember, use the exact same number of words for each summary.
62
68
 
63
- Answer in JSON. The JSON should be a list (length [N]) of dictionaries whose keys
64
- are "Missing_Entities" and "Denser_Summary".
65
-
66
- ─────────────────────────────────────────────
67
- CHOOSING THE OUTPUT:
68
- Do not automatically take the last summary. In the paper's human evaluation,
69
- step 2 (30.8% of first-place votes) and step 3 (23.0%) were preferred over the
70
- sparse step 1 (8.3%). Past a point, density costs readability. Compare the steps
71
- and pick deliberately.
69
+ Answer in JSON. The JSON should be a list (length [N]) of dictionaries whose keys are
70
+ "Missing_Entities" and "Denser_Summary".
72
71
 
73
- ─────────────────────────────────────────────
74
- NOTE: The deliberately padded first summary is intentional, not a mistake. The
75
- filler is the slack that later iterations convert into entities. A dense first
76
- summary leaves no room and the chain stalls.
72
+ After the JSON, and outside it, add one short paragraph naming which summary you
73
+ recommend and why. Do not default to the last one: in the paper's human evaluation,
74
+ summary 2 (30.8% of first-place votes) and summary 3 (23.0%) were preferred over the
75
+ sparse summary 1 (8.3%), because past a point density costs readability.
@@ -8,6 +8,14 @@ PROBLEM / QUESTION:
8
8
  [State the problem clearly. Include all relevant numbers, conditions,
9
9
  or constraints — everything needed to reason from.]
10
10
 
11
+ ─────────────────────────────────────────────
12
+ SOURCE MATERIAL:
13
+ [Optional — paste the material the problem refers to here (the code, data,
14
+ document, or transcript to reason over). If the problem stated above is fully
15
+ self-contained, delete this bracketed block and the sentence below it.]
16
+ The reasoning that follows must work from the material above, not from
17
+ assumptions about it.
18
+
11
19
  ─────────────────────────────────────────────
12
20
  REASONING INSTRUCTION:
13
21
  Solve this step-by-step. For each step:
@@ -0,0 +1,26 @@
1
+ SOURCE MATERIAL:
2
+ [Optional — paste the draft answer you want fact-checked here, OR the factual
3
+ question you want answered with verification built in. If you are asking a fresh
4
+ question rather than checking an existing draft, delete this bracketed block and
5
+ the sentence directly below it.]
6
+ Treat the material above as the subject to be verified in the steps below.
7
+
8
+ Work through the following four steps in order, in a single response.
9
+
10
+ First, write a baseline answer to the question. Do not polish it — this draft is
11
+ what you will fact-check. (If a draft was supplied above, treat that draft as your
12
+ baseline answer instead of writing a new one.)
13
+
14
+ Second, list the specific factual claims your draft makes — every name, date,
15
+ quantity, entity, and list member — and write one short verification question for
16
+ each claim. Each question must target one claim and be answerable on its own; do
17
+ not write a single broad question that re-asks the whole task.
18
+
19
+ Third, answer each verification question independently. Do not look back at your
20
+ draft while answering these questions — answer each one on its own, as if seeing
21
+ it fresh, so your checks are not biased into agreeing with whatever the draft
22
+ already says.
23
+
24
+ Fourth, write a final verified answer. Keep every claim your independent answers
25
+ confirmed, correct every claim they contradicted, and drop any claim you could
26
+ not verify. Note briefly what changed from the draft.
@@ -1,3 +1,11 @@
1
+ SOURCE MATERIAL:
2
+ [OPTIONAL — include only if the content is built from material the user already has.
3
+ If so, emit a literal paste instruction naming the specific artifact, e.g. "[Paste the Q3 revenue report here]"
4
+ or "[Paste the blog post whose voice should be matched here]" — never a generic word like "content" —
5
+ then one line of prose tying it to what follows, e.g. "Use the material above as the factual and stylistic
6
+ basis for what you produce; do not invent details it does not support."
7
+ If the content is written entirely from scratch, omit this section — do not emit an empty placeholder.]
8
+
1
9
  CONTEXT:
2
10
  [Provide background information, situation, and any relevant constraints. What's the setting? What's happened before? What limitations exist?]
3
11
 
@@ -1,3 +1,9 @@
1
+ SOURCE MATERIAL:
2
+ [Optional — paste the material the briefing draws on here, named concretely (the customer
3
+ research deck, the writing sample whose voice should be matched). If you have nothing to
4
+ paste, delete this bracketed block along with the sentence directly below it.]
5
+ Use the material above as the factual and stylistic basis for the work described below.
6
+
1
7
  CAPACITY AND ROLE:
2
8
  [Define the expertise level and professional role to embody — be specific about domain and level]
3
9
 
@@ -1,3 +1,11 @@
1
+ SOURCE MATERIAL:
2
+ [Optional — include only if this task operates on material you already have. Paste the
3
+ specific artifact here and name it in this line, e.g. "Paste the legacy authentication
4
+ function here", "Paste the revised requirements doc here" — the artifact itself, not a
5
+ description of it. If this task generates from scratch, delete this bracketed block along
6
+ with the sentence directly below it.]
7
+ Use the material above as the basis for the task described below.
8
+
1
9
  CONTEXT:
2
10
  [Describe the situation, background, or circumstances surrounding this task.
3
11
  Include relevant details like: current state, constraints, what's already been done,
@@ -4,6 +4,13 @@ your task is to generate the strongest possible case against the following posit
4
4
  POSITION TO ATTACK:
5
5
  [State the position, plan, decision, or proposal clearly]
6
6
 
7
+ SUPPORTING MATERIAL (optional):
8
+ [Optional — paste the proposal, design doc, strategy memo, or other document
9
+ that sets out this position here. If you have nothing to paste, delete this
10
+ bracketed block and the sentence below it.]
11
+ Treat the document above as the detailed source of the position's claims,
12
+ assumptions, and reasoning.
13
+
7
14
  ATTACK INSTRUCTIONS:
8
15
  - Do not acknowledge positives or offer a balanced view
9
16
  - Attack every assumption the position depends on