@punks/cli 3.1.2 → 3.1.4

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 (182) hide show
  1. package/dist/BASELINE_CHANGELOG.md +21 -0
  2. package/dist/CHANGELOG.md +46 -0
  3. package/dist/baseline/scaffold-baseline/baseline.json +4 -4
  4. package/dist/baseline/scaffold-baseline/data/catalog/packs.json +23 -3
  5. package/dist/baseline/scaffold-baseline/data/catalog/skills.json +26 -2
  6. package/dist/baseline/scaffold-baseline/data/hooks/format-edited-file.mjs +13 -0
  7. package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents.mjs +862 -49
  8. package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents.test.ts +1295 -38
  9. package/dist/baseline/scaffold-baseline/data/subagents/manifest.mjs +3 -1
  10. package/dist/baseline/scaffold-baseline/data/subagents/manifest.test.ts +20 -0
  11. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/SKILL.md +4 -3
  12. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/agents/openai.yaml +1 -1
  13. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +3 -1
  14. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-for-agents/LICENSE +21 -0
  15. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-for-agents/SKILL-MECHANICS.md +22 -0
  16. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-for-agents/SKILL.md +81 -0
  17. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-for-agents/UPSTREAM.md +9 -0
  18. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/SKILL.md +27 -15
  19. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/backlog-sync.md +19 -32
  20. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/plan-schema.md +14 -0
  21. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/planner-task-graph.md +5 -1
  22. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/stop-conditions.md +2 -1
  23. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/SKILL.md +51 -105
  24. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +26 -57
  25. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/folder-naming.md +6 -3
  26. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/readiness.md +41 -0
  27. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +15 -6
  28. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/wiki-bookkeeping.md +3 -3
  29. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/SKILL.md +21 -54
  30. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +0 -4
  31. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/lifecycle.md +13 -15
  32. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +7 -4
  33. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +4 -2
  34. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel.md +9 -35
  35. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/wayfinder/SKILL.md +11 -8
  36. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/requirements-grill/SKILL.md +3 -3
  37. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/EXAMPLES.md +25 -73
  38. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/REFERENCE.md +54 -305
  39. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/SKILL.md +46 -55
  40. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +33 -119
  41. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +24 -14
  42. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +53 -11
  43. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +48 -26
  44. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +53 -12
  45. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +49 -33
  46. package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/DURABLE-REPORT.md +20 -0
  47. package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/SKILL.md +14 -2
  48. package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/LICENSE +21 -0
  49. package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/LOGIC.md +57 -21
  50. package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/SKILL.md +17 -15
  51. package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/UI.md +12 -5
  52. package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/UPSTREAM.md +11 -0
  53. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect/SKILL.md +5 -12
  54. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect/references/CONFIG.md +10 -19
  55. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect/references/SERVICES_LAYERS.md +3 -63
  56. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect/references/TESTING.md +2 -72
  57. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-backend-structure/SKILL.md +12 -29
  58. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-backend-structure/agents/openai.yaml +1 -1
  59. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-backend-structure/references/layout.md +9 -9
  60. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-service-design/LICENSE +21 -0
  61. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-service-design/SKILL.md +124 -0
  62. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-service-design/references/AUDIT.md +98 -0
  63. package/dist/baseline/scaffold-baseline/skills/misc/wait-what/LICENSE +21 -0
  64. package/dist/baseline/scaffold-baseline/skills/misc/wait-what/SKILL.md +7 -0
  65. package/dist/baseline/scaffold-baseline/skills/misc/wait-what/UPSTREAM.md +9 -0
  66. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/SKILL.md +4 -3
  67. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/backlog.md +31 -0
  68. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/implement.md +5 -4
  69. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/plan.md +6 -4
  70. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +16 -14
  71. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/spec.md +9 -5
  72. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/artifact-state.md +9 -2
  73. package/dist/baseline/scaffold-baseline/skills/phases/design-phase/phases/backlog.md +4 -4
  74. package/dist/baseline/scaffold-baseline/skills/phases/design-phase/phases/prototype.md +1 -1
  75. package/dist/baseline/scaffold-baseline/skills/phases/docs-ingest-phase/phases/private-internal.md +3 -1
  76. package/dist/baseline/scaffold-baseline/skills/phases/docs-ingest-phase/references/learning-artifacts.md +8 -1
  77. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/SKILL.md +24 -24
  78. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/agents/openai.yaml +1 -1
  79. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/convergence.md +39 -0
  80. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/frontier-lifecycle.md +22 -16
  81. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/root-routing.md +3 -2
  82. package/dist/baseline/scaffold-baseline/skills/phases/prototype-phase/SKILL.md +34 -0
  83. package/dist/baseline/scaffold-baseline/skills/phases/prototype-phase/VERDICT-TEMPLATE.md +16 -0
  84. package/dist/baseline/scaffold-baseline/skills/phases/prototype-phase/agents/openai.yaml +2 -0
  85. package/dist/baseline/scaffold-baseline/skills/phases/requirements-phase/SKILL.md +14 -57
  86. package/dist/baseline/scaffold-baseline.json +4 -4
  87. package/dist/baseline/scaffold-baseline.tgz +0 -0
  88. package/dist/data/hooks/format-edited-file.mjs +13 -0
  89. package/dist/data/scripts/sync-subagents.mjs +862 -49
  90. package/dist/data/subagents/manifest.mjs +3 -1
  91. package/dist/index.js +667 -194
  92. package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +4 -3
  93. package/dist/skills/agnostic/docs/docs-onboarding/agents/openai.yaml +1 -1
  94. package/dist/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +3 -1
  95. package/dist/skills/agnostic/docs/writing-for-agents/LICENSE +21 -0
  96. package/dist/skills/agnostic/docs/writing-for-agents/SKILL-MECHANICS.md +22 -0
  97. package/dist/skills/agnostic/docs/writing-for-agents/SKILL.md +81 -0
  98. package/dist/skills/agnostic/docs/writing-for-agents/UPSTREAM.md +9 -0
  99. package/dist/skills/agnostic/planning/create-plan/SKILL.md +27 -15
  100. package/dist/skills/agnostic/planning/create-plan/references/backlog-sync.md +19 -32
  101. package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +14 -0
  102. package/dist/skills/agnostic/planning/create-plan/references/planner-task-graph.md +5 -1
  103. package/dist/skills/agnostic/planning/create-plan/references/stop-conditions.md +2 -1
  104. package/dist/skills/agnostic/planning/create-spec/SKILL.md +51 -105
  105. package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +26 -57
  106. package/dist/skills/agnostic/planning/create-spec/references/folder-naming.md +6 -3
  107. package/dist/skills/agnostic/planning/create-spec/references/readiness.md +41 -0
  108. package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +15 -6
  109. package/dist/skills/agnostic/planning/create-spec/references/wiki-bookkeeping.md +3 -3
  110. package/dist/skills/agnostic/planning/implement-spec/SKILL.md +21 -54
  111. package/dist/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +0 -4
  112. package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +13 -15
  113. package/dist/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +7 -4
  114. package/dist/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +4 -2
  115. package/dist/skills/agnostic/planning/implement-spec/references/parallel.md +9 -35
  116. package/dist/skills/agnostic/planning/wayfinder/SKILL.md +11 -8
  117. package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +3 -3
  118. package/dist/skills/agnostic/requirements/write-backlog/EXAMPLES.md +25 -73
  119. package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +54 -305
  120. package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +46 -55
  121. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +33 -119
  122. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +24 -14
  123. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +53 -11
  124. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +48 -26
  125. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +53 -12
  126. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +49 -33
  127. package/dist/skills/agnostic/research/parallel-research/DURABLE-REPORT.md +20 -0
  128. package/dist/skills/agnostic/research/parallel-research/SKILL.md +14 -2
  129. package/dist/skills/agnostic/research/prototype/LICENSE +21 -0
  130. package/dist/skills/agnostic/research/prototype/LOGIC.md +57 -21
  131. package/dist/skills/agnostic/research/prototype/SKILL.md +17 -15
  132. package/dist/skills/agnostic/research/prototype/UI.md +12 -5
  133. package/dist/skills/agnostic/research/prototype/UPSTREAM.md +11 -0
  134. package/dist/skills/frameworks/effect/effect/SKILL.md +5 -12
  135. package/dist/skills/frameworks/effect/effect/references/CONFIG.md +10 -19
  136. package/dist/skills/frameworks/effect/effect/references/SERVICES_LAYERS.md +3 -63
  137. package/dist/skills/frameworks/effect/effect/references/TESTING.md +2 -72
  138. package/dist/skills/frameworks/effect/effect-backend-structure/SKILL.md +12 -29
  139. package/dist/skills/frameworks/effect/effect-backend-structure/agents/openai.yaml +1 -1
  140. package/dist/skills/frameworks/effect/effect-backend-structure/references/layout.md +9 -9
  141. package/dist/skills/frameworks/effect/effect-service-design/LICENSE +21 -0
  142. package/dist/skills/frameworks/effect/effect-service-design/SKILL.md +124 -0
  143. package/dist/skills/frameworks/effect/effect-service-design/references/AUDIT.md +98 -0
  144. package/dist/skills/misc/wait-what/LICENSE +21 -0
  145. package/dist/skills/misc/wait-what/SKILL.md +7 -0
  146. package/dist/skills/misc/wait-what/UPSTREAM.md +9 -0
  147. package/dist/skills/phases/delivery-phase/SKILL.md +4 -3
  148. package/dist/skills/phases/delivery-phase/phases/backlog.md +31 -0
  149. package/dist/skills/phases/delivery-phase/phases/implement.md +5 -4
  150. package/dist/skills/phases/delivery-phase/phases/plan.md +6 -4
  151. package/dist/skills/phases/delivery-phase/phases/router.md +16 -14
  152. package/dist/skills/phases/delivery-phase/phases/spec.md +9 -5
  153. package/dist/skills/phases/delivery-phase/references/artifact-state.md +9 -2
  154. package/dist/skills/phases/design-phase/phases/backlog.md +4 -4
  155. package/dist/skills/phases/design-phase/phases/prototype.md +1 -1
  156. package/dist/skills/phases/docs-ingest-phase/phases/private-internal.md +3 -1
  157. package/dist/skills/phases/docs-ingest-phase/references/learning-artifacts.md +8 -1
  158. package/dist/skills/phases/finder-phase/SKILL.md +24 -24
  159. package/dist/skills/phases/finder-phase/agents/openai.yaml +1 -1
  160. package/dist/skills/phases/finder-phase/references/convergence.md +39 -0
  161. package/dist/skills/phases/finder-phase/references/frontier-lifecycle.md +22 -16
  162. package/dist/skills/phases/finder-phase/references/root-routing.md +3 -2
  163. package/dist/skills/phases/prototype-phase/SKILL.md +34 -0
  164. package/dist/skills/phases/prototype-phase/VERDICT-TEMPLATE.md +16 -0
  165. package/dist/skills/phases/prototype-phase/agents/openai.yaml +2 -0
  166. package/dist/skills/phases/requirements-phase/SKILL.md +14 -57
  167. package/dist/tsconfig.tsbuildinfo +1 -1
  168. package/package.json +1 -1
  169. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-great-skills/GLOSSARY.md +0 -69
  170. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-great-skills/SKILL.md +0 -61
  171. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/backlog-sync.md +0 -49
  172. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/discovery.md +0 -54
  173. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/grill-phase.md +0 -42
  174. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/questioning.md +0 -51
  175. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/sequential.md +0 -48
  176. package/dist/skills/agnostic/docs/writing-great-skills/GLOSSARY.md +0 -69
  177. package/dist/skills/agnostic/docs/writing-great-skills/SKILL.md +0 -61
  178. package/dist/skills/agnostic/planning/create-spec/references/backlog-sync.md +0 -49
  179. package/dist/skills/agnostic/planning/create-spec/references/discovery.md +0 -54
  180. package/dist/skills/agnostic/planning/create-spec/references/grill-phase.md +0 -42
  181. package/dist/skills/agnostic/planning/create-spec/references/questioning.md +0 -51
  182. package/dist/skills/agnostic/planning/implement-spec/references/sequential.md +0 -48
