@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
@@ -5,7 +5,7 @@ description: Requirements grilling with durable branch artifacts, glossary/axiom
5
5
 
6
6
  # Requirements Grill
7
7
 
8
- Use this skill to turn uncertain product, architecture, or implementation ideas into pinned requirements, canonical glossary, and domain axioms that can feed backlog/user-story creation.
8
+ Use this skill to turn uncertain product, architecture, or implementation ideas into pinned requirements, canonical glossary, and domain axioms that `create-spec` can compile after closure.
9
9
 
10
10
  This skill blends the shared `$grilling` primitive with durable artifacts. Use `$grilling` for live interview behavior; use `requirements-grill` when the result must survive as routed grill log/status/wiki knowledge.
11
11
 
@@ -25,7 +25,7 @@ Both workflows can happen in one long session, but keep the responsibilities dis
25
25
 
26
26
  - `<wiki-root>/content/docs/project/grilling/<topic>-grill-log.md` and `<topic>-grill-status.md` are the detailed requirements and glossary record
27
27
  - other routed `<wiki-root>/content/docs/project/` pages are the synthesized project knowledge surface
28
- - backlog/user-story creation is the next phase after the grill gate, outside this skill's scope
28
+ - closed shared understanding routes to `create-spec`; backlog projection is later and outside this skill's scope
29
29
 
30
30
  ## Core Behavior
31
31
 
@@ -41,4 +41,4 @@ Both workflows can happen in one long session, but keep the responsibilities dis
41
41
 
42
42
  At the end, report branch percentages, parked branches, remaining non-design validation work, and the recommended next planning direction.
43
43
 
44
- After `$grilling` completes, say the requirements grill is done and give the likely next direction, usually backlog/user-story creation.
44
+ After `$grilling` completes with shared understanding and all branches closed or explicitly parked, hand the durable grill artifacts to `create-spec`. If the frontier remains open, return to Wayfinder instead of implying backlog readiness.
@@ -1,89 +1,41 @@
1
1
  # Write Backlog Examples
2
2
 
3
- ## From wayfinder route to backlog
4
-
5
- Input route:
6
-
7
- > Loose idea: partner onboarding is important, but the module boundary and first implementation capability are still foggy.
8
-
9
- Output shape:
10
-
11
- - Root item: `fog` — `Clarify partner onboarding frontier`
12
- - Later module / milestone: `Partner onboarding`
13
- - Learning items:
14
- - `grilling` — `Choose partner invitation authority model`
15
- - `research` — `Inspect existing auth and access control seams`
16
- - `prototype` — `Validate invitation review screen shape`
17
- - Accepted implementation item:
18
- - `epic` — `Partner invitation lifecycle`
19
- - `story` — `Operator invites a partner contact`
20
-
21
- Closure rule:
22
-
23
- - Close `grilling`, `research`, and `prototype` with answer, accepted direction, artifacts or evidence, and created or updated epics/stories before delivery starts.
24
-
25
- ## From discussion to backlog
3
+ ## Agent-ready spec projection
26
4
 
27
5
  Input:
28
6
 
29
- > We need a workflow module for intake and review. Coordinators should capture submissions, reviewers should assess and route them, reassignment should preserve context, and archived records must remain visible for auditing.
30
-
31
- Output shape:
32
-
33
- - Module / milestone: `Intake and review`
34
- - Epic: `Submission lifecycle management`
35
- - Stories:
36
- - Coordinator creates a new submission from external intake
37
- - Reviewer updates notes and attached evidence
38
- - Reviewer views the full submission timeline
39
- - Lead reassigns ownership to another reviewer
40
- - Lead manages unassigned submissions
41
- - Lead imports historical submissions
42
- - System marks submissions unassigned when a reviewer is deactivated
43
-
44
- Native order:
45
-
46
- - `Lead manages unassigned submissions` is blocked by:
47
- - `Lead reassigns ownership to another reviewer`
48
- - `Lead imports historical submissions`
49
- - `System marks submissions unassigned when a reviewer is deactivated`
50
-
51
- ## From `requirements-grill` artifacts to backlog
52
-
53
- Input artifacts:
54
-
55
- - `docs/submission-lifecycle-grill-status.md`
56
- - `docs/submission-lifecycle-grill-log.md`
7
+ ```yaml
8
+ readiness: agent-ready
9
+ ```
57
10
 
