@punks/cli 2.1.9 → 2.1.10
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 +4 -3
- package/dist/data/catalog/skills.ts +40 -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 +70 -31
- package/dist/data/subagents/manifest.mjs +120 -0
- package/dist/index.js +455 -49
- 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/upstream/mattpocock-writing-skills.md +41 -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/planning/create-plan/SKILL.md +17 -2
- package/dist/skills/agnostic/planning/create-plan/references/planner-phase.md +1 -1
- package/dist/skills/agnostic/planning/create-spec/SKILL.md +55 -10
- 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 +18 -0
- package/dist/skills/agnostic/planning/stack/SKILL.md +89 -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/delivery-phase/SKILL.md +6 -1
- package/dist/skills/phases/docs-ingest-phase/SKILL.md +28 -20
- package/dist/skills/phases/docs-ingest-phase/references/fumadocs-routing.md +8 -5
- package/dist/skills/phases/docs-ingest-phase/references/public-docs.md +82 -0
- package/dist/skills/phases/requirements-phase/SKILL.md +2 -0
- package/dist/skills/phases/review-phase/SKILL.md +3 -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,41 @@
|
|
|
1
|
+
# Matt Pocock Writing Skills
|
|
2
|
+
|
|
3
|
+
Source: https://github.com/mattpocock/skills/tree/main/skills/in-progress
|
|
4
|
+
|
|
5
|
+
Imported from upstream commit:
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
694fa30311e02c2639942308513555e61ee84a6f
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Imported skills:
|
|
12
|
+
|
|
13
|
+
- `writing-fragments`
|
|
14
|
+
- `writing-beats`
|
|
15
|
+
- `writing-shape`
|
|
16
|
+
|
|
17
|
+
These skills were in upstream `skills/in-progress` at import time. Devpunks adopts them as reusable agnostic docs/writing skills and distributes them through the normal shared skills sync.
|
|
18
|
+
|
|
19
|
+
## MIT License Notice
|
|
20
|
+
|
|
21
|
+
MIT License
|
|
22
|
+
|
|
23
|
+
Copyright (c) 2026 Matt Pocock
|
|
24
|
+
|
|
25
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
26
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
27
|
+
in the Software without restriction, including without limitation the rights
|
|
28
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
29
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
30
|
+
furnished to do so, subject to the following conditions:
|
|
31
|
+
|
|
32
|
+
The above copyright notice and this permission notice shall be included in all
|
|
33
|
+
copies or substantial portions of the Software.
|
|
34
|
+
|
|
35
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
36
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
37
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
38
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
39
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
40
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
41
|
+
SOFTWARE.
|
|
@@ -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.
|
|
@@ -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,7 +46,7 @@ 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.
|
|
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
50
|
5. Resolve each task's scoped guidance from root `AGENTS.md` down to the nearest `AGENTS.md` for its `location`.
|
|
51
51
|
6. 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.
|
|
52
52
|
7. Assign each task the exact existing skills required by those scoped `Primary skills here` lists, merging all scopes for cross-directory tasks.
|
|
@@ -54,6 +54,21 @@ Create a plan first. Never implement code in this skill.
|
|
|
54
54
|
9. 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.
|
|
55
55
|
10. Stop after plan creation and backlog sync. Do not implement code or spawn implementation workers.
|
|
56
56
|
|
|
57
|
+
### Stack-aware preservation
|
|
58
|
+
|
|
59
|
+
If `SPEC.md` contains `Dependency Readiness` or `Branch/Base Intent`, copy those
|
|
60
|
+
sections into `PLAN.md` and validate that they are internally consistent.
|
|
61
|
+
|
|
62
|
+
- Preserve the exact dependency status: `No Stack Required`,
|
|
63
|
+
`Branch/Base Intent`, or `Blocked`.
|
|
64
|
+
- Do not decide stack topology in `create-plan`.
|
|
65
|
+
- Do not convert task-level `depends_on` into stacked PRs. Intra-epic task
|
|
66
|
+
dependencies stay inside one PR and only control implementation order.
|
|
67
|
+
- If `Dependency Readiness` is `Blocked`, stop planning and report the blocker
|
|
68
|
+
instead of producing an execution-ready plan.
|
|
69
|
+
- If `Branch/Base Intent` exists, make implementation tasks reference that
|
|
70
|
+
branch/base intent as an execution constraint.
|
|
71
|
+
|
|
57
72
|
### Review modes
|
|
58
73
|
|
|
59
74
|
- `cli`: tests, commands, APIs, non-visual validation
|
|
@@ -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.
|
|
@@ -10,20 +10,20 @@ description: Create a SPEC.md file for a new feature, product, or system using t
|
|
|
10
10
|
- **Role:** higher-order spec authoring skill
|
|
11
11
|
- **Entrypoint type:** public entrypoint
|
|
12
12
|
- **Upstream:** new idea, feature request, epic/capability issue, or problem statement
|
|
13
|
-
- **Delegates to:** `$parallel-research` for split-friendly readonly discovery; `$requirements-grill` when discovery leaves meaningful spec-affecting unknowns; `$write-backlog` when the spec objective or grill outcomes change epic/story scope
|
|
13
|
+
- **Delegates to:** `planning-discovery` for bounded readonly orientation when subagents are available; `$parallel-research` for split-friendly readonly discovery; `$requirements-grill` when discovery leaves meaningful spec-affecting unknowns; `$write-backlog` when the spec objective or grill outcomes change epic/story scope; `spec-reviewer` for a final readonly quality pass when subagents are available
|
|
14
14
|
- **Downstream:** reviewed `SPEC.md`, then usually `create-plan` or `implement-spec`
|
|
15
|
-
- **Entry conditions:**
|
|
16
|
-
- **Stop conditions:** `SPEC.md
|
|
15
|
+
- **Entry conditions:** a planning surface can be resolved from routed wiki docs, legacy wiki specs, existing docs, backlog context, or the user's request
|
|
16
|
+
- **Stop conditions:** `SPEC.md` and any existing planning-surface indexes/logs are updated, then wait for user review
|
|
17
17
|
|
|
18
18
|
This skill creates `SPEC.md` files that stay in the problem space: what to build, who it is for, why it matters, what counts as done, and what is out of scope.
|
|
19
19
|
|
|
20
20
|
When backlog context exists, one `SPEC.md` maps to one parent epic/capability issue and must cover the full scope of that epic. If the epic has child stories, the spec must explicitly incorporate and unify the requirements of all of them.
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
Resolve the output root from the repo before writing. Prefer `apps/wiki/content/docs/project/specs/<domain>/<folder-name>/SPEC.md`, then legacy `apps/wiki/specs/<domain>/<folder-name>/SPEC.md`, then `docs/specs/<domain>/<folder-name>/SPEC.md`.
|
|
23
23
|
|
|
24
24
|
## Quick start
|
|
25
25
|
|
|
26
|
-
1.
|
|
26
|
+
1. Resolve the planning surface with `references/discovery.md`; do not block solely because legacy `apps/wiki/AGENTS.md` is absent.
|
|
27
27
|
2. Read `references/discovery.md` and orient yourself in the right spec domain or project area before asking questions.
|
|
28
28
|
3. When discovery spans independent code paths, docs, backlog items, prior specs, or hypotheses, read and use `$parallel-research` for readonly sidecar coverage before synthesizing.
|
|
29
29
|
4. If backlog context exists, read the parent epic and every child story before asking questions.
|
|
@@ -34,8 +34,9 @@ The output lives at `apps/wiki/specs/<domain>/<folder-name>/SPEC.md`.
|
|
|
34
34
|
9. Read `references/folder-naming.md` to resolve the domain and spec folder path.
|
|
35
35
|
10. Read `assets/SPEC-TEMPLATE.md` and write the spec.
|
|
36
36
|
11. Read `references/spec-quality-bar.md` before saving.
|
|
37
|
-
12.
|
|
38
|
-
13. Read `references/
|
|
37
|
+
12. If subagents are available, use `spec-reviewer` for a readonly pass over the draft before user review.
|
|
38
|
+
13. Read `references/wiki-bookkeeping.md` to update the indexes/logs that exist for the resolved planning surface.
|
|
39
|
+
14. Read `references/handoff.md` to choose the next-step recommendation and stop after user review.
|
|
39
40
|
|
|
40
41
|
## Workflow
|
|
41
42
|
|
|
@@ -49,8 +50,52 @@ The output lives at `apps/wiki/specs/<domain>/<folder-name>/SPEC.md`.
|
|
|
49
50
|
6. Use `$write-backlog` automatically before final drafting when accepted spec direction implies backlog changes, whether that direction came from the user's objective, discovery, or a grill phase.
|
|
50
51
|
7. Keep the spec free of implementation detail.
|
|
51
52
|
8. Use the template structure exactly, then remove all template scaffolding.
|
|
52
|
-
9.
|
|
53
|
-
10.
|
|
53
|
+
9. Use `spec-reviewer` to catch invented requirements, missing constraints, vague acceptance criteria, and contradictions before yielding when subagents are available.
|
|
54
|
+
10. Update planning-surface bookkeeping in the same run.
|
|
55
|
+
11. Stop after presenting the spec and the recommended next step.
|
|
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.
|
|
54
99
|
|
|
55
100
|
## Advanced features
|
|
56
101
|
|
|
@@ -60,6 +105,6 @@ The output lives at `apps/wiki/specs/<domain>/<folder-name>/SPEC.md`.
|
|
|
60
105
|
- Backlog sync after grilling: see [references/backlog-sync.md](references/backlog-sync.md)
|
|
61
106
|
- Domain and folder naming rules: see [references/folder-naming.md](references/folder-naming.md)
|
|
62
107
|
- Acceptance-criteria and quality bar: see [references/spec-quality-bar.md](references/spec-quality-bar.md)
|
|
63
|
-
-
|
|
108
|
+
- Planning surface index/log updates: see [references/wiki-bookkeeping.md](references/wiki-bookkeeping.md)
|
|
64
109
|
- Review closeout and next-step routing: see [references/handoff.md](references/handoff.md)
|
|
65
110
|
- Canonical backlog model: see [../write-backlog/assets/concepts/backlog-model.md](../write-backlog/assets/concepts/backlog-model.md)
|
|
@@ -4,35 +4,43 @@ Use this reference before asking clarifying questions.
|
|
|
4
4
|
|
|
5
5
|
## Required order
|
|
6
6
|
|
|
7
|
-
1.
|
|
8
|
-
-
|
|
9
|
-
|
|
10
|
-
-
|
|
11
|
-
|
|
12
|
-
-
|
|
7
|
+
1. Resolve the planning surface. Prefer the first existing layout:
|
|
8
|
+
- routed project wiki: `apps/wiki/content/docs/project/specs`
|
|
9
|
+
- legacy source wiki: `apps/wiki/specs`
|
|
10
|
+
- docs fallback: `docs/specs`
|
|
11
|
+
2. Read local guidance for the resolved surface when present:
|
|
12
|
+
- routed project wiki: `apps/wiki/AGENTS.md`, `apps/wiki/content/docs/project/index.mdx`, `apps/wiki/content/docs/project/meta.json`
|
|
13
|
+
- legacy source wiki: `apps/wiki/AGENTS.md`, `apps/wiki/index.md`
|
|
14
|
+
- docs fallback: `docs/README.md`, `docs/specs/index.md`
|
|
15
|
+
3. If none of those roots exists, create `docs/specs/<domain>/<folder>/SPEC.md` rather than blocking on scaffold setup.
|
|
16
|
+
- Mention that the repo lacks a routed wiki planning surface in the handoff.
|
|
17
|
+
- Do not create or scaffold `apps/wiki` from this skill.
|
|
18
|
+
4. Identify the primary spec domain or project area.
|
|
19
|
+
- Prefer an existing `<resolved-specs-root>/<domain>/` directory when one clearly owns the request.
|
|
13
20
|
- Otherwise infer a concise domain slug from backlog context or the user's request.
|
|
14
21
|
- If multiple domains are involved, pick the primary owner and note cross-domain scope in the spec.
|
|
15
22
|
- Do not create `apps/wiki/domains/` just to make discovery work.
|
|
16
|
-
|
|
17
|
-
-
|
|
18
|
-
- `apps/wiki/content/docs/project/**`
|
|
19
|
-
|
|
20
|
-
6.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
5. Read existing context for that area when present:
|
|
24
|
+
- `<resolved-specs-root>/<domain>/<domain>-specs.md`
|
|
25
|
+
- routed project pages under `apps/wiki/content/docs/project/**` that match the area
|
|
26
|
+
- docs pages under `docs/**` that match the area
|
|
27
|
+
6. Optionally read related routed project pages when they are obviously relevant.
|
|
28
|
+
7. Check for existing overlapping specs in:
|
|
29
|
+
- `<resolved-specs-root>/<domain>/<domain>-specs.md`
|
|
30
|
+
8. If backlog context exists, inspect the parent epic/capability and every child story beneath it.
|
|
23
31
|
Use [../../write-backlog/assets/concepts/backlog-model.md](../../write-backlog/assets/concepts/backlog-model.md) as the source of truth for how to interpret module -> epic -> story shape.
|
|
24
32
|
Harvest:
|
|
25
33
|
- epic outcome and constraints
|
|
26
34
|
- each child story title
|
|
27
35
|
- each child story body and acceptance signals
|
|
28
36
|
- cross-story blockers or sequencing assumptions that affect the problem statement
|
|
29
|
-
|
|
37
|
+
9. Check existing DB schema when a matching domain schema file exists:
|
|
30
38
|
- `packages/db/src/schema/<domain>.ts`
|
|
31
39
|
Use it to:
|
|
32
40
|
- avoid speccing duplicates
|
|
33
41
|
- catch contradictions with the implemented model
|
|
34
42
|
- surface open questions when a required field is absent
|
|
35
|
-
|
|
43
|
+
10. Glance at the top-level repo structure only if needed for terminology or context.
|
|
36
44
|
|
|
37
45
|
## Exploration rule
|
|
38
46
|
|
|
@@ -43,4 +51,4 @@ This is orientation, not deep implementation research.
|
|
|
43
51
|
- Prefer enough context to ask better questions
|
|
44
52
|
- Do not drift into solution design
|
|
45
53
|
|
|
46
|
-
If the Agent tool is available, use
|
|
54
|
+
If the Agent tool is available, use the `planning-discovery` subagent for this pass so the main thread stays clean. Its output should be evidence, contradictions, overlapping work, and open questions only; keep synthesis and spec decisions in the parent thread.
|