@@ -1,109 +1,55 @@
1
1
  ---
2
2
  name: create-spec
3
- description: Create a SPEC.md file for a new feature, product, or system using the Spec-Driven Development (SDD) approach. The spec works in the problem space — it clarifies the "what", not the "how", and when backlog context exists it maps to one epic/capability and must unify all child-story requirements beneath it. Use this skill whenever the user wants to write a spec, define requirements, capture what needs to be built, create a specification document, or start the SDD workflow.
3
+ description: Compile confirmed product decisions into SPEC.md. Use when requirements are closed or explicitly parked and an agent-ready provider-neutral specification is needed before backlog or planning.
4
4
  ---
5
5
 
6
- # Spec Creator
7
-
8
- ## Contract
9
-
10
- - **Role:** higher-order spec authoring skill
11
- - **Entrypoint type:** public entrypoint
12
- - **Upstream:** new idea, feature request, epic/capability issue, or problem statement
13
- - **Delegates to:** `planning-discovery` for bounded readonly orientation when subagents are available; `$parallel-research` for split-friendly readonly discovery; `$requirements-grill` when discovery leaves meaningful spec-affecting unknowns; `$write-backlog` when the spec objective or grill outcomes change epic/story scope; `spec-reviewer` for a final readonly quality pass when subagents are available
14
- - **Entry conditions:** a planning surface can be resolved from routed wiki docs, legacy wiki specs, existing docs, backlog context, or the user's request
15
- - **Stop conditions:** `SPEC.md` and any existing planning-surface indexes/logs are updated, then wait for user review
16
-
17
- This skill creates `SPEC.md` files that stay in the problem space: what to build, who it is for, why it matters, what counts as done, and what is out of scope.
18
-
19
- When backlog context exists, one `SPEC.md` maps to one parent epic/capability issue and must cover the full scope of that epic. If the epic has child stories, the spec must explicitly incorporate and unify the requirements of all of them.
20
-
21
- Resolve the output root from the repo before writing. Prefer `apps/wiki/content/docs/project/specs/<domain>/<folder-name>/SPEC.md`, then legacy `apps/wiki/specs/<domain>/<folder-name>/SPEC.md`, then `docs/specs/<domain>/<folder-name>/SPEC.md`.
22
-
23
- ## Quick start
24
-
25
- 1. Resolve the planning surface with `references/discovery.md`; do not block solely because legacy `apps/wiki/AGENTS.md` is absent.
26
- 2. Read `references/discovery.md` and orient yourself in the right spec domain or project area before asking questions.
27
- 3. When discovery spans independent code paths, docs, backlog items, prior specs, or hypotheses, read and use `$parallel-research` for readonly sidecar coverage before synthesizing.
28
- 4. If backlog context exists, read the parent epic and every child story before asking questions.
29
- 5. If the user did not provide a concrete request, ask for a rough description first.
30
- 6. Read `references/questioning.md` and ask only the lightweight clarifying questions needed to identify whether a grill phase is required.
31
- 7. If draft `Open Questions` would affect spec trust, read `references/grill-phase.md` and run a bounded `$requirements-grill` phase.
32
- 8. If the requested objective, discovery, or grill changes accepted scope, child stories, deferred scope, story wording, or story order, read `references/backlog-sync.md` and run `$write-backlog` to sync the backlog automatically before final drafting.
33
- 9. Read `references/folder-naming.md` to resolve the domain and spec folder path.
34
- 10. Read `assets/SPEC-TEMPLATE.md` and write the spec.
35
- 11. Read `references/spec-quality-bar.md` before saving.
36
- 12. If subagents are available, use `spec-reviewer` for a readonly pass over the draft before user review.
37
- 13. Read `references/wiki-bookkeeping.md` to update the indexes/logs that exist for the resolved planning surface.
38
- 14. Present the completed spec for user review, then stop.
39
-
40
- ## Workflow
41
-
42
- ### Default workflow
43
-
44
- 1. Build orientation first; do not jump straight into writing.
45
- 2. Scan relevant routed learning artifacts when prior bug knowledge, domain behavior, or project conventions could affect the spec.
46
- 3. Ask only enough to make the spec crisp, testable, and bounded.
47
- 4. Use `$parallel-research` when readonly orientation can be split cleanly across independent evidence sources; keep synthesis and spec decisions local.
48
- 5. When an epic has child stories, harvest and preserve each story's requirements before drafting.
49
- 6. Use `$requirements-grill` for meaningful spec-affecting unknowns; do not replace that phase with ad hoc `Open Questions` prompts.
50
- 7. Use `$write-backlog` automatically before final drafting when accepted spec direction implies backlog changes, whether that direction came from the user's objective, discovery, or a grill phase.
51
- 8. Keep the spec free of implementation detail.
52
- 9. Use the template structure exactly, then remove all template scaffolding.
53
- 10. Use `spec-reviewer` to catch invented requirements, missing constraints, vague acceptance criteria, and contradictions before yielding when subagents are available.
54
- 11. Update planning-surface bookkeeping in the same run.
55
- 12. Present the completed spec for user review, then stop.
56
-
57
- ### Dependency readiness and stack intent
58
-
59
- When backlog context exists, inspect backlog dependencies before drafting.
60
-
61
- - A task-level `depends_on` inside one epic or plan is implementation ordering,
62
- not PR stack topology.
63
- - A backlog dependency between epics/stories is a dependency-readiness gate.
64
- - If the dependency has an `IMPLEMENTATION-NOTES.md` or equivalent
65
- implemented-status artifact, trust it as implemented. Record
66
- `No Stack Required` unless another open PR dependency still applies.
67
- - If no implemented-status artifact exists, use local code evidence or merged PR
68
- evidence as fallback proof that the dependency landed.
69
- - If the dependency is represented by an open parent PR, record
70
- `Branch/Base Intent`.
71
- - If the dependency is neither proven implemented nor represented by an open
72
- parent PR, block spec creation and report the missing dependency evidence.
73
-
74
- When backlog dependencies exist, add this section to `SPEC.md`:
75
-
76
- ```md
77
- ## Dependency Readiness
78
-
79
- - Status: No Stack Required | Branch/Base Intent | Blocked
80
- - Dependency: <epic/story/pr/link>
81
- - Evidence: <implementation notes path | implemented-status artifact | merged PR | parent PR>
82
- - Reason: <why this status was chosen>
83
- ```
84
-
85
- Only for stack-dependent work, also add:
86
-
87
- ```md
88
- ## Branch/Base Intent
89
-
90
- - Parent PR: #123
91
- - Parent branch: team/name/parent
92
- - Child branch: team/name/child
93
- - PR base: team/name/parent
94
- - Required gate: stack sync --dry-run after PR creation/update
95
- ```
96
-
97
- `create-spec` records stack intent only. Do not create, switch, or push git
98
- branches unless the user explicitly requests branch setup during the spec turn.
99
-
100
- ## Advanced features
101
-
102
- - Discovery and repo orientation: see [references/discovery.md](references/discovery.md)
103
- - Clarifying-question strategy: see [references/questioning.md](references/questioning.md)
104
- - Requirements grill phase: see [references/grill-phase.md](references/grill-phase.md)
105
- - Backlog sync after grilling: see [references/backlog-sync.md](references/backlog-sync.md)
106
- - Domain and folder naming rules: see [references/folder-naming.md](references/folder-naming.md)
107
- - Acceptance-criteria and quality bar: see [references/spec-quality-bar.md](references/spec-quality-bar.md)
108
- - Planning surface index/log updates: see [references/wiki-bookkeeping.md](references/wiki-bookkeeping.md)
109
- - Canonical backlog model: see [../write-backlog/assets/concepts/backlog-model.md](../write-backlog/assets/concepts/backlog-model.md)
6
+ # Create Spec
7
+
8
+ `create-spec` is a no-interview compiler of confirmed decisions. Upstream
9
+ Wayfinder, research, prototyping, and grilling own uncertainty. This skill asks
10
+ no questions, runs no local grill, and performs no backlog mutation.
11
+
12
+ ## Inputs
13
+
14
+ Accept confirmed user decisions and their evidence: grill status/logs, research
15
+ reports, prototype verdicts, ADRs, glossary, axioms, constraints, system facts,
16
+ accepted implementation or testing decisions, dependency evidence, and accepted
17
+ parent/base constraints.
18
+
19
+ ## Steps
20
+
21
+ 1. Resolve the planning surface using [folder-naming.md](references/folder-naming.md).
22
+ 2. Validate readiness using [readiness.md](references/readiness.md). If anything
23
+ required is missing, return one atomic `spec-not-ready` result and write no
24
+ partial `SPEC.md`.
25
+ 3. Compile [SPEC-TEMPLATE.md](assets/SPEC-TEMPLATE.md). Preserve only confirmed
26
+ decisions; never invent closure. Serialize `Dependency Readiness` and
27
+ `Branch/Base Intent` using the readiness contract.
28
+ 4. Apply [spec-quality-bar.md](references/spec-quality-bar.md).
29
+ 5. Update existing planning-surface indexes through
30
+ [wiki-bookkeeping.md](references/wiki-bookkeeping.md).
31
+ 6. Persist the completed spec and its bookkeeping in a dedicated git commit.
32
+ Never stage unrelated changes.
33
+ 7. Push or explicitly retain the spec commit through a repository-approved
34
+ remote mechanism, verify the retained ref contains the spec commit, then
35
+ construct and verify a stable blob URL before `write-backlog` may consume it.
36
+ A local commit SHA plus path is insufficient.
37
+ 8. Return `spec-written` with `readiness: agent-ready` and the verified stable
38
+ blob URL. If retention or URL verification fails, return one atomic
39
+ `spec-not-ready` result and do not invoke backlog projection.
40
+
41
+ ## Boundaries
42
+
43
+ - `SPEC.md` is provider-neutral authority. `write-backlog` projects epics and
44
+ stories afterward; `create-plan` owns concrete files, commands, workers, and
45
+ execution order.
46
+ - A mutable path or local-only commit is not a backlog handoff. `write-backlog`
47
+ receives only the verified stable blob URL.
48
+ - Accepted technical and testing decisions belong in the spec. Detailed task
49
+ choreography does not.
50
+ - `Dependency Readiness` and `Branch/Base Intent` preserve accepted dependency
51
+ evidence and parent/base constraints for `create-plan`.
52
+ - `readiness: agent-ready` is sufficient downstream. Do not add a review or
53
+ approval stop; pause only for a user-requested HITL checkpoint.
54
+ - Compiler state is `compiled`. Human approval, when explicitly requested, is a
55
+ separate optional action and is never inferred or stamped by this compiler.
@@ -2,91 +2,60 @@
2
2
  title: "[Title]"
