@punks/cli 5.1.1 → 5.2.1

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 (110) hide show
  1. package/AGENTS.md +28 -10
  2. package/dist/BASELINE_CHANGELOG.md +19 -1
  3. package/dist/CHANGELOG.md +49 -0
  4. package/dist/baseline/scaffold-baseline/baseline.json +5 -10
  5. package/dist/baseline/scaffold-baseline/data/catalog/packs.json +1 -1
  6. package/dist/baseline/scaffold-baseline/data/catalog/skills.json +0 -8
  7. package/dist/baseline/scaffold-baseline/data/hooks/format-edited-file.mjs +408 -309
  8. package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.d.ts +1 -0
  9. package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.mjs +206 -58
  10. package/dist/baseline/scaffold-baseline/data/scripts/commit-gate-runner.test.ts +496 -29
  11. package/dist/baseline/scaffold-baseline/data/scripts/managed-lint-runner.d.mts +55 -0
  12. package/dist/baseline/scaffold-baseline/data/scripts/managed-lint-runner.mjs +323 -0
  13. package/dist/baseline/scaffold-baseline/data/scripts/managed-lint-runner.test.ts +821 -0
  14. package/dist/baseline/scaffold-baseline/data/scripts/managed-lint.d.mts +97 -0
  15. package/dist/baseline/scaffold-baseline/data/scripts/managed-lint.mjs +658 -0
  16. package/dist/baseline/scaffold-baseline/data/scripts/managed-lint.test.ts +614 -0
  17. package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents-validator.test.ts +39 -0
  18. package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents.mjs +8 -2
  19. package/dist/baseline/scaffold-baseline/skills/agnostic/cli/hi-cli/SKILL.md +2 -0
  20. package/dist/baseline/scaffold-baseline/skills/agnostic/cli/hi-cli/references/commands.md +6 -7
  21. package/dist/baseline/scaffold-baseline/skills/agnostic/cli/hi-cli/references/managed-lint.md +165 -0
  22. package/dist/baseline/scaffold-baseline/skills/agnostic/cli/hi-cli/references/post-command-flow.md +20 -19
  23. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/phases/define-handoffs.md +1 -1
  24. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/phases/model-state.md +1 -1
  25. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/phases/test-routes.md +1 -1
  26. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/phases/write-phases.md +2 -2
  27. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/phases/write-router.md +1 -1
  28. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/write-graph-based-skills/references/authoring-contract.md +8 -8
  29. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/autoreview/SKILL.md +1 -1
  30. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/SKILL.md +2 -2
  31. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/brainstorm/SKILL.md +21 -11
  32. package/dist/baseline/scaffold-baseline/skills/phases/debugging-phase/SKILL.md +3 -4
  33. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/SKILL.md +2 -2
  34. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/debug.md +2 -2
  35. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/human-steering.md +25 -0
  36. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/implement.md +2 -2
  37. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/review.md +2 -2
  38. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +3 -2
  39. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/context-continuity.md +1 -1
  40. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/failure-continuity.md +1 -1
  41. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/phase-handoff.md +4 -3
  42. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/AUTHORING-HANDOFF.md +9 -9
  43. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/SKILL.md +1 -1
  44. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/ensure-fog.md +1 -1
  45. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/grilling.md +1 -1
  46. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/human-steering.md +25 -0
  47. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/prototype.md +1 -1
  48. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/reconcile.md +1 -1
  49. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/research.md +1 -1
  50. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/router.md +1 -1
  51. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/references/state-graph.md +1 -1
  52. package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/return-route.md +6 -5
  53. package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/router.md +1 -1
  54. package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/run-review.md +2 -1
  55. package/dist/baseline/scaffold-baseline/skills/phases/review-phase/references/state-graph.md +3 -3
  56. package/dist/baseline/scaffold-baseline.json +5 -5
  57. package/dist/baseline/scaffold-baseline.tgz +0 -0
  58. package/dist/data/AGENTS.md +22 -5
  59. package/dist/data/hooks/format-edited-file.mjs +237 -325
  60. package/dist/data/scripts/commit-gate-runner.mjs +206 -58
  61. package/dist/data/scripts/managed-lint-runner.d.mts +55 -0
  62. package/dist/data/scripts/managed-lint-runner.mjs +323 -0
  63. package/dist/data/scripts/managed-lint.d.mts +97 -0
  64. package/dist/data/scripts/managed-lint.mjs +658 -0
  65. package/dist/data/scripts/sync-subagents.mjs +8 -2
  66. package/dist/index.js +131 -153
  67. package/dist/skills/agnostic/cli/hi-cli/SKILL.md +2 -0
  68. package/dist/skills/agnostic/cli/hi-cli/references/commands.md +6 -7
  69. package/dist/skills/agnostic/cli/hi-cli/references/managed-lint.md +165 -0
  70. package/dist/skills/agnostic/cli/hi-cli/references/post-command-flow.md +6 -5
  71. package/dist/skills/agnostic/docs/write-graph-based-skills/phases/define-handoffs.md +1 -1
  72. package/dist/skills/agnostic/docs/write-graph-based-skills/phases/model-state.md +1 -1
  73. package/dist/skills/agnostic/docs/write-graph-based-skills/phases/test-routes.md +1 -1
  74. package/dist/skills/agnostic/docs/write-graph-based-skills/phases/write-phases.md +2 -2
  75. package/dist/skills/agnostic/docs/write-graph-based-skills/phases/write-router.md +1 -1
  76. package/dist/skills/agnostic/docs/write-graph-based-skills/references/authoring-contract.md +8 -8
  77. package/dist/skills/agnostic/quality/autoreview/SKILL.md +1 -1
  78. package/dist/skills/agnostic/quality/make-tsuite/SKILL.md +2 -2
  79. package/dist/skills/agnostic/requirements/brainstorm/SKILL.md +21 -11
  80. package/dist/skills/phases/debugging-phase/SKILL.md +3 -4
  81. package/dist/skills/phases/delivery-phase/SKILL.md +2 -2
  82. package/dist/skills/phases/delivery-phase/phases/debug.md +2 -2
  83. package/dist/skills/phases/delivery-phase/phases/human-steering.md +25 -0
  84. package/dist/skills/phases/delivery-phase/phases/implement.md +2 -2
  85. package/dist/skills/phases/delivery-phase/phases/review.md +2 -2
  86. package/dist/skills/phases/delivery-phase/phases/router.md +3 -2
  87. package/dist/skills/phases/delivery-phase/references/context-continuity.md +1 -1
  88. package/dist/skills/phases/delivery-phase/references/failure-continuity.md +1 -1
  89. package/dist/skills/phases/delivery-phase/references/phase-handoff.md +4 -3
  90. package/dist/skills/phases/finder-phase/AUTHORING-HANDOFF.md +6 -6
  91. package/dist/skills/phases/finder-phase/SKILL.md +1 -1
  92. package/dist/skills/phases/finder-phase/phases/ensure-fog.md +1 -1
  93. package/dist/skills/phases/finder-phase/phases/grilling.md +1 -1
  94. package/dist/skills/phases/finder-phase/phases/human-steering.md +25 -0
  95. package/dist/skills/phases/finder-phase/phases/prototype.md +1 -1
  96. package/dist/skills/phases/finder-phase/phases/reconcile.md +1 -1
  97. package/dist/skills/phases/finder-phase/phases/research.md +1 -1
  98. package/dist/skills/phases/finder-phase/phases/router.md +1 -1
  99. package/dist/skills/phases/finder-phase/references/state-graph.md +1 -1
  100. package/dist/skills/phases/review-phase/phases/return-route.md +6 -5
  101. package/dist/skills/phases/review-phase/phases/router.md +1 -1
  102. package/dist/skills/phases/review-phase/phases/run-review.md +2 -1
  103. package/dist/skills/phases/review-phase/references/state-graph.md +3 -3
  104. package/package.json +12 -6
  105. package/dist/baseline/scaffold-baseline/skills/agnostic/generic/handback/SKILL.md +0 -27
  106. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/handback.md +0 -27
  107. package/dist/baseline/scaffold-baseline/skills/phases/finder-phase/phases/handback.md +0 -29
  108. package/dist/skills/agnostic/generic/handback/SKILL.md +0 -27
  109. package/dist/skills/phases/delivery-phase/phases/handback.md +0 -27
  110. package/dist/skills/phases/finder-phase/phases/handback.md +0 -29
