@punks/cli 2.6.1 → 3.0.0-beta.0

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.
Files changed (102) hide show
  1. package/AGENTS.md +1 -1
  2. package/README.md +42 -24
  3. package/dist/BASELINE_CHANGELOG.md +57 -0
  4. package/dist/CHANGELOG.md +80 -0
  5. package/dist/data/scripts/harness-projection/adapters/claude.d.mts +3 -0
  6. package/dist/data/scripts/harness-projection/adapters/claude.mjs +124 -0
  7. package/dist/data/scripts/harness-projection/adapters/codex.d.mts +3 -0
  8. package/dist/data/scripts/harness-projection/adapters/codex.mjs +137 -0
  9. package/dist/data/scripts/harness-projection/adapters/cursor.d.mts +5 -0
  10. package/dist/data/scripts/harness-projection/adapters/cursor.mjs +106 -0
  11. package/dist/data/scripts/harness-projection/adapters/opencode.d.mts +5 -0
  12. package/dist/data/scripts/harness-projection/adapters/opencode.mjs +100 -0
  13. package/dist/data/scripts/harness-projection/apply.d.mts +12 -0
  14. package/dist/data/scripts/harness-projection/apply.mjs +96 -0
  15. package/dist/data/scripts/harness-projection/core.d.mts +8 -0
  16. package/dist/data/scripts/harness-projection/core.mjs +239 -0
  17. package/dist/data/scripts/harness-projection/test-fixtures/application-context-plan.json +27 -0
  18. package/dist/data/scripts/harness-projection/test-fixtures/claude/actions.json +109 -0
  19. package/dist/data/scripts/harness-projection/test-fixtures/claude/context-plan.json +150 -0
  20. package/dist/data/scripts/harness-projection/test-fixtures/claude/matrix.json +23 -0
  21. package/dist/data/scripts/harness-projection/test-fixtures/claude/traces.json +15 -0
  22. package/dist/data/scripts/harness-projection/test-fixtures/codex/actions.json +124 -0
  23. package/dist/data/scripts/harness-projection/test-fixtures/codex/context-plan.json +150 -0
  24. package/dist/data/scripts/harness-projection/test-fixtures/codex/matrix.json +23 -0
  25. package/dist/data/scripts/harness-projection/test-fixtures/codex/traces.json +15 -0
  26. package/dist/data/scripts/harness-projection/test-fixtures/cursor/compiler-input.json +93 -0
  27. package/dist/data/scripts/harness-projection/test-fixtures/cursor/context-plan.json +108 -0
  28. package/dist/data/scripts/harness-projection/test-fixtures/cursor/matrix.json +19 -0
  29. package/dist/data/scripts/harness-projection/test-fixtures/cursor/projection.json +54 -0
  30. package/dist/data/scripts/harness-projection/test-fixtures/mixed-context-plan.json +35 -0
  31. package/dist/data/scripts/harness-projection/test-fixtures/opencode/compiler-input.json +93 -0
  32. package/dist/data/scripts/harness-projection/test-fixtures/opencode/context-plan.json +108 -0
  33. package/dist/data/scripts/harness-projection/test-fixtures/opencode/matrix.json +19 -0
  34. package/dist/data/scripts/harness-projection/test-fixtures/opencode/projection.json +51 -0
  35. package/dist/data/scripts/sync-subagents.mjs +1113 -33
  36. package/dist/data/subagents/manifest.mjs +5 -6
  37. package/dist/index.js +1373 -62672
  38. package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +1 -1
  39. package/dist/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +2 -2
  40. package/dist/skills/agnostic/planning/create-plan/SKILL.md +11 -10
  41. package/dist/skills/agnostic/planning/create-plan/references/grill-ambiguity.md +10 -31
  42. package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +2 -2
  43. package/dist/skills/agnostic/planning/create-spec/SKILL.md +3 -5
  44. package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +1 -0
  45. package/dist/skills/agnostic/planning/create-spec/references/backlog-sync.md +2 -2
  46. package/dist/skills/agnostic/planning/create-spec/references/grill-phase.md +4 -9
  47. package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +1 -0
  48. package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +1 -1
  49. package/dist/skills/agnostic/requirements/grilling/LICENSE +21 -0
  50. package/dist/skills/agnostic/requirements/grilling/SKILL.md +6 -30
  51. package/dist/skills/agnostic/requirements/grilling/UPSTREAM.md +16 -0
  52. package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +3 -5
  53. package/dist/skills/agnostic/requirements/requirements-grill/references/artifact-output.md +40 -16
  54. package/dist/skills/agnostic/requirements/requirements-grill/references/grilling-flow.md +3 -16
  55. package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +21 -15
  56. package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +14 -14
  57. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +28 -9
  58. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +45 -5
  59. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +48 -28
  60. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +22 -6
  61. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +47 -22
  62. package/dist/skills/frameworks/effect/effect/LICENSE +21 -0
  63. package/dist/skills/frameworks/effect/effect/SKILL.md +100 -0
  64. package/dist/skills/frameworks/effect/effect/UPSTREAM.md +11 -0
  65. package/dist/skills/frameworks/effect/effect/references/CACHING.md +76 -0
  66. package/dist/skills/frameworks/effect/effect/references/CONFIG.md +67 -0
  67. package/dist/skills/frameworks/effect/effect/references/HTTP_CLIENTS.md +101 -0
  68. package/dist/skills/frameworks/effect/{effect-authoring/references/otel-patterns.md → effect/references/OBSERVABILITY.md} +4 -29
  69. package/dist/skills/frameworks/effect/effect/references/SCHEDULING.md +135 -0
  70. package/dist/skills/frameworks/effect/effect/references/SCHEMA.md +130 -0
  71. package/dist/skills/frameworks/effect/effect/references/SERVICES_LAYERS.md +168 -0
  72. package/dist/skills/frameworks/effect/effect/references/STREAMS.md +135 -0
  73. package/dist/skills/frameworks/effect/effect/references/TESTING.md +118 -0
  74. package/dist/skills/frameworks/effect/effect-backend-structure/SKILL.md +7 -8
  75. package/dist/skills/frameworks/effect/effect-recoverable-actions/SKILL.md +1 -1
  76. package/dist/skills/frameworks/nestjs/nestjs-best-practices/.gitignore +29 -0
  77. package/dist/skills/misc/secrets-cli/SKILL.md +54 -0
  78. package/dist/skills/misc/secrets-cli/references/command-reference.md +107 -0
  79. package/dist/skills/misc/secrets-cli/references/safety-and-errors.md +54 -0
  80. package/dist/skills/misc/secrets-cli/references/workflows.md +106 -0
  81. package/dist/skills/phases/design-phase/phases/grill.md +1 -1
  82. package/dist/skills/phases/requirements-phase/SKILL.md +2 -4
  83. package/dist/skills/phases/review-phase/REFERENCE.md +13 -5
  84. package/dist/skills/phases/review-phase/SKILL.md +3 -2
  85. package/package.json +1 -1
  86. package/dist/skills/agnostic/planning/create-spec/references/handoff.md +0 -47
  87. package/dist/skills/frameworks/effect/effect-authoring/SKILL.md +0 -116
  88. package/dist/skills/frameworks/effect/effect-authoring/references/branded-types.md +0 -98
  89. package/dist/skills/frameworks/effect/effect-authoring/references/effect-primitives.md +0 -144
  90. package/dist/skills/frameworks/effect/effect-authoring/references/error-patterns.md +0 -156
  91. package/dist/skills/frameworks/effect/effect-authoring/references/test-patterns.md +0 -146
  92. package/dist/skills/frameworks/effect/effect-best-practices/SKILL.md +0 -517
  93. package/dist/skills/frameworks/effect/effect-best-practices/references/anti-patterns.md +0 -392
  94. package/dist/skills/frameworks/effect/effect-best-practices/references/effect-atom-patterns.md +0 -653
  95. package/dist/skills/frameworks/effect/effect-best-practices/references/error-patterns.md +0 -464
  96. package/dist/skills/frameworks/effect/effect-best-practices/references/language-server.md +0 -287
  97. package/dist/skills/frameworks/effect/effect-best-practices/references/layer-patterns.md +0 -495
  98. package/dist/skills/frameworks/effect/effect-best-practices/references/observability-patterns.md +0 -342
  99. package/dist/skills/frameworks/effect/effect-best-practices/references/rpc-cluster-patterns.md +0 -418
  100. package/dist/skills/frameworks/effect/effect-best-practices/references/schema-patterns.md +0 -353
  101. package/dist/skills/frameworks/effect/effect-best-practices/references/service-patterns.md +0 -299
  102. /package/dist/skills/frameworks/effect/{effect-authoring/references/effect-atom-patterns.md → effect/references/EFFECT_ATOM.md} +0 -0