58
- Read status first:
11
+ - immutable spec link: `<repository-url>/blob/<commit>/SPEC.md`
12
+ - `US-001`: Team lead restores ownership of an unassigned submission.
13
+ - `AC-001` — `Covers: US-001`: Reassignment preserves notes and evidence.
14
+ - `AC-002` — `Covers: US-001`: The new owner sees the submission in their queue.
59
15
 
60
- - branch `ownership-transfer` = `100%`
61
- - branch `unassigned-queue` = `100%`
62
- - branch `historical-import` = `100%`
63
- - branch `deactivation-handling` = `100%`
64
- - recommended next direction = backlog/user-story creation
16
+ Output:
65
17
 
66
- Read log second:
18
+ - capability module: `Intake and review`
19
+ - epic: `Submission lifecycle management`, linked to the immutable spec
20
+ - story: `Lead restores ownership of an unassigned submission`
21
+ - source: `US-001`
22
+ - covers: `AC-001`, `AC-002`
23
+ - demonstration: reassign one unassigned submission and observe preserved evidence plus the new owner's queue
67
24
 
68
- - accepted decisions define ownership visibility, unassigned handling, and import behavior
69
- - superseded decisions are ignored in favor of the latest locked answer
25
+ This is a vertical tracer bullet: one agent can deliver and demonstrate the product outcome without splitting database, API, UI, and tests into separate backlog stories.
70
26
 
71
- Output shape:
27
+ ## Blocker graph
72
28
 
73
- - Module / milestone: `Intake and review`
74
- - Epic: `Submission lifecycle management`
75
- - Stories:
76
- - Lead reassigns ownership to another reviewer
77
- - Lead manages unassigned submissions
78
- - Lead imports historical submissions
79
- - System marks submissions unassigned when a reviewer is deactivated
29
+ - `US-002 / Lead manages the unassigned queue` is blocked by `US-001 / Lead restores ownership`.
30
+ - Both targets exist and the graph is acyclic.
31
+ - `US-001` is assigned `M1`; `US-002` is assigned `M2`.
80
32
 
81
- ## Story-shape reminder
33
+ If a blocker target is missing or the graph cycles, write nothing.
82
34
 
83
- Good story:
35
+ ## Pre-spec intake resolution
84
36
 
85
- `As a team lead, I want to view and manage unassigned submissions so I can restore ownership quickly without losing context`
37
+ An earlier `prototype` item established the review-screen direction. Resolve that intake item with its verdict plus the immutable spec link. Create a separate epic projection. Do not relabel or silently promote the prototype item into the epic.
86
38
 
87
- Bad story:
39
+ ## Invalid input
88
40
 
89
- `Add queue table and reassignment mutation`
41
+ If readiness is absent, `AC-001` lacks `Covers: US-###`, a story is not demonstrable, or provider hierarchy cannot represent the required projection, return every gap before any mutation.
@@ -2,11 +2,9 @@
2
2
 
3
3
  ## Purpose
4
4
 
5
- `write-backlog` is the canonical backlog-authoring skill for this repo.
5
+ `write-backlog` is the provider-mutation adapter for three bounded branches: pre-spec decision intake, update-existing claim/release/resolution, and post-spec delivery projection. It does not compile specifications or create concrete implementation plans. Updating requires a provider id or URL, reads current state first, rejects conflicting claims, and writes the immutable resolution pointer supplied by Finder.
6
6
 
