@punks/cli 2.1.1 → 2.1.3

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.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: dp-cli
3
- description: Operates the Devpunks `dp` CLI and interactively follows scaffold, update, report, and post-command handoff artifacts through to completion. Use when a repo contains `.devpunks/` output, when the user mentions `dp scaffold`, `dp update`, `dp report`, Devpunks CLI setup, or asks what to do after running a `dp` command.
3
+ description: Operates the Devpunks `dp` CLI and interactively follows scaffold, update, report, upgrade, and post-command handoff artifacts through to completion. Use when a repo contains `.devpunks/` output, when the user mentions `dp scaffold`, `dp update`, `dp report`, `dp upgrade`, Devpunks CLI setup, or asks what to do after running a `dp` command.
4
4
  metadata: {"Devpunks":{"entrypoint":true}}
5
5
  ---
6
6
 
@@ -12,10 +12,13 @@ The `dp` CLI scaffolds Devpunks agent assets and writes follow-up instructions f
12
12
 
13
13
  ```bash
14
14
  dp scaffold setup
15
+ dp scaffold setup --yes
15
16
  dp scaffold init
16
17
  dp update --check
17
18
  dp update --write
19
+ dp update --yes
18
20
  dp report --help
21
+ dp upgrade --help
19
22
  ```
20
23
 
21
24
  After any command, read the command output and generated artifacts before acting.
@@ -72,6 +75,8 @@ Then author or reconcile the final repo files requested by the specs, including
72
75
 
73
76
  Reconcile generated wiki guidance with the real repository layout. Do not assume a newly seeded wiki root is canonical until it matches the project boundary.
74
77
 
78
+ Use `dp scaffold setup --yes` only when the harness cannot answer interactive prompts. It accepts the resolved default pack selection; it does not add optional packs or resolve repo-policy decisions.
79
+
75
80
  Before authoring prompts or plans, identify the detected core libraries whose source behavior matters. Ask the user which ones to prioritize if the choice is not obvious, then run `opensrc path <package>` or `opensrc path owner/repo` only for that focused set.
76
81
 
77
82
  When lint specs suggest Oxlint or hooks suggest Oxfmt, treat migration as a repo-policy change. Ask before replacing existing ESLint/Prettier/Biome scripts or CI, then update package scripts, task pipelines, editor/docs references, and hooks together.
@@ -82,13 +87,33 @@ After `dp update`, inspect `.devpunks/scaffold-manifest.json` and the update sum
82
87
 
83
88
  - `--check` reports managed-file drift without writing.
84
89
  - `--write` refreshes scaffold-managed assets.
90
+ - `--yes` refreshes scaffold-managed assets without prompting and is the non-interactive apply flag.
85
91
  - pack drift is a setup decision point, not a silent auto-fix.
86
92
 
87
93
  ## Report
88
94
 
89
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.
90
96
 
91
- Do not use reports as the default destination for project product backlog. Report submission requires control-plane configuration and auth.
97
+ Do not use reports as the default destination for project product backlog. `dp report` opens GitHub issues 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
+
99
+ Reports are GitHub-backed. Backoffice fetches `harness-report` issues from GitHub and treats GitHub state/labels as the triage source of truth. Legacy API-persisted reports are migration/local-smoke context only.
100
+
101
+ `dp report` emits product telemetry only after the GitHub issue is created. If issue creation fails, do not claim the report was submitted; capture the blocker and suggest the exact GitHub auth/config missing.
102
+
103
+ ## Upgrade
104
+
105
+ Use `dp upgrade` to update the CLI executable itself. It checks the selected npm dist-tag, detects whether the current global install came from Bun, pnpm, npm, or Yarn, and runs the matching global reinstall command.
106
+
107
+ Use `--tag next` for prerelease channels and `--force` to reinstall the selected tag even when no newer version is detected.
108
+
109
+ Upgrade deliberately bypasses package-manager release-age gates for the CLI package so just-published releases can install immediately:
110
+
111
+ - Bun: `bun add -g @punks/cli@<tag> --minimum-release-age=0`
112
+ - npm: `npm install -g @punks/cli@<tag> --min-release-age=0`
113
+ - pnpm: `npm_config_minimum_release_age=0 pnpm add -g @punks/cli@<tag>`
114
+ - Yarn: `YARN_NPM_MINIMAL_AGE_GATE=0 yarn global add @punks/cli@<tag>`
115
+
116
+ Startup update checks are advisory and detached. They should not mutate installs during normal command startup; `dp upgrade` is the explicit update path.
92
117
 
93
118
  ## Completion Checklist
94
119
 
@@ -8,6 +8,8 @@ It detects package manifests, resolves packs, writes `.agents/`, harness files,
8
8
 
9
9
  It does not finish all repo-specific authoring. The next agent must use `.devpunks/AGENT-SYSTEM-PROMPT.md` and `.devpunks/specs/**` to generate final scoped guidance and reconcile assets.
10
10
 
11
+ Use `dp scaffold setup --yes` in non-interactive harnesses. It accepts the resolved default pack selection and skips pack-selection prompts. It does not select optional packs.
12
+
11
13
  ## `dp scaffold init`
12
14
 
13
15
  Use before boilerplate exists.
