specdacular 0.7.0 → 0.7.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 (36) hide show
  1. package/README.md +39 -86
  2. package/commands/specd/feature/{next.md → continue.md} +6 -6
  3. package/commands/specd/feature/new.md +2 -2
  4. package/commands/specd/feature/toolbox.md +49 -0
  5. package/commands/specd/help.md +1 -146
  6. package/commands/specd/update.md +4 -6
  7. package/package.json +1 -1
  8. package/specdacular/HELP.md +84 -0
  9. package/specdacular/references/commit-code.md +34 -0
  10. package/specdacular/references/commit-docs.md +35 -0
  11. package/specdacular/references/select-feature.md +57 -0
  12. package/specdacular/references/select-phase.md +30 -0
  13. package/specdacular/templates/features/STATE.md +11 -1
  14. package/specdacular/workflows/{next-feature.md → continue-feature.md} +50 -90
  15. package/specdacular/workflows/discuss-feature.md +4 -27
  16. package/specdacular/workflows/execute-plan.md +75 -47
  17. package/specdacular/workflows/insert-phase.md +50 -26
  18. package/specdacular/workflows/map-codebase.md +4 -30
  19. package/specdacular/workflows/new-feature.md +14 -38
  20. package/specdacular/workflows/plan-feature.md +6 -29
  21. package/specdacular/workflows/plan-phase.md +4 -29
  22. package/specdacular/workflows/prepare-phase.md +4 -35
  23. package/specdacular/workflows/research-phase.md +4 -30
  24. package/specdacular/workflows/review-feature.md +316 -0
  25. package/specdacular/workflows/review-phase.md +4 -30
  26. package/specdacular/workflows/toolbox.md +115 -0
  27. package/commands/specd/feature/discuss.md +0 -66
  28. package/commands/specd/feature/plan.md +0 -68
  29. package/commands/specd/feature/research.md +0 -459
  30. package/commands/specd/phase/execute.md +0 -68
  31. package/commands/specd/phase/insert.md +0 -62
  32. package/commands/specd/phase/plan.md +0 -73
  33. package/commands/specd/phase/prepare.md +0 -75
  34. package/commands/specd/phase/renumber.md +0 -66
  35. package/commands/specd/phase/research.md +0 -65
  36. package/commands/specd/phase/review.md +0 -80
@@ -1,75 +0,0 @@
1
- ---
2
- name: specd:phase:prepare
3
- description: Discuss gray areas and optionally research patterns for a phase
4
- argument-hint: "[feature-name] [phase-number]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - Task
13
- - AskUserQuestion
14
- ---
15
-
16
- <objective>
17
- Prepare a phase for execution by discussing gray areas and optionally researching implementation patterns. Combines discussion and research into a single flow.
18
-
19
- **Discussion always happens.** Research is offered as an optional step at the end.
20
-
21
- **Updates:**
22
- - `.specd/features/{name}/plans/phase-{NN}/CONTEXT.md` — Phase-specific discussion resolutions
23
- - `.specd/features/{name}/DECISIONS.md` — Accumulates decisions with dates/rationale
24
- - `.specd/features/{name}/plans/phase-{NN}/RESEARCH.md` — Phase research (if opted in)
25
-
26
- **Why merged?** Discussing a phase often reveals what needs researching. Single command, natural flow.
27
- </objective>
28
-
29
- <execution_context>
30
- @~/.claude/specdacular/workflows/prepare-phase.md
31
- </execution_context>
32
-
33
- <context>
34
- Arguments: $ARGUMENTS (expects: feature-name phase-number)
35
-
36
- **Load feature context:**
37
- @.specd/features/{name}/FEATURE.md
38
- @.specd/features/{name}/CONTEXT.md
39
- @.specd/features/{name}/DECISIONS.md
40
- @.specd/features/{name}/ROADMAP.md
41
-
42
- **Load phase context:**
43
- @.specd/features/{name}/plans/phase-{NN}/*.md (plan files)
44
-
45
- **Load codebase context (if available):**
46
- @.specd/codebase/PATTERNS.md
47
- @.specd/codebase/STRUCTURE.md
48
- @.specd/codebase/MAP.md
49
- </context>
50
-
51
- <process>
52
- 1. **Validate** — Feature exists, phase exists in ROADMAP.md
53
- 2. **Load Context** — Phase details from ROADMAP.md, plans in phase, feature DECISIONS.md
54
- 3. **Show Phase State** — Present phase overview and existing context
55
- 4. **Identify Gray Areas** — Phase-type-specific concerns
56
- 5. **Probe Gray Areas** — 4 questions per area, then move on
57
- 6. **Record Discussion** — Save to phase CONTEXT.md, update DECISIONS.md
58
- 7. **Offer Research** — "Would you like to research implementation patterns?"
59
- 8. If yes: **Spawn Research Agents** — 3 parallel agents for phase-specific research
60
- 9. If yes: **Synthesize Research** — Combine into phase RESEARCH.md
61
- 10. If yes: **Record Research Decisions** — Technology choices to DECISIONS.md
62
- 11. **Commit and Complete** — Points to `/specd:phase:plan` or `/specd:phase:execute`
63
- </process>
64
-
65
- <success_criteria>
66
- - [ ] Feature and phase validated
67
- - [ ] Phase context loaded (plans, goals, files to create/modify)
68
- - [ ] Phase-type-specific gray areas identified
69
- - [ ] User-selected areas discussed
70
- - [ ] Decisions recorded with date, context, rationale
71
- - [ ] Phase CONTEXT.md created/updated with resolved questions
72
- - [ ] Research completed (if user opted in)
73
- - [ ] Committed to git
74
- - [ ] User knows next steps: `/specd:phase:plan` or `/specd:phase:execute`
75
- </success_criteria>
@@ -1,66 +0,0 @@
1
- ---
2
- name: specd:phase:renumber
3
- description: Renumber phases to clean integer sequence
4
- argument-hint: "[feature-name]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - AskUserQuestion
13
- ---
14
-
15
- <objective>
16
- Renumber all phases to a clean integer sequence after decimal phases have been inserted.
17
-
18
- **What it does:**
19
- 1. Validate — Feature exists with plans and ROADMAP.md
20
- 2. Collect phases — List all phase directories, build old->new mapping
21
- 3. Preview — Show renumbering plan, ask user to confirm
22
- 4. Rename directories — Process highest-to-lowest to avoid collisions
23
- 5. Update plan frontmatter — Fix phase references in plan files
24
- 6. Update ROADMAP.md — Rewrite phase headers, remove `(INSERTED)` markers
25
- 7. Update STATE.md — Rewrite phase references everywhere
26
- 8. Update config.json — Set `phases_count` to new total
27
- 9. Show summary
28
- </objective>
29
-
30
- <execution_context>
31
- @~/.claude/specdacular/workflows/renumber-phases.md
32
- </execution_context>
33
-
34
- <context>
35
- Arguments: $ARGUMENTS (expects: feature-name)
36
-
37
- **Load feature context:**
38
- @.specd/features/{name}/ROADMAP.md
39
- @.specd/features/{name}/STATE.md
40
- @.specd/features/{name}/config.json
41
- @.specd/features/{name}/plans/ (all phase directories and plan files)
42
- </context>
43
-
44
- <process>
45
- 1. **Validate** — Feature exists with plans directory and ROADMAP.md
46
- 2. **Collect Phases** — Build sorted list and renumbering mapping
47
- 3. **Preview** — Show mapping, confirm with user
48
- 4. **Rename Directories** — Highest target number down to avoid collisions
49
- 5. **Update Plan Frontmatter** — Fix phase/depends_on in plan YAML
50
- 6. **Update ROADMAP.md** — Rewrite headers, remove `(INSERTED)` markers
51
- 7. **Update STATE.md** — Rewrite all phase references
52
- 8. **Update config.json** — Set `phases_count` to integer count
53
- 9. **Completion** — Show summary of changes
54
- </process>
55
-
56
- <success_criteria>
57
- - [ ] Feature validated with plans and ROADMAP.md
58
- - [ ] All phase directories collected and sorted correctly
59
- - [ ] Renumbering mapping shown to user and confirmed
60
- - [ ] Directories renamed without collisions (highest-to-lowest)
61
- - [ ] Plan file frontmatter updated (phase, depends_on)
62
- - [ ] ROADMAP.md headers and references updated, `(INSERTED)` markers removed
63
- - [ ] STATE.md phase references updated everywhere
64
- - [ ] config.json `phases_count` updated
65
- - [ ] Summary shown to user
66
- </success_criteria>
@@ -1,65 +0,0 @@
1
- ---
2
- name: specd:phase:research
3
- description: Research implementation patterns for a phase
4
- argument-hint: "[feature-name] [phase-number]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - Task
13
- - AskUserQuestion
14
- ---
15
-
16
- <objective>
17
- Research implementation patterns for a specific phase before executing it. Spawns parallel research agents focused on the phase's scope.
18
-
19
- **Output:** `.specd/features/{name}/plans/phase-{NN}/RESEARCH.md` with phase-specific guidance.
20
-
21
- **Why phase-level research?** Instead of researching the entire feature upfront, investigate each phase's specifics right before executing it. Smaller scope, more focused, fresher context.
22
-
23
- **Note:** This is also available as part of `/specd:phase:prepare`. Use this standalone command when you want to research without discussing first.
24
- </objective>
25
-
26
- <execution_context>
27
- @~/.claude/specdacular/workflows/research-phase.md
28
- </execution_context>
29
-
30
- <context>
31
- Arguments: $ARGUMENTS (expects: feature-name phase-number)
32
-
33
- **Load feature context:**
34
- @.specd/features/{name}/FEATURE.md
35
- @.specd/features/{name}/DECISIONS.md
36
- @.specd/features/{name}/ROADMAP.md
37
- @.specd/features/{name}/RESEARCH.md (if exists, feature-level research)
38
-
39
- **Load phase context:**
40
- @.specd/features/{name}/plans/phase-{NN}/CONTEXT.md (if exists)
41
- @.specd/features/{name}/plans/phase-{NN}/*.md (plan files)
42
-
43
- **Load codebase context:**
44
- @.specd/codebase/PATTERNS.md
45
- @.specd/codebase/STRUCTURE.md
46
- @.specd/codebase/MAP.md
47
- </context>
48
-
49
- <process>
50
- 1. **Validate** — Feature and phase exist
51
- 2. **Load Context** — Phase goals, files to create/modify, previous phase research
52
- 3. **Spawn Research Agents** — 3 parallel agents for phase-specific research
53
- 4. **Synthesize** — Combine into `plans/phase-{NN}/RESEARCH.md`
54
- 5. **Record Decisions** — Technology choices to DECISIONS.md
55
- 6. **Commit**
56
- </process>
57
-
58
- <success_criteria>
59
- - [ ] Feature and phase validated
60
- - [ ] Phase context loaded (goals, files, type)
61
- - [ ] Research agents spawned (codebase, patterns, pitfalls)
62
- - [ ] Results synthesized into phase RESEARCH.md
63
- - [ ] Decisions recorded in DECISIONS.md
64
- - [ ] Committed to git
65
- </success_criteria>
@@ -1,80 +0,0 @@
1
- ---
2
- name: specd:phase:review
3
- description: Review executed plans against actual code and identify deviations
4
- argument-hint: "[feature-name] [phase-number]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - AskUserQuestion
13
- ---
14
-
15
- <objective>
16
- Review executed plans for a phase, comparing intended changes against actual code. Surfaces deviations, captures decisions, and generates corrective plans when needed.
17
-
18
- **What it does:**
19
- 1. Load context — STATE.md, plans, DECISIONS.md, codebase docs
20
- 2. Filter plans — Only review plans with status Complete (DEC-006)
21
- 3. Inspect each plan — Compare creates/modifies frontmatter against actual files
22
- 4. Present findings — Per-plan status table with expandable details (DEC-005)
23
- 5. Gather user input — Ask about satisfaction, additional issues (DEC-001)
24
- 6. Record decisions — New decisions to DECISIONS.md
25
- 7. Generate correctives — Corrective plans if issues found (DEC-003)
26
- 8. Update state — Review Cycles in STATE.md (DEC-004)
27
- 9. Commit and suggest next steps
28
- </objective>
29
-
30
- <execution_context>
31
- @~/.claude/specdacular/workflows/review-phase.md
32
- </execution_context>
33
-
34
- <context>
35
- Feature name: $ARGUMENTS (first argument)
36
- Phase number: $ARGUMENTS (second argument)
37
-
38
- **Load ALL feature context:**
39
- @.specd/features/{name}/STATE.md — Progress tracking, completed plans
40
- @.specd/features/{name}/DECISIONS.md — Existing decisions
41
- @.specd/features/{name}/RESEARCH.md — Implementation notes (if exists)
42
- @.specd/features/{name}/ROADMAP.md — Phase overview
43
- @.specd/features/{name}/CHANGELOG.md — Existing deviations (if exists)
44
-
45
- **Load plan files for the phase:**
46
- @.specd/features/{name}/plans/phase-{NN}/*.md — All plan files
47
-
48
- **Load codebase context:**
49
- @.specd/codebase/PATTERNS.md — Code patterns
50
- @.specd/codebase/STRUCTURE.md — File locations
51
- @.specd/codebase/MAP.md — System overview
52
- </context>
53
-
54
- <process>
55
- 1. **Validate** — Feature exists, phase exists, has execution history
56
- 2. **Load Context** — Read all feature, plan, and codebase docs
57
- 3. **Filter Plans** — Get only completed plans for this phase
58
- 4. **Inspect Phase** — Compare each plan's intent against actual code
59
- 5. **Present Findings** — Per-plan status table + deviation details
60
- 6. **Gather User Input** — Ask about satisfaction, additional issues
61
- 7. **Record Decisions** — Save new decisions to DECISIONS.md
62
- 8. **Generate Correctives** — Create corrective plans if needed
63
- 9. **Update State** — Update Review Cycles section in STATE.md
64
- 10. **Update Changelog** — Log deviations to CHANGELOG.md
65
- 11. **Commit and Next** — Commit changes, suggest next steps
66
- </process>
67
-
68
- <success_criteria>
69
- - [ ] Feature and phase validated with execution history
70
- - [ ] All completed plans inspected against actual code
71
- - [ ] Per-plan status table displayed (✅/⚠️/❌/⏸️)
72
- - [ ] Deviations surfaced with planned vs actual comparison
73
- - [ ] User input captured (satisfaction, additional issues)
74
- - [ ] New decisions recorded in DECISIONS.md
75
- - [ ] Corrective plans generated if issues identified
76
- - [ ] Review Cycles section updated in STATE.md
77
- - [ ] Deviations logged in CHANGELOG.md
78
- - [ ] Changes committed
79
- - [ ] Next steps suggested
80
- </success_criteria>