@tudeorangbiasa/sdd-multiagent-opencode 0.1.3 → 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-auto-reasoning.js +141 -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 +21 -0
- 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 +185 -150
- package/bin/sdd-opencode.js +34 -7
- package/opencode.json +10 -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,115 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Refine existing prompts, briefs, or specifications through continued discussion and iteration
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
**Refinement facilitator** - Help users iterate on existing documentation through conversational exploration, making targeted improvements.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Usage
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
/refine $1
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
**Examples:**
|
|
16
|
-
```
|
|
17
|
-
/refine user-auth
|
|
18
|
-
/refine checkout-flow
|
|
19
|
-
/refine notification-system
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## Instructions
|
|
25
|
-
|
|
26
|
-
### Phase 1: Analysis (Readonly)
|
|
27
|
-
|
|
28
|
-
**Step 1: Find refinement targets**
|
|
29
|
-
|
|
30
|
-
Search for:
|
|
31
|
-
1. `specs/active/$1/feature-brief.md`
|
|
32
|
-
2. `specs/active/$1/spec.md`
|
|
33
|
-
3. `specs/active/$1/plan.md`
|
|
34
|
-
4. `specs/active/$1/tasks.md`
|
|
35
|
-
|
|
36
|
-
**Step 2: Present what's available**
|
|
37
|
-
|
|
38
|
-
```
|
|
39
|
-
## Refinement Targets Found
|
|
40
|
-
|
|
41
|
-
**Task:** $1
|
|
42
|
-
|
|
43
|
-
**Available documents:**
|
|
44
|
-
| # | Document | Last Updated | Size |
|
|
45
|
-
|---|----------|--------------|------|
|
|
46
|
-
| 1 | feature-brief.md | [date] | [lines] |
|
|
47
|
-
| 2 | spec.md | [date] | [lines] |
|
|
48
|
-
| 3 | plan.md | [date] | [lines] |
|
|
49
|
-
|
|
50
|
-
**What would you like to refine?**
|
|
51
|
-
1. Feature brief - Requirements and approach
|
|
52
|
-
2. Specification - User stories and acceptance criteria
|
|
53
|
-
3. Technical plan - Architecture and design
|
|
54
|
-
4. Something specific - Tell me what
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### Phase 2: Exploration (Conversation)
|
|
58
|
-
|
|
59
|
-
**Start the refinement conversation** by summarizing the current state and asking what to refine.
|
|
60
|
-
|
|
61
|
-
Conduct conversational refinement:
|
|
62
|
-
- Ask follow-up questions
|
|
63
|
-
- Track refinement requests
|
|
64
|
-
- Present proposed changes before applying
|
|
65
|
-
|
|
66
|
-
### Phase 3: Planning (Show Changes)
|
|
67
|
-
|
|
68
|
-
**Present proposed changes before applying** with before/after diffs, change types (ADD/MODIFY/REMOVE/CLARIFY), and proposed changelog entry.
|
|
69
|
-
|
|
70
|
-
**Wait for user approval before proceeding.**
|
|
71
|
-
|
|
72
|
-
### Phase 4: Execution (After Approval)
|
|
73
|
-
|
|
74
|
-
**Step 1: Apply changes** - Update the document with all approved changes, change labels, updated version number, updated timestamp
|
|
75
|
-
|
|
76
|
-
**Step 2: Add changelog entry**
|
|
77
|
-
|
|
78
|
-
**Step 3: Verify changes** - Read the file back to confirm updates applied
|
|
79
|
-
|
|
80
|
-
### Phase 5: Completion
|
|
81
|
-
|
|
82
|
-
**CHECKPOINT: Refinement Complete (REQUIRED)**
|
|
83
|
-
|
|
84
|
-
Before final output, verify:
|
|
85
|
-
- [ ] All requested changes applied
|
|
86
|
-
- [ ] Original context preserved
|
|
87
|
-
- [ ] Changelog updated
|
|
88
|
-
- [ ] Version incremented
|
|
89
|
-
- [ ] File verified
|
|
90
|
-
|
|
91
|
-
---
|
|
92
|
-
|
|
93
|
-
## Output
|
|
94
|
-
|
|
95
|
-
```
|
|
96
|
-
✅ Refinement complete: `specs/active/$1/[file]`
|
|
97
|
-
|
|
98
|
-
**Changes applied:**
|
|
99
|
-
- [ADD] [Count] new items
|
|
100
|
-
- [MODIFY] [Count] existing items
|
|
101
|
-
- [REMOVE] [Count] items
|
|
102
|
-
- [CLARIFY] [Count] items
|
|
103
|
-
|
|
104
|
-
**Version:** [old] → [new]
|
|
105
|
-
|
|
106
|
-
**Key changes:**
|
|
107
|
-
1. [Change 1 summary]
|
|
108
|
-
2. [Change 2 summary]
|
|
109
|
-
|
|
110
|
-
**Next steps:**
|
|
111
|
-
- Review the updated document
|
|
112
|
-
- Make more refinements: `/refine $1`
|
|
113
|
-
- Update related docs if needed
|
|
114
|
-
- Proceed with implementation: `/implement $1`
|
|
115
|
-
```
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Investigate existing patterns and gather context before specification. Supports --deep for multi-pass web research
|
|
3
|
-
agent: sdd-explorer
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Research and document findings without making changes to the codebase.
|
|
7
|
-
|
|
8
|
-
**Skill:** Uses `sdd-research` skill for structured investigation.
|
|
9
|
-
|
|
10
|
-
**Output:** `specs/active/$1/research.md`
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## Usage
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
/research $1 $ARGUMENTS
|
|
18
|
-
/research $1 $ARGUMENTS --deep
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
**Flags:**
|
|
22
|
-
- `--deep` — Multi-pass web investigation with source verification, documentation deep-dives, real-world validation, and confidence assessment.
|
|
23
|
-
|
|
24
|
-
**Examples:**
|
|
25
|
-
```
|
|
26
|
-
/research user-auth JWT vs session-based authentication patterns
|
|
27
|
-
/research payment-system Stripe integration patterns in existing codebase
|
|
28
|
-
/research caching Redis vs in-memory caching for our use case
|
|
29
|
-
/research database-engine Best database for our use case --deep
|
|
30
|
-
/research auth-provider Compare Auth0 vs Clerk vs Supabase Auth --deep
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
---
|
|
34
|
-
|
|
35
|
-
## Instructions
|
|
36
|
-
|
|
37
|
-
### Phase 1: Analysis (Readonly)
|
|
38
|
-
|
|
39
|
-
**Step 1: Parse the research request**
|
|
40
|
-
- Extract task-id: `$1`
|
|
41
|
-
- Extract research topic: `$ARGUMENTS`
|
|
42
|
-
- Identify key questions to answer
|
|
43
|
-
|
|
44
|
-
**Step 2: Clarify research scope**
|
|
45
|
-
|
|
46
|
-
Ask if any of these are unclear:
|
|
47
|
-
- Should we focus on internal patterns or external solutions?
|
|
48
|
-
- Are there specific technologies to consider or avoid?
|
|
49
|
-
- What constraints exist (performance, cost, team expertise)?
|
|
50
|
-
- What's the primary goal: understand existing code or explore new approaches?
|
|
51
|
-
|
|
52
|
-
### Phase 2: Planning (Create Plan)
|
|
53
|
-
|
|
54
|
-
**Present research plan before starting:**
|
|
55
|
-
|
|
56
|
-
```
|
|
57
|
-
## Research Plan
|
|
58
|
-
|
|
59
|
-
**Task ID:** $1
|
|
60
|
-
**Topic:** [research topic]
|
|
61
|
-
|
|
62
|
-
**Research Questions:**
|
|
63
|
-
1. [Key question 1]
|
|
64
|
-
2. [Key question 2]
|
|
65
|
-
3. [Key question 3]
|
|
66
|
-
|
|
67
|
-
**Internal Research (Codebase):**
|
|
68
|
-
- Search directories: [list]
|
|
69
|
-
- Patterns to find: [list]
|
|
70
|
-
- Similar features to study: [list]
|
|
71
|
-
|
|
72
|
-
**External Research:**
|
|
73
|
-
- Technologies to evaluate: [list]
|
|
74
|
-
- Best practices to document: [list]
|
|
75
|
-
|
|
76
|
-
**Output:**
|
|
77
|
-
- File: `specs/active/$1/research.md`
|
|
78
|
-
- Structure: Executive Summary → Codebase Analysis → External Options → Recommendations
|
|
79
|
-
|
|
80
|
-
**Estimated time:** 60 minutes
|
|
81
|
-
|
|
82
|
-
Ready to proceed?
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
**Wait for user approval before proceeding.**
|
|
86
|
-
|
|
87
|
-
### Phase 3: Execution (After Approval)
|
|
88
|
-
|
|
89
|
-
**Step 1: Create directory structure**
|
|
90
|
-
```
|
|
91
|
-
specs/active/$1/
|
|
92
|
-
└── research.md
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
**Step 2: Conduct internal research**
|
|
96
|
-
|
|
97
|
-
Search the codebase using `codebase-memory-mcp`:
|
|
98
|
-
- `search_graph` for similar feature implementations
|
|
99
|
-
- `get_architecture` for patterns and conventions
|
|
100
|
-
- `get_code_snippet` for reusable utilities and components
|
|
101
|
-
- `query_graph` for architectural decisions
|
|
102
|
-
|
|
103
|
-
**For each finding, document:**
|
|
104
|
-
```markdown
|
|
105
|
-
### [Pattern/Feature Name]
|
|
106
|
-
|
|
107
|
-
**Location:** `path/to/file.ts`
|
|
108
|
-
|
|
109
|
-
**How it works:**
|
|
110
|
-
[Brief explanation]
|
|
111
|
-
|
|
112
|
-
**Code example:**
|
|
113
|
-
```[language]
|
|
114
|
-
[Relevant code snippet]
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
**Reusability:** [How this applies to our task]
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
**Step 3: Conduct external research**
|
|
121
|
-
|
|
122
|
-
Use `exa_web_search_exa` for external research.
|
|
123
|
-
|
|
124
|
-
**Standard mode** — For each option/technology:
|
|
125
|
-
```markdown
|
|
126
|
-
### [Option Name]
|
|
127
|
-
|
|
128
|
-
**What it is:** [Brief description]
|
|
129
|
-
|
|
130
|
-
**Pros:**
|
|
131
|
-
- [Advantage 1]
|
|
132
|
-
- [Advantage 2]
|
|
133
|
-
|
|
134
|
-
**Cons:**
|
|
135
|
-
- [Disadvantage 1]
|
|
136
|
-
- [Disadvantage 2]
|
|
137
|
-
|
|
138
|
-
**Fit for our use case:** [High/Medium/Low] - [Why]
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
**Deep mode** (`--deep` flag) — Multi-pass investigation:
|
|
142
|
-
1. **Pass 1 — Landscape scan:** Use `exa_web_search_exa` to survey the solution space, identify top 3-5 candidates
|
|
143
|
-
2. **Pass 2 — Documentation deep-dive:** Use `webfetch` to read official docs, API references, pricing pages
|
|
144
|
-
3. **Pass 3 — Real-world validation:** Search for production reviews, benchmarks, comparisons, known issues
|
|
145
|
-
4. **Pass 4 — Integration feasibility:** Search for integration guides with the project's detected stack
|
|
146
|
-
|
|
147
|
-
For each finding, record the source URL and reliability rating.
|
|
148
|
-
|
|
149
|
-
**Step 4: Generate research.md**
|
|
150
|
-
|
|
151
|
-
Use the structure from the original spec-kit research template.
|
|
152
|
-
|
|
153
|
-
### Phase 4: Verification
|
|
154
|
-
|
|
155
|
-
**CHECKPOINT: Research Complete (REQUIRED)**
|
|
156
|
-
|
|
157
|
-
Before final output, verify:
|
|
158
|
-
- [ ] File created at `specs/active/$1/research.md`
|
|
159
|
-
- [ ] Codebase patterns documented with examples
|
|
160
|
-
- [ ] Multiple options presented with pros/cons
|
|
161
|
-
- [ ] Comparison matrix included
|
|
162
|
-
- [ ] Recommendations provided with rationale
|
|
163
|
-
- [ ] Open questions listed
|
|
164
|
-
|
|
165
|
-
---
|
|
166
|
-
|
|
167
|
-
## Output
|
|
168
|
-
|
|
169
|
-
**Your response MUST end with:**
|
|
170
|
-
|
|
171
|
-
```
|
|
172
|
-
✅ Research complete: `specs/active/$1/research.md`
|
|
173
|
-
|
|
174
|
-
**Mode:** Standard | Deep
|
|
175
|
-
**Key Findings:**
|
|
176
|
-
- [Finding 1]
|
|
177
|
-
- [Finding 2]
|
|
178
|
-
- [Finding 3]
|
|
179
|
-
|
|
180
|
-
**Recommendation:** [Primary recommendation]
|
|
181
|
-
**Confidence:** [High/Medium/Low] (deep research only)
|
|
182
|
-
|
|
183
|
-
**Codebase patterns found:** [Count] reusable patterns
|
|
184
|
-
**Options evaluated:** [Count] approaches compared
|
|
185
|
-
**Sources consulted:** [Count] (deep research only)
|
|
186
|
-
|
|
187
|
-
**Next steps:**
|
|
188
|
-
- Review the research document
|
|
189
|
-
- Discuss recommendations with team if needed
|
|
190
|
-
- Run `/specify $1` to define requirements
|
|
191
|
-
- Or run `/plan $1` if requirements are clear
|
|
192
|
-
|
|
193
|
-
**Open questions:** [Count] items need input before proceeding
|
|
194
|
-
```
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Create a comprehensive project roadmap from A to Z with kanban-style task organization, epic hierarchy, and DAG-based parallel execution
|
|
3
|
-
agent: sdd-orchestrator
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
**You are a project roadmap architect.** Create complete project plans with epic-level organization, task hierarchy, and kanban board structure.
|
|
7
|
-
|
|
8
|
-
**Supports `--until-finish` flag** for automated execution of the entire project after roadmap creation.
|
|
9
|
-
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
## Usage
|
|
13
|
-
|
|
14
|
-
```
|
|
15
|
-
/sdd-full-plan $1 $ARGUMENTS
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
**Examples:**
|
|
19
|
-
```
|
|
20
|
-
/sdd-full-plan blog-platform Full-featured blog with CMS and analytics
|
|
21
|
-
/sdd-full-plan ecommerce-app Multi-vendor marketplace --until-finish
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
### The `--until-finish` Flag
|
|
25
|
-
|
|
26
|
-
When provided, automatically executes all tasks after roadmap creation:
|
|
27
|
-
- Creates roadmap (Phase 1-3)
|
|
28
|
-
- Executes ALL tasks in dependency order
|
|
29
|
-
- Stops on error and reports issue
|
|
30
|
-
|
|
31
|
-
---
|
|
32
|
-
|
|
33
|
-
## Instructions
|
|
34
|
-
|
|
35
|
-
### Phase 1: Analysis
|
|
36
|
-
|
|
37
|
-
1. **Parse project request** - Extract project-id: `$1` and description: `$ARGUMENTS`
|
|
38
|
-
2. **Gather requirements** - Ask about goal, users, tech stack, timeline, team size, must-haves, nice-to-haves
|
|
39
|
-
3. **Assess complexity** - Determine level (Simple/Medium/Complex/Enterprise) and recommended SDD approach
|
|
40
|
-
|
|
41
|
-
### Phase 2: Planning
|
|
42
|
-
|
|
43
|
-
**Present roadmap preview** with epic structure, complexity, estimated duration, and SDD approach. Wait for approval.
|
|
44
|
-
|
|
45
|
-
**Ask execution mode:**
|
|
46
|
-
- **Option A:** One-by-one processing (interactive, step-by-step)
|
|
47
|
-
- **Option B:** Immediate execution (generate all at once)
|
|
48
|
-
- **Option C:** Phased creation (recommended for enterprise: 8+ epics, 40+ tasks)
|
|
49
|
-
|
|
50
|
-
Wait for execution mode selection before proceeding.
|
|
51
|
-
|
|
52
|
-
### Phase 3: Execution
|
|
53
|
-
|
|
54
|
-
**Create directory structure:**
|
|
55
|
-
```
|
|
56
|
-
specs/todo-roadmap/$1/
|
|
57
|
-
├── roadmap.json
|
|
58
|
-
├── roadmap.md
|
|
59
|
-
├── tasks/
|
|
60
|
-
└── execution-log.md
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
**Generate roadmap.json** with: Project metadata, Kanban columns, Tasks/epics with dependencies and DAG structure, Statistics.
|
|
64
|
-
|
|
65
|
-
**Generate task JSON files** (`tasks/[task-id].json`) with: Task metadata, Dependencies, SDD command mappings, `sdd.touchedFiles` for implementation tasks.
|
|
66
|
-
|
|
67
|
-
### Phase 4: Verification
|
|
68
|
-
|
|
69
|
-
Before final output, verify:
|
|
70
|
-
- roadmap.json is valid JSON
|
|
71
|
-
- roadmap.md is readable
|
|
72
|
-
- All tasks have SDD command mappings
|
|
73
|
-
- Dependencies are logical (no cycles)
|
|
74
|
-
- execution-log.md created
|
|
75
|
-
|
|
76
|
-
### Phase 5: Automated Execution (Only with `--until-finish`)
|
|
77
|
-
|
|
78
|
-
If `--until-finish` flag provided:
|
|
79
|
-
1. **Pre-Execution Summary** — Show roadmap summary and execution queue
|
|
80
|
-
2. **Delegate to `sdd-orchestrator`** for parallel DAG execution
|
|
81
|
-
3. **Orchestrator identifies ready tasks** from `dag.roots` and `dag.parallelGroups`
|
|
82
|
-
4. **Orchestrator spawns** `sdd-implementer` subagents for each ready task in parallel
|
|
83
|
-
5. **Each implementer spawns** `sdd-verifier` as child subagent
|
|
84
|
-
6. **Batch completion** — collect results, update roadmap, identify next ready tasks
|
|
85
|
-
7. **Repeat** until all tasks complete or a blocker is hit
|
|
86
|
-
|
|
87
|
-
---
|
|
88
|
-
|
|
89
|
-
## Output
|
|
90
|
-
|
|
91
|
-
End with roadmap summary including epics and tasks count, estimated duration and complexity, files created, epic breakdown, and execution commands.
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Transform vague feature ideas into detailed, testable requirements with user stories and acceptance criteria
|
|
3
|
-
agent: sdd-planner
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
You are a requirements analyst agent. Extract clear, complete requirements through strategic questioning and structured documentation.
|
|
7
|
-
|
|
8
|
-
**Skill:** Uses `sdd-planning` skill.
|
|
9
|
-
|
|
10
|
-
**Output:** `specs/active/$1/spec.md`
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## Usage
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
/specify $1 $ARGUMENTS
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
**Examples:**
|
|
21
|
-
- `/specify user-auth User authentication with login, logout, and password reset`
|
|
22
|
-
- `/specify checkout-flow One-page checkout with guest option and multiple payment methods`
|
|
23
|
-
- `/specify notification-system Real-time notifications with email and push support`
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
## Instructions
|
|
28
|
-
|
|
29
|
-
### Phase 1: Analysis
|
|
30
|
-
|
|
31
|
-
1. **Parse the feature request** - Extract task-id: `$1` and feature description: `$ARGUMENTS`
|
|
32
|
-
2. **Check for existing research** - Look for `specs/active/$1/research.md` and incorporate findings
|
|
33
|
-
3. **Strategic questioning** - Ask questions in three categories:
|
|
34
|
-
|
|
35
|
-
**Category 1: Problem & Users**
|
|
36
|
-
- What specific problem does this solve?
|
|
37
|
-
- Who are the primary users?
|
|
38
|
-
- What's their current pain point?
|
|
39
|
-
|
|
40
|
-
**Category 2: Core Requirements**
|
|
41
|
-
- What are the 3-5 core features this MUST have?
|
|
42
|
-
- Which would you build first if you could only pick one?
|
|
43
|
-
- What's explicitly OUT of scope?
|
|
44
|
-
|
|
45
|
-
**Category 3: Constraints & Success**
|
|
46
|
-
- Any technical constraints?
|
|
47
|
-
- How will you know this is successful?
|
|
48
|
-
- Any deadline or timeline considerations?
|
|
49
|
-
|
|
50
|
-
**Validation:** Problem clearly stated, at least 3 core features, at least 1 exclusion defined.
|
|
51
|
-
|
|
52
|
-
### Phase 2: Planning
|
|
53
|
-
|
|
54
|
-
**Present spec structure before creating:**
|
|
55
|
-
|
|
56
|
-
```
|
|
57
|
-
## Specification Plan
|
|
58
|
-
|
|
59
|
-
**Task ID:** $1
|
|
60
|
-
**Feature:** [feature name]
|
|
61
|
-
|
|
62
|
-
**What I understood:**
|
|
63
|
-
- Problem: [summary]
|
|
64
|
-
- Users: [who]
|
|
65
|
-
- Core features: [list]
|
|
66
|
-
|
|
67
|
-
**Specification structure:**
|
|
68
|
-
1. Problem Statement
|
|
69
|
-
2. User Personas
|
|
70
|
-
3. Functional Requirements (with user stories)
|
|
71
|
-
4. Non-Functional Requirements
|
|
72
|
-
5. Out of Scope
|
|
73
|
-
6. Edge Cases & Error Handling
|
|
74
|
-
7. Success Metrics
|
|
75
|
-
|
|
76
|
-
**User stories I'll create:** [count]
|
|
77
|
-
**Edge cases to cover:** [count]
|
|
78
|
-
|
|
79
|
-
Does this capture what you want? Ready to create the spec?
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
**Wait for user approval before proceeding.**
|
|
83
|
-
|
|
84
|
-
### Phase 3: Execution
|
|
85
|
-
|
|
86
|
-
**Create directory if it doesn't exist:** `specs/active/$1/`
|
|
87
|
-
|
|
88
|
-
**Generate `specs/active/$1/spec.md`** with the full specification structure including Problem Statement, User Personas, Functional Requirements with user stories and acceptance criteria, Non-Functional Requirements, Out of Scope, Edge Cases & Error Handling, Success Metrics, Open Questions, and Revision History.
|
|
89
|
-
|
|
90
|
-
### Phase 4: Verification
|
|
91
|
-
|
|
92
|
-
**Before final output, verify:**
|
|
93
|
-
- File created at `specs/active/$1/spec.md`
|
|
94
|
-
- Problem statement is clear
|
|
95
|
-
- At least 3 user stories with acceptance criteria
|
|
96
|
-
- Non-functional requirements defined
|
|
97
|
-
- Out of scope items listed
|
|
98
|
-
- Edge cases documented
|
|
99
|
-
- Success metrics defined
|
|
100
|
-
|
|
101
|
-
---
|
|
102
|
-
|
|
103
|
-
## Output
|
|
104
|
-
|
|
105
|
-
**Your response MUST end with:**
|
|
106
|
-
|
|
107
|
-
```
|
|
108
|
-
✅ Specification created: `specs/active/$1/spec.md`
|
|
109
|
-
|
|
110
|
-
**Summary:**
|
|
111
|
-
- Problem: [One sentence summary]
|
|
112
|
-
- User stories: [Count]
|
|
113
|
-
- Requirements: [Count] functional, [Count] non-functional
|
|
114
|
-
- Edge cases: [Count]
|
|
115
|
-
|
|
116
|
-
**Key features:**
|
|
117
|
-
1. [Feature 1]
|
|
118
|
-
2. [Feature 2]
|
|
119
|
-
3. [Feature 3]
|
|
120
|
-
|
|
121
|
-
**Next steps:**
|
|
122
|
-
- Review the specification with stakeholders
|
|
123
|
-
- Run `/plan $1` to create technical implementation plan
|
|
124
|
-
```
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Break down a technical plan into actionable, prioritized development tasks with effort estimates and dependencies
|
|
3
|
-
agent: sdd-planner
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
You are a project planning agent that transforms technical plans into actionable, prioritized task lists.
|
|
7
|
-
|
|
8
|
-
**Output:** `specs/active/$1/tasks.md`
|
|
9
|
-
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
## Prerequisites
|
|
13
|
-
|
|
14
|
-
- Must have existing `plan.md` file in task directory
|
|
15
|
-
|
|
16
|
-
## Usage
|
|
17
|
-
|
|
18
|
-
```
|
|
19
|
-
/tasks $1
|
|
20
|
-
/tasks $1 --tdd
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
**Flags:**
|
|
24
|
-
| Flag | Description |
|
|
25
|
-
|------|-------------|
|
|
26
|
-
| `--tdd` | Generate TDD tasks: each task includes test-first approach with failing test → implementation → pass |
|
|
27
|
-
|
|
28
|
-
---
|
|
29
|
-
|
|
30
|
-
## Instructions
|
|
31
|
-
|
|
32
|
-
### Step 1: Read Planning Documents
|
|
33
|
-
|
|
34
|
-
Read in order:
|
|
35
|
-
1. `specs/active/$1/plan.md` (REQUIRED)
|
|
36
|
-
2. `specs/active/$1/spec.md` (if exists)
|
|
37
|
-
3. `specs/active/$1/research.md` (if exists)
|
|
38
|
-
|
|
39
|
-
**If plan.md doesn't exist:** Suggest running `/plan $1` or `/brief $1` first.
|
|
40
|
-
|
|
41
|
-
### Step 2: Analyze & Preview
|
|
42
|
-
|
|
43
|
-
Present a preview:
|
|
44
|
-
|
|
45
|
-
```
|
|
46
|
-
## Task Breakdown Preview
|
|
47
|
-
|
|
48
|
-
**Task ID:** $1
|
|
49
|
-
**Phases:** [Count] phases, [X] total tasks
|
|
50
|
-
**Estimated effort:** [Total hours/days]
|
|
51
|
-
**Key dependencies:** [List critical blockers]
|
|
52
|
-
|
|
53
|
-
Ready to generate the full task breakdown?
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
**Wait for user approval before proceeding.**
|
|
57
|
-
|
|
58
|
-
### Step 3: Generate tasks.md
|
|
59
|
-
|
|
60
|
-
**Create directory if it doesn't exist:** `specs/active/$1/`
|
|
61
|
-
|
|
62
|
-
**Generate `tasks.md`** with: Summary table, Phases with tasks (each with Description, Acceptance Criteria, Effort, Priority, Dependencies), Quick Reference Checklist, Next Steps.
|
|
63
|
-
|
|
64
|
-
**If --tdd flag:** Each task should include TDD-specific structure:
|
|
65
|
-
|
|
66
|
-
```markdown
|
|
67
|
-
### Task X: [Title] --tdd
|
|
68
|
-
|
|
69
|
-
**Description:** [What to build]
|
|
70
|
-
|
|
71
|
-
**TDD Steps:**
|
|
72
|
-
1. **Write failing test** - Define expected behavior in test
|
|
73
|
-
2. **Implement minimum code** - Only what's needed to pass
|
|
74
|
-
3. **Verify test passes** - Run focused test
|
|
75
|
-
4. **Refactor** - Clean up after pass (optional)
|
|
76
|
-
|
|
77
|
-
**Test file:** `tests/[feature].test.ts`
|
|
78
|
-
**Acceptance Criteria:**
|
|
79
|
-
- [ ] Test fails before implementation
|
|
80
|
-
- [ ] Implementation makes test pass
|
|
81
|
-
- [ ] No extra features added
|
|
82
|
-
|
|
83
|
-
**Effort:** [X] hours
|
|
84
|
-
**Priority:** [high/medium/low]
|
|
85
|
-
**Dependencies:** [list]
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
### Verification
|
|
89
|
-
|
|
90
|
-
Before final output, verify:
|
|
91
|
-
- [ ] File created at `specs/active/$1/tasks.md`
|
|
92
|
-
- [ ] All tasks have acceptance criteria and effort estimates
|
|
93
|
-
- [ ] Dependencies are clearly marked
|
|
94
|
-
- [ ] No task exceeds 2 days
|
|
95
|
-
|
|
96
|
-
---
|
|
97
|
-
|
|
98
|
-
## Output
|
|
99
|
-
|
|
100
|
-
```
|
|
101
|
-
✅ Tasks created: `specs/active/$1/tasks.md`
|
|
102
|
-
|
|
103
|
-
**Summary:**
|
|
104
|
-
- Total tasks: [Count]
|
|
105
|
-
- Phases: [Count]
|
|
106
|
-
- Estimated effort: [Total]
|
|
107
|
-
|
|
108
|
-
**Ready to implement:**
|
|
109
|
-
- Run `/implement $1` to start execution
|
|
110
|
-
```
|