opencode-sdlc-plugin 0.3.2 → 1.1.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 (48) hide show
  1. package/README.md +90 -17
  2. package/config/presets/event-modeling.json +19 -8
  3. package/config/presets/minimal.json +29 -16
  4. package/config/presets/standard.json +19 -8
  5. package/config/schemas/athena.schema.json +4 -4
  6. package/config/schemas/sdlc.schema.json +101 -5
  7. package/dist/cli/index.js +1431 -1336
  8. package/dist/cli/index.js.map +1 -1
  9. package/dist/index.d.ts +428 -66
  10. package/dist/index.js +6262 -2440
  11. package/dist/index.js.map +1 -1
  12. package/dist/plugin/index.js +5793 -2010
  13. package/dist/plugin/index.js.map +1 -1
  14. package/package.json +2 -1
  15. package/prompts/agents/adr.md +234 -0
  16. package/prompts/agents/architect.md +204 -0
  17. package/prompts/agents/design-facilitator.md +237 -0
  18. package/prompts/agents/discovery.md +260 -0
  19. package/prompts/agents/domain.md +148 -34
  20. package/prompts/agents/file-updater.md +132 -0
  21. package/prompts/agents/green.md +119 -40
  22. package/prompts/agents/gwt.md +352 -0
  23. package/prompts/agents/model-checker.md +332 -0
  24. package/prompts/agents/red.md +112 -21
  25. package/prompts/agents/story.md +196 -0
  26. package/prompts/agents/ux.md +239 -0
  27. package/prompts/agents/workflow-designer.md +386 -0
  28. package/prompts/modes/architect.md +219 -0
  29. package/prompts/modes/build.md +150 -0
  30. package/prompts/modes/model.md +211 -0
  31. package/prompts/modes/plan.md +186 -0
  32. package/prompts/modes/pm.md +269 -0
  33. package/prompts/modes/prd.md +238 -0
  34. package/commands/sdlc-adr.md +0 -265
  35. package/commands/sdlc-debug.md +0 -376
  36. package/commands/sdlc-design.md +0 -246
  37. package/commands/sdlc-dev.md +0 -544
  38. package/commands/sdlc-info.md +0 -325
  39. package/commands/sdlc-parallel.md +0 -283
  40. package/commands/sdlc-recall.md +0 -213
  41. package/commands/sdlc-remember.md +0 -136
  42. package/commands/sdlc-research.md +0 -343
  43. package/commands/sdlc-review.md +0 -265
  44. package/commands/sdlc-status.md +0 -297
  45. package/config/presets/copilot-only.json +0 -69
  46. package/config/presets/enterprise.json +0 -79
  47. package/config/presets/solo-quick.json +0 -70
  48. package/config/presets/strict-tdd.json +0 -79