@@ -18,7 +18,7 @@ Use this skill to turn an existing repository into initial Harness wiki context
18
18
  - If either lane is missing or inaccessible, ask the developer for the backlog location or access path before assuming no backlog exists.
19
19
  4. Build and persist the Project Map before asking developer questions.
20
20
  5. Run a targeted `requirements-grill` against the Project Map.
21
- 6. After grill closure, call `create-spec` to reconstruct evidence-backed specs.
21
+ 6. After `$requirements-grill` completes, call `create-spec` to reconstruct evidence-backed specs.
22
22
 
23
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
24
 
@@ -25,6 +25,8 @@ Write and maintain:
25
25
  - `<wiki-root>/content/docs/project/onboarding/onboarding-grill-status.md`
26
26
  - `<wiki-root>/content/docs/project/onboarding/onboarding-grill-log.md`
27
27
 
28
+ In the onboarding status, persist the current round/frontier, stable question ids and prerequisites, unanswered items, and shared-understanding confirmation.
29
+
28
30
  Create or update:
29
31
 
30
32
  - `<wiki-root>/content/docs/project/onboarding/index.mdx`
@@ -46,8 +48,6 @@ Do not grill every low-risk current-state fact. Carry those into `create-spec` a
46
48
 
47
49
  ## Reconstructed Specs
48
50
 
49
- After grill closure, call `create-spec`.
50
-
51
51
  Group reconstructed specs:
52
52
 
53
53
  1. by backlog epic when backlog context exists
@@ -30,15 +30,16 @@ Create a plan first. Never implement code in this skill.
30
30
  1. Read repo, git, existing plan, and backlog context before asking questions.
