@ckelsoe/prompt-architect 3.3.1 → 3.4.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 (63) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +19 -0
  4. package/adapters/system-prompt.md +77 -51
  5. package/package.json +2 -2
  6. package/scripts/test.js +26 -0
  7. package/skills/prompt-architect/SKILL.md +49 -36
  8. package/skills/prompt-architect/assets/templates/ape_template.txt +14 -3
  9. package/skills/prompt-architect/assets/templates/bab_template.txt +23 -10
  10. package/skills/prompt-architect/assets/templates/broke_template.txt +31 -6
  11. package/skills/prompt-architect/assets/templates/cai-critique-revise_template.txt +16 -8
  12. package/skills/prompt-architect/assets/templates/care_template.txt +4 -0
  13. package/skills/prompt-architect/assets/templates/chain-of-density_template.txt +30 -31
  14. package/skills/prompt-architect/assets/templates/chain-of-thought_template.txt +8 -0
  15. package/skills/prompt-architect/assets/templates/co-star_template.txt +8 -0
  16. package/skills/prompt-architect/assets/templates/crispe_template.txt +6 -0
  17. package/skills/prompt-architect/assets/templates/ctf_template.txt +8 -0
  18. package/skills/prompt-architect/assets/templates/devils-advocate_template.txt +7 -0
  19. package/skills/prompt-architect/assets/templates/hybrid_template.txt +44 -24
  20. package/skills/prompt-architect/assets/templates/iterative-compression_template.txt +43 -28
  21. package/skills/prompt-architect/assets/templates/least-to-most_template.txt +4 -0
  22. package/skills/prompt-architect/assets/templates/plan-and-solve_template.txt +4 -0
  23. package/skills/prompt-architect/assets/templates/pre-mortem_template.txt +24 -14
  24. package/skills/prompt-architect/assets/templates/race_template.txt +9 -0
  25. package/skills/prompt-architect/assets/templates/rcot_template.txt +8 -0
  26. package/skills/prompt-architect/assets/templates/react_template.txt +38 -16
  27. package/skills/prompt-architect/assets/templates/rise-ie_template.txt +4 -0
  28. package/skills/prompt-architect/assets/templates/rise-ix_template.txt +3 -3
  29. package/skills/prompt-architect/assets/templates/risen_template.txt +7 -0
  30. package/skills/prompt-architect/assets/templates/rpef_template.txt +16 -11
  31. package/skills/prompt-architect/assets/templates/rtf_template.txt +9 -0
  32. package/skills/prompt-architect/assets/templates/skeleton-of-thought_template.txt +18 -10
  33. package/skills/prompt-architect/assets/templates/step-back_template.txt +4 -0
  34. package/skills/prompt-architect/assets/templates/tidd-ec_template.txt +54 -31
  35. package/skills/prompt-architect/assets/templates/tree-of-thought_template.txt +37 -21
  36. package/skills/prompt-architect/references/frameworks/ape.md +143 -57
  37. package/skills/prompt-architect/references/frameworks/bab.md +137 -58
  38. package/skills/prompt-architect/references/frameworks/broke.md +157 -57
  39. package/skills/prompt-architect/references/frameworks/cai-critique-revise.md +183 -75
  40. package/skills/prompt-architect/references/frameworks/care.md +67 -36
  41. package/skills/prompt-architect/references/frameworks/chain-of-density.md +49 -27
  42. package/skills/prompt-architect/references/frameworks/chain-of-thought.md +28 -7
  43. package/skills/prompt-architect/references/frameworks/co-star.md +100 -44
  44. package/skills/prompt-architect/references/frameworks/crispe.md +7 -5
  45. package/skills/prompt-architect/references/frameworks/ctf.md +73 -37
  46. package/skills/prompt-architect/references/frameworks/devils-advocate.md +105 -58
  47. package/skills/prompt-architect/references/frameworks/iterative-compression.md +236 -269
  48. package/skills/prompt-architect/references/frameworks/least-to-most.md +35 -13
  49. package/skills/prompt-architect/references/frameworks/plan-and-solve.md +38 -9
  50. package/skills/prompt-architect/references/frameworks/pre-mortem.md +176 -66
  51. package/skills/prompt-architect/references/frameworks/race.md +91 -38
  52. package/skills/prompt-architect/references/frameworks/rcot.md +1 -1
  53. package/skills/prompt-architect/references/frameworks/react.md +230 -97
  54. package/skills/prompt-architect/references/frameworks/reverse-role.md +22 -15
  55. package/skills/prompt-architect/references/frameworks/rise.md +94 -70
  56. package/skills/prompt-architect/references/frameworks/risen.md +80 -28
  57. package/skills/prompt-architect/references/frameworks/rpef.md +227 -58
  58. package/skills/prompt-architect/references/frameworks/rtf.md +2 -2
  59. package/skills/prompt-architect/references/frameworks/self-refine.md +4 -2
  60. package/skills/prompt-architect/references/frameworks/skeleton-of-thought.md +67 -21
  61. package/skills/prompt-architect/references/frameworks/step-back.md +47 -15
  62. package/skills/prompt-architect/references/frameworks/tidd-ec.md +110 -45
  63. package/skills/prompt-architect/references/frameworks/tree-of-thought.md +112 -37