7
- It turns wayfinder routes, requirements discussions, grill artifacts, and accepted decisions into first-class backlog items.
8
-
9
- Supported `kind` values:
7
+ The direct backlog concepts are:
10
8
 
11
9
  - `fog`
12
10
  - `grilling`
@@ -15,78 +13,71 @@ Supported `kind` values:
15
13
  - `epic`
16
14
  - `story`
17
15
 
18
- It does not write specs, plans, or execution handoffs.
19
-
20
- Downstream contract:
21
-
22
- - every supported `kind` is visible, assignable, searchable, linkable, and closeable in the target provider
23
- - `fog` is root-level only
24
- - concrete `grilling`, `research`, `prototype`, `epic`, and `story` items live under a capability module
25
- - chronological execution milestones are derived separately from native blockers
26
- - one epic maps to one future `SPEC.md`
27
- - child stories remain the product-facing slices beneath that epic
28
- - `PLAN.md` later decomposes execution without replacing the backlog model
29
-
30
- ## Supported inputs
31
-
32
- `write-backlog` can work from:
33
-
34
- - a raw requirements discussion
35
- - an existing messy backlog
36
- - `requirements-grill` artifacts from `/Users/stefan/Desktop/repos/weareDevpunks-multiplai/.agents/skills/requirements-grill`
37
- - `wayfinder` or `finder-phase` route decisions
38
- - accepted research, prototype, or grilling closure notes
16
+ No shared cross-provider classification field is required. Every adapter must still make the direct concept visible and searchable through configured native representation or its documented nearest-native fallback. If neither preserves the concept, fail before mutation. Provider vocabulary does not become canonical domain vocabulary.
39
17
 
40
- When grill artifacts exist, treat them as the highest-signal structured source for backlog derivation.
18
+ ## Pre-spec intake contract
41
19
 
42
- ## `requirements-grill` artifact contract
20
+ Finder may request one `fog`, `grilling`, `research`, or `prototype` item before
21
+ a spec exists. A `fog` item requires a frontier or uncertainty description; it
22
+ does not require a precise question. A `grilling`, `research`, or `prototype`
23
+ item requires the precise question derived when fog graduates. Every intake
24
+ also requires its selected classification, map link, dependencies, and claim
25
+ state. Validate the complete intake dependency graph for missing targets,
26
+ self-edges, and cycles before mutation. Materialize exactly that intake item;
27
+ do not infer or create delivery epics/stories.
43
28
 
44
- Expected inputs:
29
+ ## Delivery input contract
45
30
 
46
- - `<wiki-root>/content/docs/project/grilling/<topic>-grill-status.md`
47
- - `<wiki-root>/content/docs/project/grilling/<topic>-grill-log.md`
31
+ Before inspecting or mutating provider state for an `epic` or `story` delivery projection, require:
48
32
 
49
- Read order:
33
+ - a verified stable blob URL to an authoritative `SPEC.md`; local SHA plus path is insufficient
34
+ - frontmatter `readiness: agent-ready`
35
+ - stable `US-###` user stories
36
+ - stable `AC-###` acceptance criteria
37
+ - every criterion carrying `Covers: US-###`
38
+ - no uncovered story and no criterion pointing to a missing story
39
+ - accepted technical/testing decisions and verification seams
40
+ - prototype verdict links when prototypes informed the decisions
50
41
 
51
- 1. status file first
52
- 2. log file second
42
+ If any requirement is missing, return a readiness failure naming every gap. Write nothing to the provider.
53
43
 
54
- Use the status file to extract:
44
+ ## Projection contract
55
45
 
56
- - branch names
57
- - completion percentages
58
- - locked direction
59
- - still-open items
60
- - parked branches
46
+ Create one capability-boundary epic for the spec. Derive the fewest product-facing stories that preserve all `US-###` outcomes and `AC-###` evidence. Every story must:
61
47
 