@@ -1,246 +0,0 @@
1
- ---
2
- description: Event Modeling design workflow - discover domains, design workflows, generate scenarios
3
- ---
4
-
5
- # SDLC Design - Event Modeling
6
-
7
- ## Instructions
8
-
9
- You receive: `$ARGUMENTS`
10
-
11
- Parse the argument to determine the design action:
12
-
13
- | Command | Action |
14
- |---------|--------|
15
- | `discover <domain>` | Domain discovery for a new domain |
16
- | `workflow <name>` | Design a workflow using 9-step methodology |
17
- | `gwt <workflow>` | Generate GWT scenarios for a workflow |
18
- | `validate [scope]` | Validate event model completeness |
19
- | (no args) | Show status and next recommended action |
20
-
21
- ---
22
-
23
- ## Git Operations Policy
24
-
25
- **AUTOMATIC GIT OPERATIONS ARE PROHIBITED**
26
-
27
- You must NOT perform any git operations automatically:
28
- - Do NOT run `git commit` to save changes
29
- - Do NOT run `git push` to push to remote
30
- - Do NOT run `gh pr create` or other GitHub CLI operations
31
-
32
- **Git operations are ONLY permitted if the user explicitly requests them.**
33
-
34
- ---
35
-
36
- ## Action: `discover <domain>`
37
-
38
- Run domain discovery to identify actors, goals, processes, and boundaries.
39
-
40
- ```
41
- sdlc_discover_domain({
42
- domainName: "<domain name from argument>",
43
- context: "<any additional context from the conversation>"
44
- })
45
- ```
46
-
47
- **Example:** `/sdlc:design discover Order Management`
48
-
49
- After discovery:
50
- 1. Review the generated `docs/event_model/domain/overview.md`
51
- 2. Suggest next steps: "Run `/sdlc:design workflow <name>` to design specific workflows"
52
-
53
- ---
54
-
55
- ## Action: `workflow <name>`
56
-
57
- Design a workflow using the 9-step Event Modeling methodology.
58
-
59
- ```
60
- sdlc_design_workflow({
61
- workflowName: "<workflow name from argument>"
62
- })
63
- ```
64
-
65
- **Example:** `/sdlc:design workflow Order Submission`
66
-
67
- The tool will:
68
- 1. Load domain context if available
69
- 2. Guide through the 9 steps (events, timeline, UIs, commands, rules, details, read models, automations, slices)
70
- 3. Create `docs/event_model/workflows/<name>/overview.md`
71
-
72
- After workflow design:
73
- 1. Review the generated workflow document
74
- 2. Suggest: "Run `/sdlc:design gwt <workflow>` to generate acceptance scenarios"
75
- 3. Mention: "Vertical slices can become GitHub issues"
76
-
77
- ---
78
-
79
- ## Action: `gwt <workflow>`
80
-
81
- Generate Given/When/Then scenarios for a workflow.
82
-
83
- ```
84
- sdlc_generate_gwt({
85
- workflowName: "<workflow name from argument>"
86
- })
87
- ```
88
-
89
- **Example:** `/sdlc:design gwt Order Submission`
90
-
91
- The tool will:
92
- 1. Load the workflow document
93
- 2. Generate scenarios for commands, projections, and automations
94
- 3. Create `docs/event_model/workflows/<name>/scenarios/<slice>.feature`
95
-
96
- After GWT generation:
97
- 1. Review the generated feature files
98
- 2. Suggest: "Run `/sdlc:design validate` to check model completeness"
99
- 3. Mention: "These scenarios become acceptance criteria for implementation"
100
-
101
- ---
102
-
103
- ## Action: `validate [scope]`
104
-
105
- Validate the event model for completeness and consistency.
106
-
107
- ```
108
- sdlc_validate_model({
109
- scope: "<scope from argument or 'all'>"
110
- })
111
- ```
112
-
113
- **Scopes:**
114
- - `all` (default) - Validate everything
115
- - `domain` - Domain overview only
116
- - `workflow` - Workflow designs only
117
- - `scenarios` - GWT scenarios only
118
-
119
- **Example:** `/sdlc:design validate workflow`
120
-
121
- The tool checks:
122
- - **Naming conventions**: Events in past tense, commands imperative
123
- - **Completeness**: Required sections present
124
- - **Consistency**: References exist
125
- - **No implementation details**: Business language only
126
-
127
- After validation:
128
- 1. Show summary of issues found
129
- 2. For errors: Suggest specific fixes
130
- 3. For warnings: Explain why they matter
131
- 4. When valid: Suggest creating GitHub issues from slices
132
-
133
- ---
134
-
135
- ## Action: No Arguments
136
-
137
- When called without arguments, show the current status:
138
-
139
- 1. Check if domain overview exists
140
- 2. Check for workflow documents
141
- 3. Check for scenario files
142
- 4. Run validation with `scope: "all"`
143
-
144
- Then recommend the next action:
145
-
146
- ```
147
- ## Event Model Status
148
-
149
- ### Domain
150
- [ ] Domain overview not found
151
- -> Run: /sdlc:design discover <domain name>
152
-
153
- ### Workflows
154
- [x] order-submission (3 slices)
155
- [ ] No scenarios generated
156
- -> Run: /sdlc:design gwt order-submission
157
-
158
- ### Validation
159
- 2 warnings, 0 errors
160
- - Event naming issue in order-submission
161
- - Missing glossary in domain
162
-
163
- ### Recommended Next Step
164
- Run `/sdlc:design gwt order-submission` to generate acceptance scenarios.
165
- ```
166
-
167
- ---
168
-
169
- ## Event Modeling Concepts
170
-
171
- ### Pattern Types
172
-
173
- | Pattern | Description | GWT Format |
174
- |---------|-------------|------------|
175
- | Command | Trigger -> Command -> Event(s) | Given=prior events, When=command, Then=events |
176
- | View | Events -> Projection | Given=state, When=event, Then=new state |
177
- | Automation | Event -> Policy -> Command | Given=policy, When=event, Then=command |
178
- | Translation | External -> Internal Event | Given=external data, When=received, Then=internal event |
179
-
180
- ### Naming Conventions
181
-
182
- | Element | Style | Examples |
183
- |---------|-------|----------|
184
- | Events | Past tense | OrderSubmitted, PaymentReceived |
185
- | Commands | Imperative | SubmitOrder, ProcessPayment |
186
- | Read Models | Noun | OrderSummary, CustomerDashboard |
187
-
188
- ### Document Structure
189
-
190
- ```
191
- docs/event_model/
192
- ├── domain/
193
- │ └── overview.md # Actors, goals, processes, boundaries
194
- └── workflows/
195
- └── <workflow-name>/
196
- ├── overview.md # 9-step workflow design
197
- └── scenarios/
198
- └── <slice>.feature # GWT scenarios
199
- ```
200
-
201
- ---
202
-
203
- ## Integration with GitHub Issues
204
-
205
- | Event Model Concept | GitHub Equivalent |
206
- |---------------------|-------------------|
207
- | Workflow | Epic issue |
208
- | Vertical Slice | Story issue (1:1) |
209
- | GWT Scenarios | Acceptance Criteria |
210
-
211
- After completing event modeling:
212
- 1. Each workflow becomes an Epic issue
213
- 2. Each vertical slice becomes a Story issue under that Epic
214
- 3. GWT scenarios become the acceptance criteria for each Story
215
-
216
- ---
217
-
218
- ## Quality Standards
219
-
220
- 1. **Business language only** - No technical jargon in event models
221
- 2. **Past tense events** - OrderSubmitted, not SubmitOrder
222
- 3. **Imperative commands** - SubmitOrder, not OrderSubmission
223
- 4. **Concrete scenarios** - Real example values, not placeholders
224
- 5. **Complete coverage** - Happy path + validation + edge cases
225
- 6. **Traceable** - Every slice links to scenarios
226
-
227
- ---
228
-
229
- ## Workflow Summary
230
-
231
- ```
232
- 1. /sdlc:design discover <domain>
233
- └── Creates domain overview with actors, goals, boundaries
234
-
235
- 2. /sdlc:design workflow <name>
236
- └── Designs workflow with events, commands, read models, slices
237
-
238
- 3. /sdlc:design gwt <workflow>
239
- └── Generates GWT scenarios for acceptance criteria
240
-
241
- 4. /sdlc:design validate
242
- └── Checks completeness and naming conventions
243
-
244
- 5. Create GitHub issues from vertical slices
245
- └── Each slice = 1 story issue with GWT as acceptance criteria
246
- ```