@tudeorangbiasa/sdd-multiagent-opencode 0.1.4 → 0.2.1

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 (56) hide show
  1. package/.opencode/agents/sdd-explorer.md +1 -2
  2. package/.opencode/agents/sdd-implementer.md +4 -5
  3. package/.opencode/agents/sdd-orchestrator.md +17 -127
  4. package/.opencode/agents/sdd-planner.md +5 -6
  5. package/.opencode/agents/sdd-reviewer.md +0 -1
  6. package/.opencode/agents/sdd-verifier.md +3 -4
  7. package/.opencode/commands/sdd-apply.md +83 -0
  8. package/.opencode/commands/sdd-explore.md +63 -0
  9. package/.opencode/commands/sdd-propose.md +116 -0
  10. package/.opencode/commands/sdd-ship.md +71 -0
  11. package/.opencode/plugins/sdd-register.js +22 -0
  12. package/.opencode/skills/sdd-audit/SKILL.md +5 -5
  13. package/.opencode/skills/sdd-implementation/SKILL.md +10 -12
  14. package/.opencode/skills/sdd-planning/SKILL.md +20 -29
  15. package/.opencode/skills/sdd-research/SKILL.md +5 -5
  16. package/.sdd/config.json +10 -10
  17. package/.sdd/templates/design-template.md +21 -0
  18. package/.sdd/templates/model-profile-template.json +20 -3
  19. package/.sdd/templates/progress-template.md +23 -0
  20. package/.sdd/templates/project-profile-template.json +2 -2
  21. package/.sdd/templates/proposal-template.md +22 -0
  22. package/.sdd/templates/reasoning-profile-template.json +4 -8
  23. package/.sdd/templates/spec-template.md +19 -0
  24. package/.sdd/templates/tasks-template.md +8 -0
  25. package/.sdd/templates/verification-template.md +17 -0
  26. package/GUIDE.md +128 -0
  27. package/README.md +259 -155
  28. package/bin/sdd-opencode.js +7 -9
  29. package/opencode.json +6 -14
  30. package/package.json +6 -4
  31. package/.opencode/commands/audit.md +0 -75
  32. package/.opencode/commands/brief.md +0 -190
  33. package/.opencode/commands/evolve.md +0 -87
  34. package/.opencode/commands/execute-parallel.md +0 -116
  35. package/.opencode/commands/execute-task.md +0 -81
  36. package/.opencode/commands/generate-prd.md +0 -82
  37. package/.opencode/commands/generate-rules.md +0 -67
  38. package/.opencode/commands/grill-me.md +0 -99
  39. package/.opencode/commands/implement.md +0 -149
  40. package/.opencode/commands/init-sdd.md +0 -141
  41. package/.opencode/commands/plan.md +0 -96
  42. package/.opencode/commands/refine.md +0 -115
  43. package/.opencode/commands/research.md +0 -194
  44. package/.opencode/commands/sdd-full-plan.md +0 -91
  45. package/.opencode/commands/specify.md +0 -124
  46. package/.opencode/commands/tasks.md +0 -110
  47. package/.opencode/commands/upgrade.md +0 -107
  48. package/.opencode/skills/sdd-evolve/SKILL.md +0 -95
  49. package/.sdd/templates/feature-brief-v2.md +0 -65
  50. package/.sdd/templates/plan-compact.md +0 -50
  51. package/.sdd/templates/research-compact.md +0 -114
  52. package/.sdd/templates/roadmap-template.json +0 -29
  53. package/.sdd/templates/roadmap-template.md +0 -66
  54. package/.sdd/templates/spec-compact.md +0 -71
  55. package/.sdd/templates/tasks-compact.md +0 -48
  56. package/.sdd/templates/todo-compact.md +0 -30
@@ -1,12 +1,12 @@
1
1
  ---
2
2
  name: sdd-implementation
3
- description: Systematic code implementation patterns for SDD workflows. Activates when executing planned implementations, following todo-lists, or building features according to specifications. Use with /implement command.
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 todo-list discipline with progress tracking
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 `/implement` command
18
- - Executing tasks from a plan or roadmap
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 `plan.md`, `tasks.md`, `todo-list.md`, and `spec.md`
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 todo-list with final status
46
- 3. Document discoveries for `/evolve`
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
- ## TDD Mode (Optional)
56
+ ## Test-First Mode (When Requested)
57
57
 