31
31
  2. Keep a visible planning control panel in the conversation: locked decisions, open decisions, current graph step, and next step.
32
32
  3. Read `references/grill-ambiguity.md` and run `$grilling` as explicit ambiguity reduction.
33
- 4. Update a running decision ledger after every answer so the user never has to reconstruct state from memory.
34
- 5. Insert a synthesis checkpoint before the thread gets noisy, then continue only if more ambiguity reduction is still needed.
35
- 6. If readonly discovery has independent code paths, specs, backlog items, external docs, or hypotheses, read and use `$parallel-research` before final task synthesis.
36
- 7. Research with `opensrc path <package>` or `opensrc path <owner>/<repo>` plus primary-source web docs when current behavior matters.
37
- 8. Locate scoped `AGENTS.md` files for every planned task path, extract `Primary skills here` lists, and load the relevant skill guidance before finalizing task design.
38
- 9. Read `references/planner-task-graph.md` and run `$swarm-planner` to produce the swarm graph and `Tn` task contract.
39
- 10. Read `references/tdd-shaping.md` and run `$tdd` to attach RED/GREEN targets to each `Tn` task.
40
- 11. Read `references/backlog-sync.md` and sync backlog at epic/story level, not one item per plan task.
41
- 12. Read `references/stop-conditions.md` and stop exactly there.
33
+ 4. Update a running decision ledger after every response set, processing each answer individually so the user never has to reconstruct state from memory.
34
+ 5. After a whole response set is processed, emit any synthesis checkpoint required by `references/grill-ambiguity.md`.
35
+ 6. After `$grilling` completes, continue to plan synthesis; backlog sync remains step 12.
36
+ 7. If readonly discovery has independent code paths, specs, backlog items, external docs, or hypotheses, read and use `$parallel-research` before final task synthesis.
37
+ 8. Research with `opensrc path <package>` or `opensrc path <owner>/<repo>` plus primary-source web docs when current behavior matters.
38
+ 9. Locate scoped `AGENTS.md` files for every planned task path, extract `Primary skills here` lists, and load the relevant skill guidance before finalizing task design.
39
+ 10. Read `references/planner-task-graph.md` and run `$swarm-planner` to produce the swarm graph and `Tn` task contract.
40
+ 11. Read `references/tdd-shaping.md` and run `$tdd` to attach RED/GREEN targets to each `Tn` task.
41
+ 12. Read `references/backlog-sync.md` and sync backlog at epic/story level, not one item per plan task.
42
+ 13. Read `references/stop-conditions.md` and stop exactly there.
42
43
 
43
44
  ## Workflows
44
45
 
@@ -46,7 +47,7 @@ Create a plan first. Never implement code in this skill.
46
47
 
47
48
  1. Derive host, owner, tracker, and scope from repo state instead of assuming them.
48
49
  2. Ask only for missing high-impact inputs such as scope, goal, or backlog target.
49
- 3. Every plan-shaping question must use the exact block: `Decision`, `Recommendation`, `Question`, `Why it matters`.
50
+ 3. Every plan-shaping question in each `$grilling` round must use the exact block: `Decision`, `Recommendation`, `Question`, `Why it matters`.
50
51
  4. Keep `$grilling`, `$parallel-research`, `$swarm-planner`, `$tdd`, and `$codebase-design` as visible inputs to 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.
51
52
  5. Scan relevant routed learning artifacts before task synthesis when prior bug knowledge, domain behavior, or project conventions could affect the plan.
52
53
  6. Resolve each task's scoped guidance from root `AGENTS.md` down to the nearest `AGENTS.md` for its `location`.
@@ -35,53 +35,32 @@ Before the first question, keep the current state obvious:
35
35
 
36
36
  ## Question-block contract
37
37
 
38
- Every plan-shaping question must contain exactly these headings, in this order:
38
+ Every plan-shaping question in a `$grilling` round must contain exactly these headings, in this order:
39
39
 
40
40
  - `Decision`
41
41
  - `Recommendation`
42
42
  - `Question`
43
43
  - `Why it matters`
44
44
 
45
- Rules:
46
-
47
- - never replace the `Question` line with only a recommendation
48
- - never emit an empty or implied question
49
- - if the block is malformed, regenerate it before continuing
50
- - keep the recommendation concise and opinionated
45
+ If the block is malformed, regenerate it before continuing.
51
46
 
52
47
  ## Grill behavior
53
48
 
54
- Use `$grilling` behavior:
49
+ Use `$grilling` as the sole question-scheduling and traversal behavior. This wrapper adds only plan-specific handling:
55
50
 
56
- - ask one question at a time
57
- - provide a recommended answer with each question
58
- - if a question can be answered from the codebase, answer it by inspecting instead
59
- - keep grilling until every plan-shaping branch is resolved enough to plan safely
60
- - before recording an unresolved question in the plan, ask the user whether to resolve it now or defer it
61
- - when the user defers a branch, record the assumption or unresolved question explicitly in the plan with its planning impact
51
+ - apply the question-block contract to each question
52
+ - record a question as unresolved in the plan only when `$grilling` leaves it deferred
53
+ - record its assumption or planning impact explicitly
62
54
 
63
55
  ## Decision ledger
64
56
 
