bigpowers 1.2.3 → 1.3.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 (65) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/CLAUDE.md +5 -4
  3. package/CONVENTIONS.md +55 -13
  4. package/README.md +10 -8
  5. package/SKILL-INDEX.md +14 -11
  6. package/assess-impact/SKILL.md +2 -2
  7. package/build-epic/SKILL.md +42 -0
  8. package/change-request/SKILL.md +16 -16
  9. package/compose-workflow/REFERENCE.md +3 -3
  10. package/compose-workflow/SKILL.md +1 -1
  11. package/deepen-architecture/SKILL.md +6 -6
  12. package/define-success/SKILL.md +1 -1
  13. package/delegate-task/SKILL.md +4 -4
  14. package/develop-tdd/SKILL.md +5 -5
  15. package/dispatch-agents/SKILL.md +2 -2
  16. package/evolve-skill/SKILL.md +2 -2
  17. package/execute-plan/SKILL.md +22 -59
  18. package/fix-bug/SKILL.md +37 -0
  19. package/grill-with-docs/SKILL.md +1 -1
  20. package/inspect-quality/SKILL.md +5 -5
  21. package/investigate-bug/SKILL.md +2 -2
  22. package/kickoff-branch/SKILL.md +1 -1
  23. package/map-codebase/SKILL.md +4 -4
  24. package/migrate-spec/REFERENCE-GSD.md +35 -41
  25. package/migrate-spec/REFERENCE.md +43 -44
  26. package/migrate-spec/SKILL.md +20 -20
  27. package/model-domain/SKILL.md +7 -7
  28. package/orchestrate-project/REFERENCE.md +10 -10
  29. package/orchestrate-project/SKILL.md +13 -16
  30. package/package.json +7 -7
  31. package/plan-release/SKILL.md +63 -39
  32. package/plan-work/SKILL.md +6 -6
  33. package/request-review/SKILL.md +2 -2
  34. package/research-first/SKILL.md +3 -3
  35. package/run-evals/REFERENCE.md +1 -1
  36. package/run-planning/SKILL.md +24 -0
  37. package/scope-work/SKILL.md +6 -6
  38. package/scripts/bp-yaml-set.sh +9 -0
  39. package/scripts/bp-yaml-snapshot.sh +23 -0
  40. package/scripts/convert-legado.sh +153 -0
  41. package/scripts/enrich-epics-from-archive.sh +101 -0
  42. package/scripts/land-branch.sh +5 -1
  43. package/scripts/project-survey.sh +18 -9
  44. package/scripts/sync-bugs-registry.sh +53 -0
  45. package/scripts/sync-skills.sh +5 -5
  46. package/scripts/sync-status-from-epics.sh +51 -0
  47. package/scripts/validate-specs-yaml.sh +41 -0
  48. package/scripts/yaml-tools.py +144 -0
  49. package/seed-conventions/SKILL.md +3 -3
  50. package/session-state/SKILL.md +59 -50
  51. package/setup-environment/SKILL.md +1 -1
  52. package/slice-tasks/SKILL.md +6 -6
  53. package/spike-prototype/SKILL.md +5 -5
  54. package/survey-context/SKILL.md +38 -27
  55. package/trace-requirement/SKILL.md +8 -8
  56. package/using-bigpowers/SKILL.md +10 -9
  57. package/validate-fix/SKILL.md +4 -4
  58. package/verify-work/SKILL.md +12 -17
  59. package/visual-dashboard/SKILL.md +25 -74
  60. package/visual-dashboard/scripts/cockpit.html +66 -0
  61. package/visual-dashboard/scripts/read-specs-status.cjs +123 -0
  62. package/visual-dashboard/scripts/server.cjs +40 -0
  63. package/write-document/SKILL.md +1 -1
  64. package/maintain-wiki/SKILL.md +0 -130
  65. package/profiles/obsidian-wiki.md +0 -120
@@ -1,92 +1,55 @@
1
1
  ---
2
2
  name: execute-plan
3
3
  model: haiku
4
- description: Batch-execute tasks from specs/RELEASE-PLAN.md sequentially, with a human checkpoint after each step. Use when user has an approved plan and wants to execute it step-by-step with oversight, or mentions "execute the plan" or "run the plan".
4
+ description: Batch-execute tasks from the active epic shard sequentially, with a human checkpoint after each step. Use when user has an approved plan and wants step-by-step oversight.
5
5
  ---
6
6
 
7
7
  # Execute Plan
8
8
 
9
- Execute the tasks in `specs/RELEASE-PLAN.md` one at a time, showing evidence after each step before proceeding.
9
+ Execute tasks from the **active epic** (`specs/epics/eNN-*.yaml` story `tasks[]`) one at a time, showing evidence after each step before proceeding.
10
10
 
11
- > **HARD GATE** — Do NOT proceed if on `main` or `master`. Run `kickoff-branch` first to create a feature branch or worktree.
11
+ > **HARD GATE** — Do NOT proceed if on `main` or `master`. Run `kickoff-branch` first.
12
12
  >
13
- > **HARD GATE** — Do NOT execute a plan if `specs/RELEASE-PLAN.md` does not exist or if its tasks lack runnable `verify:` commands. If the plan is missing or weak, run `plan-release` then `plan-work` first.
13
+ > **HARD GATE** — Active epic must exist with runnable `verify` on each task. If missing, run `plan-release` then `plan-work` or `build-epic`.
14
14
 
15
15
  ## Process
16
16
 
17
17
  ### 1. Read the plan
18
18
 
19
- Read `specs/RELEASE-PLAN.md` in full. Parse `depends-on:` fields from `specs/TASKS.md` or story steps to build **execution waves** (steps with no unresolved deps run in parallel when user approves).
19
+ Read `specs/state.yaml` (`active_epic`, `active_story`) and the matching `specs/epics/*.yaml`. Parse `depends-on` in task descriptions for execution waves.
20
20
 
21
- > **CONTEXT ISOLATION** — Spawn each skill invocation (via `delegate-task` / subagent) with a **fresh context window**. Pass decisions only through `specs/STATE.md` — never rely on chat history from prior spawns.
21
+ > **CONTEXT ISOLATION** — Spawn each skill with a **fresh context window**. Pass decisions only through `specs/state.yaml` `handoff` — never rely on prior chat history.
22
22
 
23
- Confirm with the user:
24
- - How many steps are there?
25
- - Any steps to skip or reorder?
26
- - Should you stop after a specific step?
23
+ Confirm with the user: step count, skip/reorder, stop-after step.
27
24
 
28
25
  ### 2. Execute step by step
29
26
 
30
- For each step in the plan:
27
+ For each task in the active story:
31
28
 
32
- **a. Announce the step**
33
- ```
34
- ─── Step N of M ─────────────────────────
35
- Task: [step description]
36
- verify: [verify command]
37
- ```
29
+ **a. Announce** task `desc` and `verify` command.
38
30
 
39
- **b. Execute the work**
31
+ **b. Execute** code or `delegate-task` / `dispatch-agents` for waves.
40
32
 
41
- For **wave execution**: group steps that share no `depends-on:` edges; run wave members in parallel via `dispatch-agents`; wait for all verify commands green before next wave. Use atomic `STATE.md` updates (read-modify-write one block) to avoid race conditions.
33
+ **c. Run verify** must be green before advancing.
42
34
 
43
- Implement each step using:
44
- - Write/edit code directly for small focused changes
45
- - Spawn a subagent via `delegate-task` for complex isolated work (fresh context; read STATE.md first)
35
+ **d. Log** non-obvious decisions in `specs/state.yaml` under `decisions[]` or `handoff` block.
46
36
 
47
- > **STREAM CONTINUITY** — When writing file content, output in continuous chunks of ~200 lines. Do not pause. Continue immediately until complete. If you need time, emit a placeholder comment rather than going silent.
37
+ **e. Checkpoint** — ask to proceed unless autonomous mode requested.
48
38
 
49
- **c. Run the verify command**
50
- Every task in `specs/RELEASE-PLAN.md` must have a `verify: <cmd>`. Run it and show the output.
39
+ **f. Story UAT** — after last task, run manual verification script from story notes or `verify-work`.
51
40
 
52
- **d. Log the decision**
53
- After verify passes, append to `specs/STATE.md` under `## Active Decisions`:
54
- ```
55
- **Step N — [short name]**: [what approach was chosen and why — one sentence]
56
- ```
57
- Only log if a non-obvious decision was made (approach chosen, constraint discovered, blocker resolved). Skip if the step was mechanical.
41
+ On verify failure: fix and re-run; never advance on red.
58
42
 
59
- **e. Checkpoint**
60
- Report the result and ask: "Step N complete. Proceed to step N+1?" (or proceed automatically if the user asked for fully autonomous execution)
43
+ Update `specs/execution-status.yaml` when a story/epic completes (`bash scripts/sync-status-from-epics.sh` or direct edit).
61
44
 
62
- **f. Story Verification (UAT)**
63
- After the last step of a Story is completed:
64
- 1. Present the **Verification Script** from `specs/RELEASE-PLAN.md` for this story.
65
- 2. Ask the user to perform the manual verification steps.
66
- 3. Wait for the user to confirm "pass" or describe issues.
67
- 4. If issues are reported, log them and stop execution for diagnosis.
45
+ ### 3. Blockers
68
46
 
69
- If verify fails:
70
- - Do NOT move to the next step — never advance on a red verify
71
- - Diagnose the failure
72
- - Fix it and re-run verify
73
- - Loop on this step until the verify command is green
74
- - Only then proceed to the next step
47
+ Report blocker; ask skip/adapt/stop; update epic shard if plan changes.
75
48
 
76
- If verify passes but behavioral correctness is in doubt, do not advance — a mechanical green is not enough; confirm behavior is correct first.
77
-
78
- ### 3. Handle blockers
49
+ ### 4. Final report
79
50
 
80
- If a step cannot be completed as written:
81
- - Report the blocker clearly
82
- - Ask the user whether to skip, adapt, or stop
83
- - Update `specs/RELEASE-PLAN.md` if the plan needs revision
51
+ Suggest: `verify-work` `run-evals` `audit-code` `simulate-agents` → `commit-message` → `release-branch`
84
52
 
85
- ### 4. Final report
53
+ ## Rules
86
54
 
87
- After all steps complete:
88
- ```
89
- ✓ Plan complete: N/N steps executed
90
- All verify commands passed.
91
- Suggested next: verify-work → run-evals → audit-code → simulate-agents → commit-message → release-branch
92
- ```
55
+ - **Loop until behavioral correctness is verified**: if a verify command passes but the observed behavior is still wrong, return to step 1 and run the execution cycle again.
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: fix-bug
3
+ model: sonnet
4
+ description: Bug fix orchestrator — active_flow fix_bug; reads specs/bugs/BUG-*.md; chains investigate-bug, develop-tdd, validate-fix. Use when user reports a defect.
5
+ ---
6
+
7
+ # Fix Bug
8
+
9
+ Orchestrates **fix_bug** flow without mixing epic build state.
10
+
11
+ > **HARD GATE** — Set `specs/state.yaml` `active_flow: fix_bug`.
12
+
13
+ ## Process
14
+
15
+ 1. If no `specs/bugs/BUG-*.md`, run `investigate-bug` first (YAML frontmatter + fix plan in file).
16
+ 2. `develop-tdd` against the bug file's verify steps.
17
+ 3. `validate-fix` — re-run failing test, full suite, lint.
18
+ 4. `bash scripts/sync-bugs-registry.sh` — refresh `specs/bugs/registry.yaml`.
19
+ 5. Clear `active_flow` or return to `build_epic` when done.
20
+
21
+ ## Bug file SoT
22
+
23
+ One markdown file per bug with frontmatter:
24
+
25
+ ```yaml
26
+ ---
27
+ bug_id: BUG-001
28
+ status: open
29
+ severity: high
30
+ scope: api
31
+ title: Short title
32
+ ---
33
+ ```
34
+
35
+ ## Verify
36
+
37
+ → verify: `test -d specs/bugs && bash scripts/sync-bugs-registry.sh`
@@ -10,7 +10,7 @@ model: opus
10
10
 
11
11
  ## Process
12
12
 
13
- 1. Read the plan or design under test (`specs/RELEASE-PLAN.md`, INTERFACE-OPTIONS.md, etc.).
13
+ 1. Read the plan or design under test (`specs/release-plan.yaml + epic shards`, INTERFACE-OPTIONS.md, etc.).
14
14
  2. List assumptions that depend on external libraries or APIs.
15
15
  3. For each assumption: fetch or quote official docs; challenge with "docs say X, plan says Y."
16
16
  4. Resolve or update the plan inline; unresolved items block `plan-work`.
@@ -1,12 +1,12 @@
1
1
  ---
2
2
  name: inspect-quality
3
3
  model: sonnet
4
- description: Interactive QA session where user reports bugs or issues conversationally, and the agent logs them to specs/bugs/BUG-LOG.md with a structured audit schema. Explores the codebase in the background for context and domain language. Use when user wants to report bugs, do QA, or mentions "QA session".
4
+ description: Interactive QA session where user reports bugs or issues conversationally, and the agent logs them to specs/bugs/registry.yaml with a structured audit schema. Explores the codebase in the background for context and domain language. Use when user wants to report bugs, do QA, or mentions "QA session".
5
5
  ---
6
6
 
7
7
  # Inspect Quality
8
8
 
9
- Run an interactive QA session. The user describes problems they're encountering. You clarify, explore the codebase for context, and log each issue to `specs/bugs/BUG-LOG.md` with a structured, durable format.
9
+ Run an interactive QA session. The user describes problems they're encountering. You clarify, explore the codebase for context, and log each issue to `specs/bugs/registry.yaml` with a structured, durable format.
10
10
 
11
11
  ## For each issue the user raises
12
12
 
@@ -41,11 +41,11 @@ Keep as a single issue when:
41
41
  - It's one behavior that's wrong in one place
42
42
  - The symptoms are all caused by the same root behavior
43
43
 
44
- ### 4. Log to specs/bugs/BUG-LOG.md
44
+ ### 4. Log to specs/bugs/registry.yaml
45
45
 
46
- Append the issue to `specs/bugs/BUG-LOG.md`. Create the `specs/bugs/` directory if it doesn't exist.
46
+ Append the issue to `specs/bugs/registry.yaml`. Create the `specs/bugs/` directory if it doesn't exist.
47
47
 
48
- #### BUG-LOG.md format
48
+ #### registry.yaml format
49
49
 
50
50
  The file maintains a Markdown table with the following columns (derived from structured audit practice):
51
51
 
@@ -14,7 +14,7 @@ Investigate a reported problem, find its root cause, and write a TDD fix plan to
14
14
 
15
15
  Before starting diagnosis:
16
16
 
17
- 1. Read `specs/bugs/BUG-LOG.md` (if it exists) — check for prior bugs in the same `scope` or with similar symptoms.
17
+ 1. Read `specs/bugs/registry.yaml` (if it exists) — check for prior bugs in the same `scope` or with similar symptoms.
18
18
  2. If a relevant prior bug is found, read the corresponding `specs/bugs/BUG-*.md` file to understand previous root cause analysis and fix approach.
19
19
  3. Note in your investigation whether this is a recurrence, a related issue, or novel.
20
20
 
@@ -71,7 +71,7 @@ Rules:
71
71
 
72
72
  Save the investigation and fix plan to `specs/bugs/BUG-YYYY-MM-DDTHHMMSS.md`. Create the `specs/bugs/` directory if it doesn't exist.
73
73
 
74
- After writing, append a row to `specs/bugs/BUG-LOG.md` with: bug_id (same timestamp), date, severity, priority, scope, summary, and file path. Create `specs/bugs/BUG-LOG.md` if it doesn't exist.
74
+ After writing, append a row to `specs/bugs/registry.yaml` with: bug_id (same timestamp), date, severity, priority, scope, summary, and file path. Create `specs/bugs/registry.yaml` if it doesn't exist.
75
75
 
76
76
  <diagnosis-template>
77
77
 
@@ -92,4 +92,4 @@ Worktree: ../<task-slug>
92
92
  Ready to develop.
93
93
  ```
94
94
 
95
- Suggest next skill: `develop-tdd` to start the TDD loop, or `execute-plan` if `specs/RELEASE-PLAN.md` already exists.
95
+ Suggest next skill: `develop-tdd` to start the TDD loop, or `execute-plan` if `specs/release-plan.yaml + epic shards` already exists.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: map-codebase
3
3
  model: sonnet
4
- description: "High-fidelity codebase surveying — analyzes stack, architecture, and gray areas (error handling, API shapes) and persists them into specs/CONTEXT.md. Goes beyond survey-context by identifying 'signals' for planning."
4
+ description: "High-fidelity codebase surveying — analyzes stack, architecture, and gray areas (error handling, API shapes) and persists them into specs/plans/TECH_STACK_LATEST.md. Goes beyond survey-context by identifying 'signals' for planning."
5
5
  ---
6
6
 
7
7
  # Map Codebase
@@ -36,8 +36,8 @@ Look for signals that will influence upcoming plans:
36
36
  - **Integration Points:** "We need to talk to the Stripe API, but there's no wrapper yet."
37
37
  - **Conventions:** "The team always uses functional components over classes."
38
38
 
39
- ### 5. Persist to specs/CONTEXT.md
40
- Compile all findings into `specs/CONTEXT.md`. This file serves as the project's "Long-Term Memory".
39
+ ### 5. Persist to specs/plans/TECH_STACK_LATEST.md
40
+ Compile all findings into `specs/plans/TECH_STACK_LATEST.md`. This file serves as the project's "Long-Term Memory".
41
41
 
42
42
  ```markdown
43
43
  # Project Context
@@ -64,4 +64,4 @@ Compile all findings into `specs/CONTEXT.md`. This file serves as the project's
64
64
  - When first joining a project.
65
65
  - Before a major refactor or architectural change.
66
66
  - When `survey-context` reveals a lack of domain knowledge.
67
- - To refresh `specs/CONTEXT.md` after significant changes.
67
+ - To refresh `specs/plans/TECH_STACK_LATEST.md` after significant changes.
@@ -1,6 +1,6 @@
1
1
  # migrate-spec Reference — GSD
2
2
 
3
- Full artifact transformation rules for migrating GSD projects to bigpowers.
3
+ Full artifact transformation rules for migrating GSD projects to bigpowers YAML layout.
4
4
 
5
5
  See [REFERENCE.md](./REFERENCE.md) for spec-kit, BMAD, learnings, and ADR/DECISION-LOG formats.
6
6
 
@@ -32,95 +32,89 @@ GSD stores everything under `.planning/` at the project root.
32
32
 
33
33
  ## Transformation Rules
34
34
 
35
- ### `.planning/ROADMAP.md` → `specs/RELEASE-PLAN.md`
35
+ ### `.planning/ROADMAP.md` → `specs/release-plan.yaml` + `specs/epics/eNN-*.yaml`
36
36
 
37
37
  GSD ROADMAP has: milestone name, phases, success criteria per phase, plan count.
38
38
 
39
- bigpowers RELEASE-PLAN needs: release version, status, WSJF, focus, objective.
40
-
41
39
  Transform:
42
- - Each GSD phase → one release entry in RELEASE-PLAN.md
43
- - Phase namerelease name (add version number e.g. v1.0.0)
44
- - GSD success criteria "Success Criteria" subsection under each release entry
45
- - Phase plan count → "Job Size" hint for WSJF (ask user to score)
46
- - Completed phases → `✅` status; active phase → `⏳`; future phases → `📋`
40
+ - Each GSD phase → one epic entry in `release-plan.yaml` (`id`, `title`, `wsjf`, `file`)
41
+ - Phase detailmatching `specs/epics/eNN-slug.yaml` (stories, tasks, `verify`)
42
+ - Completed phases`done` in `execution-status.yaml`; active `in_progress`
47
43
 
48
44
  ---
49
45
 
50
- ### `.planning/REQUIREMENTS.md` → `specs/SCOPE.md`
46
+ ### `.planning/REQUIREMENTS.md` → `specs/requirements/SCOPE_LATEST.yaml`
51
47
 
52
48
  GSD REQUIREMENTS has: REQ-XX IDs, Validated/Active/Out-of-Scope categories, traceability.
53
49
 
54
50
  Transform:
55
51
  - Copy REQ-XX IDs as-is (preserve for cross-referencing)
56
- - Validated requirements → "In Scope" section
57
- - Out-of-Scope → "Out of Scope" section
58
- - Active (in-progress) → "In Scope (WIP)" section
59
- - Add header: `# Scope — migrated from GSD REQUIREMENTS.md`
52
+ - Validated requirements → `in_scope` entries
53
+ - Out-of-Scope → `out_of_scope` entries
54
+ - Active (in-progress) → `in_scope` with status note
60
55
 
61
56
  ---
62
57
 
63
- ### `.planning/phases/XX-name/XX-CONTEXT.md` → `specs/CONTEXT.md` + `specs/adr/`
58
+ ### `.planning/phases/XX-name/XX-CONTEXT.md` → `specs/plans/TECH_STACK_LATEST.md` + `specs/adr/`
64
59
 
65
60
  GSD CONTEXT.md has 6 sections: domain, decisions, canonical_refs, code_context, specifics, deferred.
66
61
 
67
62
  Transform:
68
- - `domain` → `specs/CONTEXT.md` Domain section (domain model, terms, aggregates)
63
+ - `domain` → `plans/TECH_STACK_LATEST.md` Domain section
69
64
  - `decisions` → scan each: if hard-to-reverse + surprising → `specs/adr/NNNN-{slug}.md`; if lightweight → `specs/DECISION-LOG.md`
70
- - `canonical_refs` → Reference links in CONTEXT.md
71
- - `code_context` → `specs/CONTEXT.md` Architecture section
72
- - `specifics` → merge into relevant CONTEXT.md section
73
- - `deferred` → `specs/SCOPE.md` Out-of-Scope section (with "(deferred from GSD)" note)
65
+ - `canonical_refs` → Reference links in TECH_STACK
66
+ - `code_context` → Architecture section
67
+ - `deferred` → `SCOPE_LATEST.yaml` `out_of_scope` (with "(deferred from GSD)" note)
74
68
 
75
69
  ---
76
70
 
77
- ### `.planning/phases/XX-name/XX-YY-PLAN.md` → `specs/PLAN-vX.Y.Z.md`
71
+ ### `.planning/phases/XX-name/XX-YY-PLAN.md` → `specs/epics/eNN-*.yaml` tasks
78
72
 
79
73
  GSD PLAN has: frontmatter (depends-on, verify), objective, typed tasks, success criteria, output spec.
80
74
 
81
75
  Transform:
82
- - Preserve task structure
83
- - Keep `verify: <command>` lines (same format bigpowers uses)
84
- - Map GSD `depends-on` to a "Dependencies" note in bigpowers PLAN header
85
- - Add bigpowers frontmatter with release version
86
- - SUMMARY.md (execution record) → append as "## Execution Record" if needed; otherwise skip
76
+ - Preserve task structure as `tasks[]` in epic shard
77
+ - Keep `verify: <command>` lines
78
+ - Map GSD `depends-on` to task `depends-on` notes
79
+ - SUMMARY.md (execution record) skip or append to `specs/archive/`
87
80
 
88
81
  ---
89
82
 
90
- ### `.planning/METHODOLOGY.md` → `specs/SPIKE-methodology.md`
83
+ ### `.planning/METHODOLOGY.md` → `specs/plans/METHODOLOGY_LATEST.md`
91
84
 
92
- GSD METHODOLOGY.md is a standing reference for analytical lenses (Bayesian updating, STRIDE, cost-of-delay). bigpowers has no direct equivalent.
85
+ GSD METHODOLOGY.md is a standing reference for analytical lenses (Bayesian updating, STRIDE, cost-of-delay).
93
86
 
94
87
  Transform:
95
- - Copy each lens as a section in `specs/SPIKE-methodology.md`
96
- - Add header: `# Project Methodology — migrated from GSD`
88
+ - Copy each lens as a section in `specs/plans/METHODOLOGY_LATEST.md`
97
89
  - Note: "These lenses should inform `plan-work` and `audit-code` sessions."
98
90
 
99
91
  ---
100
92
 
101
- ### `.planning/HANDOFF.json` + `.continue-here.md` → `specs/STATE.md` (resume block)
93
+ ### `.planning/HANDOFF.json` + `.continue-here.md` → `specs/state.yaml` `handoff`
102
94
 
103
95
  GSD HANDOFF has: current phase, last plan, blocking reason, required reading list.
104
96
 
105
- Transform — add a "## Session Resume" block to `specs/STATE.md`:
106
-
107
- ```markdown
108
- ## Session Resume
97
+ Transform — populate `handoff` in `state.yaml`:
109
98
 
110
- - Last active: <phase/plan from HANDOFF>
111
- - Blocking: <reason if any>
112
- - Required reading before next session: <required_reading list>
99
+ ```yaml
100
+ handoff:
101
+ last_step_completed: "<phase/plan from HANDOFF>"
102
+ open_decisions:
103
+ - "<blocking reason if any>"
104
+ required_reading:
105
+ - "<required_reading list>"
106
+ next_skill: survey-context
113
107
  ```
114
108
 
115
109
  ---
116
110
 
117
- ### `.planning/spikes/SPIKE-NNN/README.md` → `specs/SPIKE-{name}.md`
111
+ ### `.planning/spikes/SPIKE-NNN/README.md` → `specs/archive/spikes/SPIKE-{name}.md`
118
112
 
119
113
  GSD spike README has: YAML frontmatter (verdict, validates, related), methodology, findings, recommendation.
120
114
 
121
115
  Transform:
122
- - Flatten directory into single `specs/SPIKE-{name}.md`
123
- - Preserve frontmatter as YAML block comment at top
116
+ - Flatten directory into `specs/archive/spikes/SPIKE-{name}.md`
117
+ - Preserve frontmatter as YAML block at top
124
118
  - Keep verdict prominently: `**Verdict:** ADOPTED / REJECTED / DEFERRED`
125
119
 
126
120
  ---
@@ -2,7 +2,7 @@
2
2
 
3
3
  Transformation rules for spec-kit and BMAD projects, plus learnings to adopt and output formats.
4
4
 
5
- See [REFERENCE-GSD.md](./REFERENCE-GSD.md) for full GSD → bigpowers mapping.
5
+ See [REFERENCE-GSD.md](./REFERENCE-GSD.md) for full GSD → bigpowers YAML mapping.
6
6
 
7
7
  ---
8
8
 
@@ -22,35 +22,35 @@ project-root/
22
22
  └── log.jsonl
23
23
  ```
24
24
 
25
- ### `spec.md` → `specs/SCOPE.md` + `specs/CONTEXT.md`
25
+ ### `spec.md` → `specs/requirements/SCOPE_LATEST.yaml` + `specs/plans/TECH_STACK_LATEST.md`
26
26
 
27
27
  spec-kit `spec.md` focuses on: who uses it, user journeys, success criteria, what's in/out of scope.
28
28
 
29
29
  Transform:
30
- - User journeys → `specs/SCOPE.md` "Success Criteria" subsection (observable behaviors)
31
- - In/out of scope → `specs/SCOPE.md` main sections
32
- - Domain terms / glossary → `specs/CONTEXT.md` glossary section
33
- - Problem statement / vision → first paragraph of `specs/CONTEXT.md`
30
+ - User journeys → `SCOPE_LATEST.yaml` success criteria / `in_scope` entries
31
+ - In/out of scope → `in_scope` / `out_of_scope` sections
32
+ - Domain terms / glossary → `requirements/GLOSSARY_LATEST.yaml`
33
+ - Problem statement / vision → `requirements/VISION_LATEST.yaml`
34
34
 
35
- ### `plan.md` → `specs/CONTEXT.md` + `specs/PLAN.md`
35
+ ### `plan.md` → `specs/plans/TECH_STACK_LATEST.md` + `specs/release-plan.yaml` + `specs/epics/`
36
36
 
37
37
  spec-kit `plan.md` covers: technology stack, architectural patterns, implementation constraints.
38
38
 
39
39
  Transform:
40
- - Technology decisions → `specs/CONTEXT.md` "Technology" section
41
- - Architecture patterns → `specs/CONTEXT.md` "Architecture" section
40
+ - Technology decisions → `plans/TECH_STACK_LATEST.md` Technology section
41
+ - Architecture patterns → Architecture section
42
42
  - Hard decisions with trade-offs → `specs/adr/NNNN-{slug}.md`
43
- - Phased approach / milestones → `specs/RELEASE-PLAN.md` release entries
44
- - Implementation steps → `specs/PLAN.md` task list
43
+ - Phased approach / milestones → `release-plan.yaml` epic entries
44
+ - Implementation steps → `epics/eNN-*.yaml` task list with `verify:`
45
45
 
46
- ### `tasks.md` → `specs/TASKS.md`
46
+ ### `tasks.md` → `specs/epics/` (via slice-tasks)
47
47
 
48
48
  spec-kit tasks are atomic, verifiable in isolation — same principle as bigpowers `verify:` mandate.
49
49
 
50
50
  Transform:
51
- - Copy tasks directly; preserve task numbers
51
+ - Copy tasks into epic shard `tasks[]`; preserve task numbers
52
52
  - Add `verify:` line if spec-kit task has an acceptance criterion
53
- - Group into phases matching `specs/RELEASE-PLAN.md` releases
53
+ - Group into epics matching `release-plan.yaml` entries
54
54
 
55
55
  ### `.specify/` state
56
56
 
@@ -79,50 +79,50 @@ project-root/
79
79
  └── story-{slug}.md
80
80
  ```
81
81
 
82
- ### `product-brief.md` / `prfaq-{project}.md` → `specs/CONTEXT.md` (Vision)
82
+ ### `product-brief.md` / `prfaq-{project}.md` → `specs/requirements/VISION_LATEST.yaml`
83
83
 
84
84
  Transform:
85
- - Vision + core value → `specs/CONTEXT.md` Vision section (first section)
86
- - Target users → personas list in CONTEXT.md
87
- - prfaq customer FAQ → can inform success criteria in SCOPE.md
85
+ - Vision + core value → `VISION_LATEST.yaml` north_star / success_criteria
86
+ - Target users → notes in VISION or SCOPE
87
+ - prfaq customer FAQ → can inform success criteria in SCOPE
88
88
 
89
- ### `prd.md` → `specs/SCOPE.md`
89
+ ### `prd.md` → `specs/requirements/SCOPE_LATEST.yaml` + `GLOSSARY_LATEST.yaml`
90
90
 
91
91
  BMAD `prd.md` has: Glossary, FR-XX functional requirements, UJ-XX user journeys, NFRs, assumptions.
92
92
 
93
93
  Transform:
94
- - Glossary → `specs/CONTEXT.md` Glossary section (keep exactly; it's domain language)
95
- - FR-XX items → `specs/SCOPE.md` "In Scope" with IDs preserved as comments: `<!-- FR-3 -->`
96
- - UJ-XX user journeys → `specs/SCOPE.md` "Success Criteria" section
97
- - NFRs → `specs/SCOPE.md` "Constraints" section
98
- - `[ASSUMPTION: ...]` inline tags → `specs/SCOPE.md` "Assumptions" section (collected)
99
- - Out-of-scope features → `specs/SCOPE.md` "Out of Scope" section
94
+ - Glossary → `GLOSSARY_LATEST.yaml`
95
+ - FR-XX items → `in_scope` with IDs preserved
96
+ - UJ-XX user journeys → success criteria
97
+ - NFRs → `constraints` section
98
+ - `[ASSUMPTION: ...]` inline tags → collected in scope YAML
99
+ - Out-of-scope features → `out_of_scope`
100
100
 
101
101
  ### `addendum.md` + `decision-log.md` → `specs/adr/` + `specs/DECISION-LOG.md`
102
102
 
103
103
  Transform:
104
104
  - Hard, irreversible, surprising decisions → individual `specs/adr/NNNN-{slug}.md`
105
105
  - Lightweight decisions → `specs/DECISION-LOG.md` (date | decision | rationale)
106
- - `addendum.md` change signals → note at top of SCOPE.md: "PRD amended: see decision-log"
106
+ - `addendum.md` change signals → note in `SCOPE_LATEST.yaml` metadata
107
107
 
108
- ### `architecture.md` → `specs/CONTEXT.md` + `specs/adr/`
108
+ ### `architecture.md` → `specs/plans/TECH_STACK_LATEST.md` + `specs/adr/`
109
109
 
110
110
  Transform:
111
111
  - ADR sections → individual `specs/adr/NNNN-{slug}.md` files
112
- - System overview / data models → `specs/CONTEXT.md` Architecture section
113
- - API contracts → keep at `docs/api.md` or similar; link from CONTEXT.md
112
+ - System overview / data models → TECH_STACK Architecture section
113
+ - API contracts → keep at `docs/api.md` or similar; link from TECH_STACK
114
114
 
115
- ### `epic-*.md` → `specs/RELEASE-PLAN.md`
115
+ ### `epic-*.md` → `specs/release-plan.yaml` + `specs/epics/eNN-*.yaml`
116
116
 
117
- Each epic → one release entry. Epic acceptance criteria → "Success Criteria" subsection.
117
+ Each epic → one release-plan entry + one epic shard. Acceptance criteria → story tasks with `verify:`.
118
118
 
119
- ### `story-*.md` → `specs/TASKS.md`
119
+ ### `story-*.md` → `specs/epics/` stories
120
120
 
121
- Each story → one entry. Acceptance criteria → `verify:` lines. Story tasks → subtask checklist.
121
+ Each story → one story entry in epic shard. Acceptance criteria → `verify:` lines.
122
122
 
123
123
  ### `project-context.md` → `CLAUDE.md`
124
124
 
125
- Add a "## Project Context" section to `CLAUDE.md` (or create `PROJECT-CONTEXT.md` if CLAUDE.md is bigpowers-managed). Copy tech stack, coding rules, preferences verbatim. Note: `<!-- Migrated from BMAD project-context.md -->`.
125
+ Add a "## Project Context" section to `CLAUDE.md`. Copy tech stack, coding rules, preferences verbatim.
126
126
 
127
127
  ---
128
128
 
@@ -132,22 +132,21 @@ Optional enhancements to offer the user after migration. Present as checkboxes.
132
132
 
133
133
  ### From GSD
134
134
 
135
- - [ ] **`specs/METHODOLOGY.md`** — Standing analytical lenses (Bayesian updating, STRIDE, cost-of-delay). Agents read this before planning.
136
- - [ ] **Session Resume block in STATE.md** — Last skill used, last step completed, required reading for next session.
137
- - [ ] **ID tracking in SCOPE.md** — Add SCOPE-XX IDs to requirements for spec → plan → verification traceability.
135
+ - [ ] **`specs/plans/METHODOLOGY_LATEST.md`** — Standing analytical lenses. Agents read before planning.
136
+ - [ ] **`handoff` block in state.yaml** — Last skill, last step, required reading for next session.
137
+ - [ ] **ID tracking in SCOPE_LATEST.yaml** — FR/UJ IDs for spec → plan → verification traceability.
138
138
 
139
139
  ### From spec-kit
140
140
 
141
- - [ ] **Two-pass spec writing** — User-journey pass first (what/why, no technical details), then technical-decisions pass. Cleaner specs.
142
- - [ ] **Explicit inter-phase gate** — "Approve to proceed?" checkpoint at end of `elaborate-spec` before starting `plan-work`.
143
- - [ ] **`specs/TASKS.md` isolation guarantee** — Each task entry completable and verifiable in isolation; declared dependencies explicit.
141
+ - [ ] **Two-pass spec writing** — User-journey pass first, then technical-decisions pass.
142
+ - [ ] **Explicit inter-phase gate** — "Approve to proceed?" at end of `elaborate-spec`.
143
+ - [ ] **Epic task isolation** — Each task completable in isolation; `depends-on` explicit in epic YAML.
144
144
 
145
145
  ### From BMAD
146
146
 
147
- - [ ] **FR-XX + UJ-XX in SCOPE.md** — Functional requirement + user journey numbering for rigorous traceability.
148
- - [ ] **`specs/DECISION-LOG.md`** — Lightweight decision log for PRD-level choices below the ADR threshold. Format: `date | decision | rationale | alternatives`.
149
- - [ ] **`PROJECT-CONTEXT.md`** Project-specific constitution read by all implementation agents. Generated from `model-domain` output.
150
- - [ ] **Adversarial review pass** — Dedicated critique pass on the plan before `develop-tdd`. Critic checks for gaps, edge cases, contradictions with SCOPE.md.
147
+ - [ ] **FR-XX + UJ-XX in SCOPE_LATEST.yaml** — Rigorous traceability.
148
+ - [ ] **`specs/DECISION-LOG.md`** — Lightweight decisions below ADR threshold.
149
+ - [ ] **Adversarial review pass** Critique epic shard before `develop-tdd`.
151
150
 
152
151
  ---
153
152