@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
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Overview
4
4
 
5
- RISE is a streamlined 4-component framework for structuring prompts around a role, the material to work from, a process, and a target output. This skill supports two variants, described below.
5
+ RISE is a streamlined 4-component framework for structuring prompts around a role, the material to work from, a process, and a target output. This skill supports two variants, described below. Both emit as a flat block of prose with their section headers stripped, so each slot must read on its own once its label is gone: the role and the process survive as sentences and an ordered list, while the material each variant works from lives inside a named slot — the pasted input for RISE-IE, the pasted reference samples for RISE-IX — rather than under a header that will be deleted.
6
6
 
7
7
  **Origin:** Community convention with no identifiable originator and no academic basis. The dominant documented expansion is **Role, Input, Steps, Expectation** — Fabio Vivas (fvivas.com); Juuzt.ai; Damien Griffin, "AI Quick Tips 111: Prompt Framework — R.I.S.E." (Thoughts Brewing, 17 December 2024). RISE's first appearance and original author could not be established. Not research-backed. Distinct from **RISEN** (Role, Instructions, Steps, End goal, Narrowing), which is a separate framework.
8
8
 
@@ -66,7 +66,7 @@ Verified published expansions of RISE:
66
66
  ### RISE-IE Components
67
67
 
68
68
  #### R - Role
69
- **Purpose:** Define the perspective or expertise needed for the task.
69
+ **Purpose:** Define the perspective or expertise needed for the task, as a complete sentence. Nothing else in the emitted prompt establishes who is doing the work once the `ROLE` header is gone, so a bare noun phrase ("data analyst") leaves the perspective unstated.
70
70
 
71
71
  **Questions to Ask:**
72
72
  - What expertise is required?
@@ -74,12 +74,12 @@ Verified published expansions of RISE:
74
74
  - What knowledge level is needed?
75
75
 
76
76
  **Examples:**
77
- - "Act as a data analyst..."
78
- - "You are a content editor..."
79
- - "Take the perspective of a UX researcher..."
77
+ - "Act as a data analyst experienced with sales exports."
78
+ - "You are a content editor who works with long-form drafts."
79
+ - "Take the perspective of a UX researcher who reads raw session logs."
80
80
 
81
81
  #### I - Input
82
- **Purpose:** Specify what's being provided and its characteristics.
82
+ **Purpose:** Carry the actual data or content the task runs on. This is where RISE-IE's source material lives — the input is pasted directly into this slot, then a short prose line ("About the material above: …") describes its format and quirks and ties it to the steps that follow. Because the material sits inside the slot rather than under a deletable header, name it in the paste line ("the customer review export (CSV)"), never as a generic "content".
83
83
 
84
84
  **Questions to Ask:**
85
85
  - What data/content is being provided?
@@ -88,12 +88,12 @@ Verified published expansions of RISE:
88
88
  - What should Claude expect to receive?
89
89
 
90
90
  **Examples:**
91
- - "You'll receive a CSV file with sales data..."
92
- - "Input is a collection of user feedback emails..."
93
- - "You have access to JSON API responses..."
91
+ - "About the material above: a CSV export of 50 rows of sales data, one order per row, with a header line."
92
+ - "About the material above: a collection of user feedback emails, some with mixed English and Spanish."
93
+ - "About the material above: JSON API responses, occasionally with null fields where a value is missing."
94
94
 
95
95
  #### S - Steps
96
- **Purpose:** Define how to process the input.
96
+ **Purpose:** Define how to process the input, as an ordered list of actions. The numbered sequence reads as a procedure on its own, so it does not need the `STEPS` header to signal what it is, but each step should name what it operates on ("the reviews above") so the reference survives.
97
97
 
98
98
  **Questions to Ask:**
99
99
  - How should the input be processed?
@@ -102,11 +102,11 @@ Verified published expansions of RISE:
102
102
  - What analysis should be performed?
103
103
 
104
104
  **Examples:**