65
- After every user answer, restate:
66
-
67
- - decisions locked
68
- - assumptions made
69
- - still-open decisions
70
-
71
- This ledger must stay visible both in the conversation and in the saved plan artifact.
57
+ After each response set, process every answer individually and update the planning decision ledger from the current `$grilling` state. Keep this ledger visible both in the conversation and in the saved plan artifact.
72
58
 
73
59
  ## Synthesis checkpoints
74
60
 
75
- Emit a checkpoint summary when either condition is hit:
61
+ After a whole response set is processed and the decision ledger is updated, emit a checkpoint when either condition is met:
76
62
 
77
63
  - five plan-shaping decisions have been resolved since the last checkpoint
78
- - the planning exchange has become long enough that the user could reasonably lose orientation
79
-
80
- A checkpoint must summarize:
81
-
82
- - current situation
83
- - decisions locked so far
84
- - open decisions still blocking the plan
85
- - whether more questions are actually needed
64
+ - the planning exchange is long enough that the user could lose orientation
86
65
 
87
- If ambiguity is already low enough, stop asking questions and move to plan synthesis.
66
+ Summarize the current situation, locked decisions, open planning blockers, and whether more ambiguity reduction is needed. This checkpoint reports plan-wrapper state only; `$grilling` remains the sole source of frontier scheduling and traversal.
@@ -22,7 +22,7 @@ Include:
22
22
  - validation gates per `Tn` task and dependency wave
23
23
  - unresolved questions
24
24
 
25
- `unresolved questions` is not a hiding place for skipped planning. Before saving a plan with unresolved questions, prompt the user to resolve each plan-shaping question that they can reasonably answer now. Keep only deferred, externally blocked, or non-blocking questions, and state why each remains open.
25
+ `unresolved questions` is not a hiding place for skipped planning. Include only `$grilling`-deferred, externally blocked, or non-blocking questions, and state why each remains open.
26
26
 
27
27
  ## Task contract
28
28
 
@@ -94,7 +94,7 @@ Use `not_applicable` for the other runtime fields when `runtime_validation: not_
94
94
  - **backlog_item_id**: CP-128
95
95
  - **backlog_item_url**: https://linear.app/workspace/issue/CP-128/example-story
96
96
  - **relation_mode**: native | body-links
97
- - **assigned_skills**: [`effect-authoring`, `effect-best-practices`, `tdd`]
97
+ - **assigned_skills**: [`effect`, `tdd`]
98
98
  - **tdd_status**: required
99
99
  - **tdd_target**: First failing public behavior to implement.
100
100
  - **red_command**: Exact command expected to fail before implementation.
@@ -11,7 +11,6 @@ description: Create a SPEC.md file for a new feature, product, or system using t
11
11
  - **Entrypoint type:** public entrypoint
12
12
  - **Upstream:** new idea, feature request, epic/capability issue, or problem statement
13
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
- - **Downstream:** reviewed `SPEC.md`, then usually `create-plan` or `implement-spec`
15
14
  - **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
15
  - **Stop conditions:** `SPEC.md` and any existing planning-surface indexes/logs are updated, then wait for user review
17
16
 
@@ -29,14 +28,14 @@ Resolve the output root from the repo before writing. Prefer `apps/wiki/content/
29
28
  4. If backlog context exists, read the parent epic and every child story before asking questions.
30
29
  5. If the user did not provide a concrete request, ask for a rough description first.
31
30
  6. Read `references/questioning.md` and ask only the lightweight clarifying questions needed to identify whether a grill phase is required.
32
- 7. If draft `Open Questions` would affect spec trust, read `references/grill-phase.md` and run a bounded `$requirements-grill` phase before writing.
31
+ 7. If draft `Open Questions` would affect spec trust, read `references/grill-phase.md` and run a bounded `$requirements-grill` phase.
33
32
  8. If the requested objective, discovery, or grill changes accepted scope, child stories, deferred scope, story wording, or story order, read `references/backlog-sync.md` and run `$write-backlog` to sync the backlog automatically before final drafting.
34
33
  9. Read `references/folder-naming.md` to resolve the domain and spec folder path.
35
34
  10. Read `assets/SPEC-TEMPLATE.md` and write the spec.
36
35
  11. Read `references/spec-quality-bar.md` before saving.
37
36
  12. If subagents are available, use `spec-reviewer` for a readonly pass over the draft before user review.
38
37
  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.
38
+ 14. Present the completed spec for user review, then stop.
40
39
 
41
40
  ## Workflow
42
41
 