@@ -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:
@@ -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
@@ -1,7 +1,8 @@
1
1
  === HYBRID / COMBINED FRAMEWORK TEMPLATE ===
2
2
 
3
- Use this when a single framework doesn't fully cover your needs.
4
- Include only the sections that add valueremove the rest.
3
+ Use this when a single framework doesn't fully cover your needs. Include only the sections
4
+ that add value and delete the resta hybrid with 4 focused sections beats one that uses
5
+ all 15.
5
6
 
6
7
  ─────────────────────────────────────────────
7
8
  COMMON COMBINATION PATTERNS
@@ -35,6 +36,15 @@ Use when: create content → then verify it meets an explicit principle/standard
35
36
  HYBRID TEMPLATE STRUCTURE
36
37
  ─────────────────────────────────────────────
37
38
 
39
+ [Headers are stripped at emission, so fill every slot below with complete sentences that name
40
+ their own subject.]
41
+
42
+ SOURCE MATERIAL:
43
+ [Optional — paste the artifact this task operates on here, named concretely (the current job
44
+ posting, the Q3 revenue report). If you have nothing to paste, delete this bracketed block
45
+ along with the sentence directly below it.]
46
+ Use the material above as the factual basis for the work described below.
47
+
38
48
  CONTEXT / BACKGROUND:
39
49
  [From CTF / CO-STAR / CARE — situation, background, why this task exists]
40
50
 
@@ -44,32 +54,42 @@ ROLE:
44
54
  OBJECTIVE:
45
55
  [From CO-STAR / RISEN — specific goal to achieve]
46
56
 