58
- When `--tdd` flag is specified, follow this protocol instead of the standard approach:
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
- ### TDD Rules
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: Architecture design and planning patterns for SDD workflows. Activates when generating technical plans, breaking down tasks, or creating feature briefs. Use with /brief, /plan, /tasks, /specify commands.
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 specifications into actionable technical plans
9
- - Guide architecture design with Mermaid diagrams
10
- - Break down features into 2-8 hour tasks with DAG dependencies
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 `/brief`, `/plan`, `/tasks`, or `/specify` commands
18
- - A spec exists and needs technical architecture
19
- - Breaking down a feature into implementation tasks
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
- ### Brief Planning (30 min)
25
- 1. Parse feature description, extract requirements
26
- 2. Quick codebase scan for existing patterns
27
- 3. Ask clarifying questions if needed
28
- 4. Generate feature-brief.md with problem, users, requirements, approach
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. Read plan.md
39
- 2. Organize into phases: Setup Core → Integration → Polish
40
- 3. Break into 2-8 hour tasks
41
- 4. Define dependencies for DAG execution
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
- - `feature-brief-v2.md` for briefs
57
- - `spec-compact.md` for specifications
58
- - `plan-compact.md` for technical plans
59
- - `tasks-compact.md` for task breakdowns
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 SDD workflows. Activates when researching technical approaches, evaluating external solutions, or investigating codebase patterns. Use with /research command.
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 `/research` command
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
- ### Deep Research (`--deep` flag)
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 Templates
42
+ ## Output
43
43
 
44
- Use the research.md template from `.sdd/templates/research-compact.md`
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": "brief",
13
+ "defaultWorkflow": "sdd-propose",
14
14
  "planningTimeLimit": 30,
15
15
  "maxParallelImplementers": 4,
16
16
  "templates": {
17
- "brief": ".sdd/templates/feature-brief-v2.md",
18
- "spec": ".sdd/templates/spec-compact.md",
19
- "plan": ".sdd/templates/plan-compact.md",
20
- "tasks": ".sdd/templates/tasks-compact.md",
21
- "research": ".sdd/templates/research-compact.md",
22
- "todo": ".sdd/templates/todo-compact.md"
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": ["specify", "plan", "tasks", "implement", "review", "complete"],
33
- "requiredFiles": ["spec.md", "plan.md", "tasks.md"],
34
- "optionalFiles": ["progress.md", "reviews.md", "notes.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,26 @@
1
1
  {
2
- "defaultPrimary": "opencode/minimax-m2.5-free",
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
+ "openai_plus": "GPT 5.5 with reasoning and multimodal",
7
+ "opencode_go": "$10/month — includes DeepSeek V4 Pro, GLM 5.1, Kimi K2.6, MiniMax M2.7",
8
+ "opencode_zen": "Pay-per-token, zero markup — access to Claude Opus 4.7, GPT 5.5, Gemini 3.1 Pro"
9
+ },
10
+ "recommendations": {
11
+ "orchestrator": "PAID: GPT 5.5 (OpenAI) or DeepSeek V4 Pro (Go) — needs strong reasoning for DAG coordination",
12
+ "planner": "PAID: GPT 5.5 (OpenAI), Claude Opus 4.7, or DeepSeek V4 Pro (Go) — needs maximum reasoning for architecture",
13
+ "explorer": "FREE: DeepSeek v4 Flash — fast readonly exploration, token-efficient",
14
+ "implementer": "FREE: DeepSeek v4 Flash — code generation, high token usage",
15
+ "verifier": "FREE: Qwen3.6 Plus — multimodal for Chrome DevTools screenshots",
16
+ "reviewer": "FREE: MiniMax M2.5 — structured code review output"
17
+ }
18
+ },
19
+ "defaultPrimary": "openai/gpt-5.5",
3
20
  "small": "opencode/deepseek-v4-flash-free",
4
21
  "agents": {
5
- "sdd-orchestrator": "opencode/minimax-m2.5-free",
6
- "sdd-planner": "opencode/qwen3.6-plus-free",
22
+ "sdd-orchestrator": "openai/gpt-5.5",
23
+ "sdd-planner": "openai/gpt-5.5",
7
24
  "sdd-explorer": "opencode/deepseek-v4-flash-free",
8
25
  "sdd-implementer": "opencode/deepseek-v4-flash-free",
9
26
  "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.]
@@ -26,8 +26,8 @@
26
26
  "codeReview": "sdd-reviewer"
27
27
  },
28
28
  "sddSettings": {
29
- "defaultBriefTemplate": "feature-brief-v2",
29
+ "defaultWorkflow": "sdd-propose",
30
30
  "autoCheckpoint": true,
31
31
  "compactAtPercent": 80
32
32
  }
33
- }
33
+ }
@@ -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
- "brief": "medium",
17
- "research": "medium",
18
- "specify": "high",
19
- "plan": "high",
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]
@@ -0,0 +1,8 @@
1
+ # Tasks: <Change Title>
2
+
3
+ - [ ] 1. [Task]
4
+ - Verification: `[command or check]`
5
+ - [ ] 2. [Task]
6
+ - Verification: `[command or check]`
7
+ - [ ] 3. [Task]
8
+ - Verification: `[command or check]`
@@ -0,0 +1,17 @@
1
+ # Verification: <Change Title>
2
+
3
+ ## Findings
4
+
5
+ - critical: none
6
+ - major: none
7
+ - minor: none
8
+
9
+ ## Commands
10
+
11
+ - passed: `[command]`
12
+ - failed: none
13
+ - not run: none
14
+
15
+ ## Decision
16
+
17
+ ready: no
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.