@bhargavvc/sdd-cc 1.30.0 → 1.35.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.
- package/README.ja-JP.md +144 -110
- package/README.ko-KR.md +143 -107
- package/README.md +183 -112
- package/README.pt-BR.md +90 -52
- package/README.zh-CN.md +141 -101
- package/agents/sdd-advisor-researcher.md +23 -0
- package/agents/sdd-ai-researcher.md +133 -0
- package/agents/sdd-code-fixer.md +516 -0
- package/agents/sdd-code-reviewer.md +355 -0
- package/agents/sdd-codebase-mapper.md +3 -3
- package/agents/sdd-debugger.md +17 -5
- package/agents/sdd-doc-verifier.md +201 -0
- package/agents/sdd-doc-writer.md +602 -0
- package/agents/sdd-domain-researcher.md +153 -0
- package/agents/sdd-eval-auditor.md +164 -0
- package/agents/sdd-eval-planner.md +154 -0
- package/agents/sdd-executor.md +87 -4
- package/agents/sdd-framework-selector.md +160 -0
- package/agents/sdd-intel-updater.md +314 -0
- package/agents/sdd-nyquist-auditor.md +1 -1
- package/agents/sdd-phase-researcher.md +71 -4
- package/agents/sdd-plan-checker.md +100 -6
- package/agents/sdd-planner.md +145 -206
- package/agents/sdd-project-researcher.md +25 -2
- package/agents/sdd-research-synthesizer.md +3 -3
- package/agents/sdd-roadmapper.md +6 -6
- package/agents/sdd-security-auditor.md +128 -0
- package/agents/sdd-ui-auditor.md +43 -3
- package/agents/sdd-ui-checker.md +5 -5
- package/agents/sdd-ui-researcher.md +27 -4
- package/agents/sdd-user-profiler.md +2 -2
- package/agents/sdd-verifier.md +142 -22
- package/bin/install.js +2151 -551
- package/commands/sdd/add-backlog.md +5 -5
- package/commands/sdd/add-tests.md +2 -2
- package/commands/sdd/ai-integration-phase.md +36 -0
- package/commands/sdd/analyze-dependencies.md +34 -0
- package/commands/sdd/audit-fix.md +33 -0
- package/commands/sdd/autonomous.md +7 -2
- package/commands/sdd/cleanup.md +5 -0
- package/commands/sdd/code-review-fix.md +52 -0
- package/commands/sdd/code-review.md +55 -0
- package/commands/sdd/complete-milestone.md +6 -6
- package/commands/sdd/debug.md +22 -9
- package/commands/sdd/discuss-phase.md +7 -2
- package/commands/sdd/do.md +1 -1
- package/commands/sdd/docs-update.md +48 -0
- package/commands/sdd/eval-review.md +32 -0
- package/commands/sdd/execute-phase.md +4 -0
- package/commands/sdd/explore.md +27 -0
- package/commands/sdd/fast.md +2 -2
- package/commands/sdd/from-sdd2.md +45 -0
- package/commands/sdd/help.md +2 -0
- package/commands/sdd/import.md +36 -0
- package/commands/sdd/intel.md +179 -0
- package/commands/sdd/join-discord.md +2 -1
- package/commands/sdd/manager.md +1 -0
- package/commands/sdd/map-codebase.md +3 -3
- package/commands/sdd/new-milestone.md +1 -1
- package/commands/sdd/new-project.md +5 -1
- package/commands/sdd/new-workspace.md +1 -1
- package/commands/sdd/next.md +2 -0
- package/commands/sdd/plan-milestone-gaps.md +2 -2
- package/commands/sdd/plan-phase.md +6 -1
- package/commands/sdd/plant-seed.md +1 -1
- package/commands/sdd/profile-user.md +1 -1
- package/commands/sdd/quick.md +5 -3
- package/commands/sdd/reapply-patches.md +230 -42
- package/commands/sdd/research-phase.md +3 -3
- package/commands/sdd/review-backlog.md +1 -0
- package/commands/sdd/review.md +6 -3
- package/commands/sdd/scan.md +26 -0
- package/commands/sdd/secure-phase.md +35 -0
- package/commands/sdd/ship.md +1 -1
- package/commands/sdd/thread.md +5 -5
- package/commands/sdd/undo.md +34 -0
- package/commands/sdd/verify-work.md +1 -1
- package/commands/sdd/workstreams.md +17 -11
- package/hooks/dist/sdd-check-update.js +33 -8
- package/hooks/dist/sdd-context-monitor.js +17 -8
- package/hooks/dist/sdd-phase-boundary.sh +27 -0
- package/hooks/dist/sdd-prompt-guard.js +1 -0
- package/hooks/dist/sdd-read-guard.js +82 -0
- package/hooks/dist/sdd-session-state.sh +33 -0
- package/hooks/dist/sdd-statusline.js +137 -15
- package/hooks/dist/sdd-validate-commit.sh +47 -0
- package/hooks/dist/sdd-workflow-guard.js +4 -4
- package/hooks/sdd-check-update.js +139 -0
- package/hooks/sdd-context-monitor.js +165 -0
- package/hooks/sdd-phase-boundary.sh +27 -0
- package/hooks/sdd-prompt-guard.js +97 -0
- package/hooks/sdd-read-guard.js +82 -0
- package/hooks/sdd-session-state.sh +33 -0
- package/hooks/sdd-statusline.js +241 -0
- package/hooks/sdd-validate-commit.sh +47 -0
- package/hooks/sdd-workflow-guard.js +94 -0
- package/package.json +3 -3
- package/scripts/build-hooks.js +18 -7
- package/scripts/prompt-injection-scan.sh +1 -0
- package/scripts/rebrand-gsd-to-sdd.sh +221 -220
- package/scripts/run-tests.cjs +5 -1
- package/scripts/sync-upstream.sh +1 -1
- package/sdd/bin/lib/commands.cjs +79 -17
- package/sdd/bin/lib/config.cjs +90 -48
- package/sdd/bin/lib/core.cjs +452 -87
- package/sdd/bin/lib/docs.cjs +267 -0
- package/sdd/bin/lib/frontmatter.cjs +381 -336
- package/sdd/bin/lib/init.cjs +110 -16
- package/sdd/bin/lib/intel.cjs +660 -0
- package/sdd/bin/lib/learnings.cjs +378 -0
- package/sdd/bin/lib/milestone.cjs +42 -11
- package/sdd/bin/lib/model-profiles.cjs +17 -15
- package/sdd/bin/lib/phase.cjs +367 -288
- package/sdd/bin/lib/profile-output.cjs +106 -10
- package/sdd/bin/lib/roadmap.cjs +146 -115
- package/sdd/bin/lib/schema-detect.cjs +238 -0
- package/sdd/bin/lib/sdd2-import.cjs +511 -0
- package/sdd/bin/lib/security.cjs +124 -3
- package/sdd/bin/lib/state.cjs +648 -264
- package/sdd/bin/lib/template.cjs +8 -4
- package/sdd/bin/lib/verify.cjs +209 -28
- package/sdd/bin/lib/workstream.cjs +7 -3
- package/sdd/bin/sdd-tools.cjs +184 -12
- package/sdd/contexts/dev.md +21 -0
- package/sdd/contexts/research.md +22 -0
- package/sdd/contexts/review.md +22 -0
- package/sdd/references/agent-contracts.md +79 -0
- package/sdd/references/ai-evals.md +156 -0
- package/sdd/references/ai-frameworks.md +186 -0
- package/sdd/references/artifact-types.md +113 -0
- package/sdd/references/common-bug-patterns.md +114 -0
- package/sdd/references/context-budget.md +49 -0
- package/sdd/references/continuation-format.md +25 -25
- package/sdd/references/domain-probes.md +125 -0
- package/sdd/references/few-shot-examples/plan-checker.md +73 -0
- package/sdd/references/few-shot-examples/verifier.md +109 -0
- package/sdd/references/gate-prompts.md +100 -0
- package/sdd/references/gates.md +70 -0
- package/sdd/references/git-integration.md +1 -1
- package/sdd/references/ios-scaffold.md +123 -0
- package/sdd/references/model-profile-resolution.md +2 -0
- package/sdd/references/model-profiles.md +24 -18
- package/sdd/references/planner-gap-closure.md +62 -0
- package/sdd/references/planner-reviews.md +39 -0
- package/sdd/references/planner-revision.md +87 -0
- package/sdd/references/planning-config.md +252 -0
- package/sdd/references/revision-loop.md +97 -0
- package/sdd/references/thinking-models-debug.md +44 -0
- package/sdd/references/thinking-models-execution.md +50 -0
- package/sdd/references/thinking-models-planning.md +62 -0
- package/sdd/references/thinking-models-research.md +50 -0
- package/sdd/references/thinking-models-verification.md +55 -0
- package/sdd/references/thinking-partner.md +96 -0
- package/sdd/references/ui-brand.md +4 -4
- package/sdd/references/universal-anti-patterns.md +63 -0
- package/sdd/references/verification-overrides.md +227 -0
- package/sdd/references/workstream-flag.md +56 -3
- package/sdd/templates/AI-SPEC.md +246 -0
- package/sdd/templates/DEBUG.md +1 -1
- package/sdd/templates/SECURITY.md +61 -0
- package/sdd/templates/UAT.md +4 -4
- package/sdd/templates/VALIDATION.md +4 -4
- package/sdd/templates/claude-md.md +32 -9
- package/sdd/templates/config.json +4 -0
- package/sdd/templates/debug-subagent-prompt.md +1 -1
- package/sdd/templates/dev-preferences.md +1 -1
- package/sdd/templates/discovery.md +2 -2
- package/sdd/templates/phase-prompt.md +1 -1
- package/sdd/templates/planner-subagent-prompt.md +3 -3
- package/sdd/templates/project.md +1 -1
- package/sdd/templates/research.md +1 -1
- package/sdd/templates/state.md +2 -2
- package/sdd/workflows/add-phase.md +8 -8
- package/sdd/workflows/add-tests.md +12 -9
- package/sdd/workflows/add-todo.md +5 -3
- package/sdd/workflows/ai-integration-phase.md +284 -0
- package/sdd/workflows/analyze-dependencies.md +96 -0
- package/sdd/workflows/audit-fix.md +157 -0
- package/sdd/workflows/audit-milestone.md +11 -11
- package/sdd/workflows/audit-uat.md +2 -2
- package/sdd/workflows/autonomous.md +195 -27
- package/sdd/workflows/check-todos.md +12 -10
- package/sdd/workflows/cleanup.md +2 -0
- package/sdd/workflows/code-review-fix.md +497 -0
- package/sdd/workflows/code-review.md +515 -0
- package/sdd/workflows/complete-milestone.md +56 -22
- package/sdd/workflows/diagnose-issues.md +10 -3
- package/sdd/workflows/discovery-phase.md +5 -3
- package/sdd/workflows/discuss-phase-assumptions.md +24 -6
- package/sdd/workflows/discuss-phase-power.md +291 -0
- package/sdd/workflows/discuss-phase.md +173 -21
- package/sdd/workflows/do.md +23 -21
- package/sdd/workflows/docs-update.md +1155 -0
- package/sdd/workflows/eval-review.md +155 -0
- package/sdd/workflows/execute-phase.md +594 -38
- package/sdd/workflows/execute-plan.md +67 -96
- package/sdd/workflows/explore.md +139 -0
- package/sdd/workflows/fast.md +5 -5
- package/sdd/workflows/forensics.md +2 -2
- package/sdd/workflows/health.md +4 -4
- package/sdd/workflows/help.md +122 -119
- package/sdd/workflows/import.md +276 -0
- package/sdd/workflows/inbox.md +387 -0
- package/sdd/workflows/insert-phase.md +7 -7
- package/sdd/workflows/list-phase-assumptions.md +4 -4
- package/sdd/workflows/list-workspaces.md +2 -2
- package/sdd/workflows/manager.md +35 -32
- package/sdd/workflows/map-codebase.md +7 -5
- package/sdd/workflows/milestone-summary.md +2 -2
- package/sdd/workflows/new-milestone.md +17 -9
- package/sdd/workflows/new-project.md +50 -25
- package/sdd/workflows/new-workspace.md +7 -5
- package/sdd/workflows/next.md +67 -11
- package/sdd/workflows/note.md +9 -7
- package/sdd/workflows/pause-work.md +75 -12
- package/sdd/workflows/plan-milestone-gaps.md +8 -8
- package/sdd/workflows/plan-phase.md +294 -42
- package/sdd/workflows/plant-seed.md +6 -3
- package/sdd/workflows/pr-branch.md +42 -14
- package/sdd/workflows/profile-user.md +9 -7
- package/sdd/workflows/progress.md +45 -45
- package/sdd/workflows/quick.md +195 -47
- package/sdd/workflows/remove-phase.md +6 -6
- package/sdd/workflows/remove-workspace.md +3 -1
- package/sdd/workflows/research-phase.md +2 -2
- package/sdd/workflows/resume-project.md +12 -12
- package/sdd/workflows/review.md +109 -9
- package/sdd/workflows/scan.md +102 -0
- package/sdd/workflows/secure-phase.md +166 -0
- package/sdd/workflows/session-report.md +2 -2
- package/sdd/workflows/settings.md +38 -12
- package/sdd/workflows/ship.md +21 -9
- package/sdd/workflows/stats.md +1 -1
- package/sdd/workflows/transition.md +23 -23
- package/sdd/workflows/ui-phase.md +15 -7
- package/sdd/workflows/ui-review.md +29 -4
- package/sdd/workflows/undo.md +314 -0
- package/sdd/workflows/update.md +171 -20
- package/sdd/workflows/validate-phase.md +6 -4
- package/sdd/workflows/verify-phase.md +210 -6
- package/sdd/workflows/verify-work.md +83 -9
- package/sdd/commands/sdd/workstreams.md +0 -63
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<purpose>
|
|
2
|
-
Validate built features through conversational testing with persistent state. Creates UAT.md that tracks test progress, survives /clear, and feeds gaps into /sdd
|
|
2
|
+
Validate built features through conversational testing with persistent state. Creates UAT.md that tracks test progress, survives /clear, and feeds gaps into /sdd-plan-phase --gaps.
|
|
3
3
|
|
|
4
4
|
User tests, Claude records. One test at a time. Plain text responses.
|
|
5
5
|
</purpose>
|
|
@@ -78,7 +78,7 @@ If no, continue to `create_uat_file`.
|
|
|
78
78
|
```
|
|
79
79
|
No active UAT sessions.
|
|
80
80
|
|
|
81
|
-
Provide a phase number to start testing (e.g., /sdd
|
|
81
|
+
Provide a phase number to start testing (e.g., /sdd-verify-work 4)
|
|
82
82
|
```
|
|
83
83
|
|
|
84
84
|
**If no active sessions AND $ARGUMENTS provided:**
|
|
@@ -86,6 +86,42 @@ Provide a phase number to start testing (e.g., /sdd:verify-work 4)
|
|
|
86
86
|
Continue to `create_uat_file`.
|
|
87
87
|
</step>
|
|
88
88
|
|
|
89
|
+
<step name="automated_ui_verification">
|
|
90
|
+
**Automated UI Verification (when Playwright-MCP is available)**
|
|
91
|
+
|
|
92
|
+
Before running manual UAT, check whether this phase has a UI component and whether
|
|
93
|
+
`mcp__playwright__*` or `mcp__puppeteer__*` tools are available in the current session.
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
UI_PHASE_FLAG=$(node "$HOME/.claude/sdd/bin/sdd-tools.cjs" config-get workflow.ui_phase --raw 2>/dev/null || echo "true")
|
|
97
|
+
UI_SPEC_FILE=$(ls "${PHASE_DIR}"/*-UI-SPEC.md 2>/dev/null | head -1)
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
**If Playwright-MCP tools are available in this session (`mcp__playwright__*` tools
|
|
101
|
+
respond to tool calls) AND (`UI_PHASE_FLAG` is `true` OR `UI_SPEC_FILE` is non-empty):**
|
|
102
|
+
|
|
103
|
+
For each UI checkpoint listed in the phase's UI-SPEC.md (or inferred from SUMMARY.md):
|
|
104
|
+
|
|
105
|
+
1. Use `mcp__playwright__navigate` (or equivalent) to open the component's URL.
|
|
106
|
+
2. Use `mcp__playwright__screenshot` to capture a screenshot.
|
|
107
|
+
3. Compare the screenshot visually against the spec's stated requirements
|
|
108
|
+
(dimensions, color, layout, spacing).
|
|
109
|
+
4. Automatically mark checkpoints as **passed** or **needs review** based on the
|
|
110
|
+
visual comparison — no manual question required for items that clearly match.
|
|
111
|
+
5. Flag items that require human judgment (subjective aesthetics, content accuracy)
|
|
112
|
+
and present only those as manual UAT questions.
|
|
113
|
+
|
|
114
|
+
If automated verification is not available, fall back to the standard manual
|
|
115
|
+
checkpoint questions defined in this workflow unchanged. This step is entirely
|
|
116
|
+
conditional: if Playwright-MCP is not configured, behavior is unchanged from today.
|
|
117
|
+
|
|
118
|
+
**Display summary line before proceeding:**
|
|
119
|
+
```
|
|
120
|
+
UI checkpoints: {N} auto-verified, {M} queued for manual review
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
</step>
|
|
124
|
+
|
|
89
125
|
<step name="find_summaries">
|
|
90
126
|
**Find what to test:**
|
|
91
127
|
|
|
@@ -212,6 +248,8 @@ Display the returned checkpoint EXACTLY as-is:
|
|
|
212
248
|
- Do NOT add commentary before or after the block.
|
|
213
249
|
- If you notice protocol/meta markers such as `to=all:`, role-routing text, XML system tags, hidden instruction markers, ad copy, or any unrelated suffix, discard the draft and output `{CHECKPOINT}` only.
|
|
214
250
|
|
|
251
|
+
|
|
252
|
+
**Text mode (`workflow.text_mode: true` in config or `--text` flag):** Set `TEXT_MODE=true` if `--text` is present in `$ARGUMENTS` OR `text_mode` from init JSON is `true`. When TEXT_MODE is active, replace every `AskUserQuestion` call with a plain-text numbered list and ask the user to type their choice number. This is required for non-Claude runtimes (OpenAI Codex, Gemini CLI, etc.) where `AskUserQuestion` is not available.
|
|
215
253
|
Wait for user response (plain text, no AskUserQuestion).
|
|
216
254
|
</step>
|
|
217
255
|
|
|
@@ -375,12 +413,48 @@ Present summary:
|
|
|
375
413
|
**If issues > 0:** Proceed to `diagnose_issues`
|
|
376
414
|
|
|
377
415
|
**If issues == 0:**
|
|
416
|
+
|
|
417
|
+
```bash
|
|
418
|
+
SECURITY_CFG=$(node "$HOME/.claude/sdd/bin/sdd-tools.cjs" config-get workflow.security_enforcement --raw 2>/dev/null || echo "true")
|
|
419
|
+
SECURITY_FILE=$(ls "${PHASE_DIR}"/*-SECURITY.md 2>/dev/null | head -1)
|
|
420
|
+
```
|
|
421
|
+
|
|
422
|
+
If `SECURITY_CFG` is `true` AND `SECURITY_FILE` is empty:
|
|
378
423
|
```
|
|
424
|
+
⚠ Security enforcement enabled — /sdd-secure-phase {phase} has not run.
|
|
425
|
+
Run before advancing to the next phase.
|
|
426
|
+
|
|
379
427
|
All tests passed. Ready to continue.
|
|
380
428
|
|
|
381
|
-
- `/sdd
|
|
382
|
-
- `/sdd
|
|
383
|
-
- `/sdd
|
|
429
|
+
- `/sdd-secure-phase {phase}` — security review (required before advancing)
|
|
430
|
+
- `/sdd-plan-phase {next}` — Plan next phase
|
|
431
|
+
- `/sdd-execute-phase {next}` — Execute next phase
|
|
432
|
+
- `/sdd-ui-review {phase}` — visual quality audit (if frontend files were modified)
|
|
433
|
+
```
|
|
434
|
+
|
|
435
|
+
If `SECURITY_CFG` is `true` AND `SECURITY_FILE` exists: check frontmatter `threats_open`. If > 0:
|
|
436
|
+
```
|
|
437
|
+
⚠ Security gate: {threats_open} threats open
|
|
438
|
+
/sdd-secure-phase {phase} — resolve before advancing
|
|
439
|
+
```
|
|
440
|
+
|
|
441
|
+
If `SECURITY_CFG` is `false` OR (`SECURITY_FILE` exists AND `threats_open` is `0`):
|
|
442
|
+
|
|
443
|
+
**Auto-transition: mark phase complete in ROADMAP.md and STATE.md**
|
|
444
|
+
|
|
445
|
+
Execute the transition workflow inline (do NOT use Task — the orchestrator context already holds the UAT results and phase data needed for accurate transition):
|
|
446
|
+
|
|
447
|
+
Read and follow `~/.claude/sdd/workflows/transition.md`.
|
|
448
|
+
|
|
449
|
+
After transition completes, present next-step options to the user:
|
|
450
|
+
|
|
451
|
+
```
|
|
452
|
+
All tests passed. Phase {phase} marked complete.
|
|
453
|
+
|
|
454
|
+
- `/sdd-plan-phase {next}` — Plan next phase
|
|
455
|
+
- `/sdd-execute-phase {next}` — Execute next phase
|
|
456
|
+
- `/sdd-secure-phase {phase}` — security review
|
|
457
|
+
- `/sdd-ui-review {phase}` — visual quality audit (if frontend files were modified)
|
|
384
458
|
```
|
|
385
459
|
</step>
|
|
386
460
|
|
|
@@ -438,7 +512,7 @@ ${AGENT_SKILLS_PLANNER}
|
|
|
438
512
|
</planning_context>
|
|
439
513
|
|
|
440
514
|
<downstream_consumer>
|
|
441
|
-
Output consumed by /sdd
|
|
515
|
+
Output consumed by /sdd-execute-phase
|
|
442
516
|
Plans must be executable prompts.
|
|
443
517
|
</downstream_consumer>
|
|
444
518
|
""",
|
|
@@ -551,7 +625,7 @@ Display: `Max iterations reached. {N} issues remain.`
|
|
|
551
625
|
Offer options:
|
|
552
626
|
1. Force proceed (execute despite issues)
|
|
553
627
|
2. Provide guidance (user gives direction, retry)
|
|
554
|
-
3. Abandon (exit, user runs /sdd
|
|
628
|
+
3. Abandon (exit, user runs /sdd-plan-phase manually)
|
|
555
629
|
|
|
556
630
|
Wait for user response.
|
|
557
631
|
</step>
|
|
@@ -579,7 +653,7 @@ Plans verified and ready for execution.
|
|
|
579
653
|
|
|
580
654
|
**Execute fixes** — run fix plans
|
|
581
655
|
|
|
582
|
-
`/clear` then `/sdd
|
|
656
|
+
`/clear` then `/sdd-execute-phase {phase} --gaps-only`
|
|
583
657
|
|
|
584
658
|
───────────────────────────────────────────────────────────────
|
|
585
659
|
```
|
|
@@ -633,5 +707,5 @@ Default to **major** if unclear. User can correct if needed.
|
|
|
633
707
|
- [ ] If issues: sdd-planner creates fix plans (gap_closure mode)
|
|
634
708
|
- [ ] If issues: sdd-plan-checker verifies fix plans
|
|
635
709
|
- [ ] If issues: revision loop until plans pass (max 3 iterations)
|
|
636
|
-
- [ ] Ready for `/sdd
|
|
710
|
+
- [ ] Ready for `/sdd-execute-phase --gaps-only` when complete
|
|
637
711
|
</success_criteria>
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Manage parallel workstreams — list, create, switch, status, progress, complete, and resume
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# /sdd:workstreams
|
|
6
|
-
|
|
7
|
-
Manage parallel workstreams for concurrent milestone work.
|
|
8
|
-
|
|
9
|
-
## Usage
|
|
10
|
-
|
|
11
|
-
`/sdd:workstreams [subcommand] [args]`
|
|
12
|
-
|
|
13
|
-
### Subcommands
|
|
14
|
-
|
|
15
|
-
| Command | Description |
|
|
16
|
-
|---------|-------------|
|
|
17
|
-
| `list` | List all workstreams with status |
|
|
18
|
-
| `create <name>` | Create a new workstream |
|
|
19
|
-
| `status <name>` | Detailed status for one workstream |
|
|
20
|
-
| `switch <name>` | Set active workstream |
|
|
21
|
-
| `progress` | Progress summary across all workstreams |
|
|
22
|
-
| `complete <name>` | Archive a completed workstream |
|
|
23
|
-
| `resume <name>` | Resume work in a workstream |
|
|
24
|
-
|
|
25
|
-
## Step 1: Parse Subcommand
|
|
26
|
-
|
|
27
|
-
Parse the user's input to determine which workstream operation to perform.
|
|
28
|
-
If no subcommand given, default to `list`.
|
|
29
|
-
|
|
30
|
-
## Step 2: Execute Operation
|
|
31
|
-
|
|
32
|
-
### list
|
|
33
|
-
Run: `node "$SDD_TOOLS" workstream list --raw --cwd "$CWD"`
|
|
34
|
-
Display the workstreams in a table format showing name, status, current phase, and progress.
|
|
35
|
-
|
|
36
|
-
### create
|
|
37
|
-
Run: `node "$SDD_TOOLS" workstream create <name> --raw --cwd "$CWD"`
|
|
38
|
-
After creation, display the new workstream path and suggest next steps:
|
|
39
|
-
- `/sdd:new-milestone --ws <name>` to set up the milestone
|
|
40
|
-
|
|
41
|
-
### status
|
|
42
|
-
Run: `node "$SDD_TOOLS" workstream status <name> --raw --cwd "$CWD"`
|
|
43
|
-
Display detailed phase breakdown and state information.
|
|
44
|
-
|
|
45
|
-
### switch
|
|
46
|
-
Run: `node "$SDD_TOOLS" workstream set <name> --raw --cwd "$CWD"`
|
|
47
|
-
Also set `SDD_WORKSTREAM` env var for the current session.
|
|
48
|
-
|
|
49
|
-
### progress
|
|
50
|
-
Run: `node "$SDD_TOOLS" workstream progress --raw --cwd "$CWD"`
|
|
51
|
-
Display a progress overview across all workstreams.
|
|
52
|
-
|
|
53
|
-
### complete
|
|
54
|
-
Run: `node "$SDD_TOOLS" workstream complete <name> --raw --cwd "$CWD"`
|
|
55
|
-
Archive the workstream to milestones/.
|
|
56
|
-
|
|
57
|
-
### resume
|
|
58
|
-
Set the workstream as active and suggest `/sdd:resume-work --ws <name>`.
|
|
59
|
-
|
|
60
|
-
## Step 3: Display Results
|
|
61
|
-
|
|
62
|
-
Format the JSON output from sdd-tools into a human-readable display.
|
|
63
|
-
Include the `${SDD_WS}` flag in any routing suggestions.
|