@@ -13,14 +13,14 @@
13
13
 
14
14
  ## State and topology
15
15
 
16
- | State | Entry guard | Exit guard | Next states |
17
- | ------------------ | ----------------------------------------- | ------------------------------------ | ------------------------------------------------ |
18
- | Fog absent | supported wrapper lens, no exact Fog | exact Fog and immutable lens | grilling, handback |
19
- | Grilling active | exact Fog, bounded result missing | retained evidence or support request | research, prototype, reconcile, return, handback |
20
- | Support active | named child and precise unknown | immutable evidence or verdict | grilling, handback |
21
- | Projection pending | ceiling-safe optional intent | exact or unresolved result | return, handback |
22
- | Bounded result | required retained evidence exists | durable return written | terminal return |
23
- | Human steering | current authority cannot resolve conflict | `$handback` guard passes | terminal or router re-entry |
16
+ | State | Entry guard | Exit guard | Next states |
17
+ | ------------------ | ----------------------------------------- | ------------------------------------ | ------------------------------------------------------ |
18
+ | Fog absent | supported wrapper lens, no exact Fog | exact Fog and immutable lens | grilling, human-steering |
19
+ | Grilling active | exact Fog, bounded result missing | retained evidence or support request | research, prototype, reconcile, return, human-steering |
20
+ | Support active | named child and precise unknown | immutable evidence or verdict | grilling, human-steering |
21
+ | Projection pending | ceiling-safe optional intent | exact or unresolved result | return, human-steering |
22
+ | Bounded result | required retained evidence exists | durable return written | terminal return |
23
+ | Human steering | current authority cannot resolve conflict | user direction resolves the conflict | terminal or router re-entry |
24
24
 