@@ -53,7 +52,7 @@ Resolve the output root from the repo before writing. Prefer `apps/wiki/content/
53
52
  9. Use the template structure exactly, then remove all template scaffolding.
54
53
  10. Use `spec-reviewer` to catch invented requirements, missing constraints, vague acceptance criteria, and contradictions before yielding when subagents are available.
55
54
  11. Update planning-surface bookkeeping in the same run.
56
- 12. Stop after presenting the spec and the recommended next step.
55
+ 12. Present the completed spec for user review, then stop.
57
56
 
58
57
  ### Dependency readiness and stack intent
59
58
 
@@ -107,5 +106,4 @@ branches unless the user explicitly requests branch setup during the spec turn.
107
106
  - Domain and folder naming rules: see [references/folder-naming.md](references/folder-naming.md)
108
107
  - Acceptance-criteria and quality bar: see [references/spec-quality-bar.md](references/spec-quality-bar.md)
109
108
  - Planning surface index/log updates: see [references/wiki-bookkeeping.md](references/wiki-bookkeeping.md)
110
- - Review closeout and next-step routing: see [references/handoff.md](references/handoff.md)
111
109
  - Canonical backlog model: see [../write-backlog/assets/concepts/backlog-model.md](../write-backlog/assets/concepts/backlog-model.md)
@@ -1,4 +1,5 @@
1
1
  ---
2
+ title: "[Title]"
2
3
  domain:
3
4
  type: spec
4
5
  status: draft
@@ -25,8 +25,8 @@ Follow:
25
25
 
26
26
  If grill artifacts exist, read:
27
27
 
28
- 1. `docs/<topic>-grill-status.md`
29
- 2. `docs/<topic>-grill-log.md`
28
+ 1. `<wiki-root>/content/docs/project/grilling/<topic>-grill-status.md`
29
+ 2. `<wiki-root>/content/docs/project/grilling/<topic>-grill-log.md`
30
30
 
31
31
  ## Rules
32
32
 
@@ -21,18 +21,14 @@ Follow:
21
21
 
22
22
  ## Rules
23
23
 
24
- - Ask one question at a time by default.
25
- - Include a recommended answer and why it is preferred.
26
- - Inspect repo/docs/backlog first when the answer can be found locally.
27
- - Force precise choices when multiple interpretations exist.
28
- - Close, park, or explicitly defer each branch.
24
+ - Follow `$grilling` through `$requirements-grill`; do not define a local interview cadence.
29
25
 
30
26
  ## Artifacts
31
27
 
32
28
  For serious sessions, create or reuse:
33
29
 
34
- - `docs/<topic>-grill-log.md`
35
- - `docs/<topic>-grill-status.md`
30
+ - `<wiki-root>/content/docs/project/grilling/<topic>-grill-log.md`
31
+ - `<wiki-root>/content/docs/project/grilling/<topic>-grill-status.md`
36
32
 
37
33
  Tiny clarification-only runs do not need durable grill artifacts.
38
34
 
@@ -43,5 +39,4 @@ Tiny clarification-only runs do not need durable grill artifacts.
43
39
  - explicitly deferred branches become `Open Questions`
44
40
  - external-validation branches become `Open Questions` with owner/status
45
41
  - accepted scope changes must flow through `backlog-sync.md` before final spec drafting
46
-
47
- Do not write the spec until each discovered branch is closed, parked, or explicitly deferred.
42
+ - after `$requirements-grill` completes, proceed to backlog sync or spec drafting
@@ -40,6 +40,7 @@ Avoid:
40
40
 
41
41
  ## Self-review before saving
42
42
 
43
+ - ensure frontmatter has a non-empty string `title`, especially for specs saved directly in routed Fumadocs trees
43
44
  - remove all template scaffolding
44
45
  - remove empty or irrelevant sections
45
46
  - ensure the document reads cleanly with no ghost instructions
@@ -87,7 +87,7 @@ For every ledger entry, record:
87
87
  - decision needed or external blocker
88
88
  - owner or next action
89
89
 
90
- If the debt is inside the active goal, fix it before advancing. If the debt is outside the active goal but affects the implementation decision, stop and run a tiny `$requirements-phase` clarification with one narrow question and a recommended answer. Continue only after the branch is closed, parked explicitly, or converted into an accepted scope change.
90
+ If the debt is inside the active goal, fix it before advancing. If the debt is outside the active goal but affects the implementation decision, stop and run a tiny `$requirements-phase` clarification. Resume execution from its recorded outcome, applying any accepted scope change before continuing.
91
91
 
92
92
  Do not create the file when nothing durable must survive the run.
93
93
 
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Matt Pocock
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,38 +1,14 @@
1
1
  ---
2
2
  name: grilling
3
- description: Grill a plan, requirement, design, or unclear decision through one-question-at-a-time pressure testing. Use when the user asks to grill, stress-test, interrogate, or sharpen an idea before building, or when another skill needs a grilling primitive.
3
+ description: Grill a plan, requirement, design, or unclear decision by interviewing every currently unblocked decision in dependency-ordered rounds. Use when the user asks to grill, stress-test, interrogate, or sharpen an idea before building, or when another skill needs the shared grilling primitive.
4
4
  ---
5
5
 
6
- # Grilling
6
+ Interview the user relentlessly until you reach a shared understanding. Map this as a **design tree**: every decision branches into the decisions that hang off it.
7
7
 
8
- Interview the user relentlessly until the plan, requirement, or design is clear enough to proceed.
8
+ Work the tree in **rounds**. The **frontier** is every decision whose prerequisites are already settled — the questions you can ask *now* without guessing at answers you haven't heard yet. Ask the whole frontier in one round: number each question and give your recommended answer. Each numbered question must state one decision, the explicit question, a concise recommendation, and why it is preferred; when interpretations differ, require a precise choice. Then wait for the user's answers before the next round.
9
9
 
10
- ## Core Behavior
10
+ Each round the user answers reshapes the tree — settled decisions push the frontier outward and unblock questions that depended on them. Treat a branch as settled only when answered, parked, or explicitly deferred. Recompute the frontier. Before asking the next round, restate the locked decisions, assumptions, parked or deferred items, and the next frontier. A question whose answer depends on another question still open in this round belongs to a *later* round, not this one.
11
11
 
12
- - Ask one question at a time.
13
- - Provide your recommended answer with each question.
14
- - Explain why the recommendation is preferred.
15
- - Walk the design tree branch by branch, resolving dependent decisions in order.
16
- - If a question can be answered from code, docs, artifacts, or logs, inspect those sources instead of asking.
17
- - When multiple interpretations exist, force a precise choice.
18
- - Stop only when the active branch is closed, parked, or explicitly deferred.
12
+ Finding *facts* is your job, never the user's. When a frontier question needs a fact from the environment (filesystem, tools, etc.), dispatch a sub-agent to find it — don't ask the user for anything you could look up yourself. Don't block on it: a running exploration is an unsettled prerequisite, so only the questions downstream of it wait for the sub-agent to report — ask the rest of the frontier now. The *decisions* are the user's — put each to them and wait.
19
13
 
20
- ## Question Contract
21
-
22
- Each question should make the decision obvious:
23
-
24
- - the decision being made
25
- - your recommended answer
26
- - the question the user must answer
27
- - why the answer matters
28
-
29
- Do not bundle unrelated decisions into one question.
30
-
31
- ## Closure
32
-
33
- Before leaving a branch, restate:
34
-
35
- - locked decisions
36
- - assumptions made
37
- - deferred or parked questions
38
- - next branch or next workflow
14
+ The session is done when the frontier is empty: every branch of the design tree visited, nothing left silently assumed. Do not act on it until the user confirms you have reached a shared understanding.
@@ -0,0 +1,16 @@
1
+ # Upstream provenance
2
+
3
+ Imported from [`mattpocock/skills`](https://github.com/mattpocock/skills/tree/9603c1cc8118d08bc1b3bf34cf714f62178dea3b/skills/in-progress/batch-grill-me) at commit:
4
+
5
+ ```text
6
+ 9603c1cc8118d08bc1b3bf34cf714f62178dea3b
7
+ ```
8
+
9
+ The adjacent `LICENSE` is the upstream MIT license retained with this skill.
10
+
11
+ Devpunks preserves the upstream body and structure with these local adaptations:
12
+
13
+ - `name` changes from `batch-grill-me` to the stable local id `grilling` used by composing skills.
14
+ - `description` becomes a model-invocation trigger for local grilling requests and skill composition.
15
+ - `disable-model-invocation: true` is removed so `$grilling` remains model-invocable.
16
+ - The body adds a minimal question-and-transition contract: one explicit decision and question with a concise recommendation and rationale, precise interpretation choices, explicit branch settlement, and a state restatement before each new frontier.
@@ -29,18 +29,16 @@ Both workflows can happen in one long session, but keep the responsibilities dis
29
29
 
30
30
  ## Core Behavior
31
31
 
32
- - Ask one question at a time by default.
33
- - For every question, provide a recommended answer and the reason for it.
34
- - Inspect code/docs first when the answer can be found locally.
35
32
  - Inspect relevant routed learning artifacts before grilling requirements that depend on known behavior, prior bugs, project conventions, or domain facts.
36
33
  - Challenge conflicting glossary, vague terms, and hidden tradeoffs immediately.
37
34
  - Pin canonical terms, rejected aliases, relationships, and domain axioms as decisions crystallize.
38
35
  - Prefer conservative defaults once enough context exists.
39
- - If the user authorizes auto-pinning defaults, close obvious remaining decisions without needless extra questions.
36
+ - If the user authorizes auto-pinning defaults, record obvious remaining defaults without needless extra questions.
40
37
  - Treat parked branches as preserved knowledge, not deleted scope.
38
+ - Apply the round persistence contract in `artifact-output` alongside `$grilling`.
41
39
 
42
40
  ## Handoff
43
41
 
44
42
  At the end, report branch percentages, parked branches, remaining non-design validation work, and the recommended next planning direction.
45
43
 
46
- If all active branches are `100%`, say the requirements grill is done and the likely next direction is backlog/user-story creation.
44
+ After `$grilling` completes, say the requirements grill is done and give the likely next direction, usually backlog/user-story creation.
@@ -21,7 +21,7 @@ Before writing, read `<wiki-root>/AGENTS.md`. The grilling artifacts live in the
21
21
  If a legacy `docs/<topic>-grill-log.md` or `docs/<topic>-grill-status.md` exists, treat it as input to move or merge into the routed grilling section. Do not keep updating both locations.
22
22
 
23
23
  The log is the durable decision record.
24
- The status file is the current branch dashboard plus the current glossary snapshot.
24
+ The status file is the current branch dashboard, round/frontier state, and current glossary snapshot.
25
25
 
26
26
  ## Routed Wiki Contract
27
27
 
@@ -48,11 +48,16 @@ After adding or renaming a grill artifact:
48
48
 
49
49
  The log is structured, not a raw transcript.
50
50
 
51
+ Keep each question's `Q<N>` id stable across rounds, partial responses, and superseding decisions. Never reuse or renumber an id.
52
+
51
53
  Record accepted decisions as:
52
54
 
53
55
  ```md
