@punks/cli 2.1.9 → 2.1.11
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/README.md +1 -1
- package/dist/data/catalog/hooks.ts +8 -0
- package/dist/data/catalog/packs.ts +11 -3
- package/dist/data/catalog/skills.ts +48 -0
- package/dist/data/catalog/tools.ts +9 -1
- package/dist/data/hooks/scaffold-update-check.mjs +181 -0
- package/dist/data/hooks.test.ts +17 -0
- package/dist/data/scripts/sync-subagents.mjs +104 -32
- package/dist/data/subagents/manifest.mjs +120 -0
- package/dist/index.js +600 -85
- package/dist/skills/agnostic/cli/dp-cli/SKILL.md +3 -3
- package/dist/skills/agnostic/cli/dp-cli/references/commands.md +1 -1
- package/dist/skills/agnostic/cli/dp-cli/references/post-command-flow.md +1 -1
- package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +46 -0
- package/dist/skills/agnostic/docs/docs-onboarding/agents/openai.yaml +4 -0
- package/dist/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +67 -0
- package/dist/skills/agnostic/docs/writing-beats/SKILL.md +69 -0
- package/dist/skills/agnostic/docs/writing-fragments/SKILL.md +76 -0
- package/dist/skills/agnostic/docs/writing-shape/SKILL.md +75 -0
- package/dist/skills/agnostic/generic/handoff/SKILL.md +15 -0
- package/dist/skills/agnostic/planning/create-plan/SKILL.md +24 -8
- package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +20 -0
- package/dist/skills/agnostic/planning/create-plan/references/planner-phase.md +1 -1
- package/dist/skills/agnostic/planning/create-plan/references/tdd-phase.md +23 -1
- package/dist/skills/agnostic/planning/create-spec/SKILL.md +63 -17
- package/dist/skills/agnostic/planning/create-spec/references/discovery.md +24 -16
- package/dist/skills/agnostic/planning/create-spec/references/folder-naming.md +6 -2
- package/dist/skills/agnostic/planning/create-spec/references/wiki-bookkeeping.md +29 -5
- package/dist/skills/agnostic/planning/implement-spec/SKILL.md +20 -2
- package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +7 -1
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +15 -8
- package/dist/skills/agnostic/planning/implement-spec/references/sequential.md +8 -3
- package/dist/skills/agnostic/planning/stack/SKILL.md +89 -0
- package/dist/skills/agnostic/quality/tdd/SKILL.md +31 -0
- package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +1 -0
- package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +7 -5
- package/dist/skills/frameworks/tanstack-query/tanstack-query/SKILL.md +621 -830
- package/dist/skills/frameworks/tanstack-start/tanstack-start/SKILL.md +250 -0
- package/dist/skills/phases/bug-discovery-phase/REFERENCE.md +30 -0
- package/dist/skills/phases/bug-discovery-phase/SKILL.md +8 -1
- package/dist/skills/phases/debugging-phase/SKILL.md +1 -0
- package/dist/skills/phases/delivery-phase/SKILL.md +33 -65
- package/dist/skills/phases/delivery-phase/phases/closeout.md +33 -0
- package/dist/skills/phases/delivery-phase/phases/debug.md +30 -0
- package/dist/skills/phases/delivery-phase/phases/docs-ingest.md +27 -0
- package/dist/skills/phases/delivery-phase/phases/implement.md +30 -0
- package/dist/skills/phases/delivery-phase/phases/plan.md +27 -0
- package/dist/skills/phases/delivery-phase/phases/review.md +29 -0
- package/dist/skills/phases/delivery-phase/phases/router.md +46 -0
- package/dist/skills/phases/delivery-phase/phases/spec.md +26 -0
- package/dist/skills/phases/delivery-phase/references/artifact-state.md +42 -0
- package/dist/skills/phases/delivery-phase/references/phase-handoff.md +25 -0
- package/dist/skills/phases/docs-ingest-phase/SKILL.md +28 -70
- package/dist/skills/phases/docs-ingest-phase/agents/openai.yaml +2 -2
- package/dist/skills/phases/docs-ingest-phase/phases/private-internal.md +57 -0
- package/dist/skills/phases/docs-ingest-phase/phases/public-docs.md +52 -0
- package/dist/skills/phases/docs-ingest-phase/phases/router.md +42 -0
- package/dist/skills/phases/docs-ingest-phase/references/fumadocs-routing.md +8 -5
- package/dist/skills/phases/docs-ingest-phase/references/learning-artifacts.md +96 -0
- package/dist/skills/phases/docs-ingest-phase/references/public-docs.md +90 -0
- package/dist/skills/phases/requirements-phase/SKILL.md +3 -0
- package/dist/skills/phases/review-phase/SKILL.md +5 -0
- package/package.json +1 -1
|
@@ -94,11 +94,11 @@ After `dp update`, inspect `.devpunks/scaffold-manifest.json` and the update sum
|
|
|
94
94
|
|
|
95
95
|
Use `dp report` when reusable Harness friction should enter maintainer triage: stale generated guidance, confusing CLI output, missing docs, broken setup, or shared tooling issues.
|
|
96
96
|
|
|
97
|
-
Do not use reports as the default destination for project product backlog. `dp report` submits
|
|
97
|
+
Do not use reports as the default destination for project product backlog. `dp report` submits to the Harness API, which must create or dedupe a GitHub issue in `wearedevpunks/harness-intelligence`; pass `--type`, `--severity`, `--area`, `--skill-pack`, `--command`, `--expected`, `--actual`, `--steps`, and `--labels` so maintainers can triage the issue from GitHub/backoffice without replaying the whole session.
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
Reports are GitHub-backed. Backoffice fetches `harness-report` issues from GitHub and treats GitHub state/labels as the triage source of truth. API persistence is audit/local-smoke context, not a substitute for a returned GitHub URL.
|
|
100
100
|
|
|
101
|
-
`dp report` emits product telemetry only after the API
|
|
101
|
+
`dp report` emits product telemetry only after the API returns a GitHub issue URL. If issue creation fails or the API stores the report internally without a URL, do not claim the report was submitted; capture the blocker and suggest the exact GitHub/API config missing.
|
|
102
102
|
|
|
103
103
|
## Upgrade
|
|
104
104
|
|
|
@@ -54,7 +54,7 @@ Useful classification flags:
|
|
|
54
54
|
- `--steps <text>`
|
|
55
55
|
- `--labels <comma-separated-labels>`
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
The report path is GitHub-backed. The CLI submits typed context to the Harness API; the API creates or dedupes an issue with `harness-report` metadata and labels, then the CLI emits report-submitted telemetry only after the API returns a GitHub issue URL. Backoffice reads GitHub issues for report triage.
|
|
58
58
|
|
|
59
59
|
## `dp upgrade`
|
|
60
60
|
|
|
@@ -49,7 +49,7 @@ After `dp scaffold init`:
|
|
|
49
49
|
|
|
50
50
|
After `dp report`:
|
|
51
51
|
|
|
52
|
-
- Confirm the
|
|
52
|
+
- Confirm the command created a GitHub issue URL before saying the report was submitted.
|
|
53
53
|
- Include the issue URL, labels, affected command, affected skill pack, and remaining blocker if creation failed.
|
|
54
54
|
- Do not duplicate project product backlog into Harness reports unless maintainers explicitly promote it.
|
|
55
55
|
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
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, running a targeted requirements grill, and calling create-spec to reconstruct evidence-backed specs. Use immediately after dp scaffold init when the generated prompt says to activate docs-onboarding, or when an existing repository needs initial wiki/spec context reconstructed from current sources.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Docs Onboarding
|
|
7
|
+
|
|
8
|
+
Use this skill to turn an existing repository into initial Harness wiki context after `dp scaffold init`.
|
|
9
|
+
|
|
10
|
+
## Workflow
|
|
11
|
+
|
|
12
|
+
1. Read repo guidance and the scaffolded wiki guidance.
|
|
13
|
+
2. Read `<wiki-root>/backlog-provider.md` and `<wiki-root>/wiki-framework.md`.
|
|
14
|
+
3. Discover backlog context:
|
|
15
|
+
- Probe the pinned remote backlog provider first when connector/tool/auth access exists.
|
|
16
|
+
- Inspect local backlog clues after that: existing specs, issue matrices, backlog markdown, project docs, and `.devpunks` metadata.
|
|
17
|
+
- Treat remote backlog evidence and local clues as equally important and mandatory when available.
|
|
18
|
+
- If either lane is missing or inaccessible, ask the developer for the backlog location or access path before assuming no backlog exists.
|
|
19
|
+
4. Build and persist the Project Map before asking developer questions.
|
|
20
|
+
5. Run a targeted `requirements-grill` against the Project Map.
|
|
21
|
+
6. After grill closure, call `create-spec` to reconstruct evidence-backed specs.
|
|
22
|
+
|
|
23
|
+
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
|
+
## Discovery Depth
|
|
26
|
+
|
|
27
|
+
Inspect entrypoints, routes/pages, commands, API handlers, schemas/models, tests, config/env examples, and existing docs.
|
|
28
|
+
|
|
29
|
+
Do not deep-read every implementation file by default. Deep-read implementation files only when needed to explain a flow, resolve a contradiction, or map a data boundary.
|
|
30
|
+
|
|
31
|
+
## Targeted Grill
|
|
32
|
+
|
|
33
|
+
Grill contradictions, missing backlog location, unclear feature ownership, and high-impact inferred requirements before `create-spec` runs.
|
|
34
|
+
|
|
35
|
+
Low-risk current-state facts can proceed into `create-spec` as `Inferred`. Keep code-only low-risk facts `Inferred` unless the developer confirms them or unambiguous docs/backlog intent backs them.
|
|
36
|
+
|
|
37
|
+
## Resumability
|
|
38
|
+
|
|
39
|
+
Persist the Project Map and grill status before developer questions. On resume, continue from saved discovery/grill state instead of rescanning from zero.
|
|
40
|
+
|
|
41
|
+
## Guardrails
|
|
42
|
+
|
|
43
|
+
- Code can prove observed behavior, not original intent.
|
|
44
|
+
- Reconstructed spec history must be evidence-backed.
|
|
45
|
+
- Do not invent implementation notes, rationale, or tech-debt history without supporting artifacts.
|
|
46
|
+
- Backlog mutation is out of scope; use backlog evidence as input only.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "Docs Onboarding"
|
|
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, run the targeted requirements grill, then call create-spec to reconstruct evidence-backed specs into the scaffolded wiki."
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Docs Onboarding Artifact Contract
|
|
2
|
+
|
|
3
|
+
Use this reference while executing `docs-onboarding`.
|
|
4
|
+
|
|
5
|
+
## Project Map
|
|
6
|
+
|
|
7
|
+
Before the targeted grill starts, write:
|
|
8
|
+
|
|
9
|
+
- `<wiki-root>/content/docs/project/onboarding/project-map.md`
|
|
10
|
+
|
|
11
|
+
The Project Map must include:
|
|
12
|
+
|
|
13
|
+
- feature and UX flows
|
|
14
|
+
- operator/developer workflows and commands
|
|
15
|
+
- app, package, and code paths for each flow
|
|
16
|
+
- docs and backlog sources for each flow
|
|
17
|
+
- integrations and data boundaries
|
|
18
|
+
- contradictions and missing evidence
|
|
19
|
+
- candidate spec groupings
|
|
20
|
+
|
|
21
|
+
## Onboarding Grill Artifacts
|
|
22
|
+
|
|
23
|
+
Write and maintain:
|
|
24
|
+
|
|
25
|
+
- `<wiki-root>/content/docs/project/onboarding/onboarding-grill-status.md`
|
|
26
|
+
- `<wiki-root>/content/docs/project/onboarding/onboarding-grill-log.md`
|
|
27
|
+
|
|
28
|
+
Create or update:
|
|
29
|
+
|
|
30
|
+
- `<wiki-root>/content/docs/project/onboarding/index.mdx`
|
|
31
|
+
- `<wiki-root>/content/docs/project/onboarding/meta.json`
|
|
32
|
+
- `<wiki-root>/content/docs/project/meta.json`
|
|
33
|
+
|
|
34
|
+
Add `onboarding` to the project `meta.json` pages list when missing.
|
|
35
|
+
|
|
36
|
+
## Grill Closure
|
|
37
|
+
|
|
38
|
+
The targeted grill can close when every blocking contradiction, missing backlog location, unclear feature owner, and high-impact inferred requirement is:
|
|
39
|
+
|
|
40
|
+
- confirmed
|
|
41
|
+
- rejected
|
|
42
|
+
- parked
|
|
43
|
+
- marked `Missing` with explicit follow-up
|
|
44
|
+
|
|
45
|
+
Do not grill every low-risk current-state fact. Carry those into `create-spec` as `Inferred`.
|
|
46
|
+
|
|
47
|
+
## Reconstructed Specs
|
|
48
|
+
|
|
49
|
+
After grill closure, call `create-spec`.
|
|
50
|
+
|
|
51
|
+
Group reconstructed specs:
|
|
52
|
+
|
|
53
|
+
1. by backlog epic when backlog context exists
|
|
54
|
+
2. otherwise by user-facing or operator-facing feature flow
|
|
55
|
+
|
|
56
|
+
Use app/package boundaries as supporting evidence only.
|
|
57
|
+
|
|
58
|
+
Each reconstructed spec must include an `Evidence Level` in frontmatter and a short body evidence section.
|
|
59
|
+
|
|
60
|
+
Evidence levels:
|
|
61
|
+
|
|
62
|
+
- `Confirmed`: code, docs, or backlog evidence exists and the developer confirmed the requirement, or unambiguous docs/backlog intent backs it.
|
|
63
|
+
- `Inferred`: strong code, docs, or backlog evidence exists, but developer confirmation is missing.
|
|
64
|
+
- `Contradicted`: source evidence conflicts and needs resolution before the spec can be trusted.
|
|
65
|
+
- `Missing`: expected context was not found, and the spec must ask a follow-up.
|
|
66
|
+
|
|
67
|
+
Reconstructed specs must link back to relevant Project Map sections and onboarding grill decisions.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: writing-beats
|
|
3
|
+
description: Turns fragments or raw material into an ordered journey of reader-facing beats. Use when shaping public docs, articles, guides, or docs-ingest writer artifacts from fragments into a narrative or instructional path.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Writing Beats
|
|
7
|
+
|
|
8
|
+
## Quick Start
|
|
9
|
+
|
|
10
|
+
Read the fragment/raw-material file first. Produce beats one move at a time: each beat sets a scene, lands a point, asks a question, introduces an example, or pivots the reader.
|
|
11
|
+
|
|
12
|
+
Do not write the final article. Do not choose the full page shape yet.
|
|
13
|
+
|
|
14
|
+
## Modes
|
|
15
|
+
|
|
16
|
+
### Standalone Writing
|
|
17
|
+
|
|
18
|
+
Use this when the user wants to assemble an article interactively.
|
|
19
|
+
|
|
20
|
+
1. Read the raw material end-to-end.
|
|
21
|
+
2. Offer 2-3 candidate starting beats.
|
|
22
|
+
3. After the user picks one, write only that beat.
|
|
23
|
+
4. Re-read the article file before each write.
|
|
24
|
+
5. Offer 2-3 next-beat options.
|
|
25
|
+
6. Repeat until the journey naturally ends.
|
|
26
|
+
|
|
27
|
+
### Docs-Ingest Artifact
|
|
28
|
+
|
|
29
|
+
Use this when called by `docs-ingest-phase`.
|
|
30
|
+
|
|
31
|
+
1. Read `fragments.md` from the private writer artifact bundle.
|
|
32
|
+
2. Write `beats.md` in the same bundle.
|
|
33
|
+
3. Include traceability: target public page, source change/spec/run, fragments artifact, updated date.
|
|
34
|
+
4. Preserve rejected or parked beats when useful for future passes.
|
|
35
|
+
5. Link forward to the final public page when known.
|
|
36
|
+
|
|
37
|
+
Docs-ingest artifact shape:
|
|
38
|
+
|
|
39
|
+
```md
|
|
40
|
+
---
|
|
41
|
+
title: "<Topic> Beats"
|
|
42
|
+
type: writer-artifact
|
|
43
|
+
artifact: beats
|
|
44
|
+
target: "<public page path or pending target>"
|
|
45
|
+
source:
|
|
46
|
+
- "fragments.md"
|
|
47
|
+
updated: YYYY-MM-DD
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
# <Topic> Beats
|
|
51
|
+
|
|
52
|
+
## Accepted Beat Path
|
|
53
|
+
|
|
54
|
+
1. <reader move>
|
|
55
|
+
2. <reader move>
|
|
56
|
+
3. <reader move>
|
|
57
|
+
|
|
58
|
+
## Parked Beats
|
|
59
|
+
|
|
60
|
+
- <usable later, but not in this pass>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Beat Rules
|
|
64
|
+
|
|
65
|
+
- One beat does one job.
|
|
66
|
+
- Split beats that need several subheadings or multiple unrelated moves.
|
|
67
|
+
- The journey ends when the reader has what the page promised, not when every fragment is used.
|
|
68
|
+
- Pull from the fragment pile freely: paraphrase, split, merge, or quote as needed.
|
|
69
|
+
- Name gaps when the beats need an example, warning, proof, or transition that the fragments do not contain.
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: writing-fragments
|
|
3
|
+
description: Mines raw writing material into a durable fragments document. Use when developing public-facing docs or articles before structure, when the user mentions fragments, ideation, raw material, claims, examples, or when docs-ingest-phase needs the first public-doc writer stage.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Writing Fragments
|
|
7
|
+
|
|
8
|
+
## Quick Start
|
|
9
|
+
|
|
10
|
+
Create or update a `fragments.md` file. Capture raw material only: claims, examples, vignettes, sharp sentences, objections, source-backed facts, snippets, and half-thoughts.
|
|
11
|
+
|
|
12
|
+
Do not impose outline, beats, final page shape, or polished prose yet.
|
|
13
|
+
|
|
14
|
+
## Modes
|
|
15
|
+
|
|
16
|
+
### Standalone Writing
|
|
17
|
+
|
|
18
|
+
Use this when the user is ideating an article or page interactively.
|
|
19
|
+
|
|
20
|
+
1. If no output path is provided, ask once where to save the fragments.
|
|
21
|
+
2. Re-read the file before every write.
|
|
22
|
+
3. Append new fragments separated by horizontal rules.
|
|
23
|
+
4. Preserve user edits exactly.
|
|
24
|
+
5. Edit a specific fragment only when the user asks.
|
|
25
|
+
|
|
26
|
+
Standalone first write:
|
|
27
|
+
|
|
28
|
+
```md
|
|
29
|
+
# Working title
|
|
30
|
+
|
|
31
|
+
First fragment.
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
Second fragment.
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Docs-Ingest Artifact
|
|
39
|
+
|
|
40
|
+
Use this when called by `docs-ingest-phase`.
|
|
41
|
+
|
|
42
|
+
1. Write to the private writer artifact bundle for the target public page or docs pass.
|
|
43
|
+
2. Use the repo's private docs metadata convention when one exists.
|
|
44
|
+
3. Include traceability: target public page, source change/spec/run, artifact stage, updated date.
|
|
45
|
+
4. Capture source-backed claims and reader-facing raw material.
|
|
46
|
+
5. Link forward to the final public page when known.
|
|
47
|
+
|
|
48
|
+
Docs-ingest artifact shape:
|
|
49
|
+
|
|
50
|
+
```md
|
|
51
|
+
---
|
|
52
|
+
title: "<Topic> Fragments"
|
|
53
|
+
type: writer-artifact
|
|
54
|
+
artifact: fragments
|
|
55
|
+
target: "<public page path or pending target>"
|
|
56
|
+
source:
|
|
57
|
+
- "<source path or change>"
|
|
58
|
+
updated: YYYY-MM-DD
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
# <Topic> Fragments
|
|
62
|
+
|
|
63
|
+
Fragment text.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
Another fragment.
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Fragment Rules
|
|
71
|
+
|
|
72
|
+
- A fragment is readable by the author, not necessarily by a cold reader.
|
|
73
|
+
- Keep fragments heterogeneous: sentence, claim, vignette, quote, complaint, example, code snippet, or clustered observation.
|
|
74
|
+
- Prefer concrete material over abstractions.
|
|
75
|
+
- Do not sort or outline unless the user asks.
|
|
76
|
+
- Do not discard leftovers; later stages decide what survives.
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: writing-shape
|
|
3
|
+
description: Chooses the final structure for a public-facing article, guide, or docs page from fragments and beats. Use when turning raw material or beats into a publishable page plan, or when docs-ingest-phase needs the final writer artifact before page writing.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Writing Shape
|
|
7
|
+
|
|
8
|
+
## Quick Start
|
|
9
|
+
|
|
10
|
+
Read the available raw material first: fragments, beats, rough draft, or notes. Decide what the page is trying to do for the reader, then choose the structure that best carries that job.
|
|
11
|
+
|
|
12
|
+
Do not silently polish weak structure. Argue for the shape.
|
|
13
|
+
|
|
14
|
+
## Modes
|
|
15
|
+
|
|
16
|
+
### Standalone Writing
|
|
17
|
+
|
|
18
|
+
Use this when the user wants help shaping a publishable article.
|
|
19
|
+
|
|
20
|
+
1. Read the input pile end-to-end.
|
|
21
|
+
2. Draft 2-3 candidate openings or angles.
|
|
22
|
+
3. Force a choice or hybrid.
|
|
23
|
+
4. Grow the piece paragraph by paragraph.
|
|
24
|
+
5. Re-read the article file before every write.
|
|
25
|
+
6. Edit only the requested paragraph or block when revising.
|
|
26
|
+
|
|
27
|
+
### Docs-Ingest Artifact
|
|
28
|
+
|
|
29
|
+
Use this when called by `docs-ingest-phase`.
|
|
30
|
+
|
|
31
|
+
1. Read `fragments.md` and `beats.md` from the private writer artifact bundle.
|
|
32
|
+
2. Write `shape.md` in the same bundle.
|
|
33
|
+
3. Include traceability: target public page, source change/spec/run, upstream writer artifacts, updated date.
|
|
34
|
+
4. Define the final page structure, section order, component/callout choices, and merge notes for the final public page.
|
|
35
|
+
5. Link forward to the final public page when known.
|
|
36
|
+
|
|
37
|
+
Docs-ingest artifact shape:
|
|
38
|
+
|
|
39
|
+
```md
|
|
40
|
+
---
|
|
41
|
+
title: "<Topic> Shape"
|
|
42
|
+
type: writer-artifact
|
|
43
|
+
artifact: shape
|
|
44
|
+
target: "<public page path or pending target>"
|
|
45
|
+
source:
|
|
46
|
+
- "fragments.md"
|
|
47
|
+
- "beats.md"
|
|
48
|
+
updated: YYYY-MM-DD
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
# <Topic> Shape
|
|
52
|
+
|
|
53
|
+
## Page Promise
|
|
54
|
+
|
|
55
|
+
<What the reader should be able to understand or do.>
|
|
56
|
+
|
|
57
|
+
## Structure
|
|
58
|
+
|
|
59
|
+
1. <section and purpose>
|
|
60
|
+
2. <section and purpose>
|
|
61
|
+
3. <section and purpose>
|
|
62
|
+
|
|
63
|
+
## Format Decisions
|
|
64
|
+
|
|
65
|
+
- <prose/list/table/callout/code choice and reason>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Shape Rules
|
|
69
|
+
|
|
70
|
+
- Pick prose for argument and lists for genuinely parallel items.
|
|
71
|
+
- Use tables only when the same fields repeat three or more times.
|
|
72
|
+
- Use callouts for warnings, tips, or asides that would derail the main thread.
|
|
73
|
+
- Quote when wording matters; paraphrase when only the idea matters.
|
|
74
|
+
- Use code blocks for multi-line, runnable, or illustrative examples.
|
|
75
|
+
- If the opening promises one thing and the page drifts, change the opening or re-thread the body.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: handoff
|
|
3
|
+
description: Compact the current conversation into a handoff document for another agent to pick up.
|
|
4
|
+
argument-hint: "What will the next session be used for?"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Write a handoff document summarising the current conversation so a fresh agent can continue the work. Save to the temporary directory of the user's OS - not the current workspace.
|
|
8
|
+
|
|
9
|
+
Include a "suggested skills" section in the document, which suggests skills that the agent should invoke.
|
|
10
|
+
|
|
11
|
+
Do not duplicate content already captured in other artifacts (PRDs, plans, ADRs, issues, commits, diffs). Reference them by path or URL instead.
|
|
12
|
+
|
|
13
|
+
Redact any sensitive information, such as API keys, passwords, or personally identifiable information.
|
|
14
|
+
|
|
15
|
+
If the user passed arguments, treat them as a description of what the next session will focus on and tailor the doc accordingly.
|
|
@@ -10,7 +10,7 @@ description: Creates execution-ready `PLAN.md` artifacts by explicitly wrapping
|
|
|
10
10
|
- **Role:** higher-order planning orchestrator
|
|
11
11
|
- **Entrypoint type:** public entrypoint
|
|
12
12
|
- **Upstream:** approved `SPEC.md` or explicit planning request
|
|
13
|
-
- **Delegates to:** `$grill-me`, `$parallel-research`, `$swarm-planner`, `$tdd`
|
|
13
|
+
- **Delegates to:** `planning-discovery` for bounded readonly orientation when subagents are available; `$grill-me`, `$parallel-research`, `$swarm-planner`, `$tdd`; `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
16
|
- **Stop conditions:** `PLAN.md` and backlog sync are complete; no implementation started
|
|
@@ -46,13 +46,29 @@ Create a plan first. Never implement code in this skill.
|
|
|
46
46
|
1. Derive host, owner, tracker, and scope from repo state instead of assuming them.
|
|
47
47
|
2. Ask only for missing high-impact inputs such as scope, goal, or backlog target.
|
|
48
48
|
3. Every plan-shaping question must use the exact block: `Decision`, `Recommendation`, `Question`, `Why it matters`.
|
|
49
|
-
4. Keep `$grill-me`, `$parallel-research`, `$swarm-planner`, and `$tdd` as visible inner phases of one planning run; record when `$parallel-research` is used or intentionally skipped because the work is not split-friendly.
|
|
50
|
-
5.
|
|
51
|
-
6.
|
|
52
|
-
7.
|
|
53
|
-
8.
|
|
54
|
-
9.
|
|
55
|
-
10.
|
|
49
|
+
4. Keep `$grill-me`, `$parallel-research`, `$swarm-planner`, and `$tdd` as visible inner phases of one planning run; record when `$parallel-research`, `planning-discovery`, or `plan-reviewer` is used or intentionally skipped because the work is not split-friendly or subagents are unavailable.
|
|
50
|
+
5. Scan relevant routed learning artifacts before task synthesis when prior bug knowledge, domain behavior, or project conventions could affect the plan.
|
|
51
|
+
6. Resolve each task's scoped guidance from root `AGENTS.md` down to the nearest `AGENTS.md` for its `location`.
|
|
52
|
+
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.
|
|
53
|
+
8. Assign each task the exact existing skills required by those scoped `Primary skills here` lists, merging all scopes for cross-directory tasks.
|
|
54
|
+
9. Normalize every task with stable ids, `depends_on`, `location`, `description`, `validation`, `status`, `log`, `files edited/created`, owning-story backlog references, `assigned_skills`, `tdd_status`, `tdd_target`, RED/GREEN commands, evidence fields, and `review_mode`.
|
|
55
|
+
10. Keep the saved plan standalone: include situation, issue, solution shape, assumptions, findings, research, dependency graph, testing strategy, skill-routing notes, risks, validation gates, unresolved questions, and a resolved decision ledger.
|
|
56
|
+
11. Stop after plan creation and backlog sync. Do not implement code or spawn implementation workers.
|
|
57
|
+
|
|
58
|
+
### Stack-aware preservation
|
|
59
|
+
|
|
60
|
+
If `SPEC.md` contains `Dependency Readiness` or `Branch/Base Intent`, copy those
|
|
61
|
+
sections into `PLAN.md` and validate that they are internally consistent.
|
|
62
|
+
|
|
63
|
+
- Preserve the exact dependency status: `No Stack Required`,
|
|
64
|
+
`Branch/Base Intent`, or `Blocked`.
|
|
65
|
+
- Do not decide stack topology in `create-plan`.
|
|
66
|
+
- Do not convert task-level `depends_on` into stacked PRs. Intra-epic task
|
|
67
|
+
dependencies stay inside one PR and only control implementation order.
|
|
68
|
+
- If `Dependency Readiness` is `Blocked`, stop planning and report the blocker
|
|
69
|
+
instead of producing an execution-ready plan.
|
|
70
|
+
- If `Branch/Base Intent` exists, make implementation tasks reference that
|
|
71
|
+
branch/base intent as an execution constraint.
|
|
56
72
|
|
|
57
73
|
### Review modes
|
|
58
74
|
|
|
@@ -40,7 +40,14 @@ Every task must include:
|
|
|
40
40
|
- `backlog_item_url`
|
|
41
41
|
- `relation_mode`
|
|
42
42
|
- `assigned_skills`
|
|
43
|
+
- `tdd_status`
|
|
43
44
|
- `tdd_target`
|
|
45
|
+
- `red_command`
|
|
46
|
+
- `expected_red_failure`
|
|
47
|
+
- `green_command`
|
|
48
|
+
- `reason_not_testable`
|
|
49
|
+
- `red_evidence`
|
|
50
|
+
- `green_evidence`
|
|
44
51
|
- `review_mode`
|
|
45
52
|
|
|
46
53
|
`backlog_item_id` and `backlog_item_url` reference the owning product-facing story, not a task-owned backlog record.
|
|
@@ -51,6 +58,12 @@ Do not create a new backlog item only because a task boundary exists in the plan
|
|
|
51
58
|
|
|
52
59
|
`assigned_skills` must list the skills used to shape the task during planning, not only skills expected during implementation. Skill guidance should be reflected in the task's boundary, validation, `tdd_target`, and `review_mode`.
|
|
53
60
|
|
|
61
|
+
For behavior-changing code tasks, `tdd_status` must be `required` and the task must include concrete RED/GREEN commands before implementation starts. For docs-only, formatting-only, generated-code-only, config-only, scaffold/bookkeeping-only, or truly non-testable tasks, record `tdd_status: not_applicable` or `not_testable` with an explicit `reason_not_testable`.
|
|
62
|
+
|
|
63
|
+
`red_evidence` and `green_evidence` are execution fields. They should be present but blank when the plan is created, then filled by `implement-spec` before the task is marked complete.
|
|
64
|
+
|
|
65
|
+
`reason_not_testable` cannot be used for "forgot RED." If production code came first, the executor must recover by writing a real public-result RED test, capturing failure evidence, patching to GREEN, and setting `tdd_status: recovered`.
|
|
66
|
+
|
|
54
67
|
```md
|
|
55
68
|
### T3: Example task
|
|
56
69
|
|
|
@@ -65,6 +78,13 @@ Do not create a new backlog item only because a task boundary exists in the plan
|
|
|
65
78
|
- **backlog_item_url**: https://linear.app/workspace/issue/CP-128/example-story
|
|
66
79
|
- **relation_mode**: native | body-links
|
|
67
80
|
- **assigned_skills**: [`effect-authoring`, `effect-best-practices`, `tdd`]
|
|
81
|
+
- **tdd_status**: required
|
|
68
82
|
- **tdd_target**: First failing public behavior to implement.
|
|
83
|
+
- **red_command**: Exact command expected to fail before implementation.
|
|
84
|
+
- **expected_red_failure**: Expected assertion, error, or mismatch.
|
|
85
|
+
- **green_command**: Exact command expected to pass after implementation.
|
|
86
|
+
- **reason_not_testable**:
|
|
87
|
+
- **red_evidence**:
|
|
88
|
+
- **green_evidence**:
|
|
69
89
|
- **review_mode**: cli | browser | mixed
|
|
70
90
|
```
|
|
@@ -37,6 +37,6 @@ Preserve `$swarm-planner` behavior:
|
|
|
37
37
|
- parallel execution waves
|
|
38
38
|
- risks and mitigations
|
|
39
39
|
- explicit `assigned_skills` per task from scoped `AGENTS.md`, with task design shaped by those skills
|
|
40
|
-
- a final subagent review for missing deps, ordering issues, edge cases, and holes before yielding
|
|
40
|
+
- a final `plan-reviewer` subagent review for missing deps, ordering issues, edge cases, invalid parallelism, unsafe write overlap, missing RED targets, missing validation, missing `assigned_skills`, and holes before yielding
|
|
41
41
|
|
|
42
42
|
Do not stop between the grill and planner phases unless a true blocking ambiguity remains.
|
|
@@ -6,6 +6,7 @@ Use this reference for the `$tdd` shaping phase across execution tasks.
|
|
|
6
6
|
|
|
7
7
|
Preserve `$tdd` behavior:
|
|
8
8
|
|
|
9
|
+
- classify every task as `tdd_status: required | not_testable | recovered | not_applicable`
|
|
9
10
|
- surface the public interface change and the behavior priority behind the task
|
|
10
11
|
- identify deep-module or testability opportunities while task boundaries are still fluid
|
|
11
12
|
- define the first public-interface behavior that should fail before implementation
|
|
@@ -14,10 +15,31 @@ Preserve `$tdd` behavior:
|
|
|
14
15
|
- avoid horizontal slicing; every task should represent a RED -> GREEN tracer bullet
|
|
15
16
|
- make the first failing test concrete enough that a worker can start without guessing
|
|
16
17
|
- do not leave TDD intent implicit or hidden outside the saved plan artifact
|
|
18
|
+
- for behavior-changing code tasks, require `red_command`, `expected_red_failure`, and `green_command`
|
|
19
|
+
- require empty `red_evidence` and `green_evidence` fields so implementation can fill proof into the durable plan
|
|
20
|
+
- use `reason_not_testable` only for truly non-testable work, never for forgotten RED
|
|
21
|
+
- for code-before-RED recovery, require the executor to write the intended public-result test, capture real failure, patch to pass, and mark `tdd_status: recovered`
|
|
17
22
|
|
|
18
23
|
## Execution metadata
|
|
19
24
|
|
|
20
|
-
`
|
|
25
|
+
`tdd_status` must be one of:
|
|
26
|
+
|
|
27
|
+
- `required` for behavior-changing code work
|
|
28
|
+
- `not_testable` for behavior that cannot be tested in this task, with `reason_not_testable`
|
|
29
|
+
- `recovered` when production code came first and RED was reconstructed honestly
|
|
30
|
+
- `not_applicable` for docs-only, formatting-only, generated-code-only, config-only, scaffold/bookkeeping-only, or other non-behavior-changing work
|
|
31
|
+
|
|
32
|
+
`tdd_target` must name one public behavior to prove first, or explain the non-runtime artifact being validated when `tdd_status` is not applicable.
|
|
33
|
+
|
|
34
|
+
`red_command` must be the exact command to run before implementation for testable tasks.
|
|
35
|
+
|
|
36
|
+
`expected_red_failure` must name the failing assertion, error, or observable mismatch expected before implementation.
|
|
37
|
+
|
|
38
|
+
`green_command` must be the exact command to run after implementation.
|
|
39
|
+
|
|
40
|
+
`reason_not_testable` must be blank unless `tdd_status: not_testable` or `not_applicable`.
|
|
41
|
+
|
|
42
|
+
`red_evidence` and `green_evidence` start blank in the plan and must be filled during implementation before task completion.
|
|
21
43
|
|
|
22
44
|
`review_mode` must be:
|
|
23
45
|
|