105
- - "1. Parse CSV, 2. Calculate metrics, 3. Identify trends..."
106
- - "Extract key themes, categorize by sentiment, count occurrences..."
105
+ - "1. Parse the CSV above, 2. Calculate per-region totals, 3. Identify month-over-month trends..."
106
+ - "Extract key themes from the emails above, categorize each by sentiment, count occurrences..."
107
107
 
108
108
  #### E - Expectation
109
- **Purpose:** Define what the output should look like.
109
+ **Purpose:** Define what the output should look like — the deliverable and its shape. Phrase it as a standing description ("Produce a summary table that…") so it reads as the target output once the `EXPECTATION` header is removed rather than dangling as a loose noun phrase.
110
110
 
111
111
  **Questions to Ask:**
112
112
  - What format should output take?
@@ -115,38 +115,50 @@ Verified published expansions of RISE:
115
115
  - What's the deliverable?
116
116
 
117
117
  **Examples:**
118
- - "Provide a summary table with top 10 items..."
119
- - "Generate a JSON object with categorized results..."
120
- - "Create a report with charts and key findings..."
118
+ - "Produce a summary table listing the top 10 items by revenue..."
119
+ - "Return a JSON object with the categorized results..."
120
+ - "Deliver a report with the key findings and one chart per region..."
121
121
 
122
122
  ### RISE-IE Template
123
123
 
124
+ Section headers are stripped at emission, so every slot's meaning is carried by the prose around and inside it rather than by the header above it. The `INPUT` slot is where RISE-IE's source material goes — the data is pasted directly into it, and the `About the material above:` line ties that pasted data to the description and the steps below. Because RISE-IE is the data-processing variant, there is no from-scratch form: without input to work on, the framework has nothing to do, so the input slot is never deleted.
125
+
124
126
  ```
125
127
  ROLE:
126
- [Perspective or expertise needed]
128
+ [Define the perspective or expertise needed for this task]
127
129
 
128
130
  INPUT:
129
- [Description of provided data/content:
130
- - Format and structure
131
- - Key characteristics
132
- - Any quirks or special considerations]
131
+ [Paste the data or content to be processed here — name it specifically in this line, e.g.
132
+ "Paste the customer review export (CSV) here". Paste the material itself, not a description of it.]
133
+
134
+ About the material above:
135
+ [Specify what data/content is being provided:
136
+ - Format and structure (CSV, JSON, text, etc.)
137
+ - Key characteristics and fields
138
+ - Any quirks or special considerations
139
+ - What to expect in the data]
133
140
 
134
141
  STEPS:
135
- 1. [Processing action 1]
136
- 2. [Processing action 2]
137
- 3. [Processing action 3]
138
- 4. [Continue with transformation/analysis steps...]
142
+ 1. [How to process the input - first action]
143
+ 2. [Processing step 2 - transformation or analysis]
144
+ 3. [Processing step 3 - continue with methodology]
145
+ 4. [Add more processing/analysis steps as needed...]
139
146
 
140
147
  EXPECTATION:
141
- [Output format and content requirements:
148
+ [Define what the output should look like:
142
149
  - Format and structure
143
- - Required elements
144
- - Level of detail
145
- - Length or size constraints]
150
+ - Required elements and sections
151
+ - Level of detail needed
152
+ - Length or size constraints
153
+ - Specific deliverables]
146
154
  ```
147
155
 
148
156
  ### RISE-IE Complete Example
149
157
 
158
+ The example below is shown in emitted form: the material is pasted into the input slot,
159
+ and every later slot references "the reviews above" so nothing is lost when the headers
160
+ are deleted.
161
+
150
162
  **Before RISE-IE:**
151
163
  "Analyze these customer reviews."
152
164
 
@@ -156,27 +168,27 @@ ROLE:
156
168
  You are a customer insights analyst with expertise in sentiment analysis and theme extraction.
157
169
 
158
170
  INPUT:
159
- You'll receive 50 customer reviews from our mobile app. Each review contains:
160
- - Star rating (1-5)
161
- - Written feedback
162
- - Date of review
163
- - User segment (free/premium)
171
+ [Paste the 50 customer reviews exported from the mobile app here]
172
+
173
+ About the material above:
174
+ 50 customer reviews from our mobile app. Each review contains a star rating (1-5), the
175
+ written feedback, the date of the review, and the user segment (free or premium).
164
176
 
