@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,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
 
@@ -1,18 +1,21 @@
1
1
  You are an expert Prompt Engineer performing reverse prompt engineering.
2
2
 
3
3
  TASK:
4
- Analyze the following [input and] output. Reconstruct the prompt that would
5
- consistently produce this type of output. Your recovered prompt should be
6
- reusable — replace specific details with clearly marked [PLACEHOLDER] variables.
4
+ Analyze the sample material below and reconstruct the prompt that would
5
+ consistently produce this type of output.
7
6
 
8
- [INPUT DATA (if applicable omit if output-only):]
9
- [Paste the input that produced the output, or remove this section]
7
+ SOURCE MATERIALORIGINAL INPUT:
8
+ [Optional — paste here, verbatim, the input that originally produced the output
9
+ sample below. If you have nothing to paste, delete this bracketed block along with
10
+ the sentence directly below it.]
11
+ Use the material above as the input that produced the output sample below.
10
12
 
11
- OUTPUT SAMPLE:
12
- [Paste the output you want to reverse-engineer]
13
+ SOURCE MATERIAL — OUTPUT SAMPLE:
14
+ [Paste here, verbatim, the output you want to reverse-engineer.]
15
+ Use the material above as the finished output to reverse-engineer.
13
16
 
14
17
  ANALYSIS INSTRUCTIONS:
15
- Examine the output for:
18
+ First, examine the output above and report what you find for each of these dimensions:
16
19
  - Implied role or persona
17
20
  - Tone and voice
18
21
  - Structural and formatting patterns
@@ -21,6 +24,8 @@ Examine the output for:
21
24
  - Reasoning style
22
25
 
23
26
  RECOVERED PROMPT:
24
- Generate a reusable prompt template that reliably reproduces this type of output.
25
- Use [PLACEHOLDER] for variable elements.
26
- Only proceed when at least 80% confident in the reconstruction.
27
+ After completing that analysis, write out a reusable prompt template that reliably
28
+ reproduces this type of output. Mark every variable element with the literal token
29
+ [PLACEHOLDER], written exactly that way rather than replaced with a specific value.
30
+ If you are less than 80% confident in the reconstruction, do not guess: say so, and
31
+ name the additional sample material that would resolve the uncertainty.
@@ -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 meeting transcript here]"
4
+ or "[Paste the function here]" — never a generic word like "content" — then one line of prose
5
+ tying it to what follows, e.g. "The material above is what the task below applies to."
6
+ When this section is used, word TASK to refer to the material ABOVE ("the transcript above"),
7
+ never "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 perspective needed for this task]
3
12
 
@@ -0,0 +1,12 @@
1
+ PROBLEM:
2
+ [Your question, calculation, or reasoning problem]
3
+
4
+ SOURCE MATERIAL:
5
+ [Optional — paste the problem data the solution runs on here (the word problem, dataset, table, figures, or constraint list). 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
+
8
+ Solve the problem above. Work through it step by step, showing your reasoning
9
+ at each stage. When you reach an answer, state it on its own line, in exactly
10
+ this form and with nothing else on that line:
11
+
12
+ FINAL ANSWER: [answer]
@@ -1,15 +1,23 @@
1
- PHASE 1 — SKELETON:
2
- Generate a skeleton outline for the following topic or question.
3
- List only the key points one per line in this format:
4
- N. [Point name] | [One-sentence description of what this point covers]
5
- Do not expand yet. Skeleton only.
1
+ SOURCE MATERIAL:
2
+ [Optional paste the document, data, or notes the answer must be drawn from here. If you
3
+ have nothing to paste, delete this bracketed block along with the sentence directly below
4
+ it.]
5
+ Use the material above as the factual basis for the work described below.
6
+
7
+ Answer the topic or question below in two phases: first a skeleton outline, then a full
8
+ expansion of every point in that skeleton.
6
9
 
7
10
  TOPIC / QUESTION:
8
- [Your topic or question]
11
+ [Write out the full topic or question as a complete, self-contained sentence rather than a
12
+ bare noun phrase, including any audience, scope, or depth of coverage specified]
9
13
 
10
- ---
14
+ PHASE 1 — SKELETON:
15
+ First, outline the topic above. List only the key points, one per line, in this format:
16
+ N. [Point name] | [One-sentence description of what this point covers]
17
+ Replace N with the point's number and fill in both bracketed parts, keeping that line's
18
+ format exactly. Produce the skeleton and nothing else — do not expand any point yet.
11
19
 
12
20
  PHASE 2 — EXPAND:
13
- Now expand each skeleton point into [2-4 sentences / a paragraph / detailed coverage].
14
- Each point should be self-contained and complete.
15
- [Optional: expand points in parallel by sending each as a separate API call]
21
+ Once the skeleton is complete, expand each of its points into [2-4 sentences / a paragraph /
22
+ detailed coverage]. Restate a point's name before expanding it, and make each expansion
23
+ self-contained.
@@ -1,6 +1,10 @@
1
1
  ORIGINAL QUESTION:
2
2
  [The specific question you want answered]
3
3
 
4
+ SOURCE MATERIAL:
5
+ [Optional — paste the code, document, or system design the question above is about here. If you have nothing to paste, delete this bracketed block along with the sentence directly below it.]
6
+ Use the material above as the factual basis for the reasoning below — evaluate what is actually there, not what is typical or assumed.
7
+
4
8
  STEP-BACK:
5
9
  Before answering directly, first answer this higher-level question:
6
10
  [Rephrase the original into a more abstract question about underlying principles, concepts, or rules]