@ckelsoe/prompt-architect 3.0.2 → 3.2.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 (76) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +264 -264
  4. package/LICENSE +21 -21
  5. package/README.md +1064 -1184
  6. package/adapters/README.md +75 -267
  7. package/adapters/for-windsurf.md +136 -136
  8. package/adapters/system-prompt.md +243 -243
  9. package/package.json +139 -138
  10. package/scripts/build-skill.js +64 -0
  11. package/scripts/install.js +4 -54
  12. package/scripts/test.js +205 -213
  13. package/scripts/validate-skill.js +350 -350
  14. package/skills/prompt-architect/SKILL.md +343 -331
  15. package/skills/prompt-architect/assets/templates/ape_template.txt +5 -5
  16. package/skills/prompt-architect/assets/templates/bab_template.txt +15 -15
  17. package/skills/prompt-architect/assets/templates/broke_template.txt +15 -15
  18. package/skills/prompt-architect/assets/templates/cai-critique-revise_template.txt +18 -18
  19. package/skills/prompt-architect/assets/templates/care_template.txt +16 -16
  20. package/skills/prompt-architect/assets/templates/chain-of-density_template.txt +46 -46
  21. package/skills/prompt-architect/assets/templates/chain-of-thought_template.txt +49 -49
  22. package/skills/prompt-architect/assets/templates/co-star_template.txt +17 -17
  23. package/skills/prompt-architect/assets/templates/crispe_template.txt +14 -14
  24. package/skills/prompt-architect/assets/templates/ctf_template.txt +15 -15
  25. package/skills/prompt-architect/assets/templates/devils-advocate_template.txt +25 -25
  26. package/skills/prompt-architect/assets/templates/hybrid_template.txt +101 -101
  27. package/skills/prompt-architect/assets/templates/least-to-most_template.txt +16 -16
  28. package/skills/prompt-architect/assets/templates/plan-and-solve_template.txt +7 -7
  29. package/skills/prompt-architect/assets/templates/pre-mortem_template.txt +27 -27
  30. package/skills/prompt-architect/assets/templates/race_template.txt +19 -19
  31. package/skills/prompt-architect/assets/templates/rcot_template.txt +31 -31
  32. package/skills/prompt-architect/assets/templates/react_template.txt +27 -27
  33. package/skills/prompt-architect/assets/templates/reverse-role_template.txt +11 -11
  34. package/skills/prompt-architect/assets/templates/rise-ie_template.txt +23 -23
  35. package/skills/prompt-architect/assets/templates/rise-ix_template.txt +28 -28
  36. package/skills/prompt-architect/assets/templates/risen_template.txt +21 -21
  37. package/skills/prompt-architect/assets/templates/rpef_template.txt +26 -26
  38. package/skills/prompt-architect/assets/templates/rtf_template.txt +13 -13
  39. package/skills/prompt-architect/assets/templates/self-refine_template.txt +16 -16
  40. package/skills/prompt-architect/assets/templates/skeleton-of-thought_template.txt +15 -15
  41. package/skills/prompt-architect/assets/templates/step-back_template.txt +10 -10
  42. package/skills/prompt-architect/assets/templates/tidd-ec_template.txt +45 -45
  43. package/skills/prompt-architect/assets/templates/tree-of-thought_template.txt +30 -30
  44. package/skills/prompt-architect/references/frameworks/ape.md +200 -200
  45. package/skills/prompt-architect/references/frameworks/bab.md +242 -242
  46. package/skills/prompt-architect/references/frameworks/broke.md +242 -242
  47. package/skills/prompt-architect/references/frameworks/cai-critique-revise.md +230 -230
  48. package/skills/prompt-architect/references/frameworks/care.md +235 -235
  49. package/skills/prompt-architect/references/frameworks/chain-of-density.md +479 -479
  50. package/skills/prompt-architect/references/frameworks/chain-of-thought.md +424 -424
  51. package/skills/prompt-architect/references/frameworks/co-star.md +256 -256
  52. package/skills/prompt-architect/references/frameworks/crispe.md +253 -253
  53. package/skills/prompt-architect/references/frameworks/ctf.md +207 -207
  54. package/skills/prompt-architect/references/frameworks/devils-advocate.md +206 -206
  55. package/skills/prompt-architect/references/frameworks/least-to-most.md +226 -226
  56. package/skills/prompt-architect/references/frameworks/plan-and-solve.md +210 -210
  57. package/skills/prompt-architect/references/frameworks/pre-mortem.md +197 -197
  58. package/skills/prompt-architect/references/frameworks/race.md +243 -243
  59. package/skills/prompt-architect/references/frameworks/rcot.md +203 -203
  60. package/skills/prompt-architect/references/frameworks/react.md +304 -304
  61. package/skills/prompt-architect/references/frameworks/reverse-role.md +189 -189
  62. package/skills/prompt-architect/references/frameworks/rise.md +555 -555
  63. package/skills/prompt-architect/references/frameworks/risen.md +297 -297
  64. package/skills/prompt-architect/references/frameworks/rpef.md +195 -195
  65. package/skills/prompt-architect/references/frameworks/rtf.md +358 -358
  66. package/skills/prompt-architect/references/frameworks/self-refine.md +205 -205
  67. package/skills/prompt-architect/references/frameworks/skeleton-of-thought.md +186 -186
  68. package/skills/prompt-architect/references/frameworks/step-back.md +206 -206
  69. package/skills/prompt-architect/references/frameworks/tidd-ec.md +470 -470
  70. package/skills/prompt-architect/references/frameworks/tree-of-thought.md +260 -260
  71. package/skills/prompt-architect/scripts/framework_analyzer.py +807 -807
  72. package/skills/prompt-architect/scripts/prompt_evaluator.py +336 -336
  73. package/adapters/for-cursor.mdc +0 -138
  74. package/adapters/for-gemini-cli.md +0 -70
  75. package/adapters/for-github-copilot.md +0 -141
  76. package/adapters/for-openai-codex-cli.md +0 -158
@@ -1,297 +1,297 @@
1
- # RISEN Framework
2
-
3
- ## Overview
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.
6
-
7
- ## Components
8
-
9
- ### R - Role
10
- **Purpose:** Define the persona, expertise level, or perspective Claude should adopt.
11
-
12
- **Questions to Ask:**
13
- - What expertise should be demonstrated?
14
- - What perspective is needed?
15
- - Should Claude adopt a specific persona?
16
- - What level of knowledge should be shown?
17
-
18
- **Examples:**
19
- - "Act as a senior software architect..."
20
- - "Take the perspective of a security auditor..."
21
- - "You are a patient teacher explaining to beginners..."
22
-
23
- ### I - Instructions
24
- **Purpose:** Provide high-level guidance, principles, and overarching direction.
25
-
26
- **Questions to Ask:**
27
- - What are the governing principles?
28
- - What approach should be taken?
29
- - Are there important guidelines to follow?
30
- - What methodology should guide the work?
31
-
32
- **Examples:**
33
- - "Follow test-driven development principles..."
34
- - "Prioritize security over convenience..."
35
- - "Use clear, simple language throughout..."
36
-
37
- ### S - Steps
38
- **Purpose:** Break down the task into detailed, sequential actions.
39
-
40
- **Questions to Ask:**
41
- - What's the exact sequence of actions?
42
- - What substeps are involved?
43
- - Are there dependencies between steps?
44
- - What should happen in what order?
45
-
46
- **Examples:**
47
- - "1. Analyze requirements, 2. Design architecture, 3. Implement core..."
48
- - "First validate input, then process, finally output..."
49
-
50
- ### E - End Goal
51
- **Purpose:** Define success criteria and the final desired outcome.
52
-
53
- **Questions to Ask:**
54
- - What does success look like?
55
- - What should be true when complete?
56
- - How will we know it's done correctly?
57
- - What are the acceptance criteria?
58
-
59
- **Examples:**
60
- - "A fully tested API with 95%+ code coverage..."
61
- - "A comprehensive report that stakeholders can act on..."
62
- - "Working code that passes all integration tests..."
63
-
64
- ### N - Narrowing
65
- **Purpose:** Set constraints, boundaries, and explicitly state what NOT to do.
66
-
67
- **Questions to Ask:**
68
- - What should be avoided?
69
- - What's out of scope?
70
- - What constraints exist?
71
- - What approaches should NOT be used?
72
- - What common mistakes to avoid?
73
-
74
- **Examples:**
75
- - "Do NOT use deprecated libraries..."
76
- - "Avoid premature optimization..."
77
- - "Stay within the current architecture; don't redesign..."
78
-
79
- ## Template Structure
80
-
81
- ```
82
- ROLE:
83
- [Expertise, perspective, or persona to adopt]
84
-
85
- INSTRUCTIONS:
86
- [High-level principles and guidance]
87
-
88
- STEPS:
89
- 1. [First action]
90
- 2. [Second action]
91
- 3. [Third action]
92
- [Continue with detailed sequence]
93
-
94
- END GOAL:
95
- [Success criteria and final outcome]
96
-
97
- NARROWING:
98
- - Do NOT: [Constraint 1]
99
- - Avoid: [Constraint 2]
100
- - Out of scope: [Constraint 3]
101
- - Stay within: [Boundary]
102
- ```
103
-
104
- ## Complete Example
105
-
106
- ### Before RISEN:
107
- "Help me review this codebase."
108
-
109
- ### After RISEN:
110
- ```
111
- ROLE:
112
- You are a senior code reviewer with expertise in Python and system security. You have 10+ years of experience identifying vulnerabilities and architectural issues.
113
-
114
- INSTRUCTIONS:
115
- 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.
116
-
117
- STEPS:
118
- 1. Scan for common security vulnerabilities (SQL injection, XSS, auth issues)
119
- 2. Review authentication and authorization logic
120
- 3. Examine data validation and sanitization
121
- 4. Check for sensitive data exposure
122
- 5. Analyze third-party dependencies for known vulnerabilities
123
- 6. Assess error handling and logging practices
124
- 7. Evaluate API security measures
125
- 8. Review configuration and secrets management
126
- 9. Document findings with severity ratings
127
- 10. Provide remediation recommendations
128
-
129
- END GOAL:
130
- A comprehensive security assessment report that:
131
- - Categorizes vulnerabilities by severity (Critical, High, Medium, Low)
132
- - Includes specific code references with line numbers
133
- - Provides concrete remediation steps for each issue
134
- - Prioritizes fixes by risk and effort
135
- - Can be shared with development team for action
136
-
137
- NARROWING:
138
- - Do NOT focus on code style or formatting issues
139
- - Do NOT suggest complete rewrites; focus on targeted fixes
140
- - Avoid generic security advice; be specific to this codebase
141
- - Do NOT include theoretical vulnerabilities that don't apply
142
- - Stay within Python ecosystem; don't suggest language changes
143
- - Do NOT redesign the architecture; work within current structure
144
- ```
145
-
146
- ## Best Use Cases
147
-
148
- 1. **Development Tasks**
149
- - Code generation with specific methodology
150
- - Refactoring with constraints
151
- - Testing with particular approach
152
-
153
- 2. **Analysis Projects**
154
- - Data analysis with defined process
155
- - Audits following standards
156
- - Research with methodology
157
-
158
- 3. **Process Documentation**
159
- - Creating procedures
160
- - Workflow documentation
161
- - Standard operating procedures
162
-
163
- 4. **Complex Multi-Step Tasks**
164
- - Tasks with clear sequential dependencies
165
- - Projects with important boundaries
166
- - Work with specific methodology requirements
167
-
168
- ## Selection Criteria
169
-
170
- **Choose RISEN when:**
171
- - ✅ Task has clear sequential steps
172
- - ✅ Process needs to be followed precisely
173
- - ✅ Multiple approaches exist but one is preferred
174
- - ✅ Important to define what NOT to do
175
- - ✅ Role/expertise context matters
176
- - ✅ Methodology or principles are important
177
- - ✅ Success criteria need explicit definition
178
-
179
- **Avoid RISEN when:**
180
- - ❌ Task is simple and doesn't need steps
181
- - ❌ No specific process required
182
- - ❌ Boundaries and constraints don't matter
183
- - ❌ Any approach is acceptable
184
- - ❌ Quick, simple transformation needed
185
-
186
- ## Common Mistakes
187
-
188
- 1. **Steps Too High-Level**
189
- - Be specific and actionable
190
- - Break down complex steps into substeps
191
- - Include decision points
192
-
193
- 2. **Narrowing Too Restrictive**
194
- - Don't over-constrain unnecessarily
195
- - Focus on important boundaries
196
- - Explain why constraints exist
197
-
198
- 3. **Missing Dependencies**
199
- - Note when steps depend on each other
200
- - Clarify what needs to complete first
201
- - Mention parallel vs. sequential
202
-
203
- 4. **Vague End Goal**
204
- - Make success criteria measurable
205
- - Be specific about deliverables
206
- - Include quality standards
207
-
208
- ## Variations and Combinations
209
-
210
- ### RISEN + CO-STAR
211
- For procedural tasks with audience considerations:
212
- ```
213
- ROLE: [From RISEN]
214
- CONTEXT: [From CO-STAR]
215
- INSTRUCTIONS: [From RISEN]
216
- STEPS: [From RISEN]
217
- END GOAL: [From RISEN]
218
- AUDIENCE: [From CO-STAR]
219
- NARROWING: [From RISEN]
220
- ```
221
-
222
- ### RISEN + Chain of Thought
223
- For complex reasoning with process:
224
- ```
225
- [Standard RISEN structure]
226
-
227
- Within each step, add:
228
- REASONING: Think through why and how for this step
229
- ```
230
-
231
- ### Simplified RISEN (RISE)
232
- When narrowing isn't critical:
233
- ```
234
- ROLE:
235
- INPUT:
236
- STEPS:
237
- EXPECTATION:
238
- ```
239
-
240
- ## Quick Reference
241
-
242
- | Component | Focus | Key Question |
243
- |-----------|-------|--------------|
244
- | Role | Expertise | "What perspective is needed?" |
245
- | Instructions | Principles | "What approach should guide this?" |
246
- | Steps | Process | "What's the exact sequence?" |
247
- | End Goal | Success | "What defines completion?" |
248
- | Narrowing | Boundaries | "What should be avoided?" |
249
-
250
- ## Step Design Best Practices
251
-
252
- ### Good Steps:
253
- ```
254
- 1. Validate input data against schema (check types, ranges, required fields)
255
- 2. Sanitize user input (escape HTML, strip dangerous chars)
256
- 3. Query database with parameterized statements
257
- 4. Transform results into response format
258
- 5. Log operation with timestamp and user ID
259
- ```
260
-
261
- ### Poor Steps:
262
- ```
263
- 1. Get the data
264
- 2. Process it
265
- 3. Return results
266
- ```
267
-
268
- ### Effective Narrowing:
269
- ```
270
- NARROWING:
271
- - Do NOT trust user input without validation
272
- - Avoid loading entire dataset into memory (use pagination)
273
- - Do NOT use string concatenation for SQL queries
274
- - Stay within 200ms response time target
275
- - Avoid external API calls in this phase
276
- ```
277
-
278
- ### Ineffective Narrowing:
279
- ```
280
- NARROWING:
281
- - Be careful
282
- - Don't make mistakes
283
- ```
284
-
285
- ## Assessment Checklist
286
-
287
- When applying RISEN, verify:
288
- - [ ] Role defines clear expertise or perspective
289
- - [ ] Instructions provide guiding principles
290
- - [ ] Steps are specific, actionable, and sequential
291
- - [ ] Dependencies between steps are noted
292
- - [ ] End goal has measurable success criteria
293
- - [ ] Narrowing identifies important constraints
294
- - [ ] Narrowing explains why boundaries exist
295
- - [ ] All steps contribute to end goal
296
- - [ ] Nothing in narrowing contradicts instructions
297
- - [ ] Process is feasible and practical
1
+ # RISEN Framework
2
+
3
+ ## Overview
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.
6
+
7
+ ## Components
8
+
9
+ ### R - Role
10
+ **Purpose:** Define the persona, expertise level, or perspective Claude should adopt.
11
+
12
+ **Questions to Ask:**
13
+ - What expertise should be demonstrated?
14
+ - What perspective is needed?
15
+ - Should Claude adopt a specific persona?
16
+ - What level of knowledge should be shown?
17
+
18
+ **Examples:**
19
+ - "Act as a senior software architect..."
20
+ - "Take the perspective of a security auditor..."
21
+ - "You are a patient teacher explaining to beginners..."
22
+
23
+ ### I - Instructions
24
+ **Purpose:** Provide high-level guidance, principles, and overarching direction.
25
+
26
+ **Questions to Ask:**
27
+ - What are the governing principles?
28
+ - What approach should be taken?
29
+ - Are there important guidelines to follow?
30
+ - What methodology should guide the work?
31
+
32
+ **Examples:**
33
+ - "Follow test-driven development principles..."
34
+ - "Prioritize security over convenience..."
35
+ - "Use clear, simple language throughout..."
36
+
37
+ ### S - Steps
38
+ **Purpose:** Break down the task into detailed, sequential actions.
39
+
40
+ **Questions to Ask:**
41
+ - What's the exact sequence of actions?
42
+ - What substeps are involved?
43
+ - Are there dependencies between steps?
44
+ - What should happen in what order?
45
+
46
+ **Examples:**
47
+ - "1. Analyze requirements, 2. Design architecture, 3. Implement core..."
48
+ - "First validate input, then process, finally output..."
49
+
50
+ ### E - End Goal
51
+ **Purpose:** Define success criteria and the final desired outcome.
52
+
53
+ **Questions to Ask:**
54
+ - What does success look like?
55
+ - What should be true when complete?
56
+ - How will we know it's done correctly?
57
+ - What are the acceptance criteria?
58
+
59
+ **Examples:**
60
+ - "A fully tested API with 95%+ code coverage..."
61
+ - "A comprehensive report that stakeholders can act on..."
62
+ - "Working code that passes all integration tests..."
63
+
64
+ ### N - Narrowing
65
+ **Purpose:** Set constraints, boundaries, and explicitly state what NOT to do.
66
+
67
+ **Questions to Ask:**
68
+ - What should be avoided?
69
+ - What's out of scope?
70
+ - What constraints exist?
71
+ - What approaches should NOT be used?
72
+ - What common mistakes to avoid?
73
+
74
+ **Examples:**
75
+ - "Do NOT use deprecated libraries..."
76
+ - "Avoid premature optimization..."
77
+ - "Stay within the current architecture; don't redesign..."
78
+
79
+ ## Template Structure
80
+
81
+ ```
82
+ ROLE:
83
+ [Expertise, perspective, or persona to adopt]
84
+
85
+ INSTRUCTIONS:
86
+ [High-level principles and guidance]
87
+
88
+ STEPS:
89
+ 1. [First action]
90
+ 2. [Second action]
91
+ 3. [Third action]
92
+ [Continue with detailed sequence]
93
+
94
+ END GOAL:
95
+ [Success criteria and final outcome]
96
+
97
+ NARROWING:
98
+ - Do NOT: [Constraint 1]
99
+ - Avoid: [Constraint 2]
100
+ - Out of scope: [Constraint 3]
101
+ - Stay within: [Boundary]
102
+ ```
103
+
104
+ ## Complete Example
105
+
106
+ ### Before RISEN:
107
+ "Help me review this codebase."
108
+
109
+ ### After RISEN:
110
+ ```
111
+ ROLE:
112
+ You are a senior code reviewer with expertise in Python and system security. You have 10+ years of experience identifying vulnerabilities and architectural issues.
113
+
114
+ INSTRUCTIONS:
115
+ 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.
116
+
117
+ STEPS:
118
+ 1. Scan for common security vulnerabilities (SQL injection, XSS, auth issues)
119
+ 2. Review authentication and authorization logic
120
+ 3. Examine data validation and sanitization
121
+ 4. Check for sensitive data exposure
122
+ 5. Analyze third-party dependencies for known vulnerabilities
123
+ 6. Assess error handling and logging practices
124
+ 7. Evaluate API security measures
125
+ 8. Review configuration and secrets management
126
+ 9. Document findings with severity ratings
127
+ 10. Provide remediation recommendations
128
+
129
+ END GOAL:
130
+ A comprehensive security assessment report that:
131
+ - Categorizes vulnerabilities by severity (Critical, High, Medium, Low)
132
+ - Includes specific code references with line numbers
133
+ - Provides concrete remediation steps for each issue
134
+ - Prioritizes fixes by risk and effort
135
+ - Can be shared with development team for action
136
+
137
+ NARROWING:
138
+ - Do NOT focus on code style or formatting issues
139
+ - Do NOT suggest complete rewrites; focus on targeted fixes
140
+ - Avoid generic security advice; be specific to this codebase
141
+ - Do NOT include theoretical vulnerabilities that don't apply
142
+ - Stay within Python ecosystem; don't suggest language changes
143
+ - Do NOT redesign the architecture; work within current structure
144
+ ```
145
+
146
+ ## Best Use Cases
147
+
148
+ 1. **Development Tasks**
149
+ - Code generation with specific methodology
150
+ - Refactoring with constraints
151
+ - Testing with particular approach
152
+
153
+ 2. **Analysis Projects**
154
+ - Data analysis with defined process
155
+ - Audits following standards
156
+ - Research with methodology
157
+
158
+ 3. **Process Documentation**
159
+ - Creating procedures
160
+ - Workflow documentation
161
+ - Standard operating procedures
162
+
163
+ 4. **Complex Multi-Step Tasks**
164
+ - Tasks with clear sequential dependencies
165
+ - Projects with important boundaries
166
+ - Work with specific methodology requirements
167
+
168
+ ## Selection Criteria
169
+
170
+ **Choose RISEN when:**
171
+ - ✅ Task has clear sequential steps
172
+ - ✅ Process needs to be followed precisely
173
+ - ✅ Multiple approaches exist but one is preferred
174
+ - ✅ Important to define what NOT to do
175
+ - ✅ Role/expertise context matters
176
+ - ✅ Methodology or principles are important
177
+ - ✅ Success criteria need explicit definition
178
+
179
+ **Avoid RISEN when:**
180
+ - ❌ Task is simple and doesn't need steps
181
+ - ❌ No specific process required
182
+ - ❌ Boundaries and constraints don't matter
183
+ - ❌ Any approach is acceptable
184
+ - ❌ Quick, simple transformation needed
185
+
186
+ ## Common Mistakes
187
+
188
+ 1. **Steps Too High-Level**
189
+ - Be specific and actionable
190
+ - Break down complex steps into substeps
191
+ - Include decision points
192
+
193
+ 2. **Narrowing Too Restrictive**
194
+ - Don't over-constrain unnecessarily
195
+ - Focus on important boundaries
196
+ - Explain why constraints exist
197
+
198
+ 3. **Missing Dependencies**
199
+ - Note when steps depend on each other
200
+ - Clarify what needs to complete first
201
+ - Mention parallel vs. sequential
202
+
203
+ 4. **Vague End Goal**
204
+ - Make success criteria measurable
205
+ - Be specific about deliverables
206
+ - Include quality standards
207
+
208
+ ## Variations and Combinations
209
+
210
+ ### RISEN + CO-STAR
211
+ For procedural tasks with audience considerations:
212
+ ```
213
+ ROLE: [From RISEN]
214
+ CONTEXT: [From CO-STAR]
215
+ INSTRUCTIONS: [From RISEN]
216
+ STEPS: [From RISEN]
217
+ END GOAL: [From RISEN]
218
+ AUDIENCE: [From CO-STAR]
219
+ NARROWING: [From RISEN]
220
+ ```
221
+
222
+ ### RISEN + Chain of Thought
223
+ For complex reasoning with process:
224
+ ```
225
+ [Standard RISEN structure]
226
+
227
+ Within each step, add:
228
+ REASONING: Think through why and how for this step
229
+ ```
230
+
231
+ ### Simplified RISEN (RISE)
232
+ When narrowing isn't critical:
233
+ ```
234
+ ROLE:
235
+ INPUT:
236
+ STEPS:
237
+ EXPECTATION:
238
+ ```
239
+
240
+ ## Quick Reference
241
+
242
+ | Component | Focus | Key Question |
243
+ |-----------|-------|--------------|
244
+ | Role | Expertise | "What perspective is needed?" |
245
+ | Instructions | Principles | "What approach should guide this?" |
246
+ | Steps | Process | "What's the exact sequence?" |
247
+ | End Goal | Success | "What defines completion?" |
248
+ | Narrowing | Boundaries | "What should be avoided?" |
249
+
250
+ ## Step Design Best Practices
251
+
252
+ ### Good Steps:
253
+ ```
254
+ 1. Validate input data against schema (check types, ranges, required fields)
255
+ 2. Sanitize user input (escape HTML, strip dangerous chars)
256
+ 3. Query database with parameterized statements
257
+ 4. Transform results into response format
258
+ 5. Log operation with timestamp and user ID
259
+ ```
260
+
261
+ ### Poor Steps:
262
+ ```
263
+ 1. Get the data
264
+ 2. Process it
265
+ 3. Return results
266
+ ```
267
+
268
+ ### Effective Narrowing:
269
+ ```
270
+ NARROWING:
271
+ - Do NOT trust user input without validation
272
+ - Avoid loading entire dataset into memory (use pagination)
273
+ - Do NOT use string concatenation for SQL queries
274
+ - Stay within 200ms response time target
275
+ - Avoid external API calls in this phase
276
+ ```
277
+
278
+ ### Ineffective Narrowing:
279
+ ```
280
+ NARROWING:
281
+ - Be careful
282
+ - Don't make mistakes
283
+ ```
284
+
285
+ ## Assessment Checklist
286
+
287
+ When applying RISEN, verify:
288
+ - [ ] Role defines clear expertise or perspective
289
+ - [ ] Instructions provide guiding principles
290
+ - [ ] Steps are specific, actionable, and sequential
291
+ - [ ] Dependencies between steps are noted
292
+ - [ ] End goal has measurable success criteria
293
+ - [ ] Narrowing identifies important constraints
294
+ - [ ] Narrowing explains why boundaries exist
295
+ - [ ] All steps contribute to end goal
296
+ - [ ] Nothing in narrowing contradicts instructions
297
+ - [ ] Process is feasible and practical