25
25
  Graph forms cover the baseline path, lens branch, support cycles, optional
26
26
  projection skip, blocked/checkpoint outcomes, cold resume, and terminal human
@@ -35,7 +35,7 @@ outrank a committed handoff and its advisory suggested route.
35
35
  | Branch path | grilling | grilling | yes | — |
36
36
  | Repair cycle | reconcile | reconcile | yes | — |
37
37
  | Human checkpoint | reconcile | reconcile | yes | — |
38
- | Failure handback terminal | human-steering | human-steering | yes | — |
38
+ | Human steering terminal | human-steering | human-steering | yes | — |
39
39
  | Cold resume | return-target | return-target | yes | — |
40
40
  | Stale or invalid artifact | human-steering | human-steering | yes | — |
41
41
  | Contradictory suggestion loses | grilling | grilling | yes | — |
@@ -35,7 +35,7 @@ The router owns transitions. Each gate owns only its bounded action.
35
35
  - [Prototype support](phases/prototype.md)
36
36
  - [Optional projection reconciliation](phases/reconcile.md)
37
37
  - [Bounded return](phases/return-target.md)
38
- - [Human steering](phases/handback.md)
38
+ - [Human steering](phases/human-steering.md)
39
39
 
40
40
  ## Runtime references
41
41
 
@@ -24,7 +24,7 @@ intake lens.
24
24
  ## Declared exits
25
25
 
26
26
  - `fog_ready` -> router re-entry.
27
- - `human_steering_required` -> handback.
27
+ - `human_steering_required` -> human-steering.
28
28
  - `blocked` -> stop with missing evidence.
29
29
 
30
30
  ## Durable handoff
@@ -31,7 +31,7 @@ and relation, bounded-result state, and optional ceiling-safe projection intent.
31
31
  - `support_required` -> router re-entry.
32
32
  - `projection_requested` -> reconciliation through router re-entry.
33
33
  - `bounded_result_ready` -> bounded return through router re-entry.
34
- - `human_steering_required` -> handback.
34
+ - `human_steering_required` -> human-steering.
35
35
  - `blocked` -> stop with missing evidence.
36
36
 
37
37
  ## Durable handoff
@@ -0,0 +1,25 @@
1
+ # Human Steering Gate
2
+
3
+ ## Entry guard
4
+
5
+ Fog identity, immutable lens, child relevance, support relation, evidence,
6
+ scope, or projection ceiling is ambiguous or conflicting under current authority.
7
+
8
+ ## Bounded action
9
+
10
+ Record the exact conflict, supporting evidence, and minimum human decision.
11
+ Return `human_steering_required` and stop before emitting a mutation intent.
12
+
13
+ ## Completion evidence
14
+
15
+ Durable decision record and evidence that the conflict caused no further mutation.
16
+
17
+ ## Declared exits
18
+
19
+ - `human_steering_required` -> terminal non-success state.
20
+ - `decision_resolved` -> router re-entry with the resolving user direction.
21
+
22
+ ## Durable handoff
23
+
24
+ Link the decision record and retain the terminal state until current user
25
+ direction resolves the conflict.
@@ -23,7 +23,7 @@ and human-verdict pointers, and exact child/relation readback.
23
23
  ## Declared exits