3
3
  domain:
4
4
  type: spec
5
- status: draft
5
+ status: compiled
6
+ readiness: agent-ready
6
7
  links: []
7
8
  created: YYYY-MM-DD
8
9
  updated: YYYY-MM-DD
9
- id: # optional — ticket ID, remove if not applicable
10
10
  ---
11
11
 
12
12
  # Spec: [Title]
13
13
 
14
- <!--
15
- INSTRUCTIONS FOR THE AGENT (remove this block before saving the final spec):
16
-
17
- - Each spec covers one epic/capability boundary.
18
- - If the epic contains multiple child stories, the spec must cover all of them.
19
- - Preserve individual story requirements while unifying them into one coherent problem-space contract.
20
- - The audience is engineers. Keep it tight. A spec that takes 10 minutes to read won't get reviewed. Aim for 2–3 minutes.
21
- - This template is a starting point, not a rulebook:
22
- - Remove sections that don't apply — don't leave them blank or write "N/A"
23
- - Add sections if something important doesn't fit (e.g. "Data model", "API contract")
24
- - Adjust depth to complexity — a simple task may only need Context + Acceptance Criteria
25
- -->
26
-
27
- ---
28
-
29
- ## User input
30
-
31
- _Verbatim copy of everything the user said that is relevant to this spec — across one or more messages if needed. Do not paraphrase or summarize. Preserve the original wording as closely as possible._
32
-
33
- ---
34
-
35
14
  ## Context
