@tudeorangbiasa/sdd-multiagent-opencode 0.1.4 → 0.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.
- package/.opencode/agents/sdd-explorer.md +1 -2
- package/.opencode/agents/sdd-implementer.md +4 -5
- package/.opencode/agents/sdd-orchestrator.md +17 -127
- package/.opencode/agents/sdd-planner.md +5 -6
- package/.opencode/agents/sdd-reviewer.md +0 -1
- package/.opencode/agents/sdd-verifier.md +3 -4
- package/.opencode/commands/sdd-apply.md +83 -0
- package/.opencode/commands/sdd-explore.md +63 -0
- package/.opencode/commands/sdd-propose.md +116 -0
- package/.opencode/commands/sdd-ship.md +71 -0
- package/.opencode/plugins/sdd-register.js +22 -0
- package/.opencode/skills/sdd-audit/SKILL.md +5 -5
- package/.opencode/skills/sdd-implementation/SKILL.md +10 -12
- package/.opencode/skills/sdd-planning/SKILL.md +20 -29
- package/.opencode/skills/sdd-research/SKILL.md +5 -5
- package/.sdd/config.json +10 -10
- package/.sdd/templates/design-template.md +21 -0
- package/.sdd/templates/model-profile-template.json +35 -3
- package/.sdd/templates/progress-template.md +23 -0
- package/.sdd/templates/project-profile-template.json +2 -2
- package/.sdd/templates/proposal-template.md +22 -0
- package/.sdd/templates/reasoning-profile-template.json +4 -8
- package/.sdd/templates/spec-template.md +19 -0
- package/.sdd/templates/tasks-template.md +8 -0
- package/.sdd/templates/verification-template.md +17 -0
- package/GUIDE.md +128 -0
- package/README.md +164 -154
- package/bin/sdd-opencode.js +7 -9
- package/opencode.json +6 -14
- package/package.json +6 -4
- package/.opencode/commands/audit.md +0 -75
- package/.opencode/commands/brief.md +0 -190
- package/.opencode/commands/evolve.md +0 -87
- package/.opencode/commands/execute-parallel.md +0 -116
- package/.opencode/commands/execute-task.md +0 -81
- package/.opencode/commands/generate-prd.md +0 -82
- package/.opencode/commands/generate-rules.md +0 -67
- package/.opencode/commands/grill-me.md +0 -99
- package/.opencode/commands/implement.md +0 -149
- package/.opencode/commands/init-sdd.md +0 -141
- package/.opencode/commands/plan.md +0 -96
- package/.opencode/commands/refine.md +0 -115
- package/.opencode/commands/research.md +0 -194
- package/.opencode/commands/sdd-full-plan.md +0 -91
- package/.opencode/commands/specify.md +0 -124
- package/.opencode/commands/tasks.md +0 -110
- package/.opencode/commands/upgrade.md +0 -107
- package/.opencode/skills/sdd-evolve/SKILL.md +0 -95
- package/.sdd/templates/feature-brief-v2.md +0 -65
- package/.sdd/templates/plan-compact.md +0 -50
- package/.sdd/templates/research-compact.md +0 -114
- package/.sdd/templates/roadmap-template.json +0 -29
- package/.sdd/templates/roadmap-template.md +0 -66
- package/.sdd/templates/spec-compact.md +0 -71
- package/.sdd/templates/tasks-compact.md +0 -48
- package/.sdd/templates/todo-compact.md +0 -30
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sdd-implementation
|
|
3
|
-
description: Systematic
|
|
3
|
+
description: Systematic implementation patterns for /sdd-apply. Use when executing approved SDD tasks from specs/active/<change-id>/tasks.md.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## What I do
|
|
7
7
|
|
|
8
8
|
- Guide systematic execution of planned implementations
|
|
9
|
-
- Enforce
|
|
9
|
+
- Enforce `tasks.md` checklist discipline with progress tracking
|
|
10
10
|
- Ensure code follows existing patterns and conventions
|
|
11
11
|
- Handle blockers with structured escalation
|
|
12
12
|
- Coordinate with sdd-verifier for post-implementation validation
|
|
@@ -14,15 +14,15 @@ description: Systematic code implementation patterns for SDD workflows. Activate
|
|
|
14
14
|
## When to use me
|
|
15
15
|
|
|
16
16
|
Use this skill when:
|
|
17
|
-
- Running `/
|
|
18
|
-
- Executing tasks from
|
|
17
|
+
- Running `/sdd-apply` command
|
|
18
|
+
- Executing tasks from `specs/active/<change-id>/tasks.md`
|
|
19
19
|
- Need systematic progress tracking during implementation
|
|
20
20
|
- Building features according to specifications
|
|
21
21
|
|
|
22
22
|
## Implementation Protocol
|
|
23
23
|
|
|
24
24
|
### Before Starting
|
|
25
|
-
1. Read `
|
|
25
|
+
1. Read `proposal.md`, `spec.md`, `design.md`, and `tasks.md`
|
|
26
26
|
2. Understand the full scope before writing code
|
|
27
27
|
3. Identify potential blockers early
|
|
28
28
|
|
|
@@ -42,8 +42,8 @@ Use this skill when:
|
|
|
42
42
|
|
|
43
43
|
### After Completion
|
|
44
44
|
1. Spawn `sdd-verifier` to validate implementation
|
|
45
|
-
2. Update
|
|
46
|
-
3. Document discoveries
|
|
45
|
+
2. Update `tasks.md` with final status
|
|
46
|
+
3. Document discoveries in the relevant artifact and explain the deviation
|
|
47
47
|
|
|
48
48
|
## Code Quality Standards
|
|
49
49
|
|
|
@@ -53,11 +53,9 @@ Use this skill when:
|
|
|
53
53
|
- Write tests for new functionality
|
|
54
54
|
- No secrets or credentials in code
|
|
55
55
|
|
|
56
|
-
##
|
|
56
|
+
## Test-First Mode (When Requested)
|
|
57
57
|
|
|
58
|
-
When
|
|
59
|
-
|
|
60
|
-
### TDD Loop per Task
|
|
58
|
+
When the user explicitly asks for test-first implementation, follow this loop per task:
|
|
61
59
|
|
|
62
60
|
1. **Write failing test first**
|
|
63
61
|
- Create test file: `tests/[feature].test.ts`
|
|
@@ -77,7 +75,7 @@ When `--tdd` flag is specified, follow this protocol instead of the standard app
|
|
|
77
75
|
- Only after test passes
|
|
78
76
|
- Keep test passing during refactor
|
|
79
77
|
|
|
80
|
-
###
|
|
78
|
+
### Test-First Rules
|
|
81
79
|
- Never write implementation before failing test
|
|
82
80
|
- Test must fail BEFORE implementation starts
|
|
83
81
|
- Only implement enough to pass the test
|
|
@@ -1,45 +1,36 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sdd-planning
|
|
3
|
-
description:
|
|
3
|
+
description: Compact SDD planning for /sdd-propose. Use when generating proposal, spec, design, and tasks for one focused change.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## What I do
|
|
7
7
|
|
|
8
|
-
- Transform
|
|
9
|
-
- Guide architecture
|
|
10
|
-
- Break down features into
|
|
11
|
-
- Create feature briefs for quick planning workflows
|
|
8
|
+
- Transform one focused change request into reviewable artifacts
|
|
9
|
+
- Guide compact architecture and implementation design
|
|
10
|
+
- Break down features into small ordered tasks
|
|
12
11
|
- Estimate effort and identify technical risks
|
|
13
12
|
|
|
14
13
|
## When to use me
|
|
15
14
|
|
|
16
15
|
Use this skill when:
|
|
17
|
-
- Running `/
|
|
18
|
-
- A
|
|
19
|
-
- Breaking down a
|
|
16
|
+
- Running `/sdd-propose` command
|
|
17
|
+
- A change needs technical architecture
|
|
18
|
+
- Breaking down a change into implementation tasks
|
|
20
19
|
- Need to estimate effort and identify risks
|
|
21
20
|
|
|
22
21
|
## Planning Protocol
|
|
23
22
|
|
|
24
|
-
###
|
|
25
|
-
1. Parse
|
|
26
|
-
2.
|
|
27
|
-
3. Ask clarifying questions if needed
|
|
28
|
-
4. Generate
|
|
29
|
-
|
|
30
|
-
### Full Planning (60 min)
|
|
31
|
-
1. Read spec.md thoroughly
|
|
32
|
-
2. Analyze codebase constraints via `codebase-memory-mcp`
|
|
33
|
-
3. Design architecture with Mermaid diagrams
|
|
34
|
-
4. Define components, APIs, data models
|
|
35
|
-
5. Assess risks and open questions
|
|
23
|
+
### Proposal Planning
|
|
24
|
+
1. Parse the request and derive a safe change id
|
|
25
|
+
2. Scan the codebase for existing patterns
|
|
26
|
+
3. Ask at most 3 clarifying questions if needed
|
|
27
|
+
4. Generate `proposal.md`, `spec.md`, `design.md`, and `tasks.md`
|
|
36
28
|
|
|
37
29
|
### Task Breakdown
|
|
38
|
-
1.
|
|
39
|
-
2.
|
|
40
|
-
3.
|
|
41
|
-
4.
|
|
42
|
-
5. Populate `sdd.touchedFiles` for parallel execution safety
|
|
30
|
+
1. Organize tasks in implementation order
|
|
31
|
+
2. Keep each task small and independently verifiable
|
|
32
|
+
3. Include verification steps for each phase
|
|
33
|
+
4. Call out dependencies and risky file overlaps
|
|
43
34
|
|
|
44
35
|
## Estimation Heuristics
|
|
45
36
|
|
|
@@ -53,7 +44,7 @@ Use this skill when:
|
|
|
53
44
|
## Output Templates
|
|
54
45
|
|
|
55
46
|
Use templates from `.sdd/templates/`:
|
|
56
|
-
- `
|
|
57
|
-
- `spec-
|
|
58
|
-
- `
|
|
59
|
-
- `tasks-
|
|
47
|
+
- `proposal-template.md`
|
|
48
|
+
- `spec-template.md`
|
|
49
|
+
- `design-template.md`
|
|
50
|
+
- `tasks-template.md`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sdd-research
|
|
3
|
-
description: Structured investigation patterns for
|
|
3
|
+
description: Structured investigation patterns for /sdd-explore. Use when researching existing code, external options, or technical tradeoffs before proposing a change.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## What I do
|
|
@@ -13,7 +13,7 @@ description: Structured investigation patterns for SDD workflows. Activates when
|
|
|
13
13
|
## When to use me
|
|
14
14
|
|
|
15
15
|
Use this skill when:
|
|
16
|
-
- Running `/
|
|
16
|
+
- Running `/sdd-explore` command
|
|
17
17
|
- Technical approach is unclear and needs investigation
|
|
18
18
|
- Evaluating multiple technologies or approaches
|
|
19
19
|
- Need to understand existing codebase patterns before planning
|
|
@@ -26,7 +26,7 @@ Use this skill when:
|
|
|
26
26
|
3. **Comparison** — Create pros/cons matrix for top 3 options
|
|
27
27
|
4. **Recommendation** — Primary + alternative with rationale
|
|
28
28
|
|
|
29
|
-
###
|
|
29
|
+
### Deeper Research
|
|
30
30
|
1. **Pass 1 — Landscape:** `exa_web_search_exa` to identify top 3-5 candidates
|
|
31
31
|
2. **Pass 2 — Documentation:** `webfetch` official docs, API references, pricing
|
|
32
32
|
3. **Pass 3 — Validation:** Search for production reviews, benchmarks, comparisons
|
|
@@ -39,6 +39,6 @@ Use this skill when:
|
|
|
39
39
|
| Medium | Established blogs, Stack Overflow (high votes), GitHub issues (resolved) |
|
|
40
40
|
| Low | Personal blogs, forum posts, outdated articles |
|
|
41
41
|
|
|
42
|
-
## Output
|
|
42
|
+
## Output
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
Return findings, options, a recommendation, and the next `/sdd-propose` command. Do not implement code.
|
package/.sdd/config.json
CHANGED
|
@@ -10,16 +10,16 @@
|
|
|
10
10
|
"autoNumberFeatures": true,
|
|
11
11
|
"requireReviews": true,
|
|
12
12
|
"collaborationMode": true,
|
|
13
|
-
"defaultWorkflow": "
|
|
13
|
+
"defaultWorkflow": "sdd-propose",
|
|
14
14
|
"planningTimeLimit": 30,
|
|
15
15
|
"maxParallelImplementers": 4,
|
|
16
16
|
"templates": {
|
|
17
|
-
"
|
|
18
|
-
"spec": ".sdd/templates/spec-
|
|
19
|
-
"
|
|
20
|
-
"tasks": ".sdd/templates/tasks-
|
|
21
|
-
"
|
|
22
|
-
"
|
|
17
|
+
"proposal": ".sdd/templates/proposal-template.md",
|
|
18
|
+
"spec": ".sdd/templates/spec-template.md",
|
|
19
|
+
"design": ".sdd/templates/design-template.md",
|
|
20
|
+
"tasks": ".sdd/templates/tasks-template.md",
|
|
21
|
+
"progress": ".sdd/templates/progress-template.md",
|
|
22
|
+
"verification": ".sdd/templates/verification-template.md"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"directories": {
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"backlog": "specs/backlog"
|
|
30
30
|
},
|
|
31
31
|
"workflow": {
|
|
32
|
-
"phases": ["
|
|
33
|
-
"requiredFiles": ["spec.md", "
|
|
34
|
-
"optionalFiles": ["progress.md", "
|
|
32
|
+
"phases": ["explore", "propose", "apply", "ship"],
|
|
33
|
+
"requiredFiles": ["proposal.md", "spec.md", "design.md", "tasks.md"],
|
|
34
|
+
"optionalFiles": ["progress.md", "verification.md", "status.md", "notes.md"]
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Design: <Change Title>
|
|
2
|
+
|
|
3
|
+
## Existing Patterns
|
|
4
|
+
|
|
5
|
+
- `[path]`: [pattern to follow]
|
|
6
|
+
|
|
7
|
+
## Approach
|
|
8
|
+
|
|
9
|
+
[Technical approach in concise bullets or paragraphs.]
|
|
10
|
+
|
|
11
|
+
## Files Likely To Change
|
|
12
|
+
|
|
13
|
+
- `[path]`: [expected change]
|
|
14
|
+
|
|
15
|
+
## Risks
|
|
16
|
+
|
|
17
|
+
- [Risk]: [mitigation]
|
|
18
|
+
|
|
19
|
+
## Verification
|
|
20
|
+
|
|
21
|
+
- `[command]`: [what it proves]
|
|
@@ -1,9 +1,41 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"_info": {
|
|
3
|
+
"description": "Model routing configuration. Edit this file to change which model each agent uses. Restart OpenCode after editing.",
|
|
4
|
+
"requirement": "SDD requires at least ONE paid/subscription model for orchestrator and planner. These roles need strong reasoning that free models cannot provide.",
|
|
5
|
+
"subscription_options": {
|
|
6
|
+
"opencode_go": "$10/month — includes GLM 5.1, Kimi K2.5, MiniMax M2.5/M2.7",
|
|
7
|
+
"kimi_moderato": "Kimi K2.6 with vision support",
|
|
8
|
+
"openai_plus": "GPT 5.5 with reasoning and multimodal",
|
|
9
|
+
"glm_lite": "GLM 5.1 with strong reasoning",
|
|
10
|
+
"openrouter": "Access to frontier reasoning models"
|
|
11
|
+
},
|
|
12
|
+
"paid_models": {
|
|
13
|
+
"opencode/gpt-5.5": "Best for orchestrator/planner — strongest reasoning + multimodal",
|
|
14
|
+
"opencode/claude-sonnet-4-5": "Excellent for planner — code understanding and reasoning",
|
|
15
|
+
"opencode/claude-opus-4-5": "Maximum capability for complex architecture planning",
|
|
16
|
+
"opencode/kimi-k2.6": "Strong reasoning + vision, good alternative for planner",
|
|
17
|
+
"opencode/glm-5.1": "Strong reasoning, good for orchestrator/planner"
|
|
18
|
+
},
|
|
19
|
+
"free_models": {
|
|
20
|
+
"opencode/qwen3.6-plus-free": "Multimodal — best for verifier (Chrome DevTools screenshots)",
|
|
21
|
+
"opencode/deepseek-v4-flash-free": "Fast code gen — best for explorer and implementer",
|
|
22
|
+
"opencode/minimax-m2.5-free": "Structured output — best for reviewer (code review)",
|
|
23
|
+
"opencode/nemotron-3-super-free": "1M context — good for exploration tasks"
|
|
24
|
+
},
|
|
25
|
+
"recommendations": {
|
|
26
|
+
"orchestrator": "PAID: GPT 5.5 or Claude Sonnet 4.5 — needs strong reasoning for DAG coordination",
|
|
27
|
+
"planner": "PAID: GPT 5.5 or Claude Opus 4.5 — needs maximum reasoning for architecture",
|
|
28
|
+
"explorer": "FREE: DeepSeek v4 Flash — fast readonly exploration, token-efficient",
|
|
29
|
+
"implementer": "FREE: DeepSeek v4 Flash — code generation, high token usage",
|
|
30
|
+
"verifier": "FREE: Qwen3.6 Plus — multimodal for Chrome DevTools screenshots",
|
|
31
|
+
"reviewer": "FREE: MiniMax M2.5 — structured code review output"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"defaultPrimary": "opencode/gpt-5.5",
|
|
3
35
|
"small": "opencode/deepseek-v4-flash-free",
|
|
4
36
|
"agents": {
|
|
5
|
-
"sdd-orchestrator": "opencode/
|
|
6
|
-
"sdd-planner": "opencode/
|
|
37
|
+
"sdd-orchestrator": "opencode/gpt-5.5",
|
|
38
|
+
"sdd-planner": "opencode/gpt-5.5",
|
|
7
39
|
"sdd-explorer": "opencode/deepseek-v4-flash-free",
|
|
8
40
|
"sdd-implementer": "opencode/deepseek-v4-flash-free",
|
|
9
41
|
"sdd-verifier": "opencode/qwen3.6-plus-free",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Progress: <Change Title>
|
|
2
|
+
|
|
3
|
+
## Status
|
|
4
|
+
|
|
5
|
+
- phase: propose|apply|ship
|
|
6
|
+
- ready_for_next_task: yes|no
|
|
7
|
+
- last_updated: <date>
|
|
8
|
+
|
|
9
|
+
## Completed
|
|
10
|
+
|
|
11
|
+
- [Task id or title]
|
|
12
|
+
|
|
13
|
+
## Blocked
|
|
14
|
+
|
|
15
|
+
- [Task id or title]: [reason]
|
|
16
|
+
|
|
17
|
+
## Decisions During Apply
|
|
18
|
+
|
|
19
|
+
- [Decision]: [reason]
|
|
20
|
+
|
|
21
|
+
## Next Safe Task
|
|
22
|
+
|
|
23
|
+
[The next task that can be resumed with minimal context.]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Proposal: <Change Title>
|
|
2
|
+
|
|
3
|
+
## Problem
|
|
4
|
+
|
|
5
|
+
[What problem this change solves.]
|
|
6
|
+
|
|
7
|
+
## Goals
|
|
8
|
+
|
|
9
|
+
- [Goal 1]
|
|
10
|
+
- [Goal 2]
|
|
11
|
+
|
|
12
|
+
## Non-Goals
|
|
13
|
+
|
|
14
|
+
- [What is intentionally out of scope]
|
|
15
|
+
|
|
16
|
+
## User Impact
|
|
17
|
+
|
|
18
|
+
[Who is affected and how behavior changes.]
|
|
19
|
+
|
|
20
|
+
## Success Criteria
|
|
21
|
+
|
|
22
|
+
- [ ] [Observable success condition]
|
|
@@ -13,13 +13,9 @@
|
|
|
13
13
|
"sdd-reviewer": "medium"
|
|
14
14
|
},
|
|
15
15
|
"commands": {
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"tasks": "high",
|
|
21
|
-
"implement": "medium",
|
|
22
|
-
"execute-parallel": "high",
|
|
23
|
-
"audit": "medium"
|
|
16
|
+
"sdd-explore": "medium",
|
|
17
|
+
"sdd-propose": "high",
|
|
18
|
+
"sdd-apply": "medium",
|
|
19
|
+
"sdd-ship": "medium"
|
|
24
20
|
}
|
|
25
21
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Spec: <Change Title>
|
|
2
|
+
|
|
3
|
+
## Requirements
|
|
4
|
+
|
|
5
|
+
- [Requirement 1]
|
|
6
|
+
- [Requirement 2]
|
|
7
|
+
|
|
8
|
+
## Acceptance Criteria
|
|
9
|
+
|
|
10
|
+
- [ ] [Verifiable outcome]
|
|
11
|
+
- [ ] [Verifiable outcome]
|
|
12
|
+
|
|
13
|
+
## Edge Cases
|
|
14
|
+
|
|
15
|
+
- [Edge case and expected behavior]
|
|
16
|
+
|
|
17
|
+
## Out Of Scope
|
|
18
|
+
|
|
19
|
+
- [Excluded behavior]
|
package/GUIDE.md
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# SDD Multi-Agent OpenCode Guide
|
|
2
|
+
|
|
3
|
+
This kit exposes one small workflow for OpenCode:
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
/sdd-explore -> /sdd-propose -> /sdd-apply -> /sdd-ship
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
It is inspired by spec-driven development, but it is not a port of another tool. The goal is to make OpenCode safer on real projects by separating investigation, planning, implementation, and final verification.
|
|
10
|
+
|
|
11
|
+
## Commands
|
|
12
|
+
|
|
13
|
+
| Command | Purpose | Writes Code? |
|
|
14
|
+
|---------|---------|--------------|
|
|
15
|
+
| `/sdd-explore` | Investigate unclear ideas, bugs, or code areas | No |
|
|
16
|
+
| `/sdd-propose` | Create one focused change plan | No |
|
|
17
|
+
| `/sdd-apply` | Implement an approved change | Yes |
|
|
18
|
+
| `/sdd-ship` | Verify readiness before merge/release | No, unless explicitly asked |
|
|
19
|
+
|
|
20
|
+
## Default Flow
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
/sdd-propose change-id "what should change"
|
|
24
|
+
-> review specs/active/change-id/
|
|
25
|
+
/sdd-apply change-id
|
|
26
|
+
/sdd-ship change-id
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Use `/sdd-explore` first only when the problem is unclear.
|
|
30
|
+
|
|
31
|
+
## When To Use Each Command
|
|
32
|
+
|
|
33
|
+
### `/sdd-explore`
|
|
34
|
+
|
|
35
|
+
Use this when you need understanding before deciding what to build.
|
|
36
|
+
|
|
37
|
+
```text
|
|
38
|
+
/sdd-explore "admin UI feels messy, find reusable component opportunities"
|
|
39
|
+
/sdd-explore invoice-delete "why invoice delete sometimes fails"
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
This command should return findings, options, and a recommended next `/sdd-propose` command. It must not implement code.
|
|
43
|
+
|
|
44
|
+
### `/sdd-propose`
|
|
45
|
+
|
|
46
|
+
Use this when you know the change you want.
|
|
47
|
+
|
|
48
|
+
```text
|
|
49
|
+
/sdd-propose ui-admin-components "modularize admin UI into reusable components"
|
|
50
|
+
/sdd-propose "add password reset flow"
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
It creates:
|
|
54
|
+
|
|
55
|
+
```text
|
|
56
|
+
specs/active/<change-id>/
|
|
57
|
+
├── proposal.md
|
|
58
|
+
├── spec.md
|
|
59
|
+
├── design.md
|
|
60
|
+
├── tasks.md
|
|
61
|
+
└── progress.md optional for large changes
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Review these files before applying. This is the agreement point.
|
|
65
|
+
|
|
66
|
+
### `/sdd-apply`
|
|
67
|
+
|
|
68
|
+
Use this after the proposal is accepted.
|
|
69
|
+
|
|
70
|
+
```text
|
|
71
|
+
/sdd-apply ui-admin-components
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
It reads the artifacts, implements `tasks.md`, updates checkboxes, and runs targeted verification when possible.
|
|
75
|
+
|
|
76
|
+
For large changes, it uses `progress.md` as a checkpoint so work can resume without relying on chat history. If tasks touch disjoint files, it can run safe batches in parallel through subagents; otherwise it runs sequentially.
|
|
77
|
+
|
|
78
|
+
### `/sdd-ship`
|
|
79
|
+
|
|
80
|
+
Use this before calling the change done.
|
|
81
|
+
|
|
82
|
+
```text
|
|
83
|
+
/sdd-ship ui-admin-components
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
It audits the implementation against the artifacts and writes:
|
|
87
|
+
|
|
88
|
+
```text
|
|
89
|
+
specs/active/<change-id>/verification.md
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Example: New Feature
|
|
93
|
+
|
|
94
|
+
```text
|
|
95
|
+
/sdd-propose auth-reset "add secure password reset by email"
|
|
96
|
+
/sdd-apply auth-reset
|
|
97
|
+
/sdd-ship auth-reset
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Example: Bug Fix
|
|
101
|
+
|
|
102
|
+
```text
|
|
103
|
+
/sdd-explore invoice-delete "deleting invoices sometimes fails in production"
|
|
104
|
+
/sdd-propose invoice-delete "fix invoice delete failure with regression coverage"
|
|
105
|
+
/sdd-apply invoice-delete
|
|
106
|
+
/sdd-ship invoice-delete
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Example: Refactor
|
|
110
|
+
|
|
111
|
+
```text
|
|
112
|
+
/sdd-explore admin-ui "check whether admin UI is modular and reusable"
|
|
113
|
+
/sdd-propose admin-ui-components "extract reusable admin layout and form components"
|
|
114
|
+
/sdd-apply admin-ui-components
|
|
115
|
+
/sdd-ship admin-ui-components
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## Design Principles
|
|
119
|
+
|
|
120
|
+
- Four commands only by default.
|
|
121
|
+
- No fake flags like `--deep` or `--until-finish`.
|
|
122
|
+
- No source code changes during explore/propose.
|
|
123
|
+
- One change folder per unit of work.
|
|
124
|
+
- Planning artifacts are compact and reviewable.
|
|
125
|
+
- Proposals must cite real project files or clearly say what was not found.
|
|
126
|
+
- Long-running apply work must checkpoint to `progress.md`.
|
|
127
|
+
- Parallel execution is a capability inside `/sdd-apply`, not a separate command.
|
|
128
|
+
- Verification is a first-class step, not a vague final message.
|