165
177
  STEPS:
166
- 1. Categorize reviews by sentiment (positive, neutral, negative)
167
- 2. Extract common themes and topics mentioned
178
+ 1. Categorize the reviews above by sentiment (positive, neutral, negative)
179
+ 2. Extract the common themes and topics they mention
168
180
  3. Identify feature requests vs. complaints vs. praise
169
- 4. Segment findings by user type (free vs. premium)
170
- 5. Highlight urgent issues mentioned multiple times
181
+ 4. Segment the findings by user type (free vs. premium)
182
+ 5. Highlight urgent issues mentioned by multiple reviewers
171
183
  6. Note any patterns in timing or trends
172
184
 
173
185
  EXPECTATION:
174
- Provide a structured analysis with:
175
- - Summary table showing sentiment distribution
176
- - Top 5 themes with frequency counts
177
- - List of feature requests ranked by mentions
178
- - Critical issues requiring immediate attention
179
- - Comparison of free vs. premium user feedback
186
+ Produce a structured analysis containing:
187
+ - A summary table showing the sentiment distribution
188
+ - The top 5 themes with frequency counts
189
+ - A list of feature requests ranked by number of mentions
190
+ - The critical issues requiring immediate attention
191
+ - A comparison of free vs. premium user feedback
180
192
  - 2-3 actionable recommendations
181
193
  ```
182
194
 
@@ -203,7 +215,7 @@ Provide a structured analysis with:
203
215
  ### RISE-IX Components
204
216
 
205
217
  #### R - Role
206
- **Purpose:** Define who the AI should embody (persona or expertise).
218
+ **Purpose:** Define who the AI should embody (persona or expertise), as a complete sentence. Once the `ROLE` header is stripped nothing else names the persona, so a bare noun phrase leaves the emitted prompt without one.
207
219
 
208
220
  **Questions to Ask:**
209
221
  - What persona is most appropriate?
@@ -216,7 +228,7 @@ Provide a structured analysis with:
216
228
  - "Take on the role of a technical writer..."
217
229
 
218
230
  #### I - Instructions
219
- **Purpose:** Specify the main task or directive.
231
+ **Purpose:** Specify the main task or directive, as a complete imperative sentence. This is the only slot that states what to produce, so it must carry the instruction on its own once the `INSTRUCTIONS` header is gone.
220
232
 
221
233
  **Questions to Ask:**
222
234
  - What is the primary task?
@@ -230,7 +242,7 @@ Provide a structured analysis with:
230
242
  - "Develop an email sequence for customer onboarding"
231
243
 
232
244
  #### S - Steps
233
- **Purpose:** Outline the process or methodology to follow.
245
+ **Purpose:** Outline the process or methodology to follow, as an ordered list. The numbered sequence reads as a workflow on its own and does not depend on the `STEPS` header to signal what it is.
234
246
 
235
247
  **Questions to Ask:**
236
248
  - What's the sequence of actions?
@@ -243,7 +255,7 @@ Provide a structured analysis with:
243
255
  - "Start with hook, develop key points, conclude with action items"
244
256
 
245
257
  #### E - Examples
246
- **Purpose:** Provide positive examples showing desired output.
258
+ **Purpose:** Carry the actual reference samples the output should match. This is where RISE-IX's material lives — the samples themselves are pasted into this slot, not descriptions of them, and they are what the framework works from in place of a source-material block. Because they land here, RISE-IX needs no separate material slot: each pasted sample should be the real piece whose style and format the output should emulate, introduced by a line ("Match the style of the samples below:") so the samples read as models once the `EXAMPLES` header is gone.
247
259
 
248
260
  **Questions to Ask:**
249
261
  - What does good output look like?
@@ -252,38 +264,52 @@ Provide a structured analysis with:
252
264
  - What format should be followed?
253
265
 
254
266
  **Examples:**
255
- - "Similar to our 'Eco-Friendly Living' post format with 3 main sections"
256
- - "Follow the style of these product descriptions: [examples]"
257
- - "Match the tone and structure of this email: [example]"
267
+ - "Match the style of the two product descriptions pasted below."
268
+ - "Follow the structure of the onboarding email pasted below."
269
+ - "Produce copy in the voice of the sample post pasted below."
258
270
 
259
271
  ### RISE-IX Template
260
272
 
273
+ Section headers are stripped at emission, so every slot's meaning is carried by the prose around and inside it rather than by the header above it. RISE-IX has no source-material block: the reference samples are its material, and they are pasted into the `EXAMPLES` slot as the actual pieces to match. The role and instructions must be complete sentences, and the samples must be reproduced in full rather than described.
274
+
261
275
  ```