36
15
 
37
- _What is this, why does it need to exist, and who is it for? Cover the problem and the purpose in a few sentences. Name the actual roles affected (admin, customer, developer — not just "user")._
38
-
39
- ---
40
-
41
16
  ## Non-Goals
42
17
 
43
- _Explicitly list what is out of scope for this spec. This prevents scope creep and misunderstandings._
18
+ ## User Stories
44
19
 
45
- -
46
- -
47
-
48
- ---
20
+ ### US-001: [Observable user outcome]
49
21
 
50
22
  ## Acceptance Criteria
51
23
 
52
- _The observable, binary conditions that define "done". Each one should be independently testable — you should be able to read it and immediately know what test would prove it true or false. When the epic has multiple child stories, consolidate their requirements into one coherent epic-level contract and ensure every story contributes explicit criteria._
53
-
54
- -
55
- -
56
- -
57
-
58
- ---
24
+ - AC-001: [Binary observable criterion]
25
+ - Covers: US-001
59
26
 
60
27
  ## Constraints
61
28
 
62
- _Technical, legal, organizational, or timeline constraints that shape the solution space — including quality requirements like performance, security, or accessibility if they're genuinely relevant._
29
+ ## Dependency Readiness
63
30
 
64
- -
31
+ _Write `No Stack Required` when no dependency exists. Otherwise write `Ready`
32
+ and list each dependency with immutable landing or branch/base evidence._
65
33
 
