musubi-sdd 0.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 (91) hide show
  1. package/LICENSE +21 -0
  2. package/README.ja.md +531 -0
  3. package/README.md +531 -0
  4. package/bin/musubi-init.js +321 -0
  5. package/bin/musubi.js +359 -0
  6. package/package.json +55 -0
  7. package/src/agents/registry.js +242 -0
  8. package/src/templates/agents/claude-code/CLAUDE.md +232 -0
  9. package/src/templates/agents/claude-code/commands/sdd-design.md +673 -0
  10. package/src/templates/agents/claude-code/commands/sdd-implement.md +777 -0
  11. package/src/templates/agents/claude-code/commands/sdd-requirements.md +438 -0
  12. package/src/templates/agents/claude-code/commands/sdd-steering.md +334 -0
  13. package/src/templates/agents/claude-code/commands/sdd-tasks.md +582 -0
  14. package/src/templates/agents/claude-code/commands/sdd-validate.md +710 -0
  15. package/src/templates/agents/claude-code/skills/ai-ml-engineer/SKILL.md +3055 -0
  16. package/src/templates/agents/claude-code/skills/api-designer/SKILL.md +1364 -0
  17. package/src/templates/agents/claude-code/skills/bug-hunter/SKILL.md +482 -0
  18. package/src/templates/agents/claude-code/skills/change-impact-analyzer/SKILL.md +397 -0
  19. package/src/templates/agents/claude-code/skills/cloud-architect/SKILL.md +1468 -0
  20. package/src/templates/agents/claude-code/skills/code-reviewer/SKILL.md +906 -0
  21. package/src/templates/agents/claude-code/skills/constitution-enforcer/SKILL.md +466 -0
  22. package/src/templates/agents/claude-code/skills/database-administrator/SKILL.md +3522 -0
  23. package/src/templates/agents/claude-code/skills/database-schema-designer/SKILL.md +1158 -0
  24. package/src/templates/agents/claude-code/skills/devops-engineer/SKILL.md +647 -0
  25. package/src/templates/agents/claude-code/skills/orchestrator/SKILL.md +574 -0
  26. package/src/templates/agents/claude-code/skills/performance-optimizer/SKILL.md +464 -0
  27. package/src/templates/agents/claude-code/skills/project-manager/SKILL.md +769 -0
  28. package/src/templates/agents/claude-code/skills/quality-assurance/SKILL.md +1059 -0
  29. package/src/templates/agents/claude-code/skills/release-coordinator/SKILL.md +653 -0
  30. package/src/templates/agents/claude-code/skills/requirements-analyst/SKILL.md +1287 -0
  31. package/src/templates/agents/claude-code/skills/security-auditor/SKILL.md +1107 -0
  32. package/src/templates/agents/claude-code/skills/site-reliability-engineer/SKILL.md +404 -0
  33. package/src/templates/agents/claude-code/skills/software-developer/SKILL.md +1254 -0
  34. package/src/templates/agents/claude-code/skills/steering/SKILL.md +383 -0
  35. package/src/templates/agents/claude-code/skills/system-architect/SKILL.md +1288 -0
  36. package/src/templates/agents/claude-code/skills/technical-writer/SKILL.md +712 -0
  37. package/src/templates/agents/claude-code/skills/test-engineer/SKILL.md +1262 -0
  38. package/src/templates/agents/claude-code/skills/traceability-auditor/SKILL.md +298 -0
  39. package/src/templates/agents/claude-code/skills/ui-ux-designer/SKILL.md +1009 -0
  40. package/src/templates/agents/codex/AGENTS.md +138 -0
  41. package/src/templates/agents/codex/commands/sdd-design.md +673 -0
  42. package/src/templates/agents/codex/commands/sdd-implement.md +777 -0
  43. package/src/templates/agents/codex/commands/sdd-requirements.md +438 -0
  44. package/src/templates/agents/codex/commands/sdd-steering.md +334 -0
  45. package/src/templates/agents/codex/commands/sdd-tasks.md +582 -0
  46. package/src/templates/agents/codex/commands/sdd-validate.md +710 -0
  47. package/src/templates/agents/cursor/AGENTS.md +138 -0
  48. package/src/templates/agents/cursor/commands/sdd-design.md +673 -0
  49. package/src/templates/agents/cursor/commands/sdd-implement.md +777 -0
  50. package/src/templates/agents/cursor/commands/sdd-requirements.md +438 -0
  51. package/src/templates/agents/cursor/commands/sdd-steering.md +334 -0
  52. package/src/templates/agents/cursor/commands/sdd-tasks.md +582 -0
  53. package/src/templates/agents/cursor/commands/sdd-validate.md +710 -0
  54. package/src/templates/agents/gemini-cli/GEMINI.md +128 -0
  55. package/src/templates/agents/gemini-cli/commands/sdd-design.toml +359 -0
  56. package/src/templates/agents/gemini-cli/commands/sdd-implement.toml +484 -0
  57. package/src/templates/agents/gemini-cli/commands/sdd-requirements.toml +291 -0
  58. package/src/templates/agents/gemini-cli/commands/sdd-steering.toml +209 -0
  59. package/src/templates/agents/gemini-cli/commands/sdd-tasks.toml +441 -0
  60. package/src/templates/agents/gemini-cli/commands/sdd-validate.toml +553 -0
  61. package/src/templates/agents/github-copilot/AGENTS.md +138 -0
  62. package/src/templates/agents/github-copilot/commands/sdd-design.md +673 -0
  63. package/src/templates/agents/github-copilot/commands/sdd-implement.md +777 -0
  64. package/src/templates/agents/github-copilot/commands/sdd-requirements.md +438 -0
  65. package/src/templates/agents/github-copilot/commands/sdd-steering.md +334 -0
  66. package/src/templates/agents/github-copilot/commands/sdd-tasks.md +582 -0
  67. package/src/templates/agents/github-copilot/commands/sdd-validate.md +710 -0
  68. package/src/templates/agents/qwen-code/QWEN.md +128 -0
  69. package/src/templates/agents/qwen-code/commands/sdd-design.md +673 -0
  70. package/src/templates/agents/qwen-code/commands/sdd-implement.md +777 -0
  71. package/src/templates/agents/qwen-code/commands/sdd-requirements.md +438 -0
  72. package/src/templates/agents/qwen-code/commands/sdd-steering.md +334 -0
  73. package/src/templates/agents/qwen-code/commands/sdd-tasks.md +582 -0
  74. package/src/templates/agents/qwen-code/commands/sdd-validate.md +710 -0
  75. package/src/templates/agents/windsurf/AGENTS.md +138 -0
  76. package/src/templates/agents/windsurf/commands/sdd-design.md +673 -0
  77. package/src/templates/agents/windsurf/commands/sdd-implement.md +777 -0
  78. package/src/templates/agents/windsurf/commands/sdd-requirements.md +438 -0
  79. package/src/templates/agents/windsurf/commands/sdd-steering.md +334 -0
  80. package/src/templates/agents/windsurf/commands/sdd-tasks.md +582 -0
  81. package/src/templates/agents/windsurf/commands/sdd-validate.md +710 -0
  82. package/src/templates/shared/constitution/constitution.md +408 -0
  83. package/src/templates/shared/constitution/ears-format.md +613 -0
  84. package/src/templates/shared/constitution/workflow.md +653 -0
  85. package/src/templates/shared/documents/design.md +737 -0
  86. package/src/templates/shared/documents/requirements.md +329 -0
  87. package/src/templates/shared/documents/research.md +494 -0
  88. package/src/templates/shared/documents/tasks.md +781 -0
  89. package/src/templates/shared/steering/product.md +544 -0
  90. package/src/templates/shared/steering/structure.md +405 -0
  91. package/src/templates/shared/steering/tech.md +537 -0