262
276
  ROLE:
263
- [Persona or expertise level]
277
+ [Define who the AI should embody - persona or expertise level]
264
278
 
265
279
  INSTRUCTIONS:
266
- [Main task or directive:
280
+ [Specify the main task or directive:
267
281
  - What to create or accomplish
268
282
  - Core requirements
269
- - Key guidelines to follow]
283
+ - Key guidelines to follow
284
+ - Specific constraints or considerations]
270
285
 
271
286
  STEPS:
272
287
  1. [Approach or methodology step 1]
273
- 2. [Step 2]
274
- 3. [Step 3]
275
- 4. [Continue with workflow/process steps...]
288
+ 2. [Step 2 - how to execute the task]
289
+ 3. [Step 3 - continue with workflow]
290
+ 4. [Add more steps as needed for the creative/instruction process...]
276
291
 
277
292
  EXAMPLES:
278
- [Positive examples showing desired output:
279
- - Reference materials
280
- - Style to emulate
281
- - Format to follow
282
- - Similar successful outputs]
293
+ [Provide positive examples showing desired output:
294
+ - Reference materials that demonstrate the style
295
+ - Format examples to emulate
296
+ - Successful outputs from similar tasks
297
+ - 2-3 concrete examples recommended]
298
+
299
+ Example 1: [Paste the first reference sample here — the actual piece whose style and format the output should match, not a description of it]
300
+
301
+ Example 2: [Paste a second reference sample here]
302
+
303
+ 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.]
283
304
  ```
284
305
 
285
306
  ### RISE-IX Complete Example
286
307
 
308
+ The example below is shown in emitted form: the instructions read as a standing directive,
309
+ and the reference samples are pasted in full into the examples slot as the models the
310
+ output must match. RISE-IX has no source-material block to delete — its samples are what
311
+ it works from, so the examples slot is always present.
312
+
287
313
  **Before RISE-IX:**
288
314
  "Write product descriptions for our sustainable clothing line."
289
315
 
@@ -293,22 +319,20 @@ ROLE:
293
319
  You are a senior copywriter specializing in sustainable fashion and eco-conscious brands.
294
320
 
295
321
  INSTRUCTIONS:
296
- Create compelling product descriptions for our new sustainable clothing line that:
297
- - Highlight eco-friendly materials and production methods
298
- - Appeal to environmentally conscious millennials
299
- - Emphasize both style and sustainability
300
- - Include specific product details and benefits
301
- - Drive purchase intent through emotional connection
322
+ Write compelling product descriptions for our new sustainable clothing line that
323
+ highlight eco-friendly materials and production methods, appeal to environmentally
324
+ conscious millennials, emphasize both style and sustainability, include specific product
325
+ details and benefits, and drive purchase intent through an emotional connection.
302
326
 
303
327
  STEPS:
304
328
  1. Start with an attention-grabbing opening about the product's unique appeal
305
329
  2. Describe the sustainable materials and ethical production process
306
330
  3. Highlight the product's style, fit, and versatility
307
331
  4. Include specific technical details (materials, care, sizing)
308
- 5. End with a call-to-action emphasizing the impact of their purchase
332
+ 5. End with a call-to-action emphasizing the impact of the purchase
309
333
 
310
334
  EXAMPLES:
311
- Similar to these high-performing descriptions:
335
+ Match the style, tone, and structure of the two reference descriptions below.
312
336
 
313
337
  Example 1: "The Ocean Breeze Tee - Crafted from 100% recycled ocean plastics,
314
338
  this impossibly soft tee proves sustainability never has to sacrifice style. Each
@@ -2,14 +2,14 @@
2
2
 
3
3
  ## Overview
4
4
 
5
- RISEN is a methodology-focused framework that emphasizes process, steps, and boundaries. It's ideal for complex multi-step tasks where following a specific procedure matters, and where defining what NOT to do is as important as what to do.
5
+ RISEN is a methodology-focused framework that emphasizes process, steps, and boundaries. It's ideal for complex multi-step tasks where following a specific procedure matters, and where defining what NOT to do is as important as what to do. A complete RISEN prompt emits as a flat block with its section headers stripped — the role and instructions survive as sentences, the steps as a numbered list, the end goal as a standing description of the deliverable, and the narrowing as explicit "Do not" lines — optionally preceded by a source-material block holding the artifact the procedure runs on.
6
6
 
7
7
  **Origin:** Community framework, attributed to Kyle Balmer (AI educator, @iamkylebalmer). The earliest dated appearance is Moritz Kremb, "5 prompt frameworks to level up your prompts" (The Prompt Warrior, 13 October 2023), which credits Balmer with creating and sharing it; Balmer himself writes only "I call the RISEN framework" and makes no claim of invention. No academic source documents RISEN.
8
8
 
9
9
  ## Components
10
10
 
11
11
  ### R - Role
12
- **Purpose:** Define the persona, expertise level, or perspective Claude should adopt.
12
+ **Purpose:** Define the persona, expertise level, or perspective Claude should adopt, as a complete sentence. Nothing else in the emitted prompt establishes the role once the `ROLE` header is stripped, so a bare noun phrase leaves it unstated.
13
13
 
14
14
  **Questions to Ask:**
15
15
  - What expertise should be demonstrated?
@@ -23,7 +23,7 @@ RISEN is a methodology-focused framework that emphasizes process, steps, and bou
23
23
  - "You are a patient teacher explaining to beginners..."
24
24
 
25
25
  ### I - Instructions
26
- **Purpose:** Provide high-level guidance, principles, and overarching direction.
26
+ **Purpose:** Provide high-level guidance, principles, and overarching direction, as complete sentences. When it points at supplied material, name that material ("the module above") so the reference survives the header being stripped.
27
27
 
28
28
  **Questions to Ask:**
29
29
  - What are the governing principles?
@@ -37,7 +37,7 @@ RISEN is a methodology-focused framework that emphasizes process, steps, and bou
37
37
  - "Use clear, simple language throughout..."
38
38
 
39
39
  ### S - Steps
40
- **Purpose:** Break down the task into detailed, sequential actions.
40
+ **Purpose:** Break down the task into detailed, sequential actions. The numbered list reads as an ordered procedure on its own and does not rely on the `STEPS` header to signal what it is, so each step should begin with a verb and name what it operates on where relevant.
41
41
 
42
42
  **Questions to Ask:**
43
43
  - What's the exact sequence of actions?
@@ -50,7 +50,7 @@ RISEN is a methodology-focused framework that emphasizes process, steps, and bou
50
50
  - "First validate input, then process, finally output..."
51
51
 
52
52
  ### E - End Goal
53
- **Purpose:** Define success criteria and the final desired outcome.
53
+ **Purpose:** Define success criteria and the final desired outcome. Phrase it as a standing description of the deliverable ("A comprehensive report that…") so it reads as the target once the `END GOAL` header is removed, rather than dangling as a loose noun phrase.
54
54
 
55
55
  **Questions to Ask:**
56
56
  - What does success look like?
@@ -64,7 +64,7 @@ RISEN is a methodology-focused framework that emphasizes process, steps, and bou
64
64
  - "Working code that passes all integration tests..."
65
65
 
66
66
  ### N - Narrowing
67
- **Purpose:** Set constraints, boundaries, and explicitly state what NOT to do.
67
+ **Purpose:** Set constraints, boundaries, and explicitly state what NOT to do. Each item must begin with "Do not", "Avoid", "Out of scope", or "Stay within" so the negation lives in the item itself — once the `NARROWING` header is stripped, a bare noun phrase would read as an instruction to DO the very thing being ruled out.
68
68
 
69
69
  **Questions to Ask:**
70
70
  - What should be avoided?
@@ -80,45 +80,65 @@ RISEN is a methodology-focused framework that emphasizes process, steps, and bou
80
80
 
81
81
  ## Template Structure
82
82
 
83
+ Section headers are stripped at emission, so every slot's meaning is carried by the prose around and inside it rather than by the header above it. This matters most for Narrowing: each constraint must begin with "Do not", "Avoid", "Out of scope", or "Stay within" so the boundary survives once the `NARROWING` header is gone — a bare noun phrase would read as an instruction to DO the very thing being ruled out. Role and Instructions are already complete sentences, the numbered Steps read as an ordered sequence on their own, and the End Goal should name the deliverable as a standing description so it does not dangle when its header is removed. The optional `SOURCE MATERIAL` block, when present, holds the artifact the procedure runs on, named concretely and tied to the steps by one line of prose; it is omitted entirely for from-scratch procedures.
84
+
83
85
  ```
