@punks/cli 3.1.3 → 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 +40 -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/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/subagents/manifest.mjs +3 -1
- package/dist/index.js +148 -185
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: docs-onboarding
|
|
3
|
-
description: Onboard an existing project into a scaffolded Harness wiki by inspecting code, docs, and backlog context, building a Project Map,
|
|
3
|
+
description: Onboard an existing project into a scaffolded Harness wiki by inspecting code, docs, and backlog context, building a Project Map, closing a targeted requirements grill, compiling specs, then projecting them to the backlog. Use immediately after hi scaffold init or when an existing repository needs initial wiki/spec context reconstructed.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Docs Onboarding
|
|
@@ -18,7 +18,8 @@ Use this skill to turn an existing repository into initial Harness wiki context
|
|
|
18
18
|
- If either lane is missing or inaccessible, ask the developer for the backlog location or access path before assuming no backlog exists.
|
|
19
19
|
4. Build and persist the Project Map before asking developer questions.
|
|
20
20
|
5. Run a targeted `requirements-grill` against the Project Map.
|
|
21
|
-
6.
|
|
21
|
+
6. Compile confirmed grill decisions with `create-spec`. It writes agent-ready specs only when its readiness contract passes; preserve `spec-not-ready` gaps upstream.
|
|
22
|
+
7. Only after each spec is written and exposed at a verified stable blob URL, activate `write-backlog` to project it into provider-native delivery items.
|
|
22
23
|
|
|
23
24
|
For the required Project Map sections, onboarding artifacts, evidence labels, and spec reconstruction rules, read [references/artifact-contract.md](references/artifact-contract.md).
|
|
24
25
|
|
|
@@ -43,4 +44,4 @@ Persist the Project Map and grill status before developer questions. On resume,
|
|
|
43
44
|
- Code can prove observed behavior, not original intent.
|
|
44
45
|
- Reconstructed spec history must be evidence-backed.
|
|
45
46
|
- Do not invent implementation notes, rationale, or tech-debt history without supporting artifacts.
|
|
46
|
-
-
|
|
47
|
+
- Never mutate backlog before a spec is written and agent-ready.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
2
|
display_name: "Docs Onboarding"
|
|
3
3
|
short_description: "Reconstruct project wiki/spec context"
|
|
4
|
-
default_prompt: "Use $docs-onboarding to inspect code, docs, and backlog context, build the Project Map,
|
|
4
|
+
default_prompt: "Use $docs-onboarding to inspect code, docs, and backlog context, build the Project Map, close the targeted requirements grill, compile agent-ready specs with create-spec, then project written specs with write-backlog."
|
|
@@ -44,7 +44,7 @@ The targeted grill can close when every blocking contradiction, missing backlog
|
|
|
44
44
|
- parked
|
|
45
45
|
- marked `Missing` with explicit follow-up
|
|
46
46
|
|
|
47
|
-
Do not grill every low-risk current-state fact. Carry those into
|
|
47
|
+
Do not grill every low-risk current-state fact. Carry those into the reconstruction record as `Inferred`, but do not claim agent readiness while a required product decision remains inferred.
|
|
48
48
|
|
|
49
49
|
## Reconstructed Specs
|
|
50
50
|
|
|
@@ -65,3 +65,5 @@ Evidence levels:
|
|
|
65
65
|
- `Missing`: expected context was not found, and the spec must ask a follow-up.
|
|
66
66
|
|
|
67
67
|
Reconstructed specs must link back to relevant Project Map sections and onboarding grill decisions.
|
|
68
|
+
|
|
69
|
+
Only specs that pass `create-spec` readiness and return a verified stable blob URL may be projected by `write-backlog`. A `spec-not-ready` result returns its named gaps to onboarding; it produces neither a partial spec nor backlog mutations.
|
|
@@ -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.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Skill mechanics
|
|
2
|
+
|
|
3
|
+
The skill-specific branch of [`writing-for-agents`](SKILL.md): what changes when the document is a skill — frontmatter, the invocation choice, and router skills. Everything else about writing it is the universal reference in `SKILL.md`.
|
|
4
|
+
|
|
5
|
+
## Invocation
|
|
6
|
+
|
|
7
|
+
Two choices, trading the two loads:
|
|
8
|
+
|
|
9
|
+
- A **model-invoked** skill keeps a `description`, so the agent can fire it autonomously — and other skills can reach it. You can still type its name: model-invocation always _includes_ user reach; a description only ever adds agent discovery, never removes the human's. The description is the skill's top-level context pointer, forced to stay loaded at all times — permanent context load in exchange for discoverability. A model-invoked skill whose content is all reference is also one home for shared reference: another skill can invoke it, so reference needed by several skills lives in one place. Mechanics: omit `disable-model-invocation`, and write a model-facing description carrying the trigger branches (the pointer-writing rules in `SKILL.md` apply in full).
|
|
10
|
+
- A **user-invoked** skill strips the description from the agent's reach: only the human typing its name can invoke it, and no other skill can. Zero context load, but it spends cognitive load — you are the index that must remember it exists. Mechanics: set `disable-model-invocation: true`; the `description` becomes human-facing — a one-line summary, trigger lists stripped.
|
|
11
|
+
|
|
12
|
+
Pick model-invocation only when the agent must reach the skill on its own, or another skill must. If it only ever fires by hand, make it user-invoked and pay no context load.
|
|
13
|
+
|
|
14
|
+
Shared reference that two user-invoked skills both need can live in neither — with no descriptions, neither can fire the other. Push it to a plain file outside the skill system: external reference any skill can point at.
|
|
15
|
+
|
|
16
|
+
## Splitting by invocation
|
|
17
|
+
|
|
18
|
+
The invocation cut of splitting (the sequence cut lives in `SKILL.md`): split off a model-invoked skill when you have a distinct leading word that should trigger it on its own — a trigger word you actually use in your prompts — or another skill must reach it. You pay context load for the new always-loaded description, so that independent reach has to be worth it.
|
|
19
|
+
|
|
20
|
+
## Router skills
|
|
21
|
+
|
|
22
|
+
When user-invoked skills multiply past what you can remember, that piled-up cognitive load is cured by a **router skill**: one user-invoked skill that names the others and when to reach for each, so the human has one skill to remember instead of many. It can only hint, never fire them: user-invoked skills have no description, so nothing but the human can reach them.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: writing-for-agents
|
|
3
|
+
description: Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Reference for writing any document an agent consumes — a skill, an `AGENTS.md` / `CLAUDE.md`, a doc reached by a pointer. The packaging differs; the writing does not: the same levers make each one predictable — the agent taking the same _process_ every run, not producing the same output.
|
|
7
|
+
|
|
8
|
+
When the document you're writing is a skill, read [`SKILL-MECHANICS.md`](SKILL-MECHANICS.md) for frontmatter, invocation choice, and router skills.
|
|
9
|
+
|
|
10
|
+
## Context pointers
|
|
11
|
+
|
|
12
|
+
A **context pointer** is a reference held in the agent's context that names some out-of-context material and encodes the condition for reaching it. A skill's description is one; a line in `AGENTS.md` naming a doc is the same object. The pointer's _wording_, not its target, decides when the agent reaches the material — and how reliably. A must-have target behind a weakly worded pointer is a variance bug: sharpen the wording first, and inline the material only if sharpening fails.
|
|
13
|
+
|
|
14
|
+
A pointer does two jobs — state what the material is, and list the **branches** that should trigger reaching it (a branch is a distinct case the document handles, so different runs take different paths through it). Every word of an always-loaded pointer costs on every turn, so it earns even harder pruning than the body:
|
|
15
|
+
|
|
16
|
+
- **Front-load the leading word** — the pointer is where it does its triggering work.
|
|
17
|
+
- **One trigger per branch.** Synonyms that rename a single branch are one branch written twice; collapse them and keep only genuinely distinct branches.
|
|
18
|
+
- **Cut identity the body already carries.**
|
|
19
|
+
|
|
20
|
+
## The two loads
|
|
21
|
+
|
|
22
|
+
Every document and pointer you add spends one of two budgets:
|
|
23
|
+
|
|
24
|
+
- **Context load** — the cost of always-loaded material on the agent's window: an `AGENTS.md` line, a skill description, anything sitting in context every turn, spending tokens and attention whether or not it fires.
|
|
25
|
+
- **Cognitive load** — the cost on the human: which documents exist and when to reach for each. The human is the index. Not a cost to minimise — it is the price of human agency; spend it where human judgement matters, remove it where it does not.
|
|
26
|
+
|
|
27
|
+
Material reached only through a pointer escapes context load at the price of the pointer's own line; material with no pointer at all rides entirely on cognitive load.
|
|
28
|
+
|
|
29
|
+
## Information hierarchy
|
|
30
|
+
|
|
31
|
+
A document is built from two content types — **steps** (the ordered actions the agent performs) and **reference** (definitions, rules, facts consulted on demand) — that mix freely: all steps (a recipe), all reference (a review's rules, this skill), or both. The core decision is where each piece sits on the **information hierarchy**, a ladder ranked by how immediately the agent needs the material:
|
|
32
|
+
|
|
33
|
+
1. **In-file step** — the primary tier: what the agent does, in order.
|
|
34
|
+
2. **In-file reference** — consulted on demand. Often a legitimately flat peer-set (every rule of a review on one rung) — a fine arrangement, not a smell.
|
|
35
|
+
3. **Disclosed reference** — pushed out into a separate file, reached by a context pointer, loaded only when the pointer fires. Spans a sibling file in the same folder through fully external reference that lives anywhere and any document can point at.
|
|
36
|
+
|
|
37
|
+
Push too little down and the top bloats; push too much and you hide material the agent actually needs. That tension is the whole decision.
|
|
38
|
+
|
|
39
|
+
**Progressive disclosure** is the move down the ladder — out of the main file and behind a pointer — so the top stays legible. Not primarily a token optimisation: it is how the hierarchy is protected. Branching is the cleanest disclosure test: inline what every branch needs, and push behind a pointer what only some branches reach. When a document has steps, in-file reference that should be disclosed buries them and turns attending to them into a coin-flip — a variance lever, not just a legibility one.
|
|
40
|
+
|
|
41
|
+
**Co-location** is the within-file companion: where the ladder decides _how far down_ a piece sits, co-location decides _what sits beside it_ once there. Keep a concept's definition, rules, and caveats under one heading rather than scattered, so reading one part brings its neighbours with it. The test: the document should read like documentation written for the agent — grouped material reads that way; scattered material does not. (Distinct from duplication: that repeats one meaning in two places; scattering fragments one meaning across many.)
|
|
42
|
+
|
|
43
|
+
**Sprawl** is the failure mode here: a document simply too long, even when every line is live and unique. Attention thins across the excess, and every extra line is one more to keep relevant. The cure is the ladder: disclose reference behind pointers, and split by branch or sequence so each path carries only what it needs.
|
|
44
|
+
|
|
45
|
+
## Steps and completion criteria
|
|
46
|
+
|
|
47
|
+
Every step ends on a **completion criterion** — the condition that tells the agent the work is done. Two properties make it a lever:
|
|
48
|
+
|
|
49
|
+
- **Clarity** — can the agent tell done from not-done? A vague bound ("understanding reached") invites **premature completion**: ending the step before it is genuinely done, attention slipping to _being done_. The visible steps still ahead — the **post-completion steps** — supply the pull; the criterion's clarity is the resistance. Defend in order: **sharpen the bound first** (local and cheap); only if it is irreducibly fuzzy _and_ you observe the rush, hide the later steps by splitting the sequence — and hiding only works across a real context boundary (a hand-off or a subagent dispatch; an inline call leaves the later steps in context and clears nothing).
|
|
50
|
+
- **Demand** — how much it requires. "Every modified model accounted for" forces thorough work where "produce a change list" does not. Demand drives **legwork** — the digging the agent does within the work, latent in the wording rather than written as its own step — and it is not step-bound: "every rule applied" binds a body of flat reference just as "every step done" binds a sequence, which is how an all-reference document still carries an exhaustiveness bar.
|
|
51
|
+
|
|
52
|
+
The strongest criteria are both checkable and exhaustive.
|
|
53
|
+
|
|
54
|
+
## When to split
|
|
55
|
+
|
|
56
|
+
Splitting one document into two spends one of the two loads, so split only when the cut earns it:
|
|
57
|
+
|
|
58
|
+
- **By sequence** — split a run of steps where the post-completion steps tempt the agent to rush the one in front of it. Keeping them out of view drives more legwork on the current task. Beware the reverse: merging sequences exposes each step's later steps to what follows, inviting premature completion.
|
|
59
|
+
- **By invocation** — skill-specific: see [`SKILL-MECHANICS.md`](SKILL-MECHANICS.md).
|
|
60
|
+
|
|
61
|
+
## Leading words
|
|
62
|
+
|
|
63
|
+
A **leading word** is a compact concept already living in the model's pretraining that the agent thinks with while running the document (_lesson_, _fog of war_, _tracer bullets_). Repeated as a token, never as a sentence, it accumulates a distributed definition and anchors a whole region of behaviour in the fewest tokens, by recruiting priors the model already holds. Coining your own works if you define it clearly, but a made-up word recruits no priors — you pay in definition tokens what a pretrained word gives free; reach for an existing word first.
|
|
64
|
+
|
|
65
|
+
It anchors twice. In the body, _execution_: the agent reaches for the same behaviour every time the word appears, and inside flat reference it focuses attention on a class of thing to look for. In a pointer, _invocation_: when the same word lives in your prompts, your docs, and your codebase, the agent links that shared language to the material and reaches it more reliably.
|
|
66
|
+
|
|
67
|
+
Hunt for opportunities to refactor with leading words. A triad spelled out at three sites, a pointer spending a sentence to gesture at one idea — each is a passage begging to collapse into a single token:
|
|
68
|
+
|
|
69
|
+
- "fast, deterministic, low-overhead" → _tight_ (a _tight_ loop).
|
|
70
|
+
- "a loop you believe in" → _red_ — a fuzzy gate becomes a binary observable state (the loop goes _red_ on the bug, or it doesn't).
|
|
71
|
+
|
|
72
|
+
You win twice: fewer tokens, and a sharper hook for the agent to hang its thinking on. Assume every document is carrying restatements that leading words retire — go find them.
|
|
73
|
+
|
|
74
|
+
**Negation** is the failure mode beside this lever: steering by prohibition drags the forbidden behaviour into context and makes it _more_ available, not less. _Don't think of an elephant_, and the elephant is all there is; the negation is a weak modifier the strongly-activated concept overruns, so the ban half-reads as an instruction to do the thing. Prompt the **positive** — state the target behaviour ("write one-line comments") so the banned one is never spoken. A prohibition earns its place only as a hard guardrail you cannot phrase positively; even then, pair it with the positive target so attention lands on what to do.
|
|
75
|
+
|
|
76
|
+
## Pruning
|
|
77
|
+
|
|
78
|
+
- Keep each meaning in a **single source of truth**: one authoritative place, so changing the behaviour is a one-place edit. **Duplication** — the same meaning in more than one place — costs maintenance and tokens, and inflates a meaning's prominence on the ladder past its real rank. (The accidental inverse of a leading word, which repeats a token on purpose, never the meaning.)
|
|
79
|
+
- The **environment** is a source of truth too — `package.json` scripts, config files, the directory layout, `--help` output — and a document that restates it is a **cache**: a copy of a lookup, earning its load only when the lookup is expensive. Cache what the agent cannot find by looking: the unwritten convention, the reason behind a choice, the gotcha no config confesses. Leave the one-file, one-command lookups to the environment, where they cannot go stale.
|
|
80
|
+
- Check every line for **relevance**: does it still bear on what the document does? A line loses relevance by never bearing on the task (mere exposition, or a branch that should be disclosed) or by going stale as the behaviour or world it describes changes. Shorter documents are easier to keep relevant. Without a pruning discipline the default fate is **sediment**: stale layers that settle because adding feels safe and removing feels risky, until you must core down through them to find what is still live.
|
|
81
|
+
- Hunt **no-ops** sentence by sentence: an instruction the model already obeys by default pays load to say nothing. The test — does it change behaviour versus the default? — is model-relative, not reader-relative: two people disagreeing about a no-op disagree about the default, and settle it by running the document, not by debate. When a sentence fails, delete the whole sentence rather than trim words from it. The test also grades leading words: a word too weak to beat the default (_be thorough_ when the agent is already thorough-ish) is a no-op, and the fix is a stronger word (_relentless_), not a different technique.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Upstream provenance
|
|
2
|
+
|
|
3
|
+
Imported unchanged from [`mattpocock/skills`](https://github.com/mattpocock/skills/tree/2ffb184ffbb752faa664c0b204f3c9241b1428e9/skills/productivity/writing-for-agents) at v1.2.0 commit:
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
2ffb184ffbb752faa664c0b204f3c9241b1428e9
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
The adjacent `LICENSE` is the upstream MIT license retained with this skill.
|
|
@@ -9,11 +9,12 @@ description: Creates execution-ready `PLAN.md` artifacts by composing `grilling`
|
|
|
9
9
|
|
|
10
10
|
- **Role:** higher-order planning orchestrator
|
|
11
11
|
- **Entrypoint type:** public entrypoint
|
|
12
|
-
- **Upstream:**
|
|
12
|
+
- **Upstream:** agent-ready `SPEC.md` or explicit planning request
|
|
13
13
|
- **Delegates to:** `planning-discovery` for bounded readonly orientation when subagents are available; `$grilling`, `$parallel-research`, `$swarm-planner`, `$tdd`, `$codebase-design`; `plan-reviewer` for the final readonly plan review
|
|
14
14
|
- **Downstream:** execution-ready `PLAN.md` for `implement-spec`
|
|
15
15
|
- **Entry conditions:** scope is clear enough to plan; stop if required planning inputs or tools are missing
|
|
16
|
-
- **Stop conditions:** `PLAN.md`
|
|
16
|
+
- **Stop conditions:** `PLAN.md` is complete; eligible in-scope backlog sync is
|
|
17
|
+
complete, or an explicit skip reason is recorded; no implementation started
|
|
17
18
|
|
|
18
19
|
## Required Inner Skills
|
|
19
20
|
|
|
@@ -32,13 +33,16 @@ Create a plan first. Never implement code in this skill.
|
|
|
32
33
|
3. Read `references/grill-ambiguity.md` and run `$grilling` as explicit ambiguity reduction.
|
|
33
34
|
4. Update a running decision ledger after every response set, processing each answer individually so the user never has to reconstruct state from memory.
|
|
34
35
|
5. After a whole response set is processed, emit any synthesis checkpoint required by `references/grill-ambiguity.md`.
|
|
35
|
-
6. After `$grilling` completes, continue to plan synthesis; backlog
|
|
36
|
+
6. After `$grilling` completes, continue to plan synthesis; backlog eligibility
|
|
37
|
+
remains step 12.
|
|
36
38
|
7. If readonly discovery has independent code paths, specs, backlog items, external docs, or hypotheses, read and use `$parallel-research` before final task synthesis.
|
|
37
39
|
8. Research with `opensrc path <package>` or `opensrc path <owner>/<repo>` plus primary-source web docs when current behavior matters.
|
|
38
40
|
9. Locate scoped `AGENTS.md` files for every planned task path, extract `Primary skills here` lists, and load the relevant skill guidance before finalizing task design.
|
|
39
41
|
10. Read `references/planner-task-graph.md` and run `$swarm-planner` to produce the swarm graph and `Tn` task contract.
|
|
40
42
|
11. Read `references/tdd-shaping.md` and run `$tdd` to attach RED/GREEN targets to each `Tn` task.
|
|
41
|
-
12. Read `references/backlog-sync.md
|
|
43
|
+
12. Read `references/backlog-sync.md`. Sync backlog at epic/story level only when
|
|
44
|
+
backlog sync is eligible and in scope; otherwise record an explicit skip
|
|
45
|
+
reason and continue plan completion.
|
|
42
46
|
13. Read `references/stop-conditions.md` and stop exactly there.
|
|
43
47
|
|
|
44
48
|
## Workflows
|
|
@@ -53,26 +57,34 @@ Create a plan first. Never implement code in this skill.
|
|
|
53
57
|
6. Resolve each task's scoped guidance from root `AGENTS.md` down to the nearest `AGENTS.md` for its `location`.
|
|
54
58
|
7. Use each task's required skill guidance while shaping its scope, dependencies, validation, RED target, and review mode; do not merely list skills after the plan is written.
|
|
55
59
|
8. Assign each task the exact existing skills required by those scoped `Primary skills here` lists, merging all scopes for cross-directory tasks.
|
|
56
|
-
9.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
9. Build plan-derived worker waves: place every currently unblocked task with
|
|
61
|
+
a disjoint write scope in the same wave. Use a one-task wave only when
|
|
62
|
+
dependencies or ownership leave one task unblocked.
|
|
63
|
+
10. Normalize every task with stable ids, `depends_on`, `location`,
|
|
64
|
+
`owned_paths`, `wave_boundary`, `description`, `validation`, `status`, `log`,
|
|
65
|
+
`files edited/created`, owning-story backlog references, `assigned_skills`,
|
|
66
|
+
`tdd_status`, `tdd_target`, RED/GREEN commands, evidence fields,
|
|
67
|
+
`codebase_design_notes`, `review_mode`, `runtime_validation`,
|
|
68
|
+
`runtime_target`, `runtime_evidence`, and `runtime_cleanup`.
|
|
69
|
+
11. Keep `PLAN.md` self-contained: embed gathered context, relevant code paths, existing patterns, constraints, assumptions, design reasoning, tradeoffs, initial situation, issue, solution shape, findings, research, dependency graph, testing strategy, skill-routing notes, risks, validation gates, unresolved questions, and a resolved decision ledger.
|
|
70
|
+
12. Write enough conceptual reasoning that an executor can implement from `PLAN.md` alone, using supplementary research only when they choose to refresh or deepen context.
|
|
71
|
+
13. For complex work, express the plan as a swarm graph of `Tn` tasks with dependency-aware validation gates, expected outcomes, assertions, or checks that let the executor self-verify before moving on.
|
|
72
|
+
14. Stop after plan creation and either eligible in-scope backlog sync or its
|
|
73
|
+
explicit skip record. Do not implement code or spawn implementation workers.
|
|
61
74
|
|
|
62
75
|
### Stack-aware preservation
|
|
63
76
|
|
|
64
77
|
If `SPEC.md` contains `Dependency Readiness` or `Branch/Base Intent`, copy those
|
|
65
78
|
sections into `PLAN.md` and validate that they are internally consistent.
|
|
66
79
|
|
|
67
|
-
- Preserve
|
|
68
|
-
`Branch/Base Intent`, or `Blocked`.
|
|
80
|
+
- Preserve `No Stack Required` or `Ready` plus its dependency evidence.
|
|
69
81
|
- Do not decide stack topology in `create-plan`.
|
|
70
82
|
- Do not convert task-level `depends_on` into stacked PRs. Intra-epic task
|
|
71
83
|
dependencies stay inside one PR and only control implementation order.
|
|
72
|
-
-
|
|
73
|
-
instead of producing an execution-ready plan.
|
|
74
|
-
- If `Branch/Base Intent`
|
|
75
|
-
|
|
84
|
+
- `Blocked` is invalid agent-ready input. Stop planning and report the stale or
|
|
85
|
+
contradictory spec instead of producing an execution-ready plan.
|
|
86
|
+
- If `Branch/Base Intent` is not `Not applicable`, make implementation tasks
|
|
87
|
+
reference that intent as an execution constraint.
|
|
76
88
|
|
|
77
89
|
### Review modes
|
|
78
90
|
|
|
@@ -1,44 +1,31 @@
|
|
|
1
1
|
# Backlog Sync
|
|
2
2
|
|
|
3
|
-
Use this reference
|
|
3
|
+
Use this reference only when an authoritative agent-ready `SPEC.md` exists at a verified stable blob URL and `write-backlog` has projected or must project it into provider-native delivery items. Concrete planning is downstream from both the spec and backlog projection.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Defaults:
|
|
5
|
+
Backlog sync is eligible and in scope only when the planning input retains that
|
|
6
|
+
agent-ready spec and its provider projection relation, and the requested work
|
|
7
|
+
includes maintaining that relation. A planning-only request with no retained
|
|
8
|
+
spec/projection relation has no backlog mutation requirement: record an explicit
|
|
9
|
+
skip reason in `PLAN.md` and continue plan completion.
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
- story = product-facing backlog item
|
|
15
|
-
- task = internal `PLAN.md` execution unit only
|
|
16
|
-
|
|
17
|
-
Task rules:
|
|
18
|
-
|
|
19
|
-
- every task stores the owning story in `backlog_item_id` / `backlog_item_url`
|
|
20
|
-
- multiple tasks may reference the same story
|
|
21
|
-
- do not create a new backlog item only because a story needs multiple execution tasks
|
|
22
|
-
|
|
23
|
-
Create or update backlog items only when:
|
|
11
|
+
## Sync rules
|
|
24
12
|
|
|
25
|
-
|
|
26
|
-
- a required product-facing story is missing
|
|
27
|
-
- native story blockers/order need sync
|
|
28
|
-
- epic/story links to spec or plan context need refresh
|
|
13
|
+
Use the backlog model owned by `write-backlog` at [backlog-model.md](https://github.com/wearedevpunks/skills/blob/main/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md). Do not restate its readiness, taxonomy, traceability, or mutation contracts here.
|
|
29
14
|
|
|
30
|
-
|
|
15
|
+
Sync at epic/story level, never at plan-task level:
|
|
31
16
|
|
|
32
|
-
|
|
17
|
+
- epic = capability-boundary projection of one existing spec
|
|
18
|
+
- story = product-facing tracer bullet derived from `US-###` / `AC-###`
|
|
19
|
+
- task = internal `PLAN.md` execution unit
|
|
33
20
|
|
|
34
|
-
|
|
35
|
-
- keep bodies product-facing
|
|
36
|
-
- reserve execution detail for repo artifacts
|
|
21
|
+
Plan tasks reference their owning story through `backlog_item_id` and `backlog_item_url`. Multiple tasks may reference one story. Never create another backlog item merely because delivery needs several execution tasks.
|
|
37
22
|
|
|
38
|
-
|
|
23
|
+
Create or update backlog items only through `write-backlog`, and only when:
|
|
39
24
|
|
|
40
|
-
|
|
25
|
+
- a required epic or story projection is missing
|
|
26
|
+
- native story blockers need correction
|
|
27
|
+
- immutable spec or plan links need refresh
|
|
41
28
|
|
|
42
|
-
|
|
29
|
+
Keep bodies product-facing. Store files, commands, test cases, worker assignments, and implementation sequencing in `PLAN.md`.
|
|
43
30
|
|
|
44
|
-
|
|
31
|
+
Record referenced or created epic/story ids and URLs in the plan. Use the selected provider's native CLI or tool when available.
|
|
@@ -24,6 +24,10 @@ Include:
|
|
|
24
24
|
|
|
25
25
|
`unresolved questions` is not a hiding place for skipped planning. Include only `$grilling`-deferred, externally blocked, or non-blocking questions, and state why each remains open.
|
|
26
26
|
|
|
27
|
+
Each wave contains every currently unblocked task whose `owned_paths` are
|
|
28
|
+
disjoint. A wave contains one task only when dependencies or ownership leave
|
|
29
|
+
one task unblocked.
|
|
30
|
+
|
|
27
31
|
## Task contract
|
|
28
32
|
|
|
29
33
|
Every task must include:
|
|
@@ -31,6 +35,8 @@ Every task must include:
|
|
|
31
35
|
- stable task id
|
|
32
36
|
- `depends_on`
|
|
33
37
|
- `location`
|
|
38
|
+
- `owned_paths`
|
|
39
|
+
- `wave_boundary`
|
|
34
40
|
- `description`
|
|
35
41
|
- `validation`
|
|
36
42
|
- `status`
|
|
@@ -57,6 +63,12 @@ Every task must include:
|
|
|
57
63
|
|
|
58
64
|
`backlog_item_id` and `backlog_item_url` reference the owning product-facing story, not a task-owned backlog record.
|
|
59
65
|
|
|
66
|
+
`owned_paths` lists the exact write scope assigned to the task. Tasks in the
|
|
67
|
+
same wave must have disjoint `owned_paths`.
|
|
68
|
+
|
|
69
|
+
`wave_boundary` names the explicit execution wave derived from completed
|
|
70
|
+
dependencies and disjoint ownership, for example `W1`.
|
|
71
|
+
|
|
60
72
|
Multiple tasks may point to the same story when one story needs several execution steps.
|
|
61
73
|
|
|
62
74
|
Do not create a new backlog item only because a task boundary exists in the plan.
|
|
@@ -86,6 +98,8 @@ Use `not_applicable` for the other runtime fields when `runtime_validation: not_
|
|
|
86
98
|
|
|
87
99
|
- **depends_on**: [T1, T2]
|
|
88
100
|
- **location**: src/example.ts
|
|
101
|
+
- **owned_paths**: [src/example.ts, tests/example.test.ts]
|
|
102
|
+
- **wave_boundary**: W2
|
|
89
103
|
- **description**: Implement the task behavior.
|
|
90
104
|
- **validation**: Public-interface behavior that proves completion.
|
|
91
105
|
- **status**: Planned
|
|
@@ -32,11 +32,15 @@ Produce exactly one named `PLAN.md` in the target spec folder.
|
|
|
32
32
|
Preserve `$swarm-planner` behavior:
|
|
33
33
|
|
|
34
34
|
- explicit task ids and `depends_on`
|
|
35
|
+
- explicit `owned_paths` and `wave_boundary` per task
|
|
35
36
|
- atomic tasks sized for one worker
|
|
36
37
|
- validations per task
|
|
37
38
|
- parallel execution waves
|
|
38
39
|
- risks and mitigations
|
|
39
40
|
- explicit `assigned_skills` per task from scoped `AGENTS.md`, with task design shaped by those skills
|
|
40
|
-
- a final `plan-reviewer` subagent review for missing deps,
|
|
41
|
+
- a final `plan-reviewer` subagent review for missing deps, missing
|
|
42
|
+
`owned_paths`, missing `wave_boundary`, ordering issues, edge cases, invalid
|
|
43
|
+
parallelism, unsafe write overlap, missing RED targets, missing validation,
|
|
44
|
+
missing `assigned_skills`, and holes before yielding
|
|
41
45
|
|
|
42
46
|
Do not stop between ambiguity reduction and swarm graph construction unless a true blocking ambiguity remains.
|
|
@@ -9,7 +9,8 @@ Yield after planning.
|
|
|
9
9
|
Stop after:
|
|
10
10
|
|
|
11
11
|
- the plan file is complete
|
|
12
|
-
- backlog sync is complete
|
|
12
|
+
- eligible in-scope backlog sync is complete, or `PLAN.md` records the explicit
|
|
13
|
+
skip reason for a planning-only request and can continue plan completion
|
|
13
14
|
|
|
14
15
|
Do not:
|
|
15
16
|
|
|
@@ -1,109 +1,55 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: create-spec
|
|
3
|
-
description:
|
|
3
|
+
description: Compile confirmed product decisions into SPEC.md. Use when requirements are closed or explicitly parked and an agent-ready provider-neutral specification is needed before backlog or planning.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Spec
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
Resolve the
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
4.
|
|
29
|
-
5.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
### Dependency readiness and stack intent
|
|
58
|
-
|
|
59
|
-
When backlog context exists, inspect backlog dependencies before drafting.
|
|
60
|
-
|
|
61
|
-
- A task-level `depends_on` inside one epic or plan is implementation ordering,
|
|
62
|
-
not PR stack topology.
|
|
63
|
-
- A backlog dependency between epics/stories is a dependency-readiness gate.
|
|
64
|
-
- If the dependency has an `IMPLEMENTATION-NOTES.md` or equivalent
|
|
65
|
-
implemented-status artifact, trust it as implemented. Record
|
|
66
|
-
`No Stack Required` unless another open PR dependency still applies.
|
|
67
|
-
- If no implemented-status artifact exists, use local code evidence or merged PR
|
|
68
|
-
evidence as fallback proof that the dependency landed.
|
|
69
|
-
- If the dependency is represented by an open parent PR, record
|
|
70
|
-
`Branch/Base Intent`.
|
|
71
|
-
- If the dependency is neither proven implemented nor represented by an open
|
|
72
|
-
parent PR, block spec creation and report the missing dependency evidence.
|
|
73
|
-
|
|
74
|
-
When backlog dependencies exist, add this section to `SPEC.md`:
|
|
75
|
-
|
|
76
|
-
```md
|
|
77
|
-
## Dependency Readiness
|
|
78
|
-
|
|
79
|
-
- Status: No Stack Required | Branch/Base Intent | Blocked
|
|
80
|
-
- Dependency: <epic/story/pr/link>
|
|
81
|
-
- Evidence: <implementation notes path | implemented-status artifact | merged PR | parent PR>
|
|
82
|
-
- Reason: <why this status was chosen>
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
Only for stack-dependent work, also add:
|
|
86
|
-
|
|
87
|
-
```md
|
|
88
|
-
## Branch/Base Intent
|
|
89
|
-
|
|
90
|
-
- Parent PR: #123
|
|
91
|
-
- Parent branch: team/name/parent
|
|
92
|
-
- Child branch: team/name/child
|
|
93
|
-
- PR base: team/name/parent
|
|
94
|
-
- Required gate: stack sync --dry-run after PR creation/update
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
`create-spec` records stack intent only. Do not create, switch, or push git
|
|
98
|
-
branches unless the user explicitly requests branch setup during the spec turn.
|
|
99
|
-
|
|
100
|
-
## Advanced features
|
|
101
|
-
|
|
102
|
-
- Discovery and repo orientation: see [references/discovery.md](references/discovery.md)
|
|
103
|
-
- Clarifying-question strategy: see [references/questioning.md](references/questioning.md)
|
|
104
|
-
- Requirements grill phase: see [references/grill-phase.md](references/grill-phase.md)
|
|
105
|
-
- Backlog sync after grilling: see [references/backlog-sync.md](references/backlog-sync.md)
|
|
106
|
-
- Domain and folder naming rules: see [references/folder-naming.md](references/folder-naming.md)
|
|
107
|
-
- Acceptance-criteria and quality bar: see [references/spec-quality-bar.md](references/spec-quality-bar.md)
|
|
108
|
-
- Planning surface index/log updates: see [references/wiki-bookkeeping.md](references/wiki-bookkeeping.md)
|
|
109
|
-
- Canonical backlog model: see [../write-backlog/assets/concepts/backlog-model.md](../write-backlog/assets/concepts/backlog-model.md)
|
|
6
|
+
# Create Spec
|
|
7
|
+
|
|
8
|
+
`create-spec` is a no-interview compiler of confirmed decisions. Upstream
|
|
9
|
+
Wayfinder, research, prototyping, and grilling own uncertainty. This skill asks
|
|
10
|
+
no questions, runs no local grill, and performs no backlog mutation.
|
|
11
|
+
|
|
12
|
+
## Inputs
|
|
13
|
+
|
|
14
|
+
Accept confirmed user decisions and their evidence: grill status/logs, research
|
|
15
|
+
reports, prototype verdicts, ADRs, glossary, axioms, constraints, system facts,
|
|
16
|
+
accepted implementation or testing decisions, dependency evidence, and accepted
|
|
17
|
+
parent/base constraints.
|
|
18
|
+
|
|
19
|
+
## Steps
|
|
20
|
+
|
|
21
|
+
1. Resolve the planning surface using [folder-naming.md](references/folder-naming.md).
|
|
22
|
+
2. Validate readiness using [readiness.md](references/readiness.md). If anything
|
|
23
|
+
required is missing, return one atomic `spec-not-ready` result and write no
|
|
24
|
+
partial `SPEC.md`.
|
|
25
|
+
3. Compile [SPEC-TEMPLATE.md](assets/SPEC-TEMPLATE.md). Preserve only confirmed
|
|
26
|
+
decisions; never invent closure. Serialize `Dependency Readiness` and
|
|
27
|
+
`Branch/Base Intent` using the readiness contract.
|
|
28
|
+
4. Apply [spec-quality-bar.md](references/spec-quality-bar.md).
|
|
29
|
+
5. Update existing planning-surface indexes through
|
|
30
|
+
[wiki-bookkeeping.md](references/wiki-bookkeeping.md).
|
|
31
|
+
6. Persist the completed spec and its bookkeeping in a dedicated git commit.
|
|
32
|
+
Never stage unrelated changes.
|
|
33
|
+
7. Push or explicitly retain the spec commit through a repository-approved
|
|
34
|
+
remote mechanism, verify the retained ref contains the spec commit, then
|
|
35
|
+
construct and verify a stable blob URL before `write-backlog` may consume it.
|
|
36
|
+
A local commit SHA plus path is insufficient.
|
|
37
|
+
8. Return `spec-written` with `readiness: agent-ready` and the verified stable
|
|
38
|
+
blob URL. If retention or URL verification fails, return one atomic
|
|
39
|
+
`spec-not-ready` result and do not invoke backlog projection.
|
|
40
|
+
|
|
41
|
+
## Boundaries
|
|
42
|
+
|
|
43
|
+
- `SPEC.md` is provider-neutral authority. `write-backlog` projects epics and
|
|
44
|
+
stories afterward; `create-plan` owns concrete files, commands, workers, and
|
|
45
|
+
execution order.
|
|
46
|
+
- A mutable path or local-only commit is not a backlog handoff. `write-backlog`
|
|
47
|
+
receives only the verified stable blob URL.
|
|
48
|
+
- Accepted technical and testing decisions belong in the spec. Detailed task
|
|
49
|
+
choreography does not.
|
|
50
|
+
- `Dependency Readiness` and `Branch/Base Intent` preserve accepted dependency
|
|
51
|
+
evidence and parent/base constraints for `create-plan`.
|
|
52
|
+
- `readiness: agent-ready` is sufficient downstream. Do not add a review or
|
|
53
|
+
approval stop; pause only for a user-requested HITL checkpoint.
|
|
54
|
+
- Compiler state is `compiled`. Human approval, when explicitly requested, is a
|
|
55
|
+
separate optional action and is never inferred or stamped by this compiler.
|