66
- ---
34
+ ## Branch/Base Intent
67
35
 
68
- ## Technical Notes
36
+ _When accepted intent exists, record the intended parent and base, child branch
37
+ constraint, and supporting evidence. Otherwise write `Not applicable`._
69
38
 
70
- _Optional. Technical discoveries, known system constraints, or early implementation observations that surfaced before or during spec writing_
39
+ ## Accepted Technical Decisions
71
40
 
72
- -
41
+ ## Accepted Testing Decisions
73
42
 
74
- ---
43
+ ## Verification Seams
75
44
 
76
- ## Open Questions
45
+ _Name the public interface, event, state transition, command, or observable
46
+ boundary used to verify the behavior. If none applies, record the accepted
47
+ not-applicable rationale._
77
48
 
78
- _Unresolved questions that could affect implementation. Before saving, route meaningful spec-affecting unknowns through the requirements-grill phase. Only keep questions here when the user explicitly defers them, the answer requires external validation, or the issue is non-blocking for spec review._
49
+ ## Prototype Verdicts
79
50
 
80
- | # | Question | Affects | Owner | Status |
81
- |---|----------|---------|-------|--------|
82
- | 1 | | | | Open |
51
+ _For each applicable verdict: outcome, immutable commit SHA, artifact path, and
52
+ accepted implications. Remove this section when no prototype exists._
83
53
 
84
- ---
54
+ ## Parked Decisions
85
55
 
86
- ## Decision Log
56
+ _Each item needs an owner and resume trigger. Remove when empty._
87
57
 
88
- _Decisions made during spec refinement, with rationale._
58
+ ## Decision Log
89
59
 
90
- | Decision | Rationale |
91
- |----------|-----------|
92
- | | |
60
+ | Decision | Evidence | Rationale |
61
+ | --- | --- | --- |
@@ -1,6 +1,6 @@
1
1
  # Folder Naming
2
2
 
3
- Use this reference after questioning and before writing the file.
3
+ Use this reference after input readiness passes and before writing the file.
4
4
 
5
5
  ## Domain resolution
6
6
 
@@ -28,6 +28,9 @@ Each spec folder must be unique within its domain.
28
28
 
29
29
  If the folder already exists:
30
30
 
31
- - ask whether to update the existing spec or create a new one
31
+ - update it only when its identity and capability boundary match the confirmed
32
+ inputs
33
+ - otherwise return `spec-not-ready` with the collision and required upstream
34
+ naming decision
32
35
 
33
- Do not ask the user to confirm the folder name unless the correct name is genuinely ambiguous.
36
+ Do not interview from this compiler.
@@ -0,0 +1,41 @@
1
+ # Readiness
2
+
3
+ Compile only when the decision frontier is closed or every remaining item is
4
+ explicitly parked with owner and resume trigger.
5
+
6
+ Required inputs:
7
+
8
+ - actor, outcome, capability boundary, non-goals, and constraints
9
+ - accepted functional behavior and observable success
10
+ - accepted implementation and testing decisions, when any were made upstream
11
+ - every applicable prototype verdict by immutable commit SHA and path
12
+ - a verification-seam decision, or an explicit not-applicable rationale
13
+ - dependency readiness for every declared dependency: proven landed, or an
14
+ accepted branch/base intent with concrete evidence; blocked or unevidenced
15
+ dependencies fail compilation
16
+
17
+ ## Dependency output contract
18
+
19
+ Serialize both sections in every compiled spec:
20
+
21
+ - `Dependency Readiness`: write `No Stack Required` when no dependency exists.
22
+ Otherwise write `Ready` and list every dependency with immutable landing or
23
+ branch/base evidence.
24
+ - `Branch/Base Intent`: when accepted intent exists, record the intended parent
25
+ or base, child branch constraint, and supporting evidence. Otherwise write
26
+ `Not applicable` explicitly.
27
+
28
+ Never emit `Blocked` with `readiness: agent-ready`; blocked or unevidenced
29
+ dependencies produce `spec-not-ready` instead.
30
+
31
+ Validate the compiled traceability graph before writing:
32
+
33
+ - every `US-###` has at least one `AC-###` whose `Covers` list names it
34
+ - every `Covers` reference resolves to an existing `US-###`; a reference to a
35
+ nonexistent `US-###` fails compilation
36
+ - identifiers are unique and coverage is one-way from acceptance criterion to
37
+ user story
38
+
39
+ On failure, return one `spec-not-ready` result listing every missing decision or
40
+ evidence item and its upstream route: `finder-phase`, `parallel-research`,
41
+ `prototype-phase`, or `requirements-grill`. Write no partial spec.
@@ -6,8 +6,11 @@ Use this reference while filling the template and before saving.
6
6
 