86
+ SOURCE MATERIAL:
87
+ [OPTIONAL — include only if the procedure below operates on something the user already has.
88
+ If so, emit a literal paste instruction naming the specific artifact, e.g. "[Paste the authentication module source here]"
89
+ or "[Paste the Q3 sales dataset here]" — then one line of prose tying it to what follows,
90
+ e.g. "The material above is what the steps below are applied to."
91
+ If the task generates entirely from scratch, omit this section — do not emit an empty placeholder.]
92
+
84
93
  ROLE:
85
- [Expertise, perspective, or persona to adopt]
94
+ [Define the expertise level, persona, or perspective to adopt. What knowledge should be demonstrated?]
86
95
 
87
96
  INSTRUCTIONS:
88
- [High-level principles and guidance]
97
+ [Provide high-level guidance, principles, and overarching direction. What methodology or approach should guide this work?]
89
98
 
90
99
  STEPS:
91
- 1. [First action]
92
- 2. [Second action]
93
- 3. [Third action]
94
- [Continue with detailed sequence]
100
+ 1. [First specific action or stage]
101
+ 2. [Second specific action or stage]
102
+ 3. [Third specific action or stage]
103
+ [Continue with detailed, sequential steps...]
95
104
 
96
105
  END GOAL:
97
- [Success criteria and final outcome]
106
+ [Define success criteria and final desired outcome. What should be true when complete? How will we know it's done correctly?]
98
107
 
99
108
  NARROWING:
100
- - Do NOT: [Constraint 1]
101
- - Avoid: [Constraint 2]
102
- - Out of scope: [Constraint 3]
103
- - Stay within: [Boundary]
109
+ - Do NOT: [Specific thing to avoid]
110
+ - Avoid: [Approach or pattern to avoid]
111
+ - Out of scope: [What's not included]
112
+ - Stay within: [Boundaries and constraints]
113
+ - Constraints: [Limitations to respect]
104
114
  ```
105
115
 
106
- ## Complete Example
116
+ ## Complete Examples
117
+
118
+ Both examples below are shown in emitted form: each slot carries its own role in prose, so
119
+ nothing is lost when the headers are deleted. The first operates on supplied material and
120
+ opens with a `SOURCE MATERIAL` block; the second generates from scratch and omits it.
107
121
 
108
- ### Before RISEN:
122
+ ### Example 1: Security review of supplied code (source material supplied)
123
+
124
+ **Before RISEN:**
109
125
  "Help me review this codebase."
110
126
 
111
- ### After RISEN:
127
+ **After RISEN:**
112
128
  ```
129
+ SOURCE MATERIAL:
130
+ [Paste the authentication module source here]
131
+ The material above is what the steps below are applied to.
132
+
113
133
  ROLE:
114
134
  You are a senior code reviewer with expertise in Python and system security. You have 10+ years of experience identifying vulnerabilities and architectural issues.
115
135
 
116
136
  INSTRUCTIONS:
117
- Conduct a thorough security-focused code review following OWASP guidelines. Prioritize identifying security vulnerabilities over style issues. Consider both the code itself and its architectural implications.
137
+ Conduct a thorough security-focused review of the module above following OWASP guidelines. Prioritize identifying security vulnerabilities over style issues. Consider both the code itself and its architectural implications.
118
138
 
119
139
  STEPS:
120
- 1. Scan for common security vulnerabilities (SQL injection, XSS, auth issues)
121
- 2. Review authentication and authorization logic
140
+ 1. Scan the module above for common security vulnerabilities (SQL injection, XSS, auth issues)
141
+ 2. Review its authentication and authorization logic
122
142
  3. Examine data validation and sanitization
123
143
  4. Check for sensitive data exposure
124
144
  5. Analyze third-party dependencies for known vulnerabilities
@@ -134,15 +154,47 @@ A comprehensive security assessment report that:
134
154
  - Includes specific code references with line numbers
135
155
  - Provides concrete remediation steps for each issue
136
156
  - Prioritizes fixes by risk and effort
137
- - Can be shared with development team for action
157
+ - Can be shared with the development team for action
138
158
 
139
159
  NARROWING:
140
160
  - Do NOT focus on code style or formatting issues
141
161
  - Do NOT suggest complete rewrites; focus on targeted fixes
142
- - Avoid generic security advice; be specific to this codebase
162
+ - Avoid generic security advice; be specific to the module above
143
163
  - Do NOT include theoretical vulnerabilities that don't apply
144
- - Stay within Python ecosystem; don't suggest language changes
145
- - Do NOT redesign the architecture; work within current structure
164
+ - Stay within the Python ecosystem; do not suggest language changes
165
+ - Do NOT redesign the architecture; work within the current structure
166
+ ```
167
+
168
+ ### Example 2: Onboarding runbook written from scratch (no source material)
169
+
170
+ **Before RISEN:**
171
+ "Write an onboarding runbook for new engineers."
172
+
173
+ **After RISEN** (no source material — the runbook is written from scratch, so the
174
+ `SOURCE MATERIAL` block is omitted):
175
+ ```
176
+ ROLE:
177
+ You are a staff engineer who has onboarded dozens of new hires onto this team's backend services and knows where newcomers get stuck.
178
+
179
+ INSTRUCTIONS:
180
+ Write a first-week onboarding runbook for engineers joining the payments team. Assume the reader has general backend experience but no knowledge of our systems, and favor concrete commands over prose.
181
+
182
+ STEPS:
183
+ 1. List the accounts, tools, and access a new engineer must request on day one
184
+ 2. Walk through cloning the repositories and running the service locally
185
+ 3. Explain how to run the test suite and read its output
186
+ 4. Describe how to open, review, and merge a first pull request
187
+ 5. Point to the runbooks and dashboards used during on-call
188
+
189
+ END GOAL:
190
+ A self-contained runbook a new engineer can follow unattended in their first week, ending with a working local environment and one merged trivial pull request.
191
+
192
+ NARROWING:
193
+ - Do NOT assume any prior knowledge of our internal tooling
194
+ - Avoid linking to documents that require access the reader does not yet have
195
+ - Out of scope: on-call rotation policy and compensation details
196
+ - Stay within the payments team's services; do not document unrelated systems
197
+ - Do NOT include real credentials or secrets in any example command
146
198
  ```
147
199
 
148
200
  ## Best Use Cases
@@ -230,7 +282,7 @@ Within each step, add:
230
282
  REASONING: Think through why and how for this step
231
283
  ```
232
284
 
233
- ### Simplified RISEN (RISE)
285
+ ### Simplified RISEN (RISE-IE)
234
286
  When narrowing isn't critical:
235
287
  ```
236
288
  ROLE: