specdacular 0.7.1 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/README.md +72 -74
  2. package/commands/specd/continue.md +59 -0
  3. package/commands/specd/new.md +65 -0
  4. package/commands/specd/status.md +1 -1
  5. package/commands/specd/toolbox.md +59 -0
  6. package/package.json +1 -1
  7. package/specdacular/HELP.md +19 -16
  8. package/specdacular/agents/feature-researcher.md +4 -4
  9. package/specdacular/references/load-context.md +83 -0
  10. package/specdacular/references/record-decision.md +61 -0
  11. package/specdacular/references/select-feature.md +20 -20
  12. package/specdacular/references/select-phase.md +3 -3
  13. package/specdacular/references/spawn-research-agents.md +180 -0
  14. package/specdacular/references/synthesize-research.md +127 -0
  15. package/specdacular/references/validate-task.md +64 -0
  16. package/specdacular/templates/{features → tasks}/CHANGELOG.md +2 -8
  17. package/specdacular/templates/{features → tasks}/CONTEXT.md +6 -17
  18. package/specdacular/templates/tasks/DECISIONS.md +46 -0
  19. package/specdacular/templates/{features → tasks}/FEATURE.md +3 -3
  20. package/specdacular/templates/tasks/PLAN.md +91 -0
  21. package/specdacular/templates/tasks/RESEARCH.md +121 -0
  22. package/specdacular/templates/{features → tasks}/ROADMAP.md +6 -43
  23. package/specdacular/templates/tasks/STATE.md +93 -0
  24. package/specdacular/templates/tasks/config.json +15 -0
  25. package/specdacular/workflows/continue.md +275 -0
  26. package/specdacular/workflows/discuss.md +184 -0
  27. package/specdacular/workflows/execute.md +174 -0
  28. package/specdacular/workflows/new.md +299 -0
  29. package/specdacular/workflows/orchestrator/new.md +265 -0
  30. package/specdacular/workflows/orchestrator/plan.md +169 -0
  31. package/specdacular/workflows/plan.md +201 -0
  32. package/specdacular/workflows/research.md +166 -0
  33. package/specdacular/workflows/review.md +289 -0
  34. package/specdacular/workflows/status.md +17 -17
  35. package/commands/specd/blueprint.md +0 -64
  36. package/commands/specd/feature/continue.md +0 -84
  37. package/commands/specd/feature/new.md +0 -67
  38. package/commands/specd/feature/toolbox.md +0 -49
  39. package/specdacular/templates/blueprint/index.html +0 -110
  40. package/specdacular/templates/blueprint/scripts.js +0 -71
  41. package/specdacular/templates/blueprint/styles.css +0 -429
  42. package/specdacular/templates/features/DECISIONS.md +0 -109
  43. package/specdacular/templates/features/DEPENDENCIES.md +0 -47
  44. package/specdacular/templates/features/PLAN.md +0 -180
  45. package/specdacular/templates/features/RESEARCH.md +0 -183
  46. package/specdacular/templates/features/STATE.md +0 -110
  47. package/specdacular/templates/features/config.json +0 -20
  48. package/specdacular/workflows/blueprint-diagrams.md +0 -273
  49. package/specdacular/workflows/blueprint-wireframes.md +0 -312
  50. package/specdacular/workflows/blueprint.md +0 -372
  51. package/specdacular/workflows/continue-feature.md +0 -621
  52. package/specdacular/workflows/discuss-feature.md +0 -382
  53. package/specdacular/workflows/execute-plan.md +0 -636
  54. package/specdacular/workflows/insert-phase.md +0 -246
  55. package/specdacular/workflows/new-feature.md +0 -760
  56. package/specdacular/workflows/plan-feature.md +0 -691
  57. package/specdacular/workflows/plan-phase.md +0 -355
  58. package/specdacular/workflows/prepare-phase.md +0 -745
  59. package/specdacular/workflows/renumber-phases.md +0 -273
  60. package/specdacular/workflows/research-feature.md +0 -252
  61. package/specdacular/workflows/research-phase.md +0 -576
  62. package/specdacular/workflows/review-feature.md +0 -316
  63. package/specdacular/workflows/review-phase.md +0 -545
@@ -1,47 +0,0 @@
1
- # Dependencies: {feature-name}
2
-
3
- **Last Updated:** {YYYY-MM-DD}
4
-
5
- ## Overview
6
-
7
- {Brief description of how this feature spans multiple projects and what each project contributes.}
8
-
9
- ---
10
-
11
- ## Project Involvement
12
-
13
- | Project | Role | Path |
14
- |---------|------|------|
15
- | {project-name} | {What this project does for this feature} | {./relative/path} |
16
-
17
- ---
18
-
19
- ## Phase Dependencies
20
-
21
- | Phase | Depends On | Status |
22
- |-------|------------|--------|
23
- | {project}/phase-{N} | — | pending |
24
- | {project}/phase-{N} | {project}/phase-{N} | blocked |
25
-
26
- **Status values:** `pending` | `blocked` | `in-progress` | `complete`
27
-
28
- ---
29
-
30
- ## Dependency Graph
31
-
32
- ```mermaid
33
- graph TD
34
- A1[{project-a}/phase-1] --> A2[{project-a}/phase-2]
35
- B1[{project-b}/phase-1] --> B2[{project-b}/phase-2]
36
- A2 --> B2
37
- ```
38
-
39
- ---
40
-
41
- ## Scheduling Notes
42
-
43
- {Notes about execution order, parallelism opportunities, and constraints.}
44
-
45
- - Phases with no dependencies can start immediately
46
- - Phases with all dependencies `complete` are unblocked
47
- - The `next` command reads this table to determine what work is available
@@ -1,180 +0,0 @@
1
- ---
2
- feature: {feature-name}
3
- phase: {N}
4
- plan: {NN}
5
- depends_on: []
6
- creates:
7
- - {path/to/new/file.ts}
8
- - {path/to/new/file.tsx}
9
- modifies:
10
- - {path/to/existing/file.ts}
11
- ---
12
-
13
- # Plan {NN}: {Plan Title}
14
-
15
- ## Objective
16
-
17
- {What this plan accomplishes and why. 1-2 sentences max.}
18
-
19
- ## Context
20
-
21
- **Reference these files:**
22
- - `@.specd/codebase/PATTERNS.md` — Code patterns to follow
23
- - `@.specd/codebase/STRUCTURE.md` — Where files go
24
- - `@{path/to/pattern/file}` — Pattern to follow for this task
25
-
26
- **Relevant Decisions:**
27
- - DEC-XXX: {Decision that affects this plan}
28
- - DEC-YYY: {Another relevant decision}
29
-
30
- **From Research:** (if RESEARCH.md exists)
31
- - {Key finding that affects implementation}
32
- - {Pitfall to avoid}
33
-
34
- ---
35
-
36
- ## Tasks
37
-
38
- ### Task 1: {Task Title}
39
-
40
- **Files:** `{path/to/file}`
41
-
42
- **Action:**
43
- {Clear description of what to create or modify. Include enough detail that the implementing agent doesn't need to ask questions.}
44
-
45
- Follow pattern from `{path/to/example}`:
46
- ```{language}
47
- // Pattern to follow
48
- {code example showing the pattern}
49
- ```
50
-
51
- Create:
52
- ```{language}
53
- // What to create
54
- {code example or structure}
55
- ```
56
-
57
- **Verify:**
58
- ```bash
59
- {command to verify task is complete}
60
- ```
61
-
62
- **Done when:**
63
- - [ ] {Specific, observable completion criterion}
64
- - [ ] {Another criterion}
65
-
66
- ---
67
-
68
- ### Task 2: {Task Title}
69
-
70
- **Files:** `{path/to/file}`
71
-
72
- **Action:**
73
- {Clear description}
74
-
75
- **Pattern:**
76
- ```{language}
77
- {code pattern}
78
- ```
79
-
80
- **Verify:**
81
- ```bash
82
- {verification command}
83
- ```
84
-
85
- **Done when:**
86
- - [ ] {Completion criterion}
87
-
88
- ---
89
-
90
- ### Task 3: {Task Title}
91
-
92
- **Files:** `{path/to/file}`
93
-
94
- **Action:**
95
- {Clear description}
96
-
97
- **Verify:**
98
- ```bash
99
- {verification command}
100
- ```
101
-
102
- **Done when:**
103
- - [ ] {Completion criterion}
104
-
105
- ---
106
-
107
- ## Verification
108
-
109
- After all tasks complete, verify the plan is done:
110
-
111
- ```bash
112
- # Type check (if TypeScript)
113
- npx tsc --noEmit
114
-
115
- # Run tests (if applicable)
116
- npm test -- --grep "{relevant tests}"
117
-
118
- # Manual verification
119
- {any manual checks needed}
120
- ```
121
-
122
- **Plan is complete when:**
123
- - [ ] All tasks marked done
124
- - [ ] All verification commands pass
125
- - [ ] No TypeScript errors
126
- - [ ] {Any plan-specific criteria}
127
-
128
- ---
129
-
130
- ## Output
131
-
132
- When this plan is complete:
133
-
134
- 1. Update `.specd/features/{feature-name}/STATE.md`:
135
- - Mark this plan as complete
136
- - Note any discoveries or decisions made
137
-
138
- 2. Commit changes:
139
- ```bash
140
- git add {files created/modified}
141
- git commit -m "feat({feature}): {what was accomplished}
142
-
143
- Plan {phase}.{plan} complete:
144
- - {summary of what was done}"
145
- ```
146
-
147
- 3. Next plan: `phase-{NN}/{NN+1}-PLAN.md` (if exists)
148
-
149
- ---
150
-
151
- ## Implementation Log
152
-
153
- During implementation, capture decisions and deviations to `.specd/features/{feature-name}/CHANGELOG.md`.
154
-
155
- **When to log:**
156
- - Choosing a different approach than specified
157
- - Adding functionality not in the plan
158
- - Skipping or modifying a task
159
- - Discovering issues that change the approach
160
-
161
- **Format:**
162
- ```markdown
163
- ### {YYYY-MM-DD} - Plan {NN}
164
-
165
- **{Brief title}**
166
- - **What:** {What you decided/changed}
167
- - **Why:** {Reason for the change}
168
- - **Files:** `{affected files}`
169
- ```
170
-
171
- **Don't log:**
172
- - Minor implementation details
173
- - Standard coding patterns
174
- - Things working as planned
175
-
176
- ---
177
-
178
- ## Notes
179
-
180
- {Space for the implementing agent to record discoveries, blockers, or decisions made during implementation. Leave empty in template.}
@@ -1,183 +0,0 @@
1
- # Research: {feature-name}
2
-
3
- **Researched:** {YYYY-MM-DD}
4
- **Feature type:** {what kind of feature}
5
- **Confidence:** {HIGH/MEDIUM/LOW}
6
-
7
- ## Summary
8
-
9
- {2-3 paragraphs synthesizing all research findings}
10
-
11
- - What's the recommended approach?
12
- - What makes this feature fit well with the existing codebase?
13
- - What are the key risks and how to mitigate them?
14
-
15
- **Key recommendation:** {One-liner actionable guidance for the planner}
16
-
17
- ---
18
-
19
- ## Codebase Integration
20
-
21
- How this feature fits with existing code.
22
-
23
- ### Import Dependencies
24
-
25
- | Module | Provides | Path |
26
- |--------|----------|------|
27
- | {module} | {what it provides} | `{path}` |
28
-
29
- ### Patterns to Follow
30
-
31
- **{Pattern name}**
32
- Follow pattern in `{existing file path}`:
33
- - {Key aspect 1}
34
- - {Key aspect 2}
35
-
36
- ```typescript
37
- // Example from {path}
38
- {code snippet showing pattern}
39
- ```
40
-
41
- ### File Structure
42
-
43
- Where new files should go:
44
-
45
- ```
46
- src/
47
- ├── {path}/ # {purpose}
48
- │ ├── {file}.ts # {what it does}
49
- │ └── {file}.tsx # {what it does}
50
- └── {existing}/ # Modify: {what change}
51
- ```
52
-
53
- ### Reusable Code
54
-
55
- **Types:**
56
- - `@{path}` — {what types}
57
-
58
- **Utilities:**
59
- - `@{path}` — {what utilities}
60
-
61
- **Components:**
62
- - `@{path}` — {what components}
63
-
64
- ### Integration Points
65
-
66
- | Connect To | Via | Purpose |
67
- |------------|-----|---------|
68
- | {system} | {how} | {why} |
69
-
70
- ---
71
-
72
- ## Implementation Approach
73
-
74
- Standard patterns and libraries for this feature type.
75
-
76
- ### Standard Stack
77
-
78
- | Library | Version | Purpose | Confidence |
79
- |---------|---------|---------|------------|
80
- | {lib} | {ver}+ | {purpose} | {HIGH/MEDIUM} |
81
-
82
- ### Architecture Pattern
83
-
84
- **Pattern:** {name}
85
- **Why:** {rationale for this codebase}
86
-
87
- ```
88
- {diagram or structure}
89
- ```
90
-
91
- ### Code Patterns
92
-
93
- **{Pattern name}**
94
- ```typescript
95
- // Source: {Context7 library ID / docs URL}
96
- {verified code example}
97
- ```
98
-
99
- **{Pattern name}**
100
- ```typescript
101
- // Source: {Context7 library ID / docs URL}
102
- {verified code example}
103
- ```
104
-
105
- ### Don't Hand-Roll
106
-
107
- | Problem | Use Instead | Why |
108
- |---------|-------------|-----|
109
- | {problem} | {library/utility} | {edge cases it handles} |
110
-
111
- ---
112
-
113
- ## Pitfalls
114
-
115
- What commonly goes wrong and how to prevent it.
116
-
117
- ### Critical
118
-
119
- **{Pitfall name}**
120
- - What goes wrong: {description}
121
- - Why it happens: {root cause}
122
- - Prevention: {specific steps}
123
- - Detection: {warning signs during implementation}
124
-
125
- ### Moderate
126
-
127
- **{Pitfall name}**
128
- - What goes wrong: {description}
129
- - Prevention: {specific steps}
130
-
131
- ### Task-Specific Warnings
132
-
133
- | When Implementing | Watch Out For | Prevention |
134
- |-------------------|---------------|------------|
135
- | {task/file} | {pitfall} | {how to avoid} |
136
-
137
- ---
138
-
139
- ## Confidence Assessment
140
-
141
- | Area | Level | Reason |
142
- |------|-------|--------|
143
- | Codebase integration | {level} | {why - e.g., "patterns clear from existing code"} |
144
- | Implementation approach | {level} | {why - e.g., "verified with Context7"} |
145
- | Pitfalls | {level} | {why - e.g., "multiple sources agree"} |
146
-
147
- ---
148
-
149
- ## Open Questions
150
-
151
- Things that couldn't be fully resolved during research:
152
-
153
- 1. **{Question}**
154
- - What we know: {partial info}
155
- - What's unclear: {the gap}
156
- - Recommendation: {how planner should handle}
157
-
158
- ---
159
-
160
- ## Sources
161
-
162
- ### Codebase (from Explore)
163
- - `{path}` — {what was learned}
164
-
165
- ### Verified External (HIGH confidence)
166
- - Context7: {library IDs and queries}
167
- - Official docs: {URLs}
168
-
169
- ### Community (MEDIUM confidence)
170
- - {Verified WebSearch findings with URLs}
171
-
172
- ### For Awareness Only (LOW confidence)
173
- - {Unverified findings - not used in recommendations}
174
-
175
- ---
176
-
177
- ## Decisions Made
178
-
179
- Decisions recorded in DECISIONS.md during this research:
180
-
181
- | Decision | Rationale |
182
- |----------|-----------|
183
- | DEC-XXX: {title} | {brief rationale} |
@@ -1,110 +0,0 @@
1
- # State: {feature-name}
2
-
3
- ## Current Position
4
-
5
- **Stage:** {discussion | research | planning | execution}
6
- **Last Updated:** {YYYY-MM-DD}
7
-
8
- ---
9
-
10
- ## Stage Progress
11
-
12
- ### Discussion
13
- - [x] Initial discussion complete
14
- - [ ] Gray areas identified
15
- - [ ] All gray areas resolved
16
-
17
- ### Research
18
- - [ ] Research conducted
19
- - [ ] Findings documented in RESEARCH.md
20
-
21
- ### Planning
22
- - [ ] Phases derived
23
- - [ ] Plans created
24
-
25
- ### Execution
26
- - [ ] Phase 1 complete
27
- - [ ] Phase 2 complete
28
-
29
- ---
30
-
31
- ## Execution Progress
32
-
33
- ### Phase Status
34
-
35
- Phase status tracks: `pending` → `executing` → `executed` → `completed`
36
- - **pending** — Phase not yet started (prepare/plan needed)
37
- - **executing** — Plans are being executed
38
- - **executed** — All plans done, pending user review
39
- - **completed** — User approved, ready for next phase
40
-
41
- Current phase status is tracked in `config.json` → `phases.current_status`.
42
-
43
- ### Current Plan
44
- - Plan: none
45
- - Task: —
46
- - Started: —
47
-
48
- ### Completed Plans
49
- | Plan | Completed | Tasks | Deviations |
50
- |------|-----------|-------|------------|
51
-
52
- ---
53
-
54
- ## Review Cycles
55
-
56
- | Phase | Cycle | Date | Findings | Corrective Plans | Status |
57
- |-------|-------|------|----------|------------------|--------|
58
-
59
- ---
60
-
61
- ## Discussion Sessions
62
-
63
- | Date | Focus | Outcome |
64
- |------|-------|---------|
65
- | {YYYY-MM-DD} | Initial discussion | FEATURE.md created |
66
-
67
- ---
68
-
69
- ## Documents Status
70
-
71
- | Document | Status | Last Updated |
72
- |----------|--------|--------------|
73
- | FEATURE.md | Created | {date} |
74
- | CONTEXT.md | Created | {date} |
75
- | DECISIONS.md | {N} decisions | {date} |
76
- | RESEARCH.md | Not started | — |
77
- | ROADMAP.md | Not started | — |
78
- | plans/ | Not started | — |
79
-
80
- ---
81
-
82
- ## Decision Count
83
-
84
- - **Active:** {N}
85
- - **Superseded:** {N}
86
- - **Total:** {N}
87
-
88
- ---
89
-
90
- ## Next Steps
91
-
92
- {What the user should do next based on current state.}
93
-
94
- **Resume:** `/specd:feature:continue {feature-name}` — Picks up where you left off and guides the next step automatically.
95
-
96
- ---
97
-
98
- ## Session Notes
99
-
100
- {Space for notes during sessions. Cleared or archived as appropriate.}
101
-
102
- ---
103
-
104
- ## Quick Reference
105
-
106
- - **Feature:** `.specd/features/{feature-name}/FEATURE.md`
107
- - **Context:** `.specd/features/{feature-name}/CONTEXT.md`
108
- - **Decisions:** `.specd/features/{feature-name}/DECISIONS.md`
109
- - **Research:** `.specd/features/{feature-name}/RESEARCH.md`
110
- - **Roadmap:** `.specd/features/{feature-name}/ROADMAP.md`
@@ -1,20 +0,0 @@
1
- {
2
- "feature_name": "{name}",
3
- "feature_abbrev": "{ABBREV}",
4
- "created": "{date}",
5
- "mode": "interactive",
6
- "depth": "standard",
7
- "phases": {
8
- "total": 0,
9
- "completed": 0,
10
- "current": 1
11
- },
12
- "requirements": {
13
- "v1_count": 0,
14
- "v2_count": 0,
15
- "completed": 0
16
- },
17
- "execution": {
18
- "auto_commit": false
19
- }
20
- }