@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.
- package/dist/BASELINE_CHANGELOG.md +21 -0
- package/dist/CHANGELOG.md +46 -0
- package/dist/baseline/scaffold-baseline/baseline.json +4 -4
- package/dist/baseline/scaffold-baseline/data/catalog/packs.json +23 -3
- package/dist/baseline/scaffold-baseline/data/catalog/skills.json +26 -2
- package/dist/baseline/scaffold-baseline/data/hooks/format-edited-file.mjs +13 -0
- package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents.mjs +862 -49
- package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents.test.ts +1295 -38
- package/dist/baseline/scaffold-baseline/data/subagents/manifest.mjs +3 -1
- package/dist/baseline/scaffold-baseline/data/subagents/manifest.test.ts +20 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/SKILL.md +4 -3
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/agents/openai.yaml +1 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +3 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-for-agents/LICENSE +21 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-for-agents/SKILL-MECHANICS.md +22 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-for-agents/SKILL.md +81 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-for-agents/UPSTREAM.md +9 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/SKILL.md +27 -15
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/backlog-sync.md +19 -32
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/plan-schema.md +14 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/planner-task-graph.md +5 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/stop-conditions.md +2 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/SKILL.md +51 -105
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +26 -57
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/folder-naming.md +6 -3
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/readiness.md +41 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +15 -6
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/wiki-bookkeeping.md +3 -3
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/SKILL.md +21 -54
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +0 -4
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/lifecycle.md +13 -15
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +7 -4
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +4 -2
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel.md +9 -35
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/wayfinder/SKILL.md +11 -8
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/requirements-grill/SKILL.md +3 -3
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/EXAMPLES.md +25 -73
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/REFERENCE.md +54 -305
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/SKILL.md +46 -55
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +33 -119
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +24 -14
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +53 -11
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +48 -26
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +53 -12
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +49 -33
- package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/DURABLE-REPORT.md +20 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/SKILL.md +14 -2
- package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/LICENSE +21 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/LOGIC.md +57 -21
- package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/SKILL.md +17 -15
- package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/UI.md +12 -5
- package/dist/baseline/scaffold-baseline/skills/agnostic/research/prototype/UPSTREAM.md +11 -0
- package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect/SKILL.md +5 -12
- package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect/references/CONFIG.md +10 -19
- package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect/references/SERVICES_LAYERS.md +3 -63
- package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect/references/TESTING.md +2 -72
- package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-backend-structure/SKILL.md +12 -29
- package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-backend-structure/agents/openai.yaml +1 -1
- package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-backend-structure/references/layout.md +9 -9
- package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-service-design/LICENSE +21 -0
- package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-service-design/SKILL.md +124 -0
- package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-service-design/references/AUDIT.md +98 -0
- package/dist/baseline/scaffold-baseline/skills/misc/wait-what/LICENSE +21 -0
- package/dist/baseline/scaffold-baseline/skills/misc/wait-what/SKILL.md +7 -0
- package/dist/baseline/scaffold-baseline/skills/misc/wait-what/UPSTREAM.md +9 -0
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/SKILL.md +4 -3
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/backlog.md +31 -0
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/implement.md +5 -4
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/plan.md +6 -4
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +16 -14
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/spec.md +9 -5
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/artifact-state.md +9 -2
- package/dist/baseline/scaffold-baseline/skills/phases/design-phase/phases/backlog.md +4 -4
- package/dist/baseline/scaffold-baseline/skills/phases/design-phase/phases/prototype.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/phases/docs-ingest-phase/phases/private-internal.md +3 -1
- package/dist/baseline/scaffold-baseline/skills/phases/docs-ingest-phase/references/learning-artifacts.md +8 -1
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/SKILL.md +24 -24
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/agents/openai.yaml +1 -1
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/convergence.md +39 -0
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/frontier-lifecycle.md +22 -16
- package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/root-routing.md +3 -2
- package/dist/baseline/scaffold-baseline/skills/phases/prototype-phase/SKILL.md +34 -0
- package/dist/baseline/scaffold-baseline/skills/phases/prototype-phase/VERDICT-TEMPLATE.md +16 -0
- package/dist/baseline/scaffold-baseline/skills/phases/prototype-phase/agents/openai.yaml +2 -0
- package/dist/baseline/scaffold-baseline/skills/phases/requirements-phase/SKILL.md +14 -57
- package/dist/baseline/scaffold-baseline.json +4 -4
- package/dist/baseline/scaffold-baseline.tgz +0 -0
- package/dist/data/hooks/format-edited-file.mjs +13 -0
- package/dist/data/scripts/sync-subagents.mjs +862 -49
- package/dist/data/subagents/manifest.mjs +3 -1
- package/dist/index.js +667 -194
- package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +4 -3
- package/dist/skills/agnostic/docs/docs-onboarding/agents/openai.yaml +1 -1
- package/dist/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +3 -1
- package/dist/skills/agnostic/docs/writing-for-agents/LICENSE +21 -0
- package/dist/skills/agnostic/docs/writing-for-agents/SKILL-MECHANICS.md +22 -0
- package/dist/skills/agnostic/docs/writing-for-agents/SKILL.md +81 -0
- package/dist/skills/agnostic/docs/writing-for-agents/UPSTREAM.md +9 -0
- package/dist/skills/agnostic/planning/create-plan/SKILL.md +27 -15
- package/dist/skills/agnostic/planning/create-plan/references/backlog-sync.md +19 -32
- package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +14 -0
- package/dist/skills/agnostic/planning/create-plan/references/planner-task-graph.md +5 -1
- package/dist/skills/agnostic/planning/create-plan/references/stop-conditions.md +2 -1
- package/dist/skills/agnostic/planning/create-spec/SKILL.md +51 -105
- package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +26 -57
- package/dist/skills/agnostic/planning/create-spec/references/folder-naming.md +6 -3
- package/dist/skills/agnostic/planning/create-spec/references/readiness.md +41 -0
- package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +15 -6
- package/dist/skills/agnostic/planning/create-spec/references/wiki-bookkeeping.md +3 -3
- package/dist/skills/agnostic/planning/implement-spec/SKILL.md +21 -54
- package/dist/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +0 -4
- package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +13 -15
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +7 -4
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +4 -2
- package/dist/skills/agnostic/planning/implement-spec/references/parallel.md +9 -35
- package/dist/skills/agnostic/planning/wayfinder/SKILL.md +11 -8
- package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +3 -3
- package/dist/skills/agnostic/requirements/write-backlog/EXAMPLES.md +25 -73
- package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +54 -305
- package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +46 -55
- package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +33 -119
- package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +24 -14
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +53 -11
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +48 -26
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +53 -12
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +49 -33
- package/dist/skills/agnostic/research/parallel-research/DURABLE-REPORT.md +20 -0
- package/dist/skills/agnostic/research/parallel-research/SKILL.md +14 -2
- package/dist/skills/agnostic/research/prototype/LICENSE +21 -0
- package/dist/skills/agnostic/research/prototype/LOGIC.md +57 -21
- package/dist/skills/agnostic/research/prototype/SKILL.md +17 -15
- package/dist/skills/agnostic/research/prototype/UI.md +12 -5
- package/dist/skills/agnostic/research/prototype/UPSTREAM.md +11 -0
- package/dist/skills/frameworks/effect/effect/SKILL.md +5 -12
- package/dist/skills/frameworks/effect/effect/references/CONFIG.md +10 -19
- package/dist/skills/frameworks/effect/effect/references/SERVICES_LAYERS.md +3 -63
- package/dist/skills/frameworks/effect/effect/references/TESTING.md +2 -72
- package/dist/skills/frameworks/effect/effect-backend-structure/SKILL.md +12 -29
- package/dist/skills/frameworks/effect/effect-backend-structure/agents/openai.yaml +1 -1
- package/dist/skills/frameworks/effect/effect-backend-structure/references/layout.md +9 -9
- package/dist/skills/frameworks/effect/effect-service-design/LICENSE +21 -0
- package/dist/skills/frameworks/effect/effect-service-design/SKILL.md +124 -0
- package/dist/skills/frameworks/effect/effect-service-design/references/AUDIT.md +98 -0
- package/dist/skills/misc/wait-what/LICENSE +21 -0
- package/dist/skills/misc/wait-what/SKILL.md +7 -0
- package/dist/skills/misc/wait-what/UPSTREAM.md +9 -0
- package/dist/skills/phases/delivery-phase/SKILL.md +4 -3
- package/dist/skills/phases/delivery-phase/phases/backlog.md +31 -0
- package/dist/skills/phases/delivery-phase/phases/implement.md +5 -4
- package/dist/skills/phases/delivery-phase/phases/plan.md +6 -4
- package/dist/skills/phases/delivery-phase/phases/router.md +16 -14
- package/dist/skills/phases/delivery-phase/phases/spec.md +9 -5
- package/dist/skills/phases/delivery-phase/references/artifact-state.md +9 -2
- package/dist/skills/phases/design-phase/phases/backlog.md +4 -4
- package/dist/skills/phases/design-phase/phases/prototype.md +1 -1
- package/dist/skills/phases/docs-ingest-phase/phases/private-internal.md +3 -1
- package/dist/skills/phases/docs-ingest-phase/references/learning-artifacts.md +8 -1
- package/dist/skills/phases/finder-phase/SKILL.md +24 -24
- package/dist/skills/phases/finder-phase/agents/openai.yaml +1 -1
- package/dist/skills/phases/finder-phase/references/convergence.md +39 -0
- package/dist/skills/phases/finder-phase/references/frontier-lifecycle.md +22 -16
- package/dist/skills/phases/finder-phase/references/root-routing.md +3 -2
- package/dist/skills/phases/prototype-phase/SKILL.md +34 -0
- package/dist/skills/phases/prototype-phase/VERDICT-TEMPLATE.md +16 -0
- package/dist/skills/phases/prototype-phase/agents/openai.yaml +2 -0
- package/dist/skills/phases/requirements-phase/SKILL.md +14 -57
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-great-skills/GLOSSARY.md +0 -69
- package/dist/baseline/scaffold-baseline/skills/agnostic/docs/writing-great-skills/SKILL.md +0 -61
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/backlog-sync.md +0 -49
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/discovery.md +0 -54
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/grill-phase.md +0 -42
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-spec/references/questioning.md +0 -51
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/sequential.md +0 -48
- package/dist/skills/agnostic/docs/writing-great-skills/GLOSSARY.md +0 -69
- package/dist/skills/agnostic/docs/writing-great-skills/SKILL.md +0 -61
- package/dist/skills/agnostic/planning/create-spec/references/backlog-sync.md +0 -49
- package/dist/skills/agnostic/planning/create-spec/references/discovery.md +0 -54
- package/dist/skills/agnostic/planning/create-spec/references/grill-phase.md +0 -42
- package/dist/skills/agnostic/planning/create-spec/references/questioning.md +0 -51
- package/dist/skills/agnostic/planning/implement-spec/references/sequential.md +0 -48
|
@@ -9,6 +9,10 @@ Official sources:
|
|
|
9
9
|
- Project fields: [docs.github.com/en/issues/planning-and-tracking-with-projects/understanding-fields](https://docs.github.com/en/issues/planning-and-tracking-with-projects/understanding-fields)
|
|
10
10
|
- Issue dependencies: [docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/creating-issue-dependencies](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/creating-issue-dependencies)
|
|
11
11
|
|
|
12
|
+
## Preflight before creation
|
|
13
|
+
|
|
14
|
+
Before creating any item, build the complete in-memory projection. Resolve every dependency target, reject missing targets, self-edges, and cycles, derive and verify every milestone, and prove the configured hierarchy, classification, and dependency representation is representable in GitHub. A failed preflight writes nothing.
|
|
15
|
+
|
|
12
16
|
## Intent
|
|
13
17
|
|
|
14
18
|
Use GitHub Projects V2 and GitHub Issues together.
|
|
@@ -23,6 +27,10 @@ Canonical mapping:
|
|
|
23
27
|
|
|
24
28
|
Do not use an issues-only path for GitHub backlog sync when Projects V2 is available.
|
|
25
29
|
|
|
30
|
+
## Update existing decision tickets
|
|
31
|
+
|
|
32
|
+
Use the GraphQL `updateIssue` mutation or REST issue update for claim, release, and resolve after reading the current assignees/state and rejecting a conflicting claim. Use only configured Project fields. Resolution closes the issue and records the immutable resolution pointer in the body or a durable comment. Return the updated issue id and URL to Finder.
|
|
33
|
+
|
|
26
34
|
## Required bootstrap
|
|
27
35
|
|
|
28
36
|
Resolve these IDs before creating backlog items:
|
|
@@ -49,17 +57,21 @@ mutation CreateBacklogProject($ownerId: ID!, $repositoryId: ID!, $title: String!
|
|
|
49
57
|
}
|
|
50
58
|
```
|
|
51
59
|
|
|
52
|
-
|
|
60
|
+
Configured Project fields may include:
|
|
53
61
|
|
|
54
62
|
- `Kind`: Project custom single-select field named `Kind` with values `fog`, `grilling`, `research`, `prototype`, `epic`, `story`
|
|
55
63
|
- `Capability module`: Project custom single-select field with one option per durable product capability
|
|
56
64
|
- `Epic`: text, storing the epic issue number/title for story rows
|
|
57
65
|
|
|
58
|
-
|
|
66
|
+
Use `updateProjectV2ItemFieldValue` only for fields named by the project configuration. A missing configured field is a setup blocker; do not bootstrap classification fields implicitly.
|
|
67
|
+
|
|
68
|
+
## Provider classification
|
|
69
|
+
|
|
70
|
+
Classification examples assume explicit configuration.
|
|
59
71
|
|
|
60
|
-
|
|
72
|
+
Inspect configured provider metadata before choosing a representation. An adapter-specific Project custom single-select field named `Kind` may represent the direct backlog concepts.
|
|
61
73
|
|
|
62
|
-
|
|
74
|
+
Only when explicitly configured to use that field, resolve it and its matching option. If it is absent, record a setup blocker; do not create classification fields or options by default.
|
|
63
75
|
|
|
64
76
|
Allowed values:
|
|
65
77
|
|
|
@@ -70,7 +82,15 @@ Allowed values:
|
|
|
70
82
|
- `epic`
|
|
71
83
|
- `story`
|
|
72
84
|
|
|
73
|
-
|
|
85
|
+
Prefer the configured Project field when it exists. Issue types are organization-level and may instead be the workspace's chosen adapter representation. No particular field is required across providers.
|
|
86
|
+
|
|
87
|
+
Fallback order:
|
|
88
|
+
|
|
89
|
+
1. configured Project field
|
|
90
|
+
2. existing GitHub Issue Type or label that exactly preserves the direct concept
|
|
91
|
+
3. stable title prefix such as `[story]`
|
|
92
|
+
|
|
93
|
+
If repository policy permits none of these, fail preflight. Do not create classification fields, types, or labels implicitly.
|
|
74
94
|
|
|
75
95
|
## Capability grouping
|
|
76
96
|
|
|
@@ -82,13 +102,11 @@ Fog leaves `Capability module` empty until sharpening selects a module. Every se
|
|
|
82
102
|
|
|
83
103
|
Use repository milestones named `M1`, `M2`, and so on only for dependency-derived execution waves. Do not create one repository milestone per capability module.
|
|
84
104
|
|
|
85
|
-
1.
|
|
86
|
-
2.
|
|
87
|
-
3.
|
|
88
|
-
4.
|
|
89
|
-
5. Assign
|
|
90
|
-
6. Create or reuse the derived repository milestones and assign exactly one to each selected milestone-eligible issue.
|
|
91
|
-
7. Verify every blocker belongs to a strictly earlier milestone.
|
|
105
|
+
1. In memory, resolve the complete selected graph and reject missing targets, self-edges, or cycles.
|
|
106
|
+
2. Derive blocker-free issues as `M1`; derive every other issue as `M(1 + max(milestone number of each blocker))`.
|
|
107
|
+
3. Verify every blocker belongs to a strictly earlier milestone and that GitHub can represent the complete hierarchy and graph.
|
|
108
|
+
4. Only after preflight passes, create issues, map planned keys to provider ids, add every native blocker with `addBlockedBy`, and create or reuse milestones.
|
|
109
|
+
5. Assign exactly one verified milestone to each selected milestone-eligible issue.
|
|
92
110
|
|
|
93
111
|
Issues from different capability modules can share one milestone, and one capability module can span multiple milestones. Recompute milestone assignment whenever native dependencies change.
|
|
94
112
|
|
|
@@ -142,7 +160,7 @@ After creation, set Project fields:
|
|
|
142
160
|
- `Kind = grilling`, `Kind = research`, or `Kind = prototype`
|
|
143
161
|
- `Capability module = <module title>`
|
|
144
162
|
|
|
145
|
-
Closure notes for these issues
|
|
163
|
+
Closure notes for these issues record the answer or verdict, evidence, observations, open decisions, and resolution pointer for Wayfinder. They do not authorize delivery.
|
|
146
164
|
|
|
147
165
|
## Create an epic issue
|
|
148
166
|
|
|
@@ -177,7 +195,10 @@ Epic body ownership:
|
|
|
177
195
|
- scope
|
|
178
196
|
- cross-story constraints
|
|
179
197
|
- child story list
|
|
180
|
-
-
|
|
198
|
+
- immutable spec link
|
|
199
|
+
- accepted artifact links when relevant
|
|
200
|
+
|
|
201
|
+
Minimum body headings: `Outcome`, `Scope`, `Constraints`, `Immutable spec`, and `Stories`.
|
|
181
202
|
|
|
182
203
|
After creation, set Project fields:
|
|
183
204
|
|
|
@@ -219,9 +240,14 @@ mutation CreateStory(
|
|
|
219
240
|
Story body ownership:
|
|
220
241
|
|
|
221
242
|
- outcome
|
|
222
|
-
-
|
|
243
|
+
- source `US-###`
|
|
244
|
+
- covered `AC-###`
|
|
245
|
+
- demonstration
|
|
223
246
|
- non-goals
|
|
224
|
-
-
|
|
247
|
+
- immutable spec link
|
|
248
|
+
- accepted artifact links
|
|
249
|
+
|
|
250
|
+
Minimum body headings: `Outcome`, `Source stories`, `Acceptance criteria`, `Demonstration`, `Non-goals`, and `Links`.
|
|
225
251
|
|
|
226
252
|
After creation, set Project fields:
|
|
227
253
|
|
|
@@ -262,16 +288,12 @@ mutation AddBlockedBy($issueId: ID!, $blockingIssueId: ID!) {
|
|
|
262
288
|
|
|
263
289
|
## Minimal creation order
|
|
264
290
|
|
|
265
|
-
1. Resolve repository/owner IDs.
|
|
266
|
-
2.
|
|
267
|
-
3.
|
|
268
|
-
4.
|
|
269
|
-
5.
|
|
270
|
-
6. Create
|
|
271
|
-
7. Create story child issues with `parentIssueId` and `projectV2Ids`.
|
|
272
|
-
8. Set Project field values for kind/capability/epic grouping.
|
|
273
|
-
9. Add native issue dependencies for every real blocker.
|
|
274
|
-
10. Derive, create or reuse, and assign chronological repository milestones from the complete dependency graph.
|
|
291
|
+
1. Resolve repository/owner IDs, Project V2, configured fields, and capability-module options.
|
|
292
|
+
2. Complete the in-memory hierarchy, graph, milestone, and representability preflight.
|
|
293
|
+
3. Only after preflight passes, create root fog or selected delivery issues and story children.
|
|
294
|
+
4. Set only explicitly configured Project field values.
|
|
295
|
+
5. Map planned keys to provider ids and add native dependencies.
|
|
296
|
+
6. Create or reuse the already-derived chronological repository milestones and assign them.
|
|
275
297
|
|
|
276
298
|
## Notes
|
|
277
299
|
|
package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md
CHANGED
|
@@ -12,6 +12,10 @@ Official sources:
|
|
|
12
12
|
- `Content-Type: application/json`
|
|
13
13
|
- `Authorization: Bearer <ACCESS_TOKEN>`
|
|
14
14
|
|
|
15
|
+
## Preflight before creation
|
|
16
|
+
|
|
17
|
+
Before creating any item, build the complete in-memory projection. Resolve every dependency target, reject missing targets, self-edges, and cycles, derive and verify every milestone, and prove the configured hierarchy, classification, and dependency representation is representable in Linear. A failed preflight writes nothing.
|
|
18
|
+
|
|
15
19
|
## Minimum documented mutation
|
|
16
20
|
|
|
17
21
|
```graphql
|
|
@@ -28,6 +32,10 @@ mutation IssueCreate($input: IssueCreateInput!) {
|
|
|
28
32
|
}
|
|
29
33
|
```
|
|
30
34
|
|
|
35
|
+
## Update existing decision tickets
|
|
36
|
+
|
|
37
|
+
Use Linear `issueUpdate(id: ..., input: ...)` for claim, release, and resolve after reading the issue's current assignee/state and rejecting a conflicting claim. Use only configured assignee/state/label fields. Resolution updates the terminal state and appends the immutable resolution pointer to the issue body or closure comment. Return the updated identifier and URL to Finder.
|
|
38
|
+
|
|
31
39
|
```json
|
|
32
40
|
{
|
|
33
41
|
"query": "mutation IssueCreate($input: IssueCreateInput!) { issueCreate(input: $input) { success issue { id identifier title url } } }",
|
|
@@ -47,6 +55,8 @@ mutation IssueCreate($input: IssueCreateInput!) {
|
|
|
47
55
|
}
|
|
48
56
|
```
|
|
49
57
|
|
|
58
|
+
The example `labelIds` value assumes an explicitly configured classification label group. Without it, use the fallback below and change the example title accordingly.
|
|
59
|
+
|
|
50
60
|
## Required fields
|
|
51
61
|
|
|
52
62
|
- `teamId`
|
|
@@ -62,11 +72,13 @@ mutation IssueCreate($input: IssueCreateInput!) {
|
|
|
62
72
|
- `stateId`
|
|
63
73
|
- `dueDate`
|
|
64
74
|
|
|
65
|
-
##
|
|
75
|
+
## Provider classification
|
|
76
|
+
|
|
77
|
+
Classification examples assume explicit configuration.
|
|
66
78
|
|
|
67
|
-
|
|
79
|
+
Inspect configured provider metadata before choosing a representation. An adapter-specific single-select Linear label group may represent the direct backlog concepts.
|
|
68
80
|
|
|
69
|
-
|
|
81
|
+
Only when explicitly configured to use a `Kind` label group, use one matching label:
|
|
70
82
|
|
|
71
83
|
- `Kind/fog`
|
|
72
84
|
- `Kind/grilling`
|
|
@@ -75,7 +87,15 @@ Use one label from the `Kind` group:
|
|
|
75
87
|
- `Kind/epic`
|
|
76
88
|
- `Kind/story`
|
|
77
89
|
|
|
78
|
-
Linear label groups allow only one label from the group per issue. Do not use workflow state as
|
|
90
|
+
Linear label groups allow only one label from the group per issue. Do not use workflow state as classification. Do not create a label group by default.
|
|
91
|
+
|
|
92
|
+
Fallback order:
|
|
93
|
+
|
|
94
|
+
1. configured label group
|
|
95
|
+
2. existing native issue label or category that exactly preserves the direct concept
|
|
96
|
+
3. stable title prefix such as `[story]`
|
|
97
|
+
|
|
98
|
+
If workspace policy permits none of these, fail preflight. Do not create labels implicitly.
|
|
79
99
|
|
|
80
100
|
## Repo mapping
|
|
81
101
|
|
|
@@ -88,7 +108,29 @@ Linear label groups allow only one label from the group per issue. Do not use wo
|
|
|
88
108
|
- epic -> top-level issue with `Kind/epic`
|
|
89
109
|
- story -> child issue created with `parentId` and `Kind/story`
|
|
90
110
|
|
|
91
|
-
`grilling`, `research`, and `prototype` closure notes
|
|
111
|
+
`grilling`, `research`, and `prototype` closure notes record the answer or verdict, evidence, observations, open decisions, and resolution pointer for Wayfinder. They do not authorize delivery.
|
|
112
|
+
|
|
113
|
+
## Delivery body contracts
|
|
114
|
+
|
|
115
|
+
Epic body ownership:
|
|
116
|
+
|
|
117
|
+
- outcome
|
|
118
|
+
- scope and cross-story constraints
|
|
119
|
+
- child story list
|
|
120
|
+
- immutable spec link
|
|
121
|
+
- accepted artifact links when relevant
|
|
122
|
+
|
|
123
|
+
Story body ownership:
|
|
124
|
+
|
|
125
|
+
- outcome
|
|
126
|
+
- source `US-###`
|
|
127
|
+
- covered `AC-###`
|
|
128
|
+
- demonstration
|
|
129
|
+
- non-goals and dependencies
|
|
130
|
+
- immutable spec link
|
|
131
|
+
- accepted artifact links
|
|
132
|
+
|
|
133
|
+
Use these headings in `description`; do not substitute a mutable local spec path.
|
|
92
134
|
|
|
93
135
|
## Chronological execution milestones
|
|
94
136
|
|
|
@@ -96,12 +138,11 @@ Linear project milestones answer first/next/later. Name them chronologically, su
|
|
|
96
138
|
|
|
97
139
|
Only selected non-fog `grilling`, `research`, `prototype`, `epic`, and `story` issues are milestone-eligible. Fog has no execution milestone until sharpened into concrete work. Capability-module metadata remains grouping and is not an execution issue.
|
|
98
140
|
|
|
99
|
-
1.
|
|
100
|
-
2.
|
|
101
|
-
3.
|
|
102
|
-
4.
|
|
103
|
-
5.
|
|
104
|
-
6. Verify every blocker is in a strictly earlier milestone than the issue it blocks.
|
|
141
|
+
1. In memory, resolve the complete selected graph and reject missing targets, self-edges, or cycles.
|
|
142
|
+
2. Derive blocker-free issues as `M1`; derive every other issue as `M(1 + max(milestone number of each blocker))`.
|
|
143
|
+
3. Verify every blocker is in a strictly earlier milestone and that the configured Linear representation supports the full graph.
|
|
144
|
+
4. Only after preflight passes, create issues, map planned keys to provider ids, create native blocker relations, and create or reuse the derived milestones.
|
|
145
|
+
5. Assign exactly one verified milestone to each selected milestone-eligible issue.
|
|
105
146
|
|
|
106
147
|
Issues in the same derived wave share a milestone and can proceed in parallel, even when they belong to different capability modules. A capability module can span multiple milestones. Capability grouping, parent/child hierarchy, and existing milestone assignment never determine chronology. Native blocker relations remain authoritative; recompute milestone assignment and numbering whenever they change.
|
|
107
148
|
|
|
@@ -109,6 +150,6 @@ Issues in the same derived wave share a milestone and can proceed in parallel, e
|
|
|
109
150
|
|
|
110
151
|
- Linear issues belong to a single team.
|
|
111
152
|
- If `stateId` is omitted, Linear assigns the team’s default backlog or triage state.
|
|
112
|
-
- If
|
|
153
|
+
- If an explicitly configured label group is absent, record a provider setup blocker. Do not create classification labels or groups without explicit configuration.
|
|
113
154
|
- Linear’s GraphQL schema is introspectable. If you need a workspace-specific or newly-added create field, inspect `IssueCreateInput` before hardcoding it.
|
|
114
155
|
- Project milestone assignment is part of project-backed issue creation in Linear. Treat the current schema or SDK types as the source of truth for the exact milestone input field name in your workspace version.
|
package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md
CHANGED
|
@@ -5,6 +5,10 @@ Connector source:
|
|
|
5
5
|
- monday.com MCP tools exposed through `@monday-com`
|
|
6
6
|
- Dependency column API: [developer.monday.com/api-reference/reference/dependency](https://developer.monday.com/api-reference/reference/dependency)
|
|
7
7
|
|
|
8
|
+
## Preflight before creation
|
|
9
|
+
|
|
10
|
+
Before creating any item, build the complete in-memory projection. Resolve every dependency target, reject missing targets, self-edges, and cycles, derive and verify every milestone, and prove the configured hierarchy, classification, and dependency representation is representable in monday.com. A failed preflight writes nothing.
|
|
11
|
+
|
|
8
12
|
## Intent
|
|
9
13
|
|
|
10
14
|
Use monday.com boards, groups, items, subitems, and dependency columns together.
|
|
@@ -21,16 +25,19 @@ Canonical mapping:
|
|
|
21
25
|
|
|
22
26
|
Do not flatten epics and stories into sibling items when subitems are available.
|
|
23
27
|
|
|
28
|
+
## Update existing decision tickets
|
|
29
|
+
|
|
30
|
+
Use `@monday-com.change_item_column_values` for claim, release, and resolve after reading the item's configured people/status columns and rejecting a conflicting claim. Resolution sets the configured terminal status and writes the immutable resolution pointer to the configured long-text/update surface. Return the updated item id and board URL to Finder.
|
|
31
|
+
|
|
24
32
|
## Required bootstrap
|
|
25
33
|
|
|
26
34
|
Resolve the target board before creating backlog items.
|
|
27
35
|
|
|
28
36
|
Before creating or updating items on a board, inspect board metadata with the connector's board info tool so column IDs, column types, status labels, subitem support, and dependency columns are known. Do not invent column IDs.
|
|
29
37
|
|
|
30
|
-
Expected board shape:
|
|
38
|
+
Expected board shape, subject to explicit board configuration:
|
|
31
39
|
|
|
32
|
-
-
|
|
33
|
-
- `Kind` labels/options: `fog`, `grilling`, `research`, `prototype`, `epic`, `story`
|
|
40
|
+
- optional configured Status or Dropdown classification column, which may be named `Kind`
|
|
34
41
|
- one board group per capability module
|
|
35
42
|
- parent items for epics/capabilities
|
|
36
43
|
- subitems for stories
|
|
@@ -39,9 +46,13 @@ Expected board shape:
|
|
|
39
46
|
|
|
40
47
|
If the target group for a capability module is missing, create it before creating concrete items.
|
|
41
48
|
|
|
42
|
-
##
|
|
49
|
+
## Provider classification
|
|
50
|
+
|
|
51
|
+
Classification examples assume explicit configuration.
|
|
43
52
|
|
|
44
|
-
|
|
53
|
+
Inspect configured provider metadata before choosing a representation. An adapter-specific Status or Dropdown column named `Kind` may represent the direct backlog concepts.
|
|
54
|
+
|
|
55
|
+
Only when explicitly configured to use that column, resolve its id and matching label. If it is absent, record a setup blocker; do not create classification columns or labels by default.
|
|
45
56
|
|
|
46
57
|
Allowed values:
|
|
47
58
|
|
|
@@ -54,6 +65,14 @@ Allowed values:
|
|
|
54
65
|
|
|
55
66
|
Keep workflow state in a separate Status column. Do not overload status labels such as `Working` or `Done` as kind.
|
|
56
67
|
|
|
68
|
+
Fallback order:
|
|
69
|
+
|
|
70
|
+
1. configured Status or Dropdown column
|
|
71
|
+
2. existing native category/tag column that exactly preserves the direct concept
|
|
72
|
+
3. stable title prefix such as `[story]`
|
|
73
|
+
|
|
74
|
+
If board policy permits none of these, fail preflight. Do not create columns or labels implicitly.
|
|
75
|
+
|
|
57
76
|
## Create a fog item
|
|
58
77
|
|
|
59
78
|
Create fog as a first-class backlog item at the root/backlog group. Do not create child tickets under fog.
|
|
@@ -72,15 +91,15 @@ Tool:
|
|
|
72
91
|
}
|
|
73
92
|
```
|
|
74
93
|
|
|
75
|
-
|
|
94
|
+
When classification is explicitly configured, use its actual column ID from board metadata in place of `kind`; otherwise use the fallback above.
|
|
76
95
|
|
|
77
96
|
## Create grilling, research, or prototype items
|
|
78
97
|
|
|
79
98
|
Create each learning item as a first-class parent item in the matching capability group.
|
|
80
99
|
|
|
81
|
-
|
|
100
|
+
When configured, set the classification column to `grilling`, `research`, or `prototype`.
|
|
82
101
|
|
|
83
|
-
Closure notes
|
|
102
|
+
Closure notes record the answer or verdict, evidence, observations, open decisions, and resolution pointer for Wayfinder. They do not authorize delivery.
|
|
84
103
|
|
|
85
104
|
## Capability grouping
|
|
86
105
|
|
|
@@ -113,15 +132,12 @@ Use stable capability names. Do not create implementation-phase groups such as b
|
|
|
113
132
|
|
|
114
133
|
Use a separate Status or Dropdown column named `Execution milestone` for `M1`, `M2`, and later dependency-derived waves. The exact column ID comes from board metadata.
|
|
115
134
|
|
|
116
|
-
1. Inspect both parent-item and subitem board metadata.
|
|
117
|
-
2.
|
|
118
|
-
3.
|
|
119
|
-
4.
|
|
120
|
-
5.
|
|
121
|
-
6.
|
|
122
|
-
7. Assign every other item to `M(1 + max(milestone number of each dependency))`.
|
|
123
|
-
8. Set exactly one `Execution milestone` value on every selected milestone-eligible item.
|
|
124
|
-
9. Verify every dependency points to an item in a strictly earlier milestone.
|
|
135
|
+
1. Inspect both parent-item and subitem board metadata.
|
|
136
|
+
2. In memory, resolve the complete selected graph and reject missing targets, self-edges, or cycles.
|
|
137
|
+
3. Prove every edge is representable by monday.com's same-board dependency constraint. If an edge crosses unsupported storage, stop before creation.
|
|
138
|
+
4. Derive dependency-free items as `M1`; derive every other item as `M(1 + max(milestone number of each dependency))`.
|
|
139
|
+
5. Verify every dependency points to a strictly earlier milestone and that all required configured columns exist.
|
|
140
|
+
6. Only after preflight passes, create items, map planned keys to provider ids, populate dependencies, and set exactly one verified milestone value per eligible item.
|
|
125
141
|
|
|
126
142
|
Items from different capability groups can share one execution milestone. Group membership, parent/subitem hierarchy, and current milestone value never create dependency edges. Recompute milestone values whenever the dependency column changes.
|
|
127
143
|
|
|
@@ -138,7 +154,7 @@ Tool:
|
|
|
138
154
|
"boardId": 123456789,
|
|
139
155
|
"groupId": "topics",
|
|
140
156
|
"name": "Submission lifecycle management",
|
|
141
|
-
"columnValues": "{\"long_text\":\"Outcome: ...\\n\\nScope: ...\\n\\nCross-story constraints:
|
|
157
|
+
"columnValues": "{\"long_text\":\"Outcome: ...\\n\\nScope: ...\\n\\nCross-story constraints: ...\\n\\nImmutable spec: <blob-url>\",\"kind\":{\"label\":\"epic\"}}"
|
|
142
158
|
}
|
|
143
159
|
}
|
|
144
160
|
```
|
|
@@ -149,7 +165,8 @@ Epic body ownership:
|
|
|
149
165
|
- scope
|
|
150
166
|
- cross-story constraints
|
|
151
167
|
- child story list
|
|
152
|
-
-
|
|
168
|
+
- immutable spec link
|
|
169
|
+
- accepted artifact links when relevant
|
|
153
170
|
|
|
154
171
|
Keep `columnValues` limited to known board columns from board metadata.
|
|
155
172
|
|
|
@@ -166,7 +183,7 @@ Tool:
|
|
|
166
183
|
"boardId": 123456789,
|
|
167
184
|
"parentItemId": 987654321,
|
|
168
185
|
"name": "Lead reassigns ownership to another reviewer",
|
|
169
|
-
"columnValues": "{\"long_text\":\"Outcome: ...\\n\\nAcceptance
|
|
186
|
+
"columnValues": "{\"long_text\":\"Outcome: ...\\n\\nSource stories: US-001\\n\\nAcceptance criteria: AC-001\\n\\nDemonstration: ...\\n\\nAccepted artifacts: ...\",\"kind\":{\"label\":\"story\"}}"
|
|
170
187
|
}
|
|
171
188
|
}
|
|
172
189
|
```
|
|
@@ -174,9 +191,12 @@ Tool:
|
|
|
174
191
|
Story body ownership:
|
|
175
192
|
|
|
176
193
|
- outcome
|
|
177
|
-
-
|
|
194
|
+
- source `US-###`
|
|
195
|
+
- covered `AC-###`
|
|
196
|
+
- demonstration
|
|
178
197
|
- non-goals
|
|
179
|
-
-
|
|
198
|
+
- immutable spec link
|
|
199
|
+
- accepted artifact links
|
|
180
200
|
|
|
181
201
|
If a board does not support subitems, stop and ask whether to add subitem support or use a different monday.com board. Do not silently degrade into flat story items.
|
|
182
202
|
|
|
@@ -201,20 +221,16 @@ Tool:
|
|
|
201
221
|
|
|
202
222
|
## Minimal creation order
|
|
203
223
|
|
|
204
|
-
1. Resolve board ID.
|
|
205
|
-
2.
|
|
206
|
-
3.
|
|
207
|
-
4.
|
|
208
|
-
5.
|
|
209
|
-
6.
|
|
210
|
-
7. Create selected concrete non-fog parent items and story subitems in their capability groups without milestone values.
|
|
211
|
-
8. Set known board columns for kind/capability/epic metadata when available.
|
|
212
|
-
9. Add dependency-column values for real blockers.
|
|
213
|
-
10. Derive and set `Execution milestone` values from the complete dependency graph.
|
|
224
|
+
1. Resolve board ID and inspect board metadata.
|
|
225
|
+
2. Resolve only explicitly configured classification plus required capability, hierarchy, milestone, and dependency representations.
|
|
226
|
+
3. Complete the in-memory hierarchy, graph, milestone, and representability preflight.
|
|
227
|
+
4. Only after preflight passes, create required groups, items, and subitems.
|
|
228
|
+
5. Set only explicitly configured classification metadata.
|
|
229
|
+
6. Map planned keys to provider ids, add dependency values, and set already-derived milestones.
|
|
214
230
|
|
|
215
231
|
## Notes
|
|
216
232
|
|
|
217
233
|
- monday.com column IDs and label names are board-specific. Always inspect the board before emitting final create payloads.
|
|
218
234
|
- Groups are the primary capability-module container. The separate `Execution milestone` column stores chronology.
|
|
219
|
-
-
|
|
235
|
+
- A configured `Kind` column may represent fog, grilling, research, prototype, epic, and story for this board; it is not a shared cross-provider requirement. Keep workflow state separate.
|
|
220
236
|
- Keep product backlog content in item/subitem bodies. Do not put plan tasks, file paths, validation commands, or implementation handoffs in monday.com backlog records.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Durable Report
|
|
2
|
+
|
|
3
|
+
Use this optional mode when research must remain reusable beyond the response.
|
|
4
|
+
Ordinary audits remain response-only.
|
|
5
|
+
|
|
6
|
+
## Contract
|
|
7
|
+
|
|
8
|
+
1. Create `research/<slug>` from the accepted base.
|
|
9
|
+
2. Discover the repository's research-report convention. If none exists, use
|
|
10
|
+
the narrowest fitting project-docs path and state it.
|
|
11
|
+
3. Run 2-4 readonly lanes. Lanes never write the report.
|
|
12
|
+
4. After synthesis, the coordinator or one designated consolidator writes one
|
|
13
|
+
Markdown report. There is exactly one writer and one consolidated report.
|
|
14
|
+
5. Cite the primary source for every retained factual claim. Separate facts,
|
|
15
|
+
inferences, conflicts, and unresolved product decisions.
|
|
16
|
+
6. Commit the report, then push or explicitly retain `research/<slug>` through a durable repository-approved mechanism.
|
|
17
|
+
7. Verify the retained ref contains the report commit before returning the immutable commit SHA and path.
|
|
18
|
+
|
|
19
|
+
The report may close factual uncertainty. It must not silently choose product
|
|
20
|
+
direction or impersonate a human decision-maker.
|
|
@@ -12,7 +12,18 @@ Use this skill only for readonly workflows. Goal: widen coverage fast, keep prom
|
|
|
12
12
|
1. Confirm the task is readonly.
|
|
13
13
|
2. Confirm the work can be split into independent questions or areas.
|
|
14
14
|
3. Keep the immediate blocking step local. Delegate only sidecar work that can run in parallel.
|
|
15
|
-
4. Skip this skill for code
|
|
15
|
+
4. Skip this skill for source or code mutation, patching, rebases, unrelated
|
|
16
|
+
writes, or tightly coupled debugging that needs one continuous thread. The
|
|
17
|
+
one retained durable-report commit allowed below does not trigger this skip.
|
|
18
|
+
5. Default to response-only output. Use the optional durable mode only when the
|
|
19
|
+
user or calling phase needs reusable primary evidence; then read
|
|
20
|
+
[DURABLE-REPORT.md](DURABLE-REPORT.md).
|
|
21
|
+
Research lanes remain readonly. Only the coordinator or one designated
|
|
22
|
+
consolidator may write and commit exactly one report after synthesis.
|
|
23
|
+
The writer must push or explicitly retain `research/<slug>`, verify the retained ref contains the report commit, and do so before returning the immutable SHA and path.
|
|
24
|
+
Finder child resolution always selects durable mode because reconciliation
|
|
25
|
+
requires immutable evidence. Standalone audits remain response-only unless
|
|
26
|
+
their caller explicitly requests reusable evidence.
|
|
16
27
|
|
|
17
28
|
## Split Cleanly
|
|
18
29
|
|
|
@@ -41,7 +52,7 @@ Use this skill only for readonly workflows. Goal: widen coverage fast, keep prom
|
|
|
41
52
|
|
|
42
53
|
- Compare outputs against the repo, docs, or other primary artifacts.
|
|
43
54
|
- Resolve disagreements with evidence, not majority vote.
|
|
44
|
-
- Follow
|
|
55
|
+
- Follow every retained factual claim back to its primary source.
|
|
45
56
|
- Extract the few facts that matter, then decide locally.
|
|
46
57
|
- Close agents that are no longer needed.
|
|
47
58
|
|
|
@@ -69,3 +80,4 @@ Return:
|
|
|
69
80
|
- conflicts or uncertainty
|
|
70
81
|
- the synthesized conclusion
|
|
71
82
|
- the next local action
|
|
83
|
+
- durable report immutable SHA, path, and verified retention reference, when durable mode was selected
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Matt Pocock
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,31 +1,67 @@
|
|
|
1
1
|
# Logic Prototype
|
|
2
2
|
|
|
3
|
-
Use this
|
|
3
|
+
A single, self-contained HTML file — a **shareable demo** — that lets anyone drive a state model by clicking buttons. Use this when the question is about **business logic, state transitions, or data shape** — the kind of thing that looks reasonable on paper but only feels wrong once you push it through real cases.
|
|
4
|
+
|
|
5
|
+
Because it's one file with nothing to install, you can hand it to a non-developer — a designer, a PM, a domain expert — and let them feel the model for themselves. So it speaks their language, not the code's.
|
|
6
|
+
|
|
7
|
+
## When this is the right shape
|
|
8
|
+
|
|
9
|
+
- "I'm not sure if this state machine handles the edge case where X then Y."
|
|
10
|
+
- "Does this data model actually let me represent the case where..."
|
|
11
|
+
- "I want to feel out what the API should look like before writing it."
|
|
12
|
+
- Anything where someone wants to **press buttons and watch state change**.
|
|
13
|
+
|
|
14
|
+
If the question is "what should this look like" — wrong branch. Use [UI.md](UI.md).
|
|
4
15
|
|
|
5
16
|
## Process
|
|
6
17
|
|
|
7
|
-
1. State the question
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
18
|
+
### 1. State the question
|
|
19
|
+
|
|
20
|
+
Before writing code, write down what state model and what question you're prototyping. One paragraph, at the top of the demo (in a visible intro, not just a comment). A logic prototype that answers the wrong question is pure waste — make the question explicit so it can be checked later, whether the user is watching now or returning to it AFK.
|
|
21
|
+
|
|
22
|
+
### 2. Isolate the logic in a portable module
|
|
23
|
+
|
|
24
|
+
Put the actual logic — the bit that's answering the question — in a single `<script>` block written as a small, pure module that could be lifted out and dropped into the real codebase later. The page around it is throwaway; this module isn't.
|
|
25
|
+
|
|
26
|
+
The right shape depends on the question:
|
|
27
|
+
|
|
28
|
+
- **A pure reducer** — `(state, action) => state`. Good when actions are discrete events and state is a single value.
|
|
29
|
+
- **A state machine** — explicit states and transitions. Good when "which actions are even legal right now" is part of the question.
|
|
30
|
+
- **A small set of pure functions** over a plain data type. Good when there's no implicit current state — just transformations.
|
|
31
|
+
- **A class or module with a clear method surface** when the logic genuinely owns ongoing internal state.
|
|
32
|
+
|
|
33
|
+
Pick whichever shape best fits the question being asked, *not* whichever is easiest to wire to a page. Keep it pure: no DOM, no `document`, no button handlers reaching inside it. The page calls into it; nothing flows the other direction. This is what makes the prototype useful past its own lifetime: once the question's answered, the validated reducer / machine / function set lifts into the real module on its own.
|
|
34
|
+
|
|
35
|
+
### 3. Build the shareable HTML file
|
|
36
|
+
|
|
37
|
+
One file, plain HTML/CSS/JS — no framework, no bundler, no server, everything inline so it opens by double-click and survives being emailed around. Anyone should be able to run it by opening it.
|
|
38
|
+
|
|
39
|
+
Write it for a non-developer. Every label is in **domain language**, not code — buttons and state read like the business, not the reducer. Explain in plain words what's happening.
|
|
40
|
+
|
|
41
|
+
Lay it out with a clean hierarchy, top to bottom:
|
|
42
|
+
|
|
43
|
+
1. **Title and one-line explanation** of what this demo lets you explore (the question from step 1).
|
|
44
|
+
2. **Current state** — the full relevant state, rendered as a readable panel (labelled fields, not a raw JSON dump), re-rendered after every click so the change is visible. Where it helps a non-developer follow, call out what just changed.
|
|
45
|
+
3. **Free-play buttons** — one button per action, always available, so anyone can poke at the model in any order. Each click dispatches its action and re-renders the state.
|
|
46
|
+
4. **Guided walkthroughs** — a set of **scenarios**, one per tab. Each tab holds a short plain-language description of the scenario — the situation it sets up and what to watch for — and underneath it, the ordered **buttons to press** for that scenario. Each step is a real button: clicking it performs that action and moves to the next step. Starting a walkthrough resets to a known initial state so the scenario runs the same way every time.
|
|
47
|
+
|
|
48
|
+
Choose scenarios that demonstrate the awkward cases — the happy path, a tricky edge case, an attempt at something that should be illegal — the ones hard to reason about on paper.
|
|
49
|
+
|
|
50
|
+
Keep it beautiful but restrained: clean typography, generous spacing, one accent colour. No animations, no gimmicks — nothing that competes with the state and the buttons.
|
|
51
|
+
|
|
52
|
+
### 4. Hand it over
|
|
15
53
|
|
|
16
|
-
|
|
54
|
+
Send them the file, or open it for them. They'll click through the walkthroughs and free-play whenever they get to it; the interesting moments are when they say "wait, that shouldn't be possible" or "huh, I assumed X would be different" — those are the bugs in the _idea_, which is the whole point. If they want new actions or a new scenario, add them. Prototypes evolve.
|
|
17
55
|
|
|
18
|
-
|
|
19
|
-
- State machine: explicit states and transitions.
|
|
20
|
-
- Pure functions over plain data.
|
|
21
|
-
- Small class or module with a clear method surface when the logic owns internal state.
|
|
56
|
+
### 5. Capture the answer and the prototype
|
|
22
57
|
|
|
23
|
-
|
|
58
|
+
Once the prototype has answered its question, capture the answer, then capture the prototype the way the [SKILL](SKILL.md) describes. The logic-specific mapping: the validated reducer / machine / function set lifts into the real module (the decision, absorbed); the HTML shell rides along to the throwaway branch that keeps the prototype as a primary source — and being one self-contained file, it stays trivially re-runnable there.
|
|
24
59
|
|
|
25
|
-
## Anti-
|
|
60
|
+
## Anti-patterns
|
|
26
61
|
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
62
|
+
- **Don't add tests.** A prototype that needs tests is no longer a prototype.
|
|
63
|
+
- **Don't wire it to the real database.** Use in-memory state unless the question is specifically about persistence.
|
|
64
|
+
- **Don't generalise.** No "what if we wanted to support X later." The prototype answers one question.
|
|
65
|
+
- **Don't blur the logic and the page together.** If the pure module references the DOM, `document`, or button handlers, it's no longer liftable. Keep the page as a thin shell over a pure module.
|
|
66
|
+
- **Don't reach for a framework, bundler, or server.** One file the recipient double-clicks; a React app or a dev server defeats "shareable".
|
|
67
|
+
- **Don't ship the HTML shell into production.** The page is optimised for being clicked through by hand. The logic module behind it is the bit worth keeping.
|