24
24
 
25
25
  - `support_resolved` -> router re-entry.
26
- - `human_steering_required` -> handback.
26
+ - `human_steering_required` -> human-steering.
27
27
  - `blocked` -> stop with missing retained evidence.
28
28
 
29
29
  ## Durable handoff
@@ -29,7 +29,7 @@ unresolved projection result, or a zero-write conflict result.
29
29
  - `projection_reconciled` -> router re-entry.
30
30
  - `projection_unresolved` -> bounded return through router re-entry.
31
31
  - `approval_required` -> persist checkpoint and stop.
32
- - `human_steering_required` -> handback.
32
+ - `human_steering_required` -> human-steering.
33
33
  - `blocked` -> stop with missing required readback.
34
34
 
35
35
  ## Durable handoff
@@ -24,7 +24,7 @@ immutable commit SHA and path, and exact child/relation readback.
24
24
  ## Declared exits
25
25
 
26
26
  - `support_resolved` -> router re-entry.
27
- - `human_steering_required` -> handback.
27
+ - `human_steering_required` -> human-steering.
28
28
  - `blocked` -> stop with missing retained evidence.
29
29
 
30
30
  ## Durable handoff
@@ -10,7 +10,7 @@ suggested route is advisory only.
10
10
  1. Unsupported intake lens, explicit steering state, ambiguous Fog identity,
11
11
  conflicting immutable-lens evidence, duplicate child identity, ambiguous child choice,
12
12
  unsupported support kind, or projection above the wrapper ceiling ->
13
- [handback](handback.md).
13
+ [human-steering](human-steering.md).
14
14
  2. No exact Fog readback -> [ensure-fog](ensure-fog.md).
15
15
  3. One unresolved Research child -> [research](research.md).
16
16
  4. One unresolved Prototype child -> [prototype](prototype.md).
@@ -20,7 +20,7 @@ ensure-fog
20
20
  -> bounded return
21
21
 
22
22
  identity, lens, selection, or ceiling conflict
23
- -> handback -> human_steering_required
23
+ -> human-steering -> human_steering_required
24
24
  ```
25
25
 
26
26
  One Fog retains its immutable original Business or Functional intake lens.
@@ -41,8 +41,9 @@ debug, debt, documentation, or closeout work.
41
41
  4. Require the derived result to equal the retained report's `routing` object.
42
42
  A mismatch is invalid retained routing evidence and routes to
43
43
  `review_failed`.
44
- 5. If the primary route is `human_steering_required`, invoke `$handback`, write
45
- its durable outcome, and stop.
44
+ 5. If the primary route is `human_steering_required`, retain the blocking
45
+ finding, supporting evidence, and exact decision needed; return that outcome
46
+ and stop.
46
47
  6. Otherwise write returned routing evidence containing the immutable report
47
48
  identity, stable finding IDs, primary route, optional architecture follow-up,
48
49
  and validation summary. Delivery returns `review_routed`; standalone returns
@@ -55,7 +56,7 @@ debug, debt, documentation, or closeout work.
55
56
  - Human steering outranks runtime, implementation, debt, documentation, and
56
57
  closeout.
57
58
  - The retained report and reviewed target remain readonly.
58
- - This gate writes routing or `$handback` evidence only. Delivery owns any later
59
+ - This gate writes routing or decision evidence only. Delivery owns any later
59
60
  route mutation and every repair counter or active repair state.
60
61
  - One return does not invoke review again, run validation again, create review
61
62
  4, or enter repair.
@@ -74,8 +75,8 @@ debug, debt, documentation, or closeout work.
74
75
  explicit delivery resume.
75
76
  - `review_complete`: standalone routing evidence is durable and review is
76
77
  complete.
77
- - `human_steering_required`: the `$handback` outcome is durable and expanded
78
- repair awaits that skill's authority guard.
78
+ - `human_steering_required`: the decision record is durable; expanded repair
79
+ awaits current user direction resolving the required decision.
79
80
  - `report_retention_pending`: retained containment or blob evidence became
80
81
  temporarily unverifiable; retry retention without rerunning lenses.
81
82
  - `review_due`: target, bounds, or governing sources are no longer fresh for
@@ -43,7 +43,7 @@ output.
43
43
 
44
44
  | Priority | Current evidence | Output |
45
45
  | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------- |
46
- | 1 | Durable `human_steering_required` while the `$handback` authority guard fails | terminal `human_steering_required` |
46
+ | 1 | Durable `human_steering_required` with an unresolved required decision | terminal `human_steering_required` |
47
47
  | 2 | Unsupported target, invalid accepted bounds, non-retryable contract or infrastructure failure, malformed active retention candidate, or `same_run_conflict` | terminal `review_failed` |
48
48
  | 3 | Delivery entry is otherwise valid, recovered `review_count >= 2`, no verified human direction authorizes the next ordinal, and no already-started run has valid predecessor evidence | terminal `review_budget_exhausted` |
49
49
  | 4 | A repository-approved retained ref is required but cannot be derived and requires an operator decision | checkpoint `retained_ref_approval_required` |
@@ -58,7 +58,8 @@ scope; the parent rejects stale, expanded, duplicated, or unverified output.
58
58
  accepted finding a stable identifier, lens, severity, location, impact,
59
59
  evidence, action, and one explicit `return_route`: `human_steering_required`,
60
60
  `debugging`, `implementation`, `debt_follow_up`, or `docs_ingest`. Use
61
- `human_steering_required` when the repair triggers `$handback`.
61
+ `human_steering_required` when the repair exceeds accepted bounds, changes
62
+ requirements, weakens a gate, or substantially redesigns implementation.
62
63
  7. Run only the smallest safe readonly validation needed to verify candidates or
63
64
  governing acceptance evidence. Broader checks require explicit accepted spec
64
65
  or plan authority. Record missing required RED/GREEN evidence as a finding;
@@ -24,7 +24,7 @@ and clean handoff.
24
24
  | `report_retention_pending` | Retryable retention failure | Hashes fresh | Report writer | `report_retention_pending` | None | Exact retryable evidence; no authoritative pass |
25
25
  | `report_retention_pending` | Non-retryable retention failure | Retry cannot succeed | Report writer | `review_failed` | None | Exact terminal evidence; no authoritative pass |
26
26
  | `report_retention_pending` | Freshness changed | Target or source hash changed | `review-phase` | `review_due` | None | Stale local report; unchanged counters |
27
- | `review_routed` | Human steering route | Derived primary route is `human_steering_required` | `review-phase` | `human_steering_required` | None | Retained report plus durable `$handback` outcome |
27
+ | `review_routed` | Human steering route | Derived primary route is `human_steering_required` | `review-phase` | `human_steering_required` | None | Retained report plus durable decision record |
28
28
  | `review_routed` | Readonly return | Standalone; primary route is not `human_steering_required` | Standalone caller | `review_complete` | None | Retained report output and route |
29
29
  | `review_routed` | Resume debug route | Handoff already records run id, debug route, and `debug_active` | `delivery-phase` | `debug_active` | None | Existing atomic handoff; no guard fallthrough |
30
30
  | `review_routed` | Resume implementation route | Handoff already records run id, implementation route, and `repair_active` | `delivery-phase` | `repair_active` | None | Existing atomic handoff; no guard fallthrough |
@@ -79,8 +79,8 @@ including three. Recovery preserves this authority without granting more default
79
79
  passes. Historical numbered repair states normalize to the existing repair and
80
80
  focused-validation route; their counters and report identities stay unchanged.
81
81
 
82
- `human_steering_required` opens no repair. It remains terminal until the
83
- `$handback` authority guard passes.
82
+ `human_steering_required` opens no repair. It remains terminal until current
83
+ user direction resolves the required decision.
84
84
 
85
85
  Same-goal bounds revisions preserve delivery lineage and counters. Resume,
86
86
  rebase, new commit, process retry, and handoff preserve them. Only an explicitly
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "channel": "stable",
4
- "version": "2026.09.17-d3e11b44",
5
- "tag": "baseline/stable/2026.09.17-d3e11b44",
6
- "commit": "d3e11b4481eb4e35c4044278914552827c0ee032",
4
+ "version": "2026.09.23-66535546",
5
+ "tag": "baseline/stable/2026.09.23-66535546",
6
+ "commit": "66535546af2cdfab73f8fe1438ee8295ebee45f1",
7
7
  "archive": "scaffold-baseline.tgz",
8
- "archiveSha256": "ed3b75d0523bebb8d5c8ec7225dd47a8197ca139bde0a491dd62d59aa848af94",
8
+ "archiveSha256": "d0dc830487f1120bf35dfc73ece36a26f330c9b8b2eb2aa643a5ddee5009ab90",
9
9
  "compatibility": {
10
- "cliVersionRange": ">=5.1.1 <5.2.0"
10
+ "cliVersionRange": ">=5.2.1 <5.3.0"
11
11
  }
12
12
  }
Binary file
@@ -1,10 +1,27 @@
1
1
  ## CLI Data Guidance
2
2
 
3
- Primary skills here: `autoreview`, `codebase-design`, `improve-codebase-architecture`, `parallel-research`, `prototype`, `quality-types`, `review`, `simplify`, `tdd`.
3
+ This scope owns packaged CLI assets: skill and pack catalogs, hooks, prompt content, subagent manifests, harness-projection scripts, and generated declarations.
4
+ Work within the accepted goal. Obtain explicit user authorization before changing requirements, weakening a gate, or substantially redesigning implementation.
4
5
 
5
- This scope owns packaged CLI assets: skill and pack catalogs, hooks, prompt content, subagent manifests, harness-projection scripts, and generated declarations. Keep runtime behavior in `apps/cli/src`; keep shared scaffold model contracts in `packages/scaffold`. Changes to embedded or generated assets must preserve their content hashes and public-output contracts.
6
- Autonomy ends at accepted goal bounds. If progress requires changed requirements, a weaker gate, or substantial implementation redesign, invoke `$handback` before expanding work.
6
+ Before changes in this scope, consult the exhaustive [Rule Registry](../../../../.agents/rules/index.md) and apply every rule whose path or task trigger matches.
7
7
 
8
- When reusable skills change, complete the root source-first flow before treating these distributed assets as current: before editing, verify `git -C /Users/stefan/Desktop/repos/wearedevpunks-skills branch --show-current` returns exactly `main`; stop otherwise. Edit and commit the canonical source only on that checked-out `main` branch; alternate branches or worktrees are out of scope for this flow. Then push, run `bun run sync:skills`, verify the exact receipt SHA, and publish the baseline when requested.
8
+ ## Skills
9
9
 
10
- If work here changes scaffolding behavior, generated guidance, release assets, or validation procedures, update `docs/README.md` and `docs/runbooks/hi-cli-scaffolding.md` in the same task.
10
+ | Skill | Exact trigger |
11
+ | --- | --- |
12
+ | `autoreview` | When the task explicitly invokes `autoreview`, read `../../../../.agents/skills/autoreview/SKILL.md`. |
13
+ | `codebase-design` | When the task explicitly invokes `codebase-design`, read `../../../../.agents/skills/codebase-design/SKILL.md`. |
14
+ | `improve-codebase-architecture` | When the task explicitly invokes `improve-codebase-architecture`, read `../../../../.agents/skills/improve-codebase-architecture/SKILL.md`. |
15
+ | `make-tsuite` | When the task explicitly invokes `make-tsuite`, read `../../../../.agents/skills/make-tsuite/SKILL.md`. |
16
+ | `parallel-research` | When the task explicitly invokes `parallel-research`, read `../../../../.agents/skills/parallel-research/SKILL.md`. |
17
+ | `prototype` | When the task explicitly invokes `prototype`, read `../../../../.agents/skills/prototype/SKILL.md`. |
18
+ | `quality-types` | When the task explicitly invokes `quality-types`, read `../../../../.agents/skills/quality-types/SKILL.md`. |
19
+ | `review` | When the task explicitly invokes `review`, read `../../../../.agents/skills/review/SKILL.md`. |
20
+ | `simplify` | When the task explicitly invokes `simplify`, read `../../../../.agents/skills/simplify/SKILL.md`. |
21
+ | `tdd` | When the task explicitly invokes `tdd`, read `../../../../.agents/skills/tdd/SKILL.md`. |
22
+
23
+ Read the [Source Guide](../../../../opensrc/README.md) when work depends on third-party library behavior.
24
+
25
+ Validate changed assets with their owning catalog, hook, or projection tests; include managed-file and public-output contract checks when emitted scaffold content changes. For prompt-only authoring, verify exact skill triggers, relative links, and the sibling `CLAUDE.md` symlink.
26
+
27
+ When work changes scaffolding behavior, generated guidance, release assets, or validation procedures, update [docs/README.md](../../../../docs/README.md) and the [CLI scaffolding runbook](../../../../docs/runbooks/hi-cli-scaffolding.md) in the same task.