54
56
  ### Q<N>
55
57
 
58
+ Prerequisites:
59
+ - <Q ids or `none`>
60
+
56
61
  Question:
57
62
  <question asked>
58
63
 
@@ -81,6 +86,33 @@ Accepted answer:
81
86
 
82
87
  Omit unused fields. If a later answer changes the glossary, add a superseding entry instead of rewriting history.
83
88
 
89
+ ## Round Persistence Contract
90
+
91
+ Before yielding each round, persist a `Current Round` section in the status file:
92
+
93
+ ```md
94
+ ## Current Round
95
+
96
+ - Round: R<N>
97
+ - Current frontier: Q<N>, Q<N+1> | empty
98
+ - Shared-understanding confirmation: not-ready | pending | confirmed
99
+
100
+ | Question id | Prerequisites | Question | State |
101
+ | --- | --- | --- | --- |
102
+ | Q<N> | none | <decision question> | unanswered |
103
+ | Q<N+1> | Q<N-2> | <decision question> | unanswered |
104
+ ```
105
+
106
+ The table is the stable mapping between the live round and durable question ids. `State` is `unanswered`, `answered`, `parked`, or `deferred`.
107
+
108
+ After each response set:
109
+
110
+ 1. Process every supplied answer separately against its stable question id.
111
+ 2. Add answered decisions to the log and mark those ids `answered` in status.
112
+ 3. Leave omitted questions `unanswered`; do not infer an answer or drop them from status.
113
+ 4. Persist the updated status, including the frontier and branch dashboard, before continuing.
114
+ 5. When the frontier is empty, set confirmation to `pending`; set it to `confirmed` only after the user explicitly confirms shared understanding.
115
+
84
116
  ## Status File Contract