@@ -28,8 +30,41 @@ Use to refresh scaffold-managed files recorded in `.devpunks/scaffold-manifest.j
28
30
 
29
31
  After writing, verify the refreshed files still fit the repo shape and any pack drift is handled intentionally.
30
32
 
33
+ ## `dp update --yes`
34
+
35
+ Use in non-interactive harnesses to apply managed scaffold updates without answering the terminal confirmation prompt.
36
+
37
+ It has the same managed-file apply behavior as `--write`.
38
+
31
39
  ## `dp report`
32
40
 
33
- Use to submit reusable Harness friction for maintainer triage when the control plane and auth are configured.
41
+ 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
42
 
35
43
  Reports are for shared Harness/docs/tooling/workflow issues, not the default path for project product backlog.
44
+
45
+ Useful classification flags:
46
+
47
+ - `--type bug|docs|workflow|tooling|other`
48
+ - `--severity low|medium|high`
49
+ - `--area cli|wiki|skill|docs|workflow|backoffice|other`
50
+ - `--skill-pack <name>`
51
+ - `--command <command>`
52
+ - `--expected <text>`
53
+ - `--actual <text>`
54
+ - `--steps <text>`
55
+ - `--labels <comma-separated-labels>`
56
+
57
+ The report path is GitHub-backed. The CLI creates an issue with `harness-report` metadata and labels, then emits report-submitted telemetry only after issue creation succeeds. Backoffice reads GitHub issues for report triage.
58
+
59
+ ## `dp upgrade`
60
+
61
+ Use to update the installed CLI executable through its original global package-manager path.
62
+
63
+ The command checks the selected npm dist-tag, detects Bun, pnpm, npm, or Yarn from the current install path, and runs the corresponding global reinstall command. Use `--tag next` for prerelease channels, `--force` to reinstall the selected tag, and `--json` when automation needs structured output.
64
+
65
+ `dp upgrade` bypasses minimum-release-age gates for the CLI package:
66
+
67
+ - Bun uses `--minimum-release-age=0`.
68
+ - npm uses `--min-release-age=0`.
69
+ - pnpm uses `npm_config_minimum_release_age=0`.
70
+ - Yarn uses `YARN_NPM_MINIMAL_AGE_GATE=0`.
@@ -40,15 +40,31 @@ Do not stop after saying the files exist.
40
40
 
41
41
  After `dp scaffold init`:
42
42
 
43
- - Run `requirements-grill` before `write-backlog`.
43
+ - Do not start requirements discovery by default.
44
+ - Inspect the generated skills and seeded wiki root.
44
45
  - Treat the seeded wiki root as provisional until it matches the repo layout.
46
+ - Move, rename, or refactor generated init output when needed so it matches the actual repository.
47
+ - Run `requirements-grill` before `write-backlog` only when the user actually asks for requirements or backlog generation.
45
48
  - Use `dp scaffold setup` only after the repo is ready for repo-aware setup.
46
49
 
50
+ After `dp report`:
51
+
52
+ - Confirm the command created a GitHub issue URL before saying the report was submitted.
53
+ - Include the issue URL, labels, affected command, affected skill pack, and remaining blocker if creation failed.
54
+ - Do not duplicate project product backlog into Harness reports unless maintainers explicitly promote it.
55
+
56
+ After `dp upgrade`:
57
+
58
+ - Report whether the CLI upgraded, was already current, could not detect the install manager, or failed while running the package-manager command.
59
+ - Include the package manager and command used when available.
60
+ - If upgrade failed because registry lookup or install-manager detection failed, give the manual reinstall command for Bun, pnpm, npm, or Yarn rather than treating the repo as broken.
61
+
47
62
  ## Reporting
48
63
 
49
64
  Final reports should say:
50
65
 
51
66
  - what artifacts were consumed
52
67
  - what final files were authored or reconciled
68
+ - report issue URL or upgrade command/result, when relevant
53
69
  - what validation ran
54
70
  - what remains unresolved, if anything
@@ -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, or the user creates one first with `create-wiki-domain`
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 wiki domain before asking questions.
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 domains, contracts, and existing specs.
11
- 3. Identify the primary domain.
12
- - Prefer the domain whose contract most clearly owns the request.
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
- - If no domain matches, stop and tell the user to run `/create-wiki-domain <name>` first.
15
- 4. Read the relevant domain contract:
16
- - `apps/wiki/domains/<domain>/<domain>-contract.md`
17
- 5. Optionally read related domain concepts or flows when they are obviously relevant.
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. Add an entry to `apps/wiki/specs/<domain>/<domain>-specs.md` with:
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/domains/` is synthesized domain knowledge
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/domains/` for synthesized domain knowledge.
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/wiki` is the canonical routed surface for product/domain knowledge: usage, concepts, theory, flows, glossary, and concept/flow ingest output.
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 wiki or a separate `domains/` content-owner layer. Routed MDX pages under `content/docs` are the durable human-facing wiki/project pages.
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 `<wiki-root>/content/docs/wiki/<domain>/`.
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. Otherwise write to `<wiki-root>/content/docs/wiki/<domain>/<concept-name>.mdx`.
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: wiki
44
- permission: internal
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 write to `<wiki-root>/content/docs/wiki/<domain>/<flow-name>.mdx`
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: wiki
37
- permission: internal
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 wiki or project docs.
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/wiki` for product/domain knowledge:
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 folders for the two main surfaces:
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. Verify the routed domain root exists under `<wiki-root>/content/docs/wiki/<domain>/` with an `index.mdx` file and `meta.json`. If missing, stop and scaffold the routed domain structure first.
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
- - Be as descriptive as possible within the 4,000-character limit: preserve concrete paths, constraints, proof, and stop conditions before trimming style or repetition.
76
- - Compress only when needed to fit: group files by area, collapse repeated commands, and remove non-execution-critical background before dropping useful detail.
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/cli",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "Harness Intelligence scaffolding CLI",
5
5
  "bin": {
6
6
  "devpunks": "dist/index.js",