62
- Use the log file to extract:
48
+ - name its source `US-###` records
49
+ - name its covered `AC-###` records
50
+ - be agent-sized
51
+ - be a vertical tracer bullet with one demonstrable user, operator, or system outcome
52
+ - remain understandable without the implementation plan
63
53
 
64
- - accepted decisions
65
- - superseded decisions
66
- - canonical terms
67
- - branch closure notes
54
+ Split only across distinct product outcomes, acceptance signals, provider boundaries, or true dependencies. Technical layers are not stories.
68
55
 
69
- Backlog derivation rules from grill artifacts:
56
+ ## Readiness before mutation
70
57
 
71
- - derive backlog from locked direction and accepted decisions
72
- - do not promote unresolved still-open items into committed story scope without marking them explicitly
73
- - preserve parked branches as deferred scope, follow-up epic candidates, or backlog notes when relevant
74
- - if two decisions conflict, the latest explicit superseding decision wins
58
+ Build and validate the complete intended projection in memory before the first provider write:
75
59
 
76
- Good handoff signal from `requirements-grill`:
60
+ 1. Resolve the target from `.devpunks/settings.json`.
61
+ 2. Validate the spec and traceability.
62
+ 3. Validate every story as an agent-sized tracer bullet.
63
+ 4. Resolve every blocker to a projected story.
64
+ 5. Reject self-blockers, missing targets, and cycles.
65
+ 6. Derive chronological execution milestones from the complete blocker DAG.
66
+ 7. Validate provider representation and required native primitives.
67
+ 8. Only after every check passes, write immediately without a separate approval stop.
77
68
 
78
- - active branches are `100%`
79
- - remaining work is non-design validation
80
- - recommended next direction is backlog/user-story creation
69
+ A validation failure produces zero mutations. If a provider fails during the write sequence, stop, report created identifiers, and do not claim atomicity or readiness.
81
70
 
82
- If the grill is still materially open:
71
+ ## Intake resolution
83
72
 
84
- - keep backlog conservative
85
- - reflect the unresolved branch as an open scope note instead of pretending closure
73
+ When the work began as a pre-spec `fog`, `grilling`, `research`, or `prototype` item:
86
74
 
87
- ## Canonical model
75
+ - keep that intake item as historical decision evidence
76
+ - resolve it with the immutable spec link and the accepted outcome
77
+ - create a separate delivery epic projection
78
+ - never silently promote or relabel the intake item as the delivery epic
88
79
 
89
- Use this model:
80
+ ## Provider model
90
81
 
91
82
  ```text
92
83
  Backlog root
@@ -102,256 +93,14 @@ Execution milestones
102
93
  M1 -> M2 -> M3 ...
103
94
  ```
104
95
 
105
- Provider mapping:
96
+ Capability grouping is independent from chronology. Native blockers are authoritative. A story with no blockers is `M1`; every other story is `M(1 + max(blocker milestone))`.
106
97
 
107
- - kind -> provider-native single-value kind storage where available
108
- - fog -> root-level issue/work item/item
109
- - capability module -> durable provider grouping independent from chronology
110
- - execution milestone -> dependency-derived chronological wave
111
- - grilling/research/prototype -> capability-module-scoped issue/work item/item
112
- - epic -> capability-module-scoped parent issue/work item/capability record
113
- - story -> child issue/sub-issue/work item under an epic
114
-
115
- monday.com mapping:
116
-
117
- - fog -> root/backlog group item or root planning group item
118
- - capability module -> board group
119
- - execution milestone -> separate Status or Dropdown column derived from dependencies
120
- - grilling/research/prototype -> parent item in a capability group
121
- - epic/capability -> parent item
122
- - story -> subitem
123
- - story ordering -> dependency column when present
124
-
125
- Rules:
126
-
127
- - every supported kind must be a first-class backlog item
128
- - `kind` is separate from workflow state, capability grouping, execution milestone, and parent/child hierarchy
129
- - `fog` must not have child tickets by default
130
- - concrete non-fog items must first choose or create a capability module
131
- - `grilling`, `research`, and `prototype` must close into accepted decisions before they create or update implementation epics/stories
132
- - every story must be independently understandable and product-facing
133
- - one epic may contain multiple stories
134
- - one epic maps to one future `SPEC.md`
135
- - one story does not imply one future `SPEC.md`
98
+ Provider representation is defined in [assets/providers/](assets/providers/). Use actual metadata and native hierarchy/dependency primitives. Do not invent fields, flatten child stories, or replace representable blockers with prose.
136
99
 
137
100
  ## Body ownership
138
101
 
139
- Backlog bodies stay product-facing and kind-appropriate.
140
-
141
- Fog bodies may include:
142
-
143
- - unclear frontier
144
- - why it is not yet module-scoped
145
- - suspected modules or outcomes
146
- - next route candidates
147
-
148
- Grilling bodies may include:
149
-
150
- - decision question
151
- - context
152
- - options
153
- - branch/artifact links
154
- - closure note with accepted answer and downstream items
155
-
156
- Research bodies may include:
157
-
158
- - research question
159
- - evidence sources
160
- - answer criteria
161
- - closure note with evidence and downstream items
162
-
163
- Prototype bodies may include:
164
-
165
- - learning goal
166
- - artifact expectations
167
- - acceptance signal for the prototype result
168
- - closure note with artifact links and downstream items
169
-
170
- Epic bodies may include:
171
-
172
- - outcome
173
- - scope
174
- - cross-story constraints
175
- - links
176
-
177
- Story bodies may include:
178
-
179
- - outcome
180
- - acceptance signals
181
- - non-goals
182
- - links
183
- - approved artifact links or durable visual asset links when they are acceptance context
184
-
185
- Do not put these in backlog bodies:
186
-
187
- - plan task ids
188
- - TDD targets
189
- - file paths
190
- - validation commands
191
- - worker handoffs
192
- - code-structure notes
193
-
194
- ## Ordering rules
195
-
196
- Implementation order belongs in the backlog only through native dependency primitives when supported. Capability grouping never determines chronology. Derive `M1`, `M2`, and later execution milestones with the DAG algorithm in [assets/concepts/backlog-model.md](assets/concepts/backlog-model.md), then store them in the provider mechanism documented by the matching payload asset.
197
-
198
- Preferred order signal:
199
-
200
- - native `blockedBy` / `blocks`
201
-
202
- Avoid:
203
-
204
- - prose-only dependency paragraphs
205
- - fake ordering labels when native blockers exist
206
- - using plan tasks as backlog children
207
-
208
- ## Kind selection workflow
209
-
210
- ### 1. Decide whether the frontier is still fog
211
-
212
- Use `fog` when the work is real but not yet sharp enough to choose a capability module or concrete learning/implementation ticket.
213
-
214
- Do not use `fog` as:
215
-
216
- - a parent for research or grilling tickets
217
- - delivery scope
218
- - a `SPEC.md` anchor
219
- - an execution container
220
-
221
- ### 2. Derive modules
222
-
223
- For concrete non-fog work, split the discussion into durable capability groups that would still make sense if implementation order changed.
224
-
225
- Good capability module:
226
-
227
- - intake and review
228
- - account lifecycle
229
- - notifications
230
-
231
- Bad module:
232
-
233
- - backend foundation
234
- - frontend polish
235
-
236
- ### 3. Derive learning items
237
-
238
- Use these before implementation scope is accepted:
239
-
240
- - `grilling`: the blocker is a human decision.
241
- - `research`: readonly investigation can answer it.
242
- - `prototype`: artifact-driven learning is needed.
243
-
244
- Each item must live under a capability module and close with an accepted decision note before changing epics/stories.
245
-
246
- ### 4. Derive epics
247
-
248
- Within each module, create epics/capabilities that will later justify one coherent spec.
249
-
250
- Good epic:
251
-
252
- - submission lifecycle management
253
- - account onboarding and activation
254
-
255
- Bad epic:
256
-
257
- - database schema
258
- - API routes
259
-
260
- ### 5. Derive stories
261
-
262
- Break each epic into stories only when the slice is product-facing and independently observable.
263
-
264
- Good story:
265
-
266
- - coordinator creates a new submission from external intake
267
- - lead reassigns ownership to another reviewer
268
-
269
- Bad story:
270
-
271
- - add column and router
272
- - create mutation and form hook
273
-
274
- ### 6. Add native order
275
-
276
- Only add blockers when one story truly depends on another story outcome.
277
-
278
- Use blockers for:
279
-
280
- - foundational product slices
281
- - gating flows
282
- - prerequisite user-visible capability
283
-
284
- Do not add blockers for:
285
-
286
- - internal code layering preferences
287
- - one engineer wanting to implement one file before another
288
-
289
- ## Using grill artifacts during derivation
290
-
291
- When the source is a grill status/log pair:
292
-
293
- - use branch names and locked direction to identify likely module boundaries
294
- - use accepted decisions to define epic boundaries
295
- - use branch closure notes and concrete accepted answers to derive stories
296
- - use still-open items only as:
297
- - explicit open questions for the backlog author
298
- - deferred scope notes
299
- - follow-up epic/story candidates when the source already frames them that way
300
-
301
- Do not:
302
-
303
- - turn every grill question into a story
304
- - treat partially closed branches as committed epic scope by default
305
- - ignore canonical terminology captured in the grill log
306
-
307
- ## Closure and handoff
308
-
309
- For `grilling`, `research`, and `prototype`, closure notes must include:
310
-
311
- - answer
312
- - accepted direction
313
- - artifacts or evidence
314
- - created or updated epics/stories
315
-
316
- Do not create or update implementation `epic` or `story` items from unresolved learning work.
317
-
318
- ## Handoff to `create-spec`
319
-
320
- When `create-spec` is given a backlog-backed epic:
321
-
322
- - the epic is the spec anchor
323
- - every child story is mandatory source material
324
- - the resulting `SPEC.md` must cover all child stories under that epic
325
- - the spec must preserve per-story requirements while unifying them into one coherent problem-space contract
326
-
327
- ## Provider policy
328
-
329
- This skill documents raw provider create/setup payloads and provider-native kind storage.
330
-
331
- In scope:
332
-
333
- - create issue/work item payload shapes
334
- - create provider containers needed for the canonical hierarchy
335
- - required vs optional fields
336
- - how `kind` appears at creation time
337
- - how module/epic/story intent appears at creation time
338
-
339
- Out of scope:
340
-
341
- - completion-time execution sync
342
- - comment payloads
343
- - status churn after backlog creation
344
- - provider-specific asset upload commands; use `repo-asset-management` for backlog attachments and repo-provider fallback links
345
-
346
- If a provider cannot express part of the canonical model in one create call:
347
-
348
- - document the limitation explicitly
349
- - include the minimal native follow-up call needed to preserve module -> epic -> story
350
- - do not silently flatten or reshape the model
102
+ Epic bodies contain outcome, scope, cross-story constraints, the immutable spec link, and child story links.
351
103
 
352
- ## Anti-patterns
104
+ Story bodies contain product outcome, `US-###` sources, `AC-###` coverage, demonstration signal, non-goals, dependencies, and durable accepted-artifact links.
353
105
 
354
- - one backlog item per implementation task
355
- - one `SPEC.md` per child story when the epic is the real capability boundary
356
- - milestone descriptions that duplicate entire epic bodies
357
- - story bodies rewritten into execution handoffs after planning
106
+ Keep `PLAN.md` task ids, file paths, validation commands, worker assignments, and code structure out of backlog bodies. Concrete planning remains downstream in `delivery-phase` / `create-plan`.