85
117
 
86
118
  Maintain a compact branch dashboard with:
@@ -99,9 +131,11 @@ Completion percentages are working signals:
99
131
  - `0-50%`: branch discovered but unsettled
100
132
  - `50-85%`: major direction set, important questions remain
101
133
  - `85-99%`: mostly closed, only constants/schema/naming remain
102
- - `100%`: design closed; remaining work is implementation/tuning
134
+ - `100%`: no unanswered items remain, the frontier is empty, and shared understanding is explicitly confirmed; remaining work is implementation/tuning
103
135
  - `parked`: preserved for later, out of current scope
104
136
 
137
+ Keep a branch below `100%` while it has unanswered items or while shared-understanding confirmation is pending.
138
+
105
139
  ## Glossary Snapshot Contract
106
140
 
107
141
  Keep the status file glossary compact and current:
@@ -141,17 +175,7 @@ Rules:
141
175
  When a branch closes:
142
176
 
143
177
  1. Update the grill log with final accepted decisions.
144
- 2. Update the status file percentage, open items, glossary snapshot, axioms, and ambiguities.
145
- 3. If the branch changes durable domain/product knowledge, run the wiki-output workflow.
146
- 4. Say exactly what changed, which routed artifacts were updated, and whether `meta.json` or wiki log bookkeeping changed.
147
-
148
- ## Final Handoff
149
-
150
- At the end, report:
151
-
152
- - branch percentages
153
- - parked branches
154
- - remaining non-design validation work
155
- - recommended next planning direction
156
-
157
- If all active branches are `100%`, say the requirements grill is done and the likely next direction is backlog/user-story creation.
178
+ 2. Update the status file percentage, open items, round/frontier state, glossary snapshot, axioms, and ambiguities.
179
+ 3. Confirm no unanswered item or pending shared-understanding confirmation is represented as `100%`.
180
+ 4. If the branch changes durable domain/product knowledge, run the wiki-output workflow.
181
+ 5. Say exactly what changed, which routed artifacts were updated, and whether `meta.json` or wiki log bookkeeping changed.
@@ -6,24 +6,11 @@ This workflow is always paired with [artifact-output.md](artifact-output.md) dur
6
6
 
7
7
  ## Session Behavior
8
8
 
9
- Use the shared `$grilling` primitive for the interview loop, then apply the requirements-specific pressure tests below.
9
+ Use the shared `$grilling` primitive as the sole scheduling and traversal contract, then apply the requirements-specific pressure tests below. When the user authorizes auto-pinning, record obvious defaults without needless extra questions.
10
10
 
11
- Interview the user relentlessly about every aspect of the plan until shared understanding exists.
11
+ ## Round Artifact Integration
12
12
 