7
7
  The spec lives in the problem space.
8
8
 
9
- - include what, who, why, acceptance criteria, non-goals, constraints, open questions
10
- - exclude architecture, implementation steps, code structure, or solution design
9
+ - include what, who, why, user stories, acceptance criteria, non-goals,
10
+ constraints, accepted technical/testing decisions, prototype verdicts, and
11
+ verification seams, `Dependency Readiness`, and `Branch/Base Intent`
12
+ - exclude unaccepted solution design and plan-owned files, commands, workers,
13
+ task graph, or execution order
11
14
  - when the epic has child stories, include the concrete requirements of each child story instead of summarizing only the parent issue
12
15
 
13
16
  ## Acceptance-criteria bar
@@ -17,6 +20,7 @@ Every acceptance criterion should be:
17
20
  - binary
18
21
  - observable
19
22
  - testable
23
+ - identified as `AC-###` with one or more one-way `Covers: US-###` links
20
24
 
21
25
  Avoid:
22
26
 
@@ -24,23 +28,28 @@ Avoid:
24
28
  - hidden implementation requirements disguised as product behavior
25
29
  - mixed criteria that bundle several independent outcomes into one line
26
30
 
27
- ## Epic completeness bar
31
+ ## Capability completeness bar
28
32
 
29
- When writing a spec from an epic with child stories:
33
+ When compiling confirmed capability and story decisions:
30
34
 
31
- - the spec must cover the full scope of the epic
35
+ - the spec is the provider-neutral authority for the capability boundary
32
36
  - each child story must contribute concrete requirements, constraints, or acceptance criteria
33
37
  - cross-story interactions must be resolved in the spec rather than left implicit in backlog items
34
38
 
35
39
  Avoid:
36
40
 
37
- - a spec that summarizes the epic but omits concrete requirements from one or more child stories
41
+ - a spec that omits confirmed requirements from one or more user stories
38
42
  - a spec that treats child stories as links only, without incorporating their product details
39
43
  - a spec that copies child stories separately without unifying overlaps and shared constraints
40
44
 
41
45
  ## Self-review before saving
42
46
 
43
47
  - ensure frontmatter has a non-empty string `title`, especially for specs saved directly in routed Fumadocs trees
48
+ - ensure frontmatter contains `readiness: agent-ready`
49
+ - ensure `Dependency Readiness` records `No Stack Required` or `Ready` with
50
+ evidence
51
+ - ensure `Branch/Base Intent` records accepted parent/base constraints or
52
+ `Not applicable`
44
53
  - remove all template scaffolding
45
54
  - remove empty or irrelevant sections
46
55
  - ensure the document reads cleanly with no ghost instructions
@@ -21,7 +21,7 @@ When using `apps/wiki/specs`:
21
21
  1. Add a row to the **Specs** table in `apps/wiki/index.md`:
22
22
 
23
23
  ```md
24
- | <domain> | [[specs/<domain>/<folder-name>/SPEC]] | Draft |
24
+ | <domain> | [[specs/<domain>/<folder-name>/SPEC]] | Compiled |
25
25
  ```
26
26
 
27
27
  2. Create or update `apps/wiki/specs/<domain>/<domain>-specs.md` with:
@@ -33,7 +33,7 @@ When using `apps/wiki/specs`:
33
33
  ## [YYYY-MM-DD] spec | <spec title>
34
34
  - Created spec: [[specs/<domain>/<folder-name>/SPEC]]
35
35
  - Domain: <domain>
36
- - Status: Draft
36
+ - Status: Compiled
37
37
  ```
38
38
 
39
39
  ### Docs fallback
@@ -43,7 +43,7 @@ When using `docs/specs`:
43
43
  1. Create or update `docs/specs/index.md` with:
44
44
  - the domain
45
45
  - the spec path
46
- - status `Draft`
46
+ - status `Compiled`
47
47
  2. Create or update `docs/specs/<domain>/<domain>-specs.md` with:
48
48
  - the spec name
49
49
  - a one-line summary
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: implement-spec
3
- description: Implement an approved spec folder while keeping `IMPLEMENTATION-NOTES.md`, `PLAN.md`, and spec-linked tech debt in sync. Use when a reviewed spec already has a `PLAN.md` and execution should proceed through the default single-worker sequential path or explicit parallel worker waves.
3
+ description: Implement an agent-ready spec folder through plan-derived worker waves while keeping `IMPLEMENTATION-NOTES.md`, `PLAN.md`, and spec-linked tech debt in sync. Use when an agent-ready spec already has an execution-ready `PLAN.md`.
4
4
  ---
5
5
 
6
6
  # Implement Spec
@@ -9,10 +9,10 @@ description: Implement an approved spec folder while keeping `IMPLEMENTATION-NOT
9
9
 
10
10
  - **Role:** higher-order execution orchestrator
11
11
  - **Entrypoint type:** public entrypoint
