@punks/cli 2.1.0 → 2.1.2
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 +3 -1
- package/dist/data/control-plane.json +3 -0
- package/dist/index.js +760 -738
- package/dist/skills/agnostic/cli/dp-cli/SKILL.md +1 -1
- package/dist/skills/agnostic/cli/dp-cli/references/commands.md +1 -1
- package/dist/skills/agnostic/planning/create-spec/SKILL.md +2 -2
- package/dist/skills/agnostic/planning/create-spec/references/discovery.md +9 -7
- package/dist/skills/agnostic/planning/create-spec/references/folder-naming.md +3 -1
- package/dist/skills/agnostic/planning/create-spec/references/wiki-bookkeeping.md +1 -1
- package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +1 -1
- package/dist/skills/agnostic/requirements/requirements-grill/references/wiki-output.md +3 -1
- package/dist/skills/phases/docs-ingest-phase/SKILL.md +3 -3
- package/dist/skills/phases/docs-ingest-phase/references/concept-pages.md +4 -4
- package/dist/skills/phases/docs-ingest-phase/references/flow-pages.md +3 -3
- package/dist/skills/phases/docs-ingest-phase/references/fumadocs-routing.md +8 -28
- package/dist/skills/phases/docs-ingest-phase/references/wiki-ingest.md +4 -2
- package/dist/skills/phases/goalify/SKILL.md +13 -2
- package/package.json +1 -1
|
@@ -88,7 +88,7 @@ After `dp update`, inspect `.devpunks/scaffold-manifest.json` and the update sum
|
|
|
88
88
|
|
|
89
89
|
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.
|
|
90
90
|
|
|
91
|
-
Do not use reports as the default destination for project product backlog.
|
|
91
|
+
Do not use reports as the default destination for project product backlog. `dp report` opens GitHub issues in `wearedevpunks/harness-intelligence`; pass `--area`, `--skill-pack`, `--command`, `--expected`, `--actual`, and `--steps` so maintainers can triage the issue from GitHub/backoffice without replaying the whole session.
|
|
92
92
|
|
|
93
93
|
## Completion Checklist
|
|
94
94
|
|
|
@@ -30,6 +30,6 @@ After writing, verify the refreshed files still fit the repo shape and any pack
|
|
|
30
30
|
|
|
31
31
|
## `dp report`
|
|
32
32
|
|
|
33
|
-
Use to
|
|
33
|
+
Use to open reusable Harness friction in the Harness Intelligence GitHub repository. Include `--area`, `--skill-pack`, `--command`, `--expected`, `--actual`, and `--steps` whenever they apply so labels and issue body are useful for backoffice triage.
|
|
34
34
|
|
|
35
35
|
Reports are for shared Harness/docs/tooling/workflow issues, not the default path for project product backlog.
|
|
@@ -12,7 +12,7 @@ description: Create a SPEC.md file for a new feature, product, or system using t
|
|
|
12
12
|
- **Upstream:** new idea, feature request, epic/capability issue, or problem statement
|
|
13
13
|
- **Delegates to:** `$parallel-research` for split-friendly readonly discovery; `$requirements-grill` when discovery leaves meaningful spec-affecting unknowns; `$write-backlog` when grill outcomes change epic/story scope
|
|
14
14
|
- **Downstream:** reviewed `SPEC.md`, then usually `create-plan` or `implement-spec`
|
|
15
|
-
- **Entry conditions:** wiki domain can be resolved,
|
|
15
|
+
- **Entry conditions:** wiki root exists and a primary spec domain or project area can be resolved from existing specs, routed project docs, backlog context, or the user's request
|
|
16
16
|
- **Stop conditions:** `SPEC.md`, wiki index, and wiki log 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.
|
|
@@ -24,7 +24,7 @@ The output lives at `apps/wiki/specs/<domain>/<folder-name>/SPEC.md`.
|
|
|
24
24
|
## Quick start
|
|
25
25
|
|
|
26
26
|
1. Read `apps/wiki/AGENTS.md` first. Stop if the wiki is not bootstrapped.
|
|
27
|
-
2. Read `references/discovery.md` and orient yourself in the right
|
|
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.
|
|
30
30
|
5. If the user did not provide a concrete request, ask for a rough description first.
|
|
@@ -7,14 +7,16 @@ Use this reference before asking clarifying questions.
|
|
|
7
7
|
1. Read `apps/wiki/AGENTS.md`.
|
|
8
8
|
- Stop if it does not exist. The wiki is not bootstrapped yet.
|
|
9
9
|
2. Read `apps/wiki/index.md`.
|
|
10
|
-
- Use it as the master map for
|
|
11
|
-
3. Identify the primary domain.
|
|
12
|
-
- Prefer
|
|
10
|
+
- Use it as the master map for source specs, routed project docs, and recent wiki activity.
|
|
11
|
+
3. Identify the primary spec domain or project area.
|
|
12
|
+
- Prefer an existing `apps/wiki/specs/<domain>/` directory when one clearly owns the request.
|
|
13
|
+
- Otherwise infer a concise domain slug from backlog context or the user's request.
|
|
13
14
|
- If multiple domains are involved, pick the primary owner and note cross-domain scope in the spec.
|
|
14
|
-
-
|
|
15
|
-
4. Read
|
|
16
|
-
- `apps/wiki/
|
|
17
|
-
|
|
15
|
+
- Do not create `apps/wiki/domains/` just to make discovery work.
|
|
16
|
+
4. Read existing context for that area when present:
|
|
17
|
+
- `apps/wiki/specs/<domain>/<domain>-specs.md`
|
|
18
|
+
- `apps/wiki/content/docs/project/**` pages that match the area
|
|
19
|
+
5. Optionally read related routed project pages when they are obviously relevant.
|
|
18
20
|
6. Check for existing overlapping specs in:
|
|
19
21
|
- `apps/wiki/specs/<domain>/<domain>-specs.md`
|
|
20
22
|
7. If backlog context exists, inspect the parent epic/capability and every child story beneath it.
|
|
@@ -5,8 +5,10 @@ Use this reference after questioning and before writing the file.
|
|
|
5
5
|
## Domain resolution
|
|
6
6
|
|
|
7
7
|
- The spec path is `apps/wiki/specs/<domain>/<folder-name>/SPEC.md`.
|
|
8
|
-
- Use the exact existing domain directory name from `apps/wiki
|
|
8
|
+
- Use the exact existing domain directory name from `apps/wiki/specs/` when one clearly applies.
|
|
9
|
+
- If no existing spec domain applies, create a concise kebab-case domain from the request or backlog area.
|
|
9
10
|
- If multiple domains are touched, choose the primary owner and describe the cross-domain aspect in the spec body.
|
|
11
|
+
- Do not create `apps/wiki/domains/` as part of spec authoring.
|
|
10
12
|
|
|
11
13
|
## Folder-name rules
|
|
12
14
|
|
|
@@ -10,7 +10,7 @@ Use this reference after writing `SPEC.md`.
|
|
|
10
10
|
| <domain> | [[specs/<domain>/<folder-name>/SPEC]] | Draft |
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
2.
|
|
13
|
+
2. Create or update `apps/wiki/specs/<domain>/<domain>-specs.md` with:
|
|
14
14
|
- the spec name
|
|
15
15
|
- a one-line summary
|
|
16
16
|
|
|
@@ -22,7 +22,7 @@ Use wiki synthesis when the user asks to persist closed grill decisions into `ap
|
|
|
22
22
|
Both workflows can happen in one long session, but keep the responsibilities distinct:
|
|
23
23
|
|
|
24
24
|
- `docs/<topic>-grill-log.md` and `docs/<topic>-grill-status.md` are the detailed requirements and glossary record
|
|
25
|
-
- `apps/wiki/
|
|
25
|
+
- routed `apps/wiki/content/docs/project/` pages are the synthesized project knowledge surface
|
|
26
26
|
- backlog/user-story creation is the next phase after the grill gate, outside this skill's scope
|
|
27
27
|
|
|
28
28
|
## Core Behavior
|
|
@@ -80,7 +80,9 @@ Create or update decision pages only when:
|
|
|
80
80
|
|
|
81
81
|
Keep `docs/` as the detailed design record.
|
|
82
82
|
|
|
83
|
-
Use `apps/wiki/
|
|
83
|
+
Use routed `apps/wiki/content/docs/project/` pages for synthesized project knowledge.
|
|
84
|
+
|
|
85
|
+
Do not create a separate `apps/wiki/domains/` article tree. That duplicates the routed Fumadocs surface and makes later docs ingest choose between competing homes.
|
|
84
86
|
|
|
85
87
|
Do not duplicate the full grill log in wiki pages.
|
|
86
88
|
Summarize stable meaning, glossary, and axioms; link back to source docs when useful.
|
|
@@ -58,10 +58,9 @@ Why: concept pages can cross-link flow pages, so flows must exist first.
|
|
|
58
58
|
|
|
59
59
|
Keep the private Fumadocs app discoverable:
|
|
60
60
|
|
|
61
|
-
- `/docs/
|
|
62
|
-
- `/docs/project` is the canonical routed surface for internal project operations: specs, plans, implementation notes, maintenance logs, decisions, repo guidance, runbooks, and useful management context.
|
|
61
|
+
- `/docs/project` is the routed surface for scaffolded repos. It owns specs, plans, implementation notes, maintenance logs, decisions, repo guidance, runbooks, useful management context, and project-specific projections.
|
|
63
62
|
|
|
64
|
-
Do not create a second
|
|
63
|
+
Do not create a second routed docs surface or a separate `domains/` content-owner layer just because docs ingest ran. Routed MDX pages under `content/docs/project` are the durable human-facing project pages.
|
|
65
64
|
|
|
66
65
|
## Output Contract
|
|
67
66
|
|
|
@@ -82,6 +81,7 @@ Always report:
|
|
|
82
81
|
- Strip or omit `surface` / `permission` frontmatter from routed pages.
|
|
83
82
|
- Proceed to concept writing after a flow write fails.
|
|
84
83
|
- Write canonical concept or flow content under `<wiki-root>/domains/`.
|
|
84
|
+
- Add a second routed docs surface.
|
|
85
85
|
- Create `docs/prd`, `docs/dev`, roadmap, sprint, or backlog-mirror folders.
|
|
86
86
|
- Put agent task instructions inside human-facing docs pages.
|
|
87
87
|
- Leave docs orphaned from `docs/README.md` after adding or renaming them.
|
|
@@ -6,7 +6,7 @@ Use this reference when `docs-ingest-phase` writes concepts into routed wiki doc
|
|
|
6
6
|
|
|
7
7
|
For each extracted concept:
|
|
8
8
|
|
|
9
|
-
1. Read related routed flow pages under
|
|
9
|
+
1. Read related routed flow pages under the routed output root selected by [fumadocs-routing.md](fumadocs-routing.md), if any exist.
|
|
10
10
|
2. Scan `<wiki-root>/raw/` recursively and collect files where frontmatter `ingested: false` or `ingested` is absent.
|
|
11
11
|
3. Use relevant raw content only as supplementary material. Do not mark raw files as ingested here.
|
|
12
12
|
|
|
@@ -27,7 +27,7 @@ Determine status:
|
|
|
27
27
|
Derive the routed output path:
|
|
28
28
|
|
|
29
29
|
1. Use the domain's existing route section if the concept clearly belongs there.
|
|
30
|
-
2.
|
|
30
|
+
2. Write only when an existing project section is a clear fit; otherwise skip the concept page and report the route-policy gap.
|
|
31
31
|
3. Slugify the concept name to kebab-case.
|
|
32
32
|
|
|
33
33
|
For Harness-style domains, prefer existing topical sections such as `foundations`, `prompt-surfaces`, `skills-and-packs`, `execution-modes`, `validation-and-tools`, and `lifecycle-flows` when they already exist.
|
|
@@ -40,8 +40,8 @@ Every concept page must include frontmatter:
|
|
|
40
40
|
---
|
|
41
41
|
title: <Concept Name>
|
|
42
42
|
description: <one sentence>
|
|
43
|
-
surface:
|
|
44
|
-
permission:
|
|
43
|
+
surface: project
|
|
44
|
+
permission: project
|
|
45
45
|
domain: <domain>
|
|
46
46
|
type: concept
|
|
47
47
|
status: proposed | implemented
|
|
@@ -8,7 +8,7 @@ For each extracted flow:
|
|
|
8
8
|
|
|
9
9
|
1. Derive the routed output path:
|
|
10
10
|
- use the domain's existing flow section when one exists
|
|
11
|
-
- otherwise
|
|
11
|
+
- write only when an existing project section is a clear fit; otherwise skip the flow page and report the route-policy gap
|
|
12
12
|
- slugify the flow name to kebab-case
|
|
13
13
|
2. Determine status:
|
|
14
14
|
- `proposed` when only `SPEC.md` is present
|
|
@@ -33,8 +33,8 @@ Every flow page must include frontmatter:
|
|
|
33
33
|
---
|
|
34
34
|
title: <Flow Name>
|
|
35
35
|
description: <one sentence>
|
|
36
|
-
surface:
|
|
37
|
-
permission:
|
|
36
|
+
surface: project
|
|
37
|
+
permission: project
|
|
38
38
|
domain: <domain>
|
|
39
39
|
type: flow
|
|
40
40
|
status: proposed | implemented
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
# Fumadocs Routing
|
|
2
2
|
|
|
3
|
-
Use this reference when `docs-ingest-phase` updates routed
|
|
3
|
+
Use this reference when `docs-ingest-phase` updates routed project docs.
|
|
4
4
|
|
|
5
5
|
## Canonical Routed Content
|
|
6
6
|
|
|
7
|
-
`apps/wiki` owns the wiki application and its documentation content. Routed MDX pages are the canonical human-facing docs surface
|
|
7
|
+
`apps/wiki` owns the wiki application and its documentation content. Routed MDX pages under `content/docs/project` are the canonical human-facing docs surface.
|
|
8
|
+
|
|
9
|
+
Required route root:
|
|
8
10
|
|
|
9
|
-
- `<wiki-root>/content/docs/wiki`
|
|
10
11
|
- `<wiki-root>/content/docs/project`
|
|
11
12
|
|
|
12
13
|
Do not create or maintain a separate canonical `domains/` tree for concepts and flows. That split creates drift because one article then has two homes.
|
|
@@ -15,16 +16,7 @@ Do not create or maintain a separate canonical `domains/` tree for concepts and
|
|
|
15
16
|
|
|
16
17
|
## Route Boundaries
|
|
17
18
|
|
|
18
|
-
Use `/docs/
|
|
19
|
-
|
|
20
|
-
- usage model
|
|
21
|
-
- concepts
|
|
22
|
-
- theory
|
|
23
|
-
- flows
|
|
24
|
-
- glossary
|
|
25
|
-
- docs-ingest-phase concept/flow output
|
|
26
|
-
|
|
27
|
-
Use `/docs/project` for internal project operations:
|
|
19
|
+
Use `/docs/project` for:
|
|
28
20
|
|
|
29
21
|
- specs
|
|
30
22
|
- plans
|
|
@@ -34,6 +26,8 @@ Use `/docs/project` for internal project operations:
|
|
|
34
26
|
- repo guidance
|
|
35
27
|
- operator/project runbooks
|
|
36
28
|
- useful Linear/grill-derived management context
|
|
29
|
+
- project-specific projections
|
|
30
|
+
- docs-ingest-phase concept/flow output
|
|
37
31
|
|
|
38
32
|
Keep implementation specs and notes linked or summarized. Do not paste large source artifacts into routed pages.
|
|
39
33
|
|
|
@@ -41,20 +35,11 @@ Keep implementation specs and notes linked or summarized. Do not paste large sou
|
|
|
41
35
|
|
|
42
36
|
Fumadocs uses file paths to determine route slugs. Examples:
|
|
43
37
|
|
|
44
|
-
- `content/docs/wiki/index.mdx` -> `/docs/wiki`
|
|
45
|
-
- `content/docs/wiki/cli/index.mdx` -> `/docs/wiki/cli`
|
|
46
38
|
- `content/docs/project/specs/index.mdx` -> `/docs/project/specs`
|
|
47
39
|
|
|
48
40
|
Each folder with an explicit `meta.json` `pages` array must list every page or child folder that should appear in the page tree. Update `meta.json` whenever pages are added, moved, or removed.
|
|
49
41
|
|
|
50
|
-
Use root
|
|
51
|
-
|
|
52
|
-
```json
|
|
53
|
-
{
|
|
54
|
-
"title": "Wiki",
|
|
55
|
-
"root": true
|
|
56
|
-
}
|
|
57
|
-
```
|
|
42
|
+
Use a root folder for the default project surface:
|
|
58
43
|
|
|
59
44
|
```json
|
|
60
45
|
{
|
|
@@ -67,11 +52,6 @@ Use root folders for the two main surfaces:
|
|
|
67
52
|
|
|
68
53
|
Preserve access-control frontmatter on routed pages:
|
|
69
54
|
|
|
70
|
-
```yaml
|
|
71
|
-
surface: wiki
|
|
72
|
-
permission: internal
|
|
73
|
-
```
|
|
74
|
-
|
|
75
55
|
```yaml
|
|
76
56
|
surface: project
|
|
77
57
|
permission: project
|
|
@@ -17,7 +17,9 @@ Resolve to a full spec folder before continuing. If ambiguous, ask only for the
|
|
|
17
17
|
1. Read `SPEC.md`. Stop if missing.
|
|
18
18
|
2. Check `SPEC.md` frontmatter for `ingested: true`; if set, exit with a clear no-op.
|
|
19
19
|
3. Verify `domain:` exists in frontmatter.
|
|
20
|
-
4.
|
|
20
|
+
4. Resolve the routed output home from `<wiki-root>/AGENTS.md`, existing `content/docs/project/**/meta.json`, and the current page tree.
|
|
21
|
+
- Use existing `<wiki-root>/content/docs/project/` sections for concise projections and links.
|
|
22
|
+
- If no clear project route home exists, stop and report the missing route policy. Do not scaffold a second routed docs surface to satisfy this phase.
|
|
21
23
|
|
|
22
24
|
## Source Read
|
|
23
25
|
|
|
@@ -70,7 +72,7 @@ If no multi-step sequence exists, record the absence and skip flow writing.
|
|
|
70
72
|
|
|
71
73
|
Read [flow-pages.md](flow-pages.md) and apply it to every extracted flow.
|
|
72
74
|
|
|
73
|
-
Wait for all flow pages to complete before concept writing. If any flow write fails, stop and report the failure so the run can resume cleanly.
|
|
75
|
+
Wait for all flow pages to complete before concept writing. If no suitable project section exists for a flow, skip that flow page and report the route-policy gap. If any required flow write fails, stop and report the failure so the run can resume cleanly.
|
|
74
76
|
|
|
75
77
|
## Extract Concepts
|
|
76
78
|
|
|
@@ -12,6 +12,10 @@ Codex goal objectives have a hard platform limit: the text after `/goal` must be
|
|
|
12
12
|
non-empty and at most 4,000 characters. Longer instructions belong in a file
|
|
13
13
|
that the goal points to; do not emit an over-limit `/goal` block.
|
|
14
14
|
|
|
15
|
+
Goal prompts must be short and concise. Do not write a spec, essay, transcript,
|
|
16
|
+
or exhaustive handoff. Write the smallest complete operating contract: direct,
|
|
17
|
+
detailed enough to execute, and straightforward step by step.
|
|
18
|
+
|
|
15
19
|
## Use When
|
|
16
20
|
|
|
17
21
|
- The user asks to "goalify", "write the goal prompt", "prepare a goal", or "turn this into a goal".
|
|
@@ -53,6 +57,9 @@ Within the 4,000-character hard limit, prefer the official goal-shape fields:
|
|
|
53
57
|
- iteration policy
|
|
54
58
|
- blocked stop condition
|
|
55
59
|
|
|
60
|
+
These criteria are required, but they are not permission to be verbose. Fold
|
|
61
|
+
related details together, delete repetition, and keep each section short.
|
|
62
|
+
|
|
56
63
|
## Workflow
|
|
57
64
|
|
|
58
65
|
1. **Collect context.**
|
|
@@ -72,8 +79,10 @@ Within the 4,000-character hard limit, prefer the official goal-shape fields:
|
|
|
72
79
|
- Include only context the future goal runner needs.
|
|
73
80
|
- Make the prompt self-contained enough to survive compaction.
|
|
74
81
|
- Keep the full `/goal ...` text at or below 4,000 characters.
|
|
75
|
-
-
|
|
76
|
-
-
|
|
82
|
+
- Prefer short over maximal. The target is concise and complete, not "as much as fits".
|
|
83
|
+
- Preserve concrete paths, constraints, proof, and stop conditions before trimming execution detail.
|
|
84
|
+
- Use terse step-by-step workflow bullets with clear verbs and validation gates.
|
|
85
|
+
- Compress aggressively: group files by area, collapse repeated commands, delete background, and remove non-execution-critical explanation.
|
|
77
86
|
- If the real operating contract cannot fit, produce a short `/goal` that points at an existing or user-requested goal file instead of pasting the full contract.
|
|
78
87
|
5. **Review before returning.**
|
|
79
88
|
- Confirm the prompt has one objective and one stopping condition.
|
|
@@ -81,6 +90,7 @@ Within the 4,000-character hard limit, prefer the official goal-shape fields:
|
|
|
81
90
|
- Confirm it tells Codex when to stop early.
|
|
82
91
|
- Confirm validation is explicit, not "make sure it works".
|
|
83
92
|
- Confirm the fenced `/goal` text is non-empty and no more than 4,000 characters.
|
|
93
|
+
- Confirm the prompt is short, direct, and step-by-step; cut any paragraph that merely explains context the runner does not need.
|
|
84
94
|
|
|
85
95
|
## Output Contract
|
|
86
96
|
|
|
@@ -109,6 +119,7 @@ Use these headings when they fit:
|
|
|
109
119
|
## Gotchas
|
|
110
120
|
|
|
111
121
|
- HARD LIMIT: never output a `/goal` prompt longer than 4,000 characters.
|
|
122
|
+
- SHORT MEANS SHORT: the goal should feel like a compact command contract, not a plan file.
|
|
112
123
|
- Do not treat `/goal` as a spec dump. It is a compact operating contract.
|
|
113
124
|
- If a user asks for a giant goal, preserve the richest useful contract that fits, then point at a file for overflow detail.
|
|
114
125
|
- Do not hardcode project-specific phase families; use the skills/phases named by the context.
|