13
- Walk the design tree branch by branch until each branch is:
14
-
15
- - closed
16
- - parked
17
- - explicitly deferred
18
-
19
- ## Questioning Rules
20
-
21
- - Ask one question at a time by default.
22
- - Always include a recommended answer.
23
- - Explain why the recommendation is preferred.
24
- - If multiple interpretations exist, force a precise choice.
25
- - When the answer can be found in code/docs, inspect first instead of asking.
26
- - When the user authorizes auto-pinning, close obvious defaults without needless extra questions.
13
+ At each `$grilling` round boundary, apply the [round persistence contract](artifact-output.md#round-persistence-contract). A partial response set resolves only the supplied stable question ids; omitted ids stay unanswered. Persist `$grilling` completion in the artifact's shared-understanding confirmation field before any downstream transition.
27
14
 
28
15
  ## Pressure Tests
29
16
 
@@ -21,7 +21,8 @@ Downstream contract:
21
21
 
22
22
  - every supported `kind` is visible, assignable, searchable, linkable, and closeable in the target provider
23
23
  - `fog` is root-level only
24
- - concrete `grilling`, `research`, `prototype`, `epic`, and `story` items live under a module/milestone
24
+ - concrete `grilling`, `research`, `prototype`, `epic`, and `story` items live under a capability module
25
+ - chronological execution milestones are derived separately from native blockers
25
26
  - one epic maps to one future `SPEC.md`
26
27
  - child stories remain the product-facing slices beneath that epic
27
28
  - `PLAN.md` later decomposes execution without replacing the backlog model
@@ -42,8 +43,8 @@ When grill artifacts exist, treat them as the highest-signal structured source f
42
43
 
43
44
  Expected inputs:
44
45
 
45
- - `docs/<topic>-grill-status.md`
46
- - `docs/<topic>-grill-log.md`
46
+ - `<wiki-root>/content/docs/project/grilling/<topic>-grill-status.md`
47
+ - `<wiki-root>/content/docs/project/grilling/<topic>-grill-log.md`
47
48
 
48
49
  Read order:
49
50
 
@@ -90,28 +91,33 @@ Use this model:
90
91
  ```text
91
92
  Backlog root
92
93
  fog
93
- module/milestone
94
+ capability module
94
95
  grilling
95
96
  research
96
97
  prototype
97
98
  epic
98
99
  story
100
+
101
+ Execution milestones
102
+ M1 -> M2 -> M3 ...
99
103
  ```
100
104
 
101
105
  Provider mapping:
102
106
 
103
107
  - kind -> provider-native single-value kind storage where available
104
108
  - fog -> root-level issue/work item/item
105
- - module -> milestone or provider-equivalent grouping
106
- - grilling/research/prototype -> module/milestone-scoped issue/work item/item
107
- - epic -> module/milestone-scoped parent issue/work item/capability record
109
+ - capability module -> durable provider grouping independent from chronology
110
+ - execution milestone -> dependency-derived chronological wave
111
+ - grilling/research/prototype -> capability-module-scoped issue/work item/item
112
+ - epic -> capability-module-scoped parent issue/work item/capability record
108
113
  - story -> child issue/sub-issue/work item under an epic
109
114
 
110
115
  monday.com mapping:
111
116
 
112
117
  - fog -> root/backlog group item or root planning group item
113
- - module/milestone -> board group
114
- - grilling/research/prototype -> parent item in a module group
118
+ - capability module -> board group
119
+ - execution milestone -> separate Status or Dropdown column derived from dependencies
120
+ - grilling/research/prototype -> parent item in a capability group
115
121
  - epic/capability -> parent item
116
122
  - story -> subitem
117
123
  - story ordering -> dependency column when present
@@ -119,9 +125,9 @@ monday.com mapping:
119
125
  Rules:
120
126
 
121
127
  - every supported kind must be a first-class backlog item
122
- - `kind` is separate from workflow state, module grouping, and parent/child hierarchy
128
+ - `kind` is separate from workflow state, capability grouping, execution milestone, and parent/child hierarchy
123
129
  - `fog` must not have child tickets by default
124
- - concrete non-fog items must first choose or create a module/milestone
130
+ - concrete non-fog items must first choose or create a capability module
125
131
  - `grilling`, `research`, and `prototype` must close into accepted decisions before they create or update implementation epics/stories
126
132
  - every story must be independently understandable and product-facing
127
133
  - one epic may contain multiple stories
@@ -187,7 +193,7 @@ Do not put these in backlog bodies:
187
193
 
188
194
  ## Ordering rules
189
195
 
190
- Implementation order belongs in the backlog only through native dependency primitives when supported.
196
+ Implementation order belongs in the backlog only through native dependency primitives when supported. Capability grouping never determines chronology. Derive `M1`, `M2`, and later execution milestones with the DAG algorithm in [assets/concepts/backlog-model.md](assets/concepts/backlog-model.md), then store them in the provider mechanism documented by the matching payload asset.
191
197
 
192
198
  Preferred order signal:
193
199
 
@@ -203,7 +209,7 @@ Avoid:
203
209
 
204
210
  ### 1. Decide whether the frontier is still fog
205
211
 
206
- Use `fog` when the work is real but not yet sharp enough to choose a module/milestone or concrete learning/implementation ticket.
212
+ Use `fog` when the work is real but not yet sharp enough to choose a capability module or concrete learning/implementation ticket.
207
213
 
208
214
  Do not use `fog` as:
209
215
 
@@ -216,7 +222,7 @@ Do not use `fog` as:
216
222
 
217
223
  For concrete non-fog work, split the discussion into durable capability groups that would still make sense if implementation order changed.
218
224
 
219
- Good module/milestone:
225
+ Good capability module:
220
226
 
221
227
  - intake and review
222
228
  - account lifecycle
@@ -235,7 +241,7 @@ Use these before implementation scope is accepted:
235
241
  - `research`: readonly investigation can answer it.
236
242
  - `prototype`: artifact-driven learning is needed.
237
243
 
238
- Each item must live under a module/milestone and close with an accepted decision note before changing epics/stories.
244
+ Each item must live under a capability module and close with an accepted decision note before changing epics/stories.
239
245
 
240
246
  ### 4. Derive epics
241
247