@@ -0,0 +1,653 @@
1
+ # SDD Workflow - 8 Stages
2
+
3
+ **Version**: 1.0
4
+ **Framework**: MUSUBI Specification Driven Development
5
+
6
+ ---
7
+
8
+ ## Overview
9
+
10
+ This document defines the complete 8-stage Specification Driven Development workflow used in this project. Each stage has dedicated skills, quality gates, and constitutional validation.
11
+
12
+ ```
13
+ Research → Requirements → Design → Tasks → Implementation → Testing → Deployment → Monitoring
14
+ ```
15
+
16
+ ---
17
+
18
+ ## Stage 1: Research
19
+
20
+ **Purpose**: Gather information, explore options, evaluate technologies
21
+
22
+ ### Responsible Skills
23
+
24
+ - `@requirements-analyst` - Stakeholder interviews, domain research
25
+ - `@system-architect` - Technology evaluation, architecture research
26
+ - `@technical-writer` - Documentation research
27
+
28
+ ### Activities
29
+
30
+ 1. **Stakeholder Interviews**
31
+ - Identify business goals
32
+ - Understand user needs
33
+ - Clarify constraints
34
+
35
+ 2. **Domain Research**
36
+ - Study domain concepts
37
+ - Review existing solutions
38
+ - Identify best practices
39
+
40
+ 3. **Technology Evaluation**
41
+ - Research frameworks/libraries
42
+ - Compare alternatives
43
+ - Assess team expertise
44
+
45
+ 4. **Feasibility Analysis**
46
+ - Technical feasibility
47
+ - Resource feasibility
48
+ - Timeline feasibility
49
+
50
+ ### Deliverables
51
+
52
+ - `research.md` - Research findings and recommendations
53
+ - Technology comparison matrix
54
+ - Feasibility assessment
55
+
56
+ ### Quality Gates
57
+
58
+ - [ ] Research questions answered
59
+ - [ ] Options evaluated (minimum 2)
60
+ - [ ] Recommendations justified
61
+ - [ ] Stakeholders reviewed
62
+
63
+ ### Constitutional Validation
64
+
65
+ - **Article VI**: Consult `steering/tech.md` for technology stack
66
+ - **Article VI**: Consult `steering/structure.md` for architecture patterns
67
+
68
+ ### Template
69
+
70
+ Use `templates/research.md` template.
71
+
72
+ ---
73
+
74
+ ## Stage 2: Requirements
75
+
76
+ **Purpose**: Define unambiguous, testable requirements in EARS format
77
+
78
+ ### Responsible Skills
79
+
80
+ - `@requirements-analyst` - EARS requirements creation
81
+ - `@project-manager` - Priority, scope, timeline
82
+ - `@change-impact-analyzer` - Impact analysis (brownfield)
83
+
84
+ ### Activities
85
+
86
+ 1. **Requirements Gathering**
87
+ - Extract from stakeholder interviews
88
+ - Analyze user stories
89
+ - Identify functional/non-functional requirements
90
+
91
+ 2. **EARS Conversion**
92
+ - Convert to EARS format (5 patterns)
93
+ - Add acceptance criteria
94
+ - Assign requirement IDs (REQ-XXX-NNN)
95
+
96
+ 3. **Requirements Review**
97
+ - Stakeholder validation
98
+ - Completeness check
99
+ - Ambiguity elimination
100
+
101
+ 4. **Impact Analysis** (Brownfield only)
102
+ - Identify ADDED requirements
103
+ - Identify MODIFIED requirements
104
+ - Identify REMOVED requirements
105
+ - Assess breaking changes
106
+
107
+ ### Deliverables
108
+
109
+ - `requirements.md` - EARS requirements with acceptance criteria
110
+ - Requirements coverage matrix
111
+ - `changes.md` - Delta specification (brownfield)
112
+
113
+ ### Quality Gates
114
+
115
+ - [ ] All requirements in EARS format
116
+ - [ ] Requirement IDs assigned
117
+ - [ ] Acceptance criteria defined
118
+ - [ ] Stakeholders approved
119
+ - [ ] **Constitutional validation passed (Article IV)**
120
+
121
+ ### Constitutional Validation
122
+
123
+ - **Article IV**: EARS format enforced
124
+ - **Article V**: Requirements assigned unique IDs
125
+ - **Article VI**: Consult `steering/product.md` for business context
126
+
127
+ ### Validation Command
128
+
129
+ ```bash
130
+ @constitution-enforcer validate requirements.md
131
+ ```
132
+
133
+ ### Template
134
+
135
+ Use `templates/requirements.md` template.
136
+
137
+ ---
138
+
139
+ ## Stage 3: Design
140
+
141
+ **Purpose**: Create technical design with requirements traceability
142
+
143
+ ### Responsible Skills
144
+
145
+ - `@system-architect` - Architecture, C4 diagrams, ADR
146
+ - `@api-designer` - API contracts (REST/GraphQL/gRPC)
147
+ - `@database-schema-designer` - Database schema, ER diagrams
148
+ - `@ui-ux-designer` - UI/UX wireframes, prototypes
149
+
150
+ ### Activities
151
+
152
+ 1. **Architecture Design**
153
+ - Define system structure
154
+ - Create C4 diagrams (Context, Container, Component)
155
+ - Write Architecture Decision Records (ADR)
156
+ - Map requirements to components
157
+
158
+ 2. **API Design**
159
+ - Define API contracts
160
+ - Create OpenAPI/GraphQL schemas
161
+ - Document endpoints
162
+ - Map requirements to endpoints
163
+
164
+ 3. **Database Design**
165
+ - Create ER diagrams
166
+ - Define schema (tables, relationships)
167
+ - Generate DDL statements
168
+ - Map requirements to entities
169
+
170
+ 4. **UI/UX Design** (if applicable)
171
+ - Create wireframes
172
+ - Design user flows
173
+ - Define design system
174
+ - Map requirements to screens
175
+
176
+ 5. **Requirements Traceability**
177
+ - Create requirements coverage matrix
178
+ - Map requirements → design decisions
179
+ - Validate 100% coverage
180
+
181
+ ### Deliverables
182
+
183
+ - `design.md` - Complete technical design
184
+ - C4 diagrams (Context, Container, Component)
185
+ - ADR documents
186
+ - API specifications (OpenAPI/GraphQL)
187
+ - Database DDL
188
+ - Requirements coverage matrix
189
+
190
+ ### Quality Gates
191
+
192
+ - [ ] All requirements mapped to design
193
+ - [ ] Architecture aligned with `steering/structure.md`
194
+ - [ ] Technology stack matches `steering/tech.md`
195
+ - [ ] ADRs document key decisions
196
+ - [ ] **Constitutional validation passed (Articles I, II, VII, VIII)**
197
+
198
+ ### Constitutional Validation
199
+
200
+ - **Article I**: Features designed as libraries
201
+ - **Article II**: CLI interfaces specified
202
+ - **Article V**: 100% requirements coverage
203
+ - **Article VI**: Design aligned with steering files
204
+ - **Article VII**: Project count ≤ 3 (or Phase -1 Gate approval)
205
+ - **Article VIII**: No custom abstraction layers (or Phase -1 Gate approval)
206
+
207
+ ### Validation Command
208
+
209
+ ```bash
210
+ @constitution-enforcer validate design.md
211
+ ```
212
+
213
+ ### Phase -1 Gates
214
+
215
+ Trigger gates if:
216
+ - Project count > 3 (Article VII)
217
+ - Custom abstraction layers proposed (Article VIII)
218
+
219
+ ### Template
220
+
221
+ Use `templates/design.md` template.
222
+
223
+ ---
224
+
225
+ ## Stage 4: Tasks
226
+
227
+ **Purpose**: Break design into actionable implementation tasks
228
+
229
+ ### Responsible Skills
230
+
231
+ - `@project-manager` - Task breakdown, scheduling, dependencies
232
+ - `@software-developer` - Implementation planning
233
+ - `@test-engineer` - Test planning
234
+
235
+ ### Activities
236
+
237
+ 1. **Task Decomposition**
238
+ - Break design into implementation tasks
239
+ - Define task dependencies
240
+ - Estimate effort (story points/hours)
241
+ - Assign priority (P0, P1, P2, P3)
242
+
243
+ 2. **Requirements Mapping**
244
+ - Map tasks to requirements
245
+ - Validate coverage
246
+ - Identify gaps
247
+
248
+ 3. **Test Planning**
249
+ - Plan unit tests
250
+ - Plan integration tests
251
+ - Plan E2E tests
252
+ - Map tests to requirements
253
+
254
+ 4. **Scheduling**
255
+ - Create sprint/milestone plan
256
+ - Allocate resources
257
+ - Identify risks
258
+
259
+ ### Deliverables
260
+
261
+ - `tasks.md` - Task breakdown with requirements mapping
262
+ - Sprint/milestone plan
263
+ - Test plan
264
+ - Requirements coverage matrix (tasks → requirements)
265
+
266
+ ### Quality Gates
267
+
268
+ - [ ] All requirements mapped to tasks
269
+ - [ ] Task dependencies identified
270
+ - [ ] Effort estimated
271
+ - [ ] Test plan complete
272
+ - [ ] Risks identified
273
+
274
+ ### Constitutional Validation
275
+
276
+ - **Article V**: Tasks mapped to requirements
277
+ - **Article VI**: Plan aligned with steering context
278
+
279
+ ### Template
280
+
281
+ Use `templates/tasks.md` template.
282
+
283
+ ---
284
+
285
+ ## Stage 5: Implementation
286
+
287
+ **Purpose**: Write code following Test-First imperative
288
+
289
+ ### Responsible Skills
290
+
291
+ - `@software-developer` - Code implementation
292
+ - `@test-engineer` - Test implementation (BEFORE code)
293
+ - `@code-reviewer` - Code review
294
+
295
+ ### Activities
296
+
297
+ 1. **Test-First Development (Red-Green-Blue)**
298
+ - **Red**: Write failing test for requirement
299
+ - **Green**: Write minimal code to pass test
300
+ - **Blue**: Refactor with confidence
301
+
302
+ 2. **Library-First Implementation**
303
+ - Implement features as libraries
304
+ - Expose CLI interface
305
+ - Write library tests
306
+ - Document library API
307
+
308
+ 3. **Code Review**
309
+ - SOLID principles validation
310
+ - Security audit (OWASP Top 10)
311
+ - Performance review
312
+ - Best practices enforcement
313
+
314
+ 4. **Traceability**
315
+ - Add requirement IDs in code comments
316
+ - Reference requirements in commit messages
317
+ - Update requirements coverage matrix
318
+
319
+ ### Deliverables
320
+
321
+ - Source code (libraries + applications)
322
+ - Test suites (unit, integration, E2E)
323
+ - CLI interfaces
324
+ - Code review reports
325
+
326
+ ### Quality Gates
327
+
328
+ - [ ] **Tests written BEFORE code (Article III)**
329
+ - [ ] **Features implemented as libraries (Article I)**
330
+ - [ ] **CLI interfaces provided (Article II)**
331
+ - [ ] Test coverage ≥ 80%
332
+ - [ ] Code review passed
333
+ - [ ] No critical security issues
334
+ - [ ] **Constitutional validation passed**
335
+
336
+ ### Constitutional Validation
337
+
338
+ - **Article I**: Library-First enforced
339
+ - **Article II**: CLI interfaces exist
340
+ - **Article III**: Test-First followed (check git history)
341
+ - **Article V**: Code comments reference requirements
342
+ - **Article VI**: Code aligned with steering context
343
+
344
+ ### Validation Command
345
+
346
+ ```bash
347
+ @constitution-enforcer validate src/
348
+ @code-reviewer review src/
349
+ @security-auditor audit src/
350
+ ```
351
+
352
+ ### Red-Green-Blue Cycle Example
353
+
354
+ ```bash
355
+ # 1. RED - Write failing test
356
+ git commit -m "test: add failing test for REQ-AUTH-001"
357
+
358
+ # 2. GREEN - Write minimal code
359
+ git commit -m "feat: implement REQ-AUTH-001 (authentication)"
360
+
361
+ # 3. BLUE - Refactor
362
+ git commit -m "refactor: improve authentication logic (REQ-AUTH-001)"
363
+ ```
364
+
365
+ ---
366
+
367
+ ## Stage 6: Testing
368
+
369
+ **Purpose**: Validate all requirements are met with real services
370
+
371
+ ### Responsible Skills
372
+
373
+ - `@test-engineer` - Test execution, coverage analysis
374
+ - `@quality-assurance` - QA strategy, acceptance testing
375
+ - `@traceability-auditor` - Requirements coverage validation
376
+
377
+ ### Activities
378
+
379
+ 1. **Test Execution**
380
+ - Run unit tests
381
+ - Run integration tests (real services)
382
+ - Run E2E tests
383
+ - Measure coverage
384
+
385
+ 2. **Traceability Validation**
386
+ - Validate requirements → test mapping
387
+ - Identify untested requirements
388
+ - Verify 100% coverage
389
+
390
+ 3. **Integration Testing (Real Services)**
391
+ - Use real databases (Docker containers)
392
+ - Use test environments for external APIs
393
+ - Justify any mocks
394
+
395
+ 4. **Acceptance Testing**
396
+ - Validate acceptance criteria
397
+ - User acceptance testing (UAT)
398
+ - Stakeholder sign-off
399
+
400
+ ### Deliverables
401
+
402
+ - Test execution reports
403
+ - Coverage reports (≥ 80%)
404
+ - Traceability audit report (100% coverage)
405
+ - UAT results
406
+ - Bug reports
407
+
408
+ ### Quality Gates
409
+
410
+ - [ ] All tests passing
411
+ - [ ] Coverage ≥ 80%
412
+ - [ ] **100% requirements coverage (Article V)**
413
+ - [ ] **Integration tests use real services (Article IX)**
414
+ - [ ] UAT passed
415
+ - [ ] **Constitutional validation passed**
416
+
417
+ ### Constitutional Validation
418
+
419
+ - **Article III**: Test-First evidence in git history
420
+ - **Article V**: 100% requirements → test coverage
421
+ - **Article IX**: Integration tests use real services (mocks justified)
422
+
423
+ ### Validation Command
424
+
425
+ ```bash
426
+ @traceability-auditor validate requirements.md tests/
427
+ @constitution-enforcer validate tests/
428
+ ```
429
+
430
+ ---
431
+
432
+ ## Stage 7: Deployment
433
+
434
+ **Purpose**: Deploy to production with monitoring
435
+
436
+ ### Responsible Skills
437
+
438
+ - `@devops-engineer` - CI/CD pipelines, deployment automation
439
+ - `@cloud-architect` - Infrastructure provisioning (IaC)
440
+ - `@release-coordinator` - Multi-component release management
441
+ - `@site-reliability-engineer` - Production readiness review
442
+
443
+ ### Activities
444
+
445
+ 1. **Infrastructure Provisioning**
446
+ - Provision cloud resources (Terraform/Bicep)
447
+ - Configure environments (dev, staging, prod)
448
+ - Set up databases, caching, queues
449
+
450
+ 2. **CI/CD Pipeline**
451
+ - Automated build
452
+ - Automated testing
453
+ - Automated deployment
454
+ - Rollback strategy
455
+
456
+ 3. **Release Coordination**
457
+ - Coordinate multi-component releases
458
+ - Feature flag configuration
459
+ - Backward compatibility validation
460
+ - Staged rollout plan
461
+
462
+ 4. **Production Readiness**
463
+ - Health check endpoints
464
+ - Logging configuration
465
+ - Monitoring setup
466
+ - Alerting rules
467
+
468
+ 5. **Deployment Execution**
469
+ - Deploy to staging
470
+ - Smoke tests
471
+ - Deploy to production
472
+ - Monitor deployment
473
+
474
+ ### Deliverables
475
+
476
+ - IaC code (Terraform/Bicep)
477
+ - CI/CD pipeline configuration
478
+ - Deployment runbooks
479
+ - Rollback procedures
480
+ - Production readiness checklist
481
+
482
+ ### Quality Gates
483
+
484
+ - [ ] Staging deployment successful
485
+ - [ ] Smoke tests passed
486
+ - [ ] Monitoring configured
487
+ - [ ] Alerts configured
488
+ - [ ] Rollback tested
489
+ - [ ] Production readiness review passed
490
+
491
+ ### Constitutional Validation
492
+
493
+ - **Article VI**: Infrastructure aligned with `steering/structure.md`
494
+
495
+ ---
496
+
497
+ ## Stage 8: Monitoring
498
+
499
+ **Purpose**: Monitor production, respond to incidents, iterate
500
+
501
+ ### Responsible Skills
502
+
503
+ - `@site-reliability-engineer` - SLO/SLI monitoring, incident response
504
+ - `@performance-optimizer` - Performance monitoring, optimization
505
+ - `@bug-hunter` - Production bug investigation
506
+
507
+ ### Activities
508
+
509
+ 1. **Observability Setup**
510
+ - Metrics collection (Prometheus, CloudWatch)
511
+ - Log aggregation (ELK, Splunk)
512
+ - Distributed tracing (Jaeger, Zipkin)
513
+ - Dashboards (Grafana)
514
+
515
+ 2. **SLO/SLI Monitoring**
516
+ - Define Service Level Objectives (SLO)
517
+ - Define Service Level Indicators (SLI)
518
+ - Monitor error budgets
519
+ - Alert on SLO violations
520
+
521
+ 3. **Incident Response**
522
+ - On-call rotation
523
+ - Incident detection
524
+ - Incident resolution
525
+ - Post-mortem analysis
526
+
527
+ 4. **Performance Monitoring**
528
+ - Response time tracking
529
+ - Resource utilization
530
+ - Bottleneck detection
531
+ - Optimization opportunities
532
+
533
+ 5. **Continuous Improvement**
534
+ - Analyze metrics
535
+ - Identify improvements
536
+ - Create new requirements (→ Stage 2)
537
+ - Iterate
538
+
539
+ ### Deliverables
540
+
541
+ - SLO/SLI definitions
542
+ - Monitoring dashboards
543
+ - Alert rules
544
+ - Incident runbooks
545
+ - Post-mortem reports
546
+ - Performance reports
547
+
548
+ ### Quality Gates
549
+
550
+ - [ ] SLO/SLI defined and monitored
551
+ - [ ] Alerts configured and tested
552
+ - [ ] Incident response procedures documented
553
+ - [ ] Performance baselines established
554
+ - [ ] Post-mortem process in place
555
+
556
+ ### Constitutional Validation
557
+
558
+ - **Article VI**: Monitor metrics aligned with product goals in `steering/product.md`
559
+
560
+ ---
561
+
562
+ ## Workflow Iteration
563
+
564
+ ### Greenfield (0→1)
565
+
566
+ Full 8-stage workflow for new projects:
567
+ ```
568
+ Research → Requirements → Design → Tasks → Implementation → Testing → Deployment → Monitoring
569
+ ```
570
+
571
+ ### Brownfield (1→n)
572
+
573
+ For changes to existing projects:
574
+ ```
575
+ Research (change analysis) → Requirements (delta spec) →
576
+ Design (impact analysis) → Tasks → Implementation → Testing → Deployment → Monitoring
577
+ ```
578
+
579
+ **Skills for Brownfield**:
580
+ - `@change-impact-analyzer` - Analyze ADDED/MODIFIED/REMOVED requirements
581
+ - `@traceability-auditor` - Validate existing coverage before changes
582
+
583
+ ---
584
+
585
+ ## Stage Summary Table
586
+
587
+ | Stage | Skills | Deliverables | Constitutional Articles |
588
+ |-------|--------|--------------|------------------------|
589
+ | 1. Research | requirements-analyst, system-architect, technical-writer | research.md | VI |
590
+ | 2. Requirements | requirements-analyst, project-manager, change-impact-analyzer | requirements.md, changes.md | IV, V, VI |
591
+ | 3. Design | system-architect, api-designer, database-schema-designer, ui-ux-designer | design.md, C4, ADR, API specs | I, II, V, VI, VII, VIII |
592
+ | 4. Tasks | project-manager, software-developer, test-engineer | tasks.md, test plan | V, VI |
593
+ | 5. Implementation | software-developer, test-engineer, code-reviewer | source code, tests, CLI | I, II, III, V, VI |
594
+ | 6. Testing | test-engineer, quality-assurance, traceability-auditor | test reports, coverage | III, V, IX |
595
+ | 7. Deployment | devops-engineer, cloud-architect, release-coordinator, site-reliability-engineer | IaC, CI/CD, runbooks | VI |
596
+ | 8. Monitoring | site-reliability-engineer, performance-optimizer, bug-hunter | SLO/SLI, dashboards, alerts | VI |
597
+
598
+ ---
599
+
600
+ ## Quick Start
601
+
602
+ ### For New Features (Greenfield)
603
+
604
+ ```bash
605
+ # Stage 1: Research
606
+ @requirements-analyst research [feature]
607
+
608
+ # Stage 2: Requirements
609
+ @requirements-analyst create requirements for [feature]
610
+
611
+ # Stage 3: Design
612
+ @system-architect design architecture for [feature]
613
+ @api-designer design API for [feature]
614
+
615
+ # Validate before proceeding
616
+ @constitution-enforcer validate requirements.md
617
+ @constitution-enforcer validate design.md
618
+
619
+ # Stage 4: Tasks
620
+ @project-manager break down tasks for [feature]
621
+
622
+ # Stage 5: Implementation
623
+ @test-engineer write tests for [requirement-id]
624
+ @software-developer implement [requirement-id]
625
+ @code-reviewer review [files]
626
+
627
+ # Stage 6: Testing
628
+ @traceability-auditor validate coverage
629
+ @test-engineer run all tests
630
+
631
+ # Stage 7: Deployment
632
+ @devops-engineer deploy to staging
633
+ @site-reliability-engineer production readiness review
634
+
635
+ # Stage 8: Monitoring
636
+ @site-reliability-engineer configure monitoring
637
+ ```
638
+
639
+ ### For Changes (Brownfield)
640
+
641
+ ```bash
642
+ # Analyze impact first
643
+ @change-impact-analyzer analyze [change-description]
644
+
645
+ # Create delta specification
646
+ @requirements-analyst create delta spec for [change]
647
+
648
+ # Continue with stages 3-8...
649
+ ```
650
+
651
+ ---
652
+
653
+ **Powered by MUSUBI** - 8-stage specification-driven development workflow.