47
- INPUT (if applicable):
48
- [From RISE-IE — what's being provided, format, characteristics]
57
+ INPUT CHARACTERISTICS:
58
+ [From RISE-IE's "About the material above" slot — the format, structure, and quirks of
59
+ whatever you pasted under SOURCE MATERIAL, not the material itself. If you pasted nothing
60
+ there, delete this bracketed block.]
49
61
 
50
62
  INSTRUCTIONS / STEPS:
51
63
  [From RISEN / RISE — guiding principles, methodology, step sequence]
52
64
 
53
65
  CONSTRAINTS / RULES:
54
- [From CARE / TIDD-EC / RISEN — what must/must not happen, boundaries]
66
+ [From CARE / TIDD-EC / RISEN — boundaries on the work, each stated as a requirement or a
67
+ prohibition]
55
68
 
56
69
  DO:
57
- [From TIDD-EC — explicit positive guidance]
70
+ [From TIDD-EC — required behaviors, each a complete imperative sentence]
58
71
 
59
72
  DON'T:
60
- [From TIDD-EC — explicit negative guidance]
73
+ [From TIDD-EC — prohibitions, each phrased as "Do not…" or "Never…" so it stands on its own
74
+ line]
61
75
 
62
- AUDIENCE (if relevant):
63
- [From CO-STAR — who this is for, characteristics]
76
+ AUDIENCE:
77
+ [From CO-STAR — who this is for and what they already know]
64
78
 
65
- TONE & STYLE (if relevant):
79
+ TONE & STYLE:
66
80
  [From CO-STAR / CRISPE — voice and communication style]
67
81
 
68
- EXAMPLES (if relevant):
69
- [From RISE-IX / CARE — reference samples]
82
+ EXAMPLES:
83
+ [From RISE-IX / CARE — reference samples. If you have none, delete this bracketed block along
84
+ with the sentence directly below it.]
85
+ Match the form and quality of the samples above; do not reuse their content.
70
86
 
71
- KEY RESULTS (if relevant):
72
- [From BROKE measurable business outcomes]
87
+ KEY RESULTS:
88
+ Your response will be judged on whether it can plausibly move the measurable outcomes
89
+ below. They are the success bar, not tasks to carry out:
90
+ [From BROKE — measurable business outcomes, each a complete sentence naming the metric and
91
+ its target. If the task has no measurable business outcome, delete this bracketed block along
92
+ with the two sentences directly above it.]
73
93
 
74
94
  END GOAL / EXPECTATION:
75
95
  [From RISEN / RACE / BROKE — success criteria, final outcome, output format]
@@ -78,24 +98,24 @@ FORMAT:
78
98
  [From RTF / CTF / APE — exactly how output should be structured]
79
99
 
80
100
  ─────────────────────────────────────────────
81
- CRITIQUE / VERIFICATION LAYER (optional)
101
+ CRITIQUE / VERIFICATION LAYER
82
102
  ─────────────────────────────────────────────
83
- Add after generation if needed:
103
+
104
+ [Optional — if the task has a distinct verification phase, keep exactly one of the three
105
+ blocks below and append it after the generation instructions above. Otherwise delete all
106
+ three.]
84
107
 
85
108
  FEEDBACK DIMENSIONS (Self-Refine):
86
- Review for: [dimension 1], [dimension 2], [dimension 3]
87
- Refine addressing all feedback.
109
+ Review your own draft for [dimension 1], [dimension 2], and [dimension 3], then revise it to
110
+ address every point you raised.
88
111
 
89
112
  OR
90
113
 
91
114
  PRINCIPLE (CAI Critique-Revise):
92
- [State the standard] Critique Revise.
115
+ Measure your draft against this principle, then revise the draft until it complies: [the
116
+ explicit standard the output must meet].
93
117
 
94
118
  OR
95
119
 
96
120
  POSITION ATTACK (Devil's Advocate):
97
- Argue against the above recommendation as forcefully as possible.
98
-
99
- ─────────────────────────────────────────────
100
- NOTE: Use only sections relevant to your task.
101
- A hybrid with 4 focused sections beats a hybrid that uses all 15.
121
+ Argue against the recommendation above as forcefully as possible.
@@ -1,5 +1,12 @@
1
1
  === ITERATIVE COMPRESSION 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. 'Iteration 1:', 'Iteration 2:'
7
+ and 'Iteration 3:' are literal labels in this protocol, not headings — keep them
8
+ exactly as written wherever they appear.
9
+
3
10
  Use when: text needs to get tighter and shorter through successive passes —
4
11
  trimming to a word limit, cutting filler, sharpening explanations.
5
12
 
@@ -10,50 +17,58 @@ NOT for: summarization at a FIXED length with rising information density —
10
17
  (accuracy + tone + completeness), not compression.
11
18
 
12
19
  ─────────────────────────────────────────────
13
- SOURCE CONTENT:
14
- [Paste the content to be compressed here]
20
+ SOURCE MATERIAL:
21
+ [Paste the full text to be compressed here.]
22
+ Use the material above as the text to be compressed for the work described below.
23
+ Every version must be a rewrite of that material — never introduce a claim it does
24
+ not support.
15
25
 
16
26
  ─────────────────────────────────────────────
17
27
  OPTIMIZATION GOAL:
18
- [What should improve with each pass?]
19
- Examples:
20
- - "Reduce word count by 20% each pass while retaining all key information"
21
- - "Increase information density — remove filler, make every sentence earn its place"
22
- - "Improve clarity — each pass should be more direct and easier to understand"
28
+ Every pass must move the text toward this goal:
29
+ [A full sentence naming what improves and by how much, not a bare label like
30
+ "concision." For example: "Reduce word count by 20% each pass while retaining all key
31
+ information," or "Raise information density — cut filler until every sentence earns
32
+ its place."]
23
33
 
24
34
  ─────────────────────────────────────────────
25
35
  TARGET:
26
- [Where should this end up? A word count, a reading level, a single paragraph.]
36
+ The final version must reach this end state:
37
+ [A phrase completing the sentence above, e.g. "under 150 words and readable by a
38
+ non-specialist." Name the unit, not a bare number.]
27
39
 
28
40
  ─────────────────────────────────────────────
29
41
  NUMBER OF ITERATIONS:
30
- [How many refinement passes? Typical: 2-4]
31
- Iteration 1: [First pass initial improvement]
32
- Iteration 2: [Second pass — tighten further]
33
- Iteration 3: [Optional final polish]
42
+ Run this many passes in total:
43
+ [The count as a phrase completing the sentence above, e.g. "three passes."
44
+ Typical: 2-4]
45
+ Iteration 1: [What this first pass must do to the source text, as a full sentence.]
46
+ Iteration 2: [How this pass tightens the result of pass 1, as a full sentence.]
47
+ Iteration 3: [Optional — what this final polish pass must do, as a full sentence.
48
+ Delete this line if running fewer than three passes; add further Iteration lines in
49
+ the same form if running more.]
34
50
 
35
51
  ─────────────────────────────────────────────
36
52
  ITERATION INSTRUCTIONS:
37
- For each iteration:
38
- 1. Identify what can be cut, compressed, or clarified
39
- 2. Apply the changes
40
- 3. Verify: does this version better meet the optimization goal than the previous?
41
- 4. Confirm nothing essential was lost — compression must not drop content that
42
- the goal requires keeping
43
- 5. Stop when: [define your stopping criterion]
44
- Examples: "length < 150 words", "no filler words remain", "3 iterations complete"
53
+ In each pass, identify what can be cut, compressed, or clarified, apply the changes,
54
+ then check both that the result serves the goal above better than the version before
55
+ it and that nothing the goal requires keeping was lost. Stop when [a clause completing
56
+ this sentence, e.g. "no filler words remain" or "all three passes are complete"].
45
57
 
46
58
  ─────────────────────────────────────────────
47
59
  OUTPUT FORMAT:
48
- [What format should the final result be in?]
49
- Examples: paragraph, bullet list, 1-sentence summary, structured sections
60
+ Deliver the final version in this format:
61
+ [A phrase completing the sentence above, e.g. "a single paragraph of continuous
62
+ prose," a bullet list, or a one-sentence summary.]
50
63
 
51
64
  ─────────────────────────────────────────────
52
- OPTIONAL — SHOW INTERMEDIATE VERSIONS:
53
- Set to YES if you want to see each iteration's output.
54
- Set to NO if you only want the final result.
65
+ INTERMEDIATE VERSIONS:
66
+ [Optional keep exactly one of these two sentences as the entire content of this
67
+ block, or delete the block: "Show the output of every iteration in order, labelled by
68
+ pass number." / "Show only the final version — do not print the intermediate
69
+ passes."]
55
70
 
56
71
  ─────────────────────────────────────────────
57
- NOTE: Compression has a floor. Past a point, further passes strip meaning rather
58
- than filler. If an iteration removes something a reader would need, stop at the
59
- previous version.
72
+ Compression has a floor. Past a point, passes strip meaning rather than filler. If a
73
+ pass would remove something a reader needs, stop at the previous version and deliver
74
+ that.
@@ -1,6 +1,10 @@
1
1
  PROBLEM:
2
2
  [The full, complex problem to solve]
3
3
 
4
+ SOURCE MATERIAL:
5
+ [Optional — paste the source material this problem depends on here (the dataset, figures, code, or document the subproblems must reason over). Delete this line and the one below it if the problem above is self-contained.]
6
+ Every subproblem below must be answered against the material above, not from assumption.
7
+
4
8
  DECOMPOSE:
5
9
  Break this problem into ordered subproblems, from simplest prerequisite to most complex.
6
10
  Each later subproblem should build on the answer to the previous.
@@ -1,6 +1,10 @@
1
1
  PROBLEM:
2
2
  [Your question, calculation, or reasoning problem]
3
3
 
4
+ SOURCE MATERIAL:
5
+ [Optional — paste the source data the problem depends on here (the dataset, table, figures, or constraint list the calculation runs on). Delete this line and the one below it if the problem above already states every value needed.]
6
+ The figures and constraints in the material above are authoritative — extract from them rather than from assumed or recalled values.
7
+
4
8
  Let's first understand the problem, extract relevant variables and their
5
9
  corresponding numerals, and devise a complete plan. Then, let's carry out
6
10
  the plan, calculate intermediate values, pay attention to computation,
@@ -1,27 +1,37 @@
1
- PRE-MORTEM ANALYSIS
1
+ You are conducting a pre-mortem on the project described below. The failure stated further
2
+ down is settled fact, not a possibility — work backwards from it and explain why it happened.
3
+ Do not hedge with "could," "might," or "may."
4
+
5
+ SOURCE MATERIAL:
6
+ [Optional — paste the project plan, proposal, or decision document here. If you have nothing
7
+ to paste, 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.
2
9
 
3
10
  PROJECT/DECISION:
4
- [Describe the project, plan, or decision being analyzed — include team size,
5
- timeline, resources, key goals, and any relevant constraints]
11
+ [Describe the project, plan, or decision being analyzed in full sentences what is being
12
+ attempted, plus team size, timeline, resources, goals, and constraints]
6
13
 
7
14
  FAILURE ASSUMPTION:
8
- It is [DATE — e.g., 12 months from now] and [project/decision] has completely
9
- and catastrophically failed. It did not achieve [primary goal].
15
+ It is [DATE — e.g., 12 months from now] and [project/decision] has completely and
16
+ catastrophically failed. It did not achieve [primary goal].
10
17
 
11
18
  FAILURE NARRATIVE:
12
- Describe the failure in 2-3 sentences from the perspective of someone
13
- looking back on it.
19
+ Begin by describing how that failure unfolded, in 2-3 sentences, in past tense from the
20
+ perspective of someone looking back on it.
14
21
 
15
22
  FAILURE CAUSES:
16
- Identify [8-12] specific reasons this failed. For each:
23
+ Then identify [8-12] specific reasons it failed, each stated as something that already went
24
+ wrong. Cover technical/product, team/organizational, market/adoption, financial/resource,
25
+ external dependencies, and timeline/scope. Give each cause three lines:
17
26
  - CAUSE: [What specifically went wrong — be specific, not generic]
18
27
  - DOMAIN: [Technical / People / Market / Financial / External / Timeline]
19
28
  - WARNING SIGN: [What was the earliest observable indicator this was happening?]
20
-
21
- Cover these domains: technical/product, team/organizational, market/adoption,
22
- financial/resource, external dependencies, timeline/scope.
29
+ "CAUSE:", "DOMAIN:" and "WARNING SIGN:" are literal labels in this protocol, not headings —
30
+ keep them exactly as written.
23
31
 
24
32
  PRIORITY ASSESSMENT:
25
- 1. The 3 most LIKELY failure causes given our specific situation
26
- 2. The 3 most PREVENTABLE causes where action now would help most
27
- 3. Any single point of failure that could kill the project alone
33
+ After listing every cause, close by singling out three things:
34
+ 1. The 3 causes most LIKELY to be what actually happened, given the situation above.
35
+ 2. The 3 most PREVENTABLE causes where action taken today would have made the most
36
+ difference.
37
+ 3. Any single point of failure that could have killed the project on its own.
@@ -1,3 +1,12 @@
1
+ SOURCE MATERIAL:
2
+ [OPTIONAL — include only if this task operates on something the user already has.
3
+ If so, emit a literal paste instruction naming the specific artifact, e.g. "[Paste the REST API design here]"
4
+ or "[Paste the migration plan here]" — then one line of prose tying it to what follows,
5
+ e.g. "The material above is what the task below applies to."
6
+ When this section is used, word ACTION to refer to the material ABOVE ("the migration plan above"),
7
+ never "described below" — the artifact precedes it and a downward reference would dangle.
8
+ If the task generates entirely from scratch, omit this section — do not emit an empty placeholder.]
9
+
1
10
  ROLE:
2
11
  [Define the expertise or persona needed — who should do this task and at what level]
3
12
 
@@ -1,6 +1,14 @@
1
1
  STEP 1 — INITIAL ANSWER:
2
2
  Answer the following question using step-by-step reasoning. Show your work.
3
3
 
4
+ SOURCE MATERIAL:
5
+ [Optional — paste the document the question below is grounded in here (the
6
+ requirements list, contract, specification, or dataset that states the
7
+ conditions to be satisfied). If every condition is already stated in the
8
+ question itself, delete this bracketed block and the sentence directly below
9
+ it.]
10
+ Treat the material above as part of the original question at every step below.
11
+
4
12
  QUESTION:
5
13
  [Your question with all conditions and constraints]
6
14
 
@@ -1,27 +1,49 @@
1
+ You are an agent that reaches a goal by calling tools, not by answering in one pass from what
2
+ you already know. Work in a Thought → Action → Observation loop, letting each real tool result
3
+ decide your next step. If the tools below are not actually callable here, stop and say so —
4
+ without live tools this protocol is only formatted guesswork, and plain step-by-step reasoning
5
+ fits better.
6
+
1
7
  GOAL:
2
- [Define the end state to achieve what does success look like?]
8
+ The end state you must reach before you stop:
9
+ [A full sentence naming what must be produced or determined. Write it as an outcome, not an
10
+ activity.]
3
11
 
4
12
  AVAILABLE TOOLS:
5
- - [tool_name]: [What it does and how to invoke it]
6
- - [tool_name]: [What it does and how to invoke it]
7
- - [tool_name]: [What it does and how to invoke it]
13
+ Do not call any tool that is not named here:
14
+ - [tool_name]: [Full sentence on what this tool does and what input it takes, drawn only from
15
+ what the user actually told you do not invent inputs or return values they did not state.]
16
+ - [tool_name]: [Same form, one line per tool the user named. Delete any unused line rather
17
+ than inventing a tool to fill it.]
8
18
 
9
19
  CONSTRAINTS:
10
- - [Rules, limits, or guardrails on actions]
11
- - [Stop condition: when to stop and deliver Final Answer]
12
- - [Optional: max iterations or tool call limit]
20
+ Every action is bound by these rules — each is a requirement or a prohibition, not a
21
+ suggestion:
22
+ - [A self-contained imperative, e.g. "Base every conclusion on data you actually retrieved."
23
+ Phrase restrictions as "Do not…" or "Never…" so each prohibition stands on its own line.]
24
+ - Stop and deliver your Final Answer when [full clause naming the observable situation that
25
+ means the goal is reached, or that it cannot be].
26
+ - [Optional — a hard ceiling as a full sentence, e.g. "Make no more than 8 tool calls in
27
+ total." Delete this line if there is no limit.]
13
28
 
14
29
  APPROACH:
15
- Use the Thought Action Observation cycle until the goal is reached:
30
+ Repeat this cycle until the goal is reached, each step on its own line starting with its
31
+ label. Replace each description below with your actual content:
16
32
 
17
- Thought: [Reason about current state and what to do next]
18
- Action: [tool_name] [specific query or operation]
19
- Observation: [Result of the action]
33
+ Thought: your reasoning about where things stand and what to do next
34
+ Action: the tool name, then an em dash, then the exact input you are passing to that tool
35
+ Observation: the exact result that tool returned
20
36
 
21
- Thought: [Reason about the observation what does it mean? what to do next?]
22
- Action: [tool_name] — [next operation]
23
- Observation: [Result]
37
+ When the cycle has stopped, write this one line, one time only:
24
38
 
25
- [Continue cycling until goal is achieved or stop condition is met]
39
+ Final Answer: the deliverable the goal asked for, supported by what your Observations showed
26
40
 
27
- Final Answer: [Deliver the result once goal is reached]
41
+ Rules for the cycle:
42
+ - Every Action must name one tool from the list above, never prose — e.g. Action:
43
+ search_docs — "token refresh policy"
44
+ - Take ONE action at a time, then wait for its real Observation before continuing; each
45
+ Thought must respond to the Observation directly before it.
46
+ - Never write an Observation yourself. An Observation is the actual output of an actual tool
47
+ call. Inventing one produces a fabricated investigation that reads as though it happened.
48
+ - "Thought:", "Action:", "Observation:" and "Final Answer:" are literal labels in this
49
+ protocol, not headings — keep them exactly as written.
@@ -2,6 +2,10 @@ ROLE:
2
2
  [Define the perspective or expertise needed for this task]
3
3
 
4
4
  INPUT:
5
+ [Paste the data or content to be processed here — name it specifically in this line, e.g.
6
+ "Paste the customer review export (CSV) here". Paste the material itself, not a description of it.]
7
+
8
+ About the material above:
5
9
  [Specify what data/content is being provided:
6
10
  - Format and structure (CSV, JSON, text, etc.)
7
11
  - Key characteristics and fields
@@ -21,8 +21,8 @@ EXAMPLES:
21
21
  - Successful outputs from similar tasks
22
22
  - 2-3 concrete examples recommended]
23
23
 
24
- Example 1: [First reference example demonstrating desired output]
24
+ Example 1: [Paste the first reference sample here the actual piece whose style and format the output should match, not a description of it]
25
25
 
26
- Example 2: [Second reference example showing format/style to match]
26
+ Example 2: [Paste a second reference sample here]
27
27
 
28
- [Optional] Example 3: [Third example if additional clarity needed]
28
+ Example 3: [Optional paste a third reference sample here if more clarity is needed. If you only have two, delete this line and the blank line above it.]
@@ -1,3 +1,10 @@
1
+ SOURCE MATERIAL:
2
+ [OPTIONAL — include only if the procedure below operates on something the user already has.
3
+ If so, emit a literal paste instruction naming the specific artifact, e.g. "[Paste the authentication module source here]"
4
+ or "[Paste the Q3 sales dataset here]" — then one line of prose tying it to what follows,
5
+ e.g. "The material above is what the steps below are applied to."
6
+ If the task generates entirely from scratch, omit this section — do not emit an empty placeholder.]
7
+
1
8
  ROLE:
2
9
  [Define the expertise level, persona, or perspective to adopt. What knowledge should be demonstrated?]
3
10