specdacular 0.7.2 → 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 +71 -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 +17 -15
  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
@@ -0,0 +1,46 @@
1
+ # Decisions: {task-name}
2
+
3
+ **Task:** {task-name}
4
+ **Created:** {YYYY-MM-DD}
5
+ **Last Updated:** {YYYY-MM-DD}
6
+
7
+ ---
8
+
9
+ ## Active Decisions
10
+
11
+ {Decisions currently in effect. These guide implementation.}
12
+
13
+ ### DEC-001: {Decision Title}
14
+
15
+ **Date:** {YYYY-MM-DD}
16
+ **Status:** Active
17
+ **Context:** {What situation required this decision}
18
+ **Decision:** {What was decided}
19
+ **Rationale:**
20
+ - {Reason 1}
21
+ - {Reason 2}
22
+ **Implications:**
23
+ - {What this means for implementation}
24
+ - {Files or patterns affected}
25
+ **References:**
26
+ - `@{path/to/relevant/code}` (if applicable)
27
+
28
+ ---
29
+
30
+ ## Superseded Decisions
31
+
32
+ {Decisions that were replaced by newer decisions. Kept for history.}
33
+
34
+ ---
35
+
36
+ ## Revoked Decisions
37
+
38
+ {Decisions that were explicitly cancelled without replacement.}
39
+
40
+ ---
41
+
42
+ ## Decision Log
43
+
44
+ | ID | Date | Title | Status |
45
+ |----|------|-------|--------|
46
+ | DEC-001 | {date} | {title} | Active |
@@ -1,4 +1,4 @@
1
- # Feature: {feature-name}
1
+ # Task: {task-name}
2
2
 
3
3
  ## What This Is
4
4
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  ### Must Create
10
10
 
11
- {Files and components that must be created for this feature to work.}
11
+ {Files and components that must be created for this task to work.}
12
12
 
13
13
  - [ ] `{path/to/file.ts}` — {What it does}
14
14
  - [ ] `{path/to/file.tsx}` — {What it does}
@@ -16,7 +16,7 @@
16
16
 
17
17
  ### Must Integrate With
18
18
 
19
- {Existing code this feature connects to. Include paths.}
19
+ {Existing code this task connects to. Include paths.}
20
20
 
21
21
  - `{path/to/existing.ts}` — {How it integrates}
22
22
  - `{path/to/existing.ts}` — {How it integrates}
@@ -0,0 +1,91 @@
1
+ ---
2
+ task: {task-name}
3
+ phase: {N}
4
+ depends_on: []
5
+ creates:
6
+ - {path/to/new/file.ts}
7
+ modifies:
8
+ - {path/to/existing/file.ts}
9
+ ---
10
+
11
+ # Phase {N}: {Phase Title}
12
+
13
+ ## Objective
14
+
15
+ {What this phase accomplishes and why. 1-2 sentences max.}
16
+
17
+ ## Context
18
+
19
+ **Reference these files:**
20
+ - `@.specd/codebase/PATTERNS.md` — Code patterns to follow
21
+ - `@.specd/codebase/STRUCTURE.md` — Where files go
22
+ - `@{path/to/pattern/file}` — Pattern to follow for this task
23
+
24
+ **Relevant Decisions:**
25
+ - DEC-XXX: {Decision that affects this phase}
26
+
27
+ **From Research:** (if RESEARCH.md exists)
28
+ - {Key finding that affects implementation}
29
+ - {Pitfall to avoid}
30
+
31
+ ---
32
+
33
+ ## Tasks
34
+
35
+ ### Task 1: {Task Title}
36
+
37
+ **Files:** `{path/to/file}`
38
+
39
+ **Action:**
40
+ {Clear description of what to create or modify. Include enough detail that the implementing agent doesn't need to ask questions.}
41
+
42
+ **Verify:**
43
+ ```bash
44
+ {command to verify task is complete}
45
+ ```
46
+
47
+ **Done when:**
48
+ - [ ] {Specific, observable completion criterion}
49
+
50
+ ---
51
+
52
+ ### Task 2: {Task Title}
53
+
54
+ **Files:** `{path/to/file}`
55
+
56
+ **Action:**
57
+ {Clear description}
58
+
59
+ **Verify:**
60
+ ```bash
61
+ {verification command}
62
+ ```
63
+
64
+ **Done when:**
65
+ - [ ] {Completion criterion}
66
+
67
+ ---
68
+
69
+ ## Verification
70
+
71
+ After all tasks complete:
72
+
73
+ ```bash
74
+ {commands to verify the phase is done}
75
+ ```
76
+
77
+ **Phase is complete when:**
78
+ - [ ] All tasks marked done
79
+ - [ ] All verification commands pass
80
+
81
+ ---
82
+
83
+ ## Implementation Log
84
+
85
+ During implementation, capture decisions and deviations to `.specd/tasks/{task-name}/CHANGELOG.md`.
86
+
87
+ **When to log:**
88
+ - Choosing a different approach than specified
89
+ - Adding functionality not in the plan
90
+ - Skipping or modifying a task
91
+ - Discovering issues that change the approach
@@ -0,0 +1,121 @@
1
+ # Research: {task-name}
2
+
3
+ **Researched:** {YYYY-MM-DD}
4
+ **Confidence:** {HIGH/MEDIUM/LOW}
5
+
6
+ ## Summary
7
+
8
+ {2-3 paragraphs synthesizing all research findings}
9
+
10
+ **Key recommendation:** {One-liner actionable guidance for the planner}
11
+
12
+ ---
13
+
14
+ ## Codebase Integration
15
+
16
+ ### Import Dependencies
17
+
18
+ | Module | Provides | Path |
19
+ |--------|----------|------|
20
+ | {module} | {what it provides} | `{path}` |
21
+
22
+ ### Patterns to Follow
23
+
24
+ **{Pattern name}**
25
+ Follow pattern in `{existing file path}`:
26
+ - {Key aspect 1}
27
+ - {Key aspect 2}
28
+
29
+ ### File Structure
30
+
31
+ Where new files should go:
32
+
33
+ ```
34
+ src/
35
+ ├── {path}/ # {purpose}
36
+ │ ├── {file}.ts # {what it does}
37
+ │ └── {file}.tsx # {what it does}
38
+ ```
39
+
40
+ ### Reusable Code
41
+
42
+ - **Types:** `@{path}` — {what types}
43
+ - **Utilities:** `@{path}` — {what utilities}
44
+
45
+ ### Integration Points
46
+
47
+ | Connect To | Via | Purpose |
48
+ |------------|-----|---------|
49
+ | {system} | {how} | {why} |
50
+
51
+ ---
52
+
53
+ ## Implementation Patterns
54
+
55
+ ### Standard Approach
56
+ {Recommended approach with rationale}
57
+
58
+ ### Libraries
59
+
60
+ | Library | Version | Purpose | Confidence |
61
+ |---------|---------|---------|------------|
62
+ | {lib} | {ver}+ | {purpose} | {HIGH/MEDIUM} |
63
+
64
+ ### Code Patterns
65
+
66
+ ```{language}
67
+ // Source: {Context7 / docs URL}
68
+ {verified code example}
69
+ ```
70
+
71
+ ### Don't Hand-Roll
72
+
73
+ | Problem | Use Instead | Why |
74
+ |---------|-------------|-----|
75
+ | {problem} | {library/utility} | {edge cases it handles} |
76
+
77
+ ---
78
+
79
+ ## Pitfalls
80
+
81
+ ### Critical
82
+ - **{Pitfall}** — {description}, Prevention: {steps}
83
+
84
+ ### Moderate
85
+ - **{Pitfall}** — {description}, Prevention: {steps}
86
+
87
+ ### Warnings
88
+
89
+ | When Implementing | Watch Out For | Prevention |
90
+ |-------------------|---------------|------------|
91
+ | {task/file} | {pitfall} | {how to avoid} |
92
+
93
+ ---
94
+
95
+ ## Confidence Assessment
96
+
97
+ | Area | Level | Reason |
98
+ |------|-------|--------|
99
+ | Codebase integration | {level} | {reason} |
100
+ | Implementation approach | {level} | {reason} |
101
+ | Pitfalls | {level} | {reason} |
102
+
103
+ ## Open Questions
104
+
105
+ 1. **{Question}** — {what's unclear}, Recommendation: {how to handle}
106
+
107
+ ## Sources
108
+
109
+ ### Codebase
110
+ - `{path}` — {what was learned}
111
+
112
+ ### External
113
+ - {Context7 queries, docs URLs}
114
+
115
+ ---
116
+
117
+ ## Decisions Made
118
+
119
+ | Decision | Rationale |
120
+ |----------|-----------|
121
+ | DEC-XXX: {title} | {brief rationale} |
@@ -1,11 +1,10 @@
1
- # Roadmap: {feature-name}
1
+ # Roadmap: {task-name}
2
2
 
3
3
  ## Overview
4
4
 
5
5
  | Metric | Value |
6
6
  |--------|-------|
7
7
  | Total Phases | {N} |
8
- | Total Plans | {N} |
9
8
  | Current Phase | 1 |
10
9
  | Status | Not Started |
11
10
 
@@ -27,19 +26,15 @@
27
26
 
28
27
  **Creates:**
29
28
  - `{path/to/file}` — {Purpose}
30
- - `{path/to/file}` — {Purpose}
31
29
 
32
30
  **Modifies:**
33
31
  - `{path/to/file}` — {What change}
34
32
 
35
- **Plans:**
36
- 1. `plans/phase-01/01-PLAN.md` — {Plan summary}
37
- 2. `plans/phase-01/02-PLAN.md` — {Plan summary}
33
+ **Plan:** `phases/phase-01/PLAN.md`
38
34
 
39
35
  **Success Criteria:**
40
36
  1. {Observable behavior that proves the phase is complete}
41
37
  2. {Observable behavior}
42
- 3. {Observable behavior}
43
38
 
44
39
  **Dependencies:** None (first phase)
45
40
 
@@ -52,52 +47,26 @@
52
47
  **Creates:**
53
48
  - `{path/to/file}` — {Purpose}
54
49
 
55
- **Modifies:**
56
- - `{path/to/file}` — {What change}
57
-
58
- **Plans:**
59
- 1. `plans/phase-02/01-PLAN.md` — {Plan summary}
50
+ **Plan:** `phases/phase-02/PLAN.md`
60
51
 
61
52
  **Success Criteria:**
62
53
  1. {Observable behavior}
63
- 2. {Observable behavior}
64
54
 
65
55
  **Dependencies:** Phase 1 complete
66
56
 
67
57
  ---
68
58
 
69
- ### Phase 3: {Name}
70
-
71
- **Goal:** {What this phase achieves}
72
-
73
- **Creates:**
74
- - `{path/to/file}` — {Purpose}
75
-
76
- **Plans:**
77
- 1. `plans/phase-03/01-PLAN.md` — {Plan summary}
78
-
79
- **Success Criteria:**
80
- 1. {Observable behavior}
81
- 2. {Observable behavior}
82
-
83
- **Dependencies:** Phase 2 complete
84
-
85
- ---
86
-
87
59
  ## Execution Order
88
60
 
89
- The recommended execution order respects dependencies:
90
-
91
61
  ```
92
62
  Phase 1: {Name}
93
- ├── 01-PLAN.md: {summary}
94
- └── 02-PLAN.md: {summary}
63
+ └── PLAN.md
95
64
 
96
65
  Phase 2: {Name}
97
- └── 01-PLAN.md: {summary}
66
+ └── PLAN.md
98
67
 
99
68
  Phase 3: {Name}
100
- └── 01-PLAN.md: {summary}
69
+ └── PLAN.md
101
70
  ```
102
71
 
103
72
  ---
@@ -107,9 +76,3 @@ Phase 3: {Name}
107
76
  | Decision | Impact on Phases |
108
77
  |----------|------------------|
109
78
  | DEC-XXX: {title} | {How it affects phase ordering or content} |
110
-
111
- ---
112
-
113
- ## Notes
114
-
115
- {Space for notes about the roadmap — why phases are ordered this way, alternatives considered, etc.}
@@ -0,0 +1,93 @@
1
+ # State: {task-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
+ ### Current Phase
34
+ - Phase: none
35
+ - Started: —
36
+
37
+ ### Completed Phases
38
+ | Phase | Completed | Tasks | Deviations |
39
+ |-------|-----------|-------|------------|
40
+
41
+ ---
42
+
43
+ ## Review Cycles
44
+
45
+ | Phase | Cycle | Date | Findings | Fix Plans | Status |
46
+ |-------|-------|------|----------|-----------|--------|
47
+
48
+ ---
49
+
50
+ ## Discussion Sessions
51
+
52
+ | Date | Focus | Outcome |
53
+ |------|-------|---------|
54
+ | {YYYY-MM-DD} | Initial discussion | FEATURE.md created |
55
+
56
+ ---
57
+
58
+ ## Documents Status
59
+
60
+ | Document | Status | Last Updated |
61
+ |----------|--------|--------------|
62
+ | FEATURE.md | Created | {date} |
63
+ | CONTEXT.md | Created | {date} |
64
+ | DECISIONS.md | {N} decisions | {date} |
65
+ | RESEARCH.md | Not started | — |
66
+ | ROADMAP.md | Not started | — |
67
+ | phases/ | Not started | — |
68
+
69
+ ---
70
+
71
+ ## Decision Count
72
+
73
+ - **Active:** {N}
74
+ - **Superseded:** {N}
75
+ - **Total:** {N}
76
+
77
+ ---
78
+
79
+ ## Next Steps
80
+
81
+ {What the user should do next based on current state.}
82
+
83
+ **Resume:** `/specd:continue {task-name}` — Picks up where you left off.
84
+
85
+ ---
86
+
87
+ ## Quick Reference
88
+
89
+ - **Task:** `.specd/tasks/{task-name}/FEATURE.md`
90
+ - **Context:** `.specd/tasks/{task-name}/CONTEXT.md`
91
+ - **Decisions:** `.specd/tasks/{task-name}/DECISIONS.md`
92
+ - **Research:** `.specd/tasks/{task-name}/RESEARCH.md`
93
+ - **Roadmap:** `.specd/tasks/{task-name}/ROADMAP.md`
@@ -0,0 +1,15 @@
1
+ {
2
+ "task_name": "{name}",
3
+ "created": "{date}",
4
+ "stage": "discussion",
5
+ "discussion_sessions": 1,
6
+ "decisions_count": 0,
7
+ "phases": {
8
+ "total": 0,
9
+ "completed": 0,
10
+ "current": 1
11
+ },
12
+ "execution": {
13
+ "auto_commit": false
14
+ }
15
+ }