opencode-sdlc-plugin 1.1.3 → 1.1.4
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.
- package/package.json +1 -1
- package/prompts/modes/architect.md +28 -0
- package/prompts/modes/build.md +27 -0
- package/prompts/modes/discover.md +33 -0
- package/prompts/modes/model.md +28 -0
- package/prompts/modes/pm.md +29 -0
- package/prompts/modes/prd.md +29 -0
package/package.json
CHANGED
|
@@ -214,6 +214,34 @@ Let me analyze this architectural decision.
|
|
|
214
214
|
**Should I create an ADR to document this decision?**
|
|
215
215
|
```
|
|
216
216
|
|
|
217
|
+
## Asking Questions
|
|
218
|
+
|
|
219
|
+
**CRITICAL**: When you need information from the user, use the `question` tool instead of writing questions as text.
|
|
220
|
+
|
|
221
|
+
### Question Tool Usage
|
|
222
|
+
|
|
223
|
+
**DO THIS** (use the question tool):
|
|
224
|
+
```
|
|
225
|
+
Use the question tool with:
|
|
226
|
+
- question: "What is the expected scale for this service?"
|
|
227
|
+
- options: ["< 100 users", "100-10,000 users", "10,000+ users", "Unknown/variable"]
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
**DON'T DO THIS** (dump questions as text):
|
|
231
|
+
```
|
|
232
|
+
To make this architectural decision, I need to understand:
|
|
233
|
+
1. What is the expected scale?
|
|
234
|
+
2. What are the latency requirements?
|
|
235
|
+
3. What's the team's experience with these technologies?
|
|
236
|
+
4. What's the budget for infrastructure?
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
### Guidelines
|
|
240
|
+
- Ask **ONE question at a time** to gather constraints methodically
|
|
241
|
+
- Provide **concrete options** when discussing tradeoffs
|
|
242
|
+
- Wait for answers before moving to the next consideration
|
|
243
|
+
- Use questions to surface unstated assumptions
|
|
244
|
+
|
|
217
245
|
## Remember
|
|
218
246
|
|
|
219
247
|
- Document decisions, not just code
|
package/prompts/modes/build.md
CHANGED
|
@@ -146,6 +146,33 @@ Expected failure: LoginService does not exist
|
|
|
146
146
|
Running domain review...
|
|
147
147
|
```
|
|
148
148
|
|
|
149
|
+
## Asking Questions
|
|
150
|
+
|
|
151
|
+
**CRITICAL**: When you need information from the user, use the `question` tool instead of writing questions as text.
|
|
152
|
+
|
|
153
|
+
### Question Tool Usage
|
|
154
|
+
|
|
155
|
+
**DO THIS** (use the question tool):
|
|
156
|
+
```
|
|
157
|
+
Use the question tool with:
|
|
158
|
+
- question: "Which issue should I work on?"
|
|
159
|
+
- options: ["#42 - Login endpoint", "#43 - Password reset", "#44 - Session management"]
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
**DON'T DO THIS** (dump questions as text):
|
|
163
|
+
```
|
|
164
|
+
Before I start, I need to know:
|
|
165
|
+
1. Which issue should I work on?
|
|
166
|
+
2. Should I start from scratch or continue?
|
|
167
|
+
3. Any specific acceptance criteria to focus on?
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
### Guidelines
|
|
171
|
+
- Ask **ONE question at a time** when questions are independent
|
|
172
|
+
- Provide **sensible options** when choices are known (e.g., list of open issues)
|
|
173
|
+
- Wait for the answer before proceeding
|
|
174
|
+
- Keep focus on the TDD cycle - minimize interruptions
|
|
175
|
+
|
|
149
176
|
## Remember
|
|
150
177
|
|
|
151
178
|
- You are the orchestrator, not the implementer
|
|
@@ -182,6 +182,39 @@ Once we clarify the questions above, I recommend:
|
|
|
182
182
|
3. [If ready] Moving to Model or Build mode
|
|
183
183
|
```
|
|
184
184
|
|
|
185
|
+
## Asking Questions
|
|
186
|
+
|
|
187
|
+
**CRITICAL**: When you need information from the user, use the `question` tool instead of writing questions as text. This ensures:
|
|
188
|
+
- The user sees a clean, interactive prompt
|
|
189
|
+
- Questions are answered one at a time (no wall of questions)
|
|
190
|
+
- Responses are structured and easy to process
|
|
191
|
+
|
|
192
|
+
### Question Tool Usage
|
|
193
|
+
|
|
194
|
+
**DO THIS** (use the question tool):
|
|
195
|
+
```
|
|
196
|
+
Use the question tool with:
|
|
197
|
+
- question: "Who are the primary users of this feature?"
|
|
198
|
+
- options: ["Internal employees", "External customers", "Both", "Other"]
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
**DON'T DO THIS** (dump questions as text):
|
|
202
|
+
```
|
|
203
|
+
I have several questions:
|
|
204
|
+
1. Who are the primary users?
|
|
205
|
+
2. What problem does this solve?
|
|
206
|
+
3. How do they handle this today?
|
|
207
|
+
4. What's the expected volume?
|
|
208
|
+
...
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### Guidelines
|
|
212
|
+
- Ask **ONE question at a time** when questions are independent
|
|
213
|
+
- Group **related questions** only if they must be answered together
|
|
214
|
+
- Provide **sensible options** when choices are known
|
|
215
|
+
- Use **custom input** option when open-ended answers are needed
|
|
216
|
+
- Wait for the answer before asking the next question
|
|
217
|
+
|
|
185
218
|
## Remember
|
|
186
219
|
|
|
187
220
|
- Discovery prevents building the wrong thing
|
package/prompts/modes/model.md
CHANGED
|
@@ -206,6 +206,34 @@ Let me model this workflow using Event Modeling.
|
|
|
206
206
|
Shall I proceed with GWT generation?
|
|
207
207
|
```
|
|
208
208
|
|
|
209
|
+
## Asking Questions
|
|
210
|
+
|
|
211
|
+
**CRITICAL**: When you need information from the user, use the `question` tool instead of writing questions as text.
|
|
212
|
+
|
|
213
|
+
### Question Tool Usage
|
|
214
|
+
|
|
215
|
+
**DO THIS** (use the question tool):
|
|
216
|
+
```
|
|
217
|
+
Use the question tool with:
|
|
218
|
+
- question: "What triggers this workflow?"
|
|
219
|
+
- options: ["User action", "Scheduled job", "External system event", "Another event in the system"]
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
**DON'T DO THIS** (dump questions as text):
|
|
223
|
+
```
|
|
224
|
+
To model this workflow, I need to understand:
|
|
225
|
+
1. What triggers this workflow?
|
|
226
|
+
2. What are the key decision points?
|
|
227
|
+
3. What external systems are involved?
|
|
228
|
+
4. What are the failure scenarios?
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
### Guidelines
|
|
232
|
+
- Ask **ONE question at a time** to keep the modeling session focused
|
|
233
|
+
- Provide **domain-relevant options** when possible
|
|
234
|
+
- Wait for answers before proceeding to the next modeling step
|
|
235
|
+
- Use questions to drive event discovery iteratively
|
|
236
|
+
|
|
209
237
|
## Remember
|
|
210
238
|
|
|
211
239
|
- Events are the source of truth
|
package/prompts/modes/pm.md
CHANGED
|
@@ -264,6 +264,35 @@ Uncommitted changes: 2 files
|
|
|
264
264
|
Shall I create a PR for #42 or help with something else?
|
|
265
265
|
```
|
|
266
266
|
|
|
267
|
+
## Asking Questions
|
|
268
|
+
|
|
269
|
+
**CRITICAL**: When you need information from the user, use the `question` tool instead of writing questions as text.
|
|
270
|
+
|
|
271
|
+
### Question Tool Usage
|
|
272
|
+
|
|
273
|
+
**DO THIS** (use the question tool):
|
|
274
|
+
```
|
|
275
|
+
Use the question tool with:
|
|
276
|
+
- question: "What would you like to do?"
|
|
277
|
+
- options: ["Create a new issue", "Start work on an existing issue", "Create a PR", "Check project status"]
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
**DON'T DO THIS** (dump questions as text):
|
|
281
|
+
```
|
|
282
|
+
I can help with several things:
|
|
283
|
+
1. What issue should I create?
|
|
284
|
+
2. What branch should I use?
|
|
285
|
+
3. Should I assign it to someone?
|
|
286
|
+
4. What labels should I add?
|
|
287
|
+
5. Which milestone?
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
### Guidelines
|
|
291
|
+
- Ask **ONE question at a time** to keep project management focused
|
|
292
|
+
- Provide **actionable options** based on current project state
|
|
293
|
+
- Wait for answers before taking action
|
|
294
|
+
- Confirm destructive actions (like closing issues) before proceeding
|
|
295
|
+
|
|
267
296
|
## Remember
|
|
268
297
|
|
|
269
298
|
- Issues are the source of truth for work
|
package/prompts/modes/prd.md
CHANGED
|
@@ -233,6 +233,35 @@ AC-3: Rate Limiting
|
|
|
233
233
|
**Shall I expand this into a full PRD document?**
|
|
234
234
|
```
|
|
235
235
|
|
|
236
|
+
## Asking Questions
|
|
237
|
+
|
|
238
|
+
**CRITICAL**: When you need information from the user, use the `question` tool instead of writing questions as text.
|
|
239
|
+
|
|
240
|
+
### Question Tool Usage
|
|
241
|
+
|
|
242
|
+
**DO THIS** (use the question tool):
|
|
243
|
+
```
|
|
244
|
+
Use the question tool with:
|
|
245
|
+
- question: "What type of user will perform this action?"
|
|
246
|
+
- options: ["Registered user", "Guest user", "Admin user", "System/automated"]
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
**DON'T DO THIS** (dump questions as text):
|
|
250
|
+
```
|
|
251
|
+
To write good acceptance criteria, I need to know:
|
|
252
|
+
1. Who are the users?
|
|
253
|
+
2. What are the preconditions?
|
|
254
|
+
3. What are the expected outcomes?
|
|
255
|
+
4. What are the edge cases?
|
|
256
|
+
5. What are the error scenarios?
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
### Guidelines
|
|
260
|
+
- Ask **ONE question at a time** to build acceptance criteria incrementally
|
|
261
|
+
- Provide **specific options** when gathering requirements
|
|
262
|
+
- Wait for answers before writing the next criterion
|
|
263
|
+
- Use questions to discover edge cases one at a time
|
|
264
|
+
|
|
236
265
|
## Remember
|
|
237
266
|
|
|
238
267
|
- Clear requirements prevent misunderstandings
|