12
- - **Upstream:** reviewed spec folder with `SPEC.md` and `PLAN.md`
13
- - **Delegates to:** `$tdd`, `$codebase-design`, `$simplify`, tiny `$requirements-phase` sessions for debt ambiguity, and internal worker orchestration in sequential and parallel modes
12
+ - **Upstream:** agent-ready spec folder with `SPEC.md` and `PLAN.md`
13
+ - **Delegates to:** `$tdd`, `$codebase-design`, `$simplify`, tiny `$requirements-phase` sessions for debt ambiguity, and internal worker-wave orchestration
14
14
  - **Downstream:** `docs-ingest-phase` when the resulting spec folder should be ingested into domain knowledge
15
- - **Entry conditions:** existing reviewed spec folder; stop and use `create-plan` if `PLAN.md` is missing
15
+ - **Entry conditions:** existing agent-ready spec folder; stop and use `create-plan` if `PLAN.md` is missing
16
16
  - **Stop conditions:** shared acceptance audit complete, final manual review checklist written, spec folder finalized, blocked work reported honestly
17
17
 
18
18
  ## Required Inner Skills
@@ -22,42 +22,27 @@ description: Implement an approved spec folder while keeping `IMPLEMENTATION-NOT
22
22
  - MUST use `$simplify`
23
23
  Use `$agent-browser` when any task `review_mode` is `browser` or `mixed`.
24
24
 
25
- ## Sequential responsibilities
25
+ ## Worker-wave responsibilities
26
26
 
27
- When `implement-spec` runs in `sequential` mode, it must follow [references/sequential.md](references/sequential.md).
27
+ Follow [references/parallel.md](references/parallel.md) as the execution contract.
28
28
 
29
- That means `implement-spec` itself owns orchestration and validation, while exactly one implementation worker owns the sequential coding loop. This is a hard gate: do not implement in the parent main thread when worker execution is unavailable. Stop, repair worker routing, or report the blocker.
30
-
31
- ## Parallel responsibilities
32
-
33
- When `implement-spec` runs in `parallel` mode, it must follow [references/parallel.md](references/parallel.md) as the full orchestration contract.
34
-
35
- That means `implement-spec` itself owns all of the following in parallel mode:
36
-
37
- - parsing `PLAN.md`
38
- - finding the currently unblocked tasks from `depends_on`
39
- - launching workers in waves
40
- - reviewing worker outputs
41
- - validating each wave before advancing
42
- - ensuring `PLAN.md` and `IMPLEMENTATION-NOTES.md` are updated after each completed wave
29
+ The parent owns wave orchestration and shared artifacts. Scoped workers own
30
+ implementation tasks.
43
31
 
44
32
  ## Quick start
45
33
 
46
34
  1. Resolve the target spec folder by checking, in order: `apps/wiki/content/docs/project/specs/<domain>/<spec>/`, legacy `apps/wiki/specs/<domain>/<spec>/`, then `docs/specs/<domain>/<spec>/`.
47
35
  2. Read `references/lifecycle.md` and follow the shared execution contract exactly.
48
- 3. Choose the execution mode explicitly:
49
- - Read `references/sequential.md` for default single-worker sequential execution.
50
- - Read `references/parallel.md` for wave-based worker execution.
51
- 4. Record the chosen mode under **Execution mode** in `IMPLEMENTATION-NOTES.md` before coding.
52
- 5. Execute only the chosen mode. Do not mix modes inside one run.
53
- 6. After each completed task or wave, update `PLAN.md`, `IMPLEMENTATION-NOTES.md`, and spec-linked tech debt before advancing.
54
- 7. Use `$codebase-design` vocabulary while reviewing each worker change: interface, seam, adapter, depth, leverage, locality, and test surface.
55
- 8. Resolve implementation debt as soon as it appears. Do not leave "later" work, TODOs, temporary compromises, or vague follow-up debt.
56
- 9. If a debt item needs a product/scope decision outside the active goal, stop and run a very small `$requirements-phase` clarification before continuing.
57
- 10. If backlog sync is in scope, keep epic/story bodies product-facing and use native metadata or comments instead of execution handoff rewrites.
58
- 11. For UI implementation changes, follow [references/ui-screenshot-evidence.md](references/ui-screenshot-evidence.md) and use `repo-asset-management` for durable before/after asset links.
59
- 12. For tasks with `runtime_validation: required`, follow [references/runtime-product-validation.md](references/runtime-product-validation.md) and do not mark them complete without conclusive runtime evidence; an exact blocker keeps the task blocked.
60
- 13. Finish with the shared acceptance audit, manual review checklist, and spec finalization contract.
36
+ 3. Read `references/parallel.md`, parse the plan graph, and build the first unblocked wave.
37
+ 4. Launch scoped workers for the current wave using `references/parallel-worker-brief.md`.
38
+ 5. After each validated wave, update `PLAN.md`, `IMPLEMENTATION-NOTES.md`, and spec-linked tech debt before advancing.
39
+ 6. Use `$codebase-design` vocabulary while reviewing each worker change: interface, seam, adapter, depth, leverage, locality, and test surface.
40
+ 7. Resolve implementation debt as soon as it appears. Do not leave "later" work, TODOs, temporary compromises, or vague follow-up debt.
41
+ 8. If a debt item needs a product/scope decision outside the active goal, stop and run a very small `$requirements-phase` clarification before continuing.
42
+ 9. If backlog sync is in scope, keep epic/story bodies product-facing and use native metadata or comments instead of execution handoff rewrites.
43
+ 10. For UI implementation changes, follow [references/ui-screenshot-evidence.md](references/ui-screenshot-evidence.md) and use `repo-asset-management` for durable before/after asset links.
44
+ 11. For tasks with `runtime_validation: required`, follow [references/runtime-product-validation.md](references/runtime-product-validation.md) and do not mark them complete without conclusive runtime evidence; an exact blocker keeps the task blocked.
45
+ 12. Finish with the shared acceptance audit, manual review checklist, and spec finalization contract.
61
46
 
62
47
  ## Stack-aware branch gate
63
48
 
@@ -77,29 +62,11 @@ Before coding, inspect `PLAN.md` for `Branch/Base Intent`.
77
62
  stack-dependent workflow. Missing `stack` does not block independent
78
63
  trunk-based work.
79
64
 
80
- ## Mode selection
81
-
82
- Choose `sequential` when:
83
-
84
- - the user wants single-threaded execution
85
- - tasks are tightly coupled
86
- - parallel worker handoff cost would outweigh parallelism
87
- - the user did not choose a mode
88
-
89
- Choose `parallel` when:
90
-
91
- - the user wants explicit parallel execution
92
- - the plan contains independent waves
93
- - disjoint write scopes make worker fan-out safe
94
-
95
- If the user already chose a mode, honor it. If not, choose `sequential` and state that it spawns exactly one implementation worker plus parent validation.
96
-
97
65
  ## Advanced features
98
66
 
99
67
  - Shared lifecycle, notes contract, tech-debt rules, acceptance audit, finalization: see [references/lifecycle.md](references/lifecycle.md)
100
68
  - UI before/after screenshot evidence and PR handoff links: see [references/ui-screenshot-evidence.md](references/ui-screenshot-evidence.md)
101
69
  - Supported-runtime proof and cleanup contract: see [references/runtime-product-validation.md](references/runtime-product-validation.md)
102
- - Sequential execution specifics: see [references/sequential.md](references/sequential.md)
103
- - Parallel execution specifics: see [references/parallel.md](references/parallel.md)
104
- - Parallel plan parsing and wave construction: see [references/parallel-orchestration.md](references/parallel-orchestration.md)
105
- - Parallel worker brief contract: see [references/parallel-worker-brief.md](references/parallel-worker-brief.md)
70
+ - Worker-wave execution: see [references/parallel.md](references/parallel.md)
71
+ - Plan parsing and wave construction: see [references/parallel-orchestration.md](references/parallel-orchestration.md)
72
+ - Worker brief contract: see [references/parallel-worker-brief.md](references/parallel-worker-brief.md)
@@ -4,14 +4,10 @@
4
4
 
5
5
  `implement-spec` is the only public execution entrypoint.
6
6
 
7
- It routes to one of two approaches:
7
+ Execution follows plan-derived worker waves. Read [parallel.md](parallel.md) for
8
+ the wave loop and keep shared lifecycle rules here.
8
9
 
9
- - `sequential` — one implementation worker, parent orchestration, parent validation
10
- - `parallel` — wave-based execution with explicit worker orchestration
11
-
12
- Do not recreate wrapper skills for these modes. Keep the routing here and load only the needed mode reference.
13
-
14
- ## 1. Require an existing reviewed spec folder
10
+ ## 1. Require an existing agent-ready spec folder
15
11
 
16
12
  Execution must stay grounded in the first matching spec folder:
17
13
 
@@ -26,6 +22,9 @@ Required files:
26
22
 
27
23
  If `SPEC.md` is missing, stop and report the resolved path error.
28
24
 
25
+ Require `readiness: agent-ready`; no separate spec review or approval state is
26
+ needed.
27
+
29
28
  If `PLAN.md` is missing, stop and use `create-plan`. Do not auto-generate plans from this skill.
30
29
 
31
30
  ## 2. Resolve the target folder
@@ -93,11 +92,11 @@ Do not create the file when nothing durable must survive the run.
93
92
 
94
93
  ## 6. Shared execution invariants
95
94
 
96
- - Mode is manual. The chosen approach decides the execution path.
97
- - Do not switch modes mid-run unless the user explicitly redirects.
98
- - Default to `sequential` when the user does not choose a mode.
99
- - In `sequential`, keep implementation work inside exactly one worker; the parent coordinates, reviews, validates, and finalizes.
100
- - If worker execution is unavailable, stop and repair worker routing or report the blocker. Do not implement in the parent main thread.
95
+ - Require every planned task to declare dependencies, owned paths, validation gates, and a wave boundary.
96
+ - Build each wave from tasks whose dependencies are complete and whose write scopes are disjoint.
97
+ - Workers own implementation changes. The parent coordinates, reviews, validates, updates shared artifacts, and finalizes.
98
+ - A wave may contain one worker when dependencies or owned paths leave one task unblocked.
99
+ - Worker routing must be available before implementation begins; otherwise repair it or report the blocker.
101
100
  - Treat every `tdd_target` as required RED-first behavior, never optional guidance.
102
101
  - Treat `tdd_status`, `red_command`, `expected_red_failure`, `green_command`, `reason_not_testable`, `red_evidence`, and `green_evidence` as the task completion contract.
103
102
  - Treat `codebase_design_notes` as required design context for code-structure changes. Verify the implemented interface, seam, adapter strategy, and test surface match it, or update the notes with the real decision.
@@ -116,9 +115,9 @@ Do not create the file when nothing durable must survive the run.
116
115
  - Execution-time backlog sync may use comments, links, native status, and native relations.
117
116
  - Never rewrite epic or story bodies with task ids, TDD targets, validation commands, or file lists.
118
117
 
119
- ## 7. Shared upkeep after each completed unit
118
+ ## 7. Shared upkeep after each completed wave
120
119
 
121
- After each completed task or wave:
120
+ After each completed wave:
122
121
 
123
122
  - update `PLAN.md` status
124
123
  - append a concise execution log in `PLAN.md`
@@ -194,7 +193,6 @@ Rules:
194
193
  Before reporting back:
195
194
 
196
195
  - remove empty sections from `IMPLEMENTATION-NOTES.md`
197
- - ensure **Execution mode** reflects the mode actually used
198
196
  - ensure **Sanity checks** lists only commands actually run
199
197
  - ensure **UI Evidence Links** has durable before/after asset links for UI implementation changes, or an explicit reason no pair was possible
200
198
  - ensure **Runtime Validation Evidence** contains conclusive proof for every required task, or an exact blocker with the task and acceptance criterion still marked blocked