@punks/cli 3.2.0 → 3.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/AGENTS.md +2 -0
  2. package/dist/BASELINE_CHANGELOG.md +47 -1
  3. package/dist/CHANGELOG.md +36 -0
  4. package/dist/baseline/scaffold-baseline/baseline.json +5 -5
  5. package/dist/baseline/scaffold-baseline/data/catalog/lint-assets.json +48 -0
  6. package/dist/baseline/scaffold-baseline/data/catalog/packs.json +2 -1
  7. package/dist/baseline/scaffold-baseline/data/catalog/skills.json +8 -0
  8. package/dist/baseline/scaffold-baseline/skills/agnostic/cli/hi-cli/references/post-command-flow.md +20 -22
  9. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/rule-authoring/SKILL.md +18 -0
  10. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/rule-authoring/references/migration.md +10 -0
  11. package/dist/baseline/scaffold-baseline/skills/agnostic/docs/upstream/mattpocock-writing-skills.md +81 -12
  12. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/REFERENCE.md +11 -14
  13. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/SKILL.md +17 -14
  14. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/architecture-convergence.md +99 -0
  15. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/plan-schema.md +34 -0
  16. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/planner-task-graph.md +15 -12
  17. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/SKILL.md +6 -5
  18. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +10 -0
  19. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/architecture-conformance.md +100 -0
  20. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/lifecycle.md +25 -2
  21. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +17 -1
  22. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +14 -0
  23. package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel.md +7 -0
  24. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/tdd/SKILL.md +3 -2
  25. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/tdd/high-signal-tests.md +17 -3
  26. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/domain-modeling/{CONTEXT-FORMAT.md → GLOSSARY-FORMAT.md} +9 -9
  27. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/domain-modeling/SKILL.md +12 -12
  28. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/requirements-grill/SKILL.md +3 -2
  29. package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/requirements-grill/references/grilling-flow.md +1 -1
  30. package/dist/baseline/scaffold-baseline/skills/frameworks/effect/effect-service-design/UPSTREAM.md +17 -0
  31. package/dist/baseline/scaffold-baseline/skills/misc/wait-what/SKILL.md +1 -1
  32. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/SKILL.md +5 -7
  33. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/review.md +25 -50
  34. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +22 -27
  35. package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/phase-handoff.md +10 -28
  36. package/dist/baseline/scaffold-baseline/skills/phases/review-phase/AUTHORING-HANDOFF.md +11 -14
  37. package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/prepare-review.md +1 -1
  38. package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/retain-report.md +2 -9
  39. package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/return-route.md +8 -6
  40. package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/run-review.md +5 -8
  41. package/dist/baseline/scaffold-baseline/skills/phases/review-phase/references/durable-report.md +14 -29
  42. package/dist/baseline/scaffold-baseline/skills/phases/review-phase/references/state-graph.md +32 -45
  43. package/dist/baseline/scaffold-baseline/skills/phases/review-phase/references/targets.md +1 -2
  44. package/dist/baseline/scaffold-baseline/skills/phases/review-phase/scripts/review-contract.mjs +12 -86
  45. package/dist/baseline/scaffold-baseline.json +5 -5
  46. package/dist/baseline/scaffold-baseline.tgz +0 -0
  47. package/dist/data/AGENTS.md +2 -0
  48. package/dist/index.js +15 -15
  49. package/dist/skills/agnostic/cli/hi-cli/references/post-command-flow.md +5 -7
  50. package/dist/skills/agnostic/docs/rule-authoring/SKILL.md +18 -0
  51. package/dist/skills/agnostic/docs/rule-authoring/references/migration.md +10 -0
  52. package/dist/skills/agnostic/docs/upstream/mattpocock-writing-skills.md +81 -12
  53. package/dist/skills/agnostic/planning/create-plan/REFERENCE.md +11 -14
  54. package/dist/skills/agnostic/planning/create-plan/SKILL.md +17 -14
  55. package/dist/skills/agnostic/planning/create-plan/references/architecture-convergence.md +99 -0
  56. package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +34 -0
  57. package/dist/skills/agnostic/planning/create-plan/references/planner-task-graph.md +15 -12
  58. package/dist/skills/agnostic/planning/implement-spec/SKILL.md +6 -5
  59. package/dist/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +10 -0
  60. package/dist/skills/agnostic/planning/implement-spec/references/architecture-conformance.md +100 -0
  61. package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +25 -2
  62. package/dist/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +17 -1
  63. package/dist/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +14 -0
  64. package/dist/skills/agnostic/planning/implement-spec/references/parallel.md +7 -0
  65. package/dist/skills/agnostic/quality/tdd/SKILL.md +3 -2
  66. package/dist/skills/agnostic/quality/tdd/high-signal-tests.md +17 -3
  67. package/dist/skills/agnostic/requirements/domain-modeling/{CONTEXT-FORMAT.md → GLOSSARY-FORMAT.md} +9 -9
  68. package/dist/skills/agnostic/requirements/domain-modeling/SKILL.md +12 -12
  69. package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +3 -2
  70. package/dist/skills/agnostic/requirements/requirements-grill/references/grilling-flow.md +1 -1
  71. package/dist/skills/frameworks/effect/effect-service-design/UPSTREAM.md +17 -0
  72. package/dist/skills/frameworks/nestjs/nestjs-best-practices/.gitignore +29 -0
  73. package/dist/skills/misc/wait-what/SKILL.md +1 -1
  74. package/dist/skills/phases/delivery-phase/SKILL.md +5 -7
  75. package/dist/skills/phases/delivery-phase/phases/review.md +25 -50
  76. package/dist/skills/phases/delivery-phase/phases/router.md +20 -25
  77. package/dist/skills/phases/delivery-phase/references/phase-handoff.md +10 -28
  78. package/dist/skills/phases/review-phase/AUTHORING-HANDOFF.md +11 -14
  79. package/dist/skills/phases/review-phase/phases/prepare-review.md +1 -1
  80. package/dist/skills/phases/review-phase/phases/retain-report.md +2 -9
  81. package/dist/skills/phases/review-phase/phases/return-route.md +8 -6
  82. package/dist/skills/phases/review-phase/phases/run-review.md +5 -8
  83. package/dist/skills/phases/review-phase/references/durable-report.md +14 -29
  84. package/dist/skills/phases/review-phase/references/state-graph.md +6 -19
  85. package/dist/skills/phases/review-phase/references/targets.md +1 -2
  86. package/dist/skills/phases/review-phase/scripts/review-contract.mjs +11 -91
  87. package/package.json +9 -71
package/AGENTS.md CHANGED
@@ -4,6 +4,8 @@ Primary skills here: `autoreview`, `codebase-design`, `effect`, `effect-backend-
4
4
 
5
5
  This app owns the `hi`/`hint` executable, repo detection flow, local scaffold application, bundled baseline fallback, update/diff ergonomics, and release/baseline publishing scripts. Preserve current CLI behavior during monorepo work.
6
6
 
7
+ Reusable skill changes in distributed assets are complete only after the root source-first flow: canonical edit, commit, push, `bun run sync:skills`, exact receipt-SHA verification, then baseline publication when requested.
8
+
7
9
  Keep consumer-repo product logic out of the CLI. The future backend owns registry, provenance, auth, telemetry, and artifact access; the CLI remains the local scanner, cache, prompt/skill/hook placer, and filesystem writer.
8
10
 
9
11
  When pushing a new npm executable release, update `CHANGELOG.md` first with a non-empty section for the exact `apps/cli/package.json` version. `bun run release:publish` must publish `@punks/cli`, push the matching `v<version>` tag, and create the GitHub release from that changelog entry. Baseline-only releases stay on `baseline/stable/*` and do not require package changelog entries.
@@ -2,14 +2,60 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## baseline/stable/2026.08.17-high-signal-tests - 2026-08-17
6
+
7
+ Compatibility: `>=3.2.1 <4`
8
+
5
9
  ### Changed
6
10
 
11
+ - Sync canonical `wearedevpunks/skills@ebc83ccfc317c9dbae1f6348a7827cba2783a02d` from `main`.
12
+ - Refine `tdd` around high-signal behavioral evidence and cull tests satisfied by existence, type checking, provider simulation or shape assumptions, contract restatement, low-value UI or command registration checks, and resistance to intentional reversal.
13
+ - Scope the reusable-skill source-first flow to CLI release and distributed-asset prompts: canonical edit, commit, push, root sync, exact receipt verification, then requested baseline publication.
14
+
15
+ ## baseline/stable/2026.08.15-glossary-convention - 2026-08-15
16
+
17
+ Compatibility: `>=3.2.0 <4`
18
+
19
+ ### Changed
20
+
21
+ - Sync canonical `wearedevpunks/skills@354d08e26897ddbf28eb667498fdf3363ca2081c` from `main`.
22
+ - Rename the domain-document convention from `CONTEXT.md`/`CONTEXT-MAP.md` to `GLOSSARY.md`/`GLOSSARY-MAP.md`, including `GLOSSARY-FORMAT.md`.
23
+
24
+ ## baseline/stable/2026.08.14-agent-workflow-rules-autonomy - 2026-08-14
25
+
26
+ Compatibility: `>=3.2.1 <4`
27
+
28
+ ### Added
29
+
30
+ - Add the concise `rule-authoring` skill for scaffold and update handoffs that maintain project-owned `.agents/rules` and one exhaustive scoped-prompt registry pointer.
31
+
32
+ ### Changed
33
+
34
+ - Sync canonical `wearedevpunks/skills@f370868c9f7968fa5649f90be172b57a39759929` from `main`.
35
+ - Close applicable technical architecture during requirements grilling while keeping `CONTEXT.md` glossary-only; specs own accepted architecture and plans derive execution work.
36
+ - Make Full Delivery route continuously through authorized phases and at most three review cycles; only an explicit user request enables HITL confirmation.
37
+
38
+ ### Changed
39
+
40
+ - Make `requirements-grill` wait for `$grilling` to report completion before presenting persisted state for approval.
7
41
  - Build and verify the complete scaffold baseline independently from npm publication intent, including exact archive, manifest, tree, compatibility, and packaged fallback evidence.
8
42
  - Classify scaffold payload, schema, and compatibility changes semantically and reconcile reviewed stable releases in retry-safe order through protected production authority.
9
- - Publish a validated mixed candidate's commit-derived baseline before reviewed npm 3.1.13, with a 45-minute release ceiling and GitHub `Production` as the provider-anchor, control-plane, and baseline-credential boundary.
43
+ - Publish a validated mixed candidate's commit-derived baseline before reviewed npm 3.2.1, with a 45-minute release ceiling and GitHub `Production` as the provider-anchor, control-plane, and baseline-credential boundary.
10
44
  - Compact generated scoped prompt specs around repository invariants and exact-trigger pointers while keeping installed skills authoritative.
11
45
  - Sync delivery retention routing, the escaped Effect recovery table, and `hi init` onboarding from immutable `wearedevpunks/skills@408746ad5fdf10d75513cd1b63c71c6f22fa7fb7`; candidate archive and isolated managed-consumer readback preserve all three semantics.
12
46
  - Sync `team/stefan/review-contract-handoff-consistency` at exact `wearedevpunks/skills@684f98dff76ac94ad3db2eb1f74230cb9910e1ad`, retained by `sync/review-contract-handoff-consistency-684f98dff76a`, with non-empty review scopes, exact commit-tree report retention, per-finding derived routing, capture-first mixed debt routing, durable `docs_ingest` or `closeout` resume before artifact inference, and installed-skill `Skill | Exact trigger` tables across manifests and planning/setup consumers while root guidance stays table-free.
47
+ - Stage TypeScript Anti-Slop adoption for existing Harness workspaces, exclude vendored plugin sources, and retain strict defaults for new consumers.
48
+ - Sync requirements grilling completion from immutable `wearedevpunks/skills@6d992c409fe722b3ae6b7bf80395ff6c796eeb17`, retained by `sync/grilling-contract-centralization-6d992c409fe7`, before the derived `$show-me` presentation.
49
+
50
+ ## baseline/stable/2026.08.13-architecture-convergence - 2026-08-13
51
+
52
+ Compatibility: `>=3.2.0 <4`
53
+
54
+ ### Changed
55
+
56
+ - Sync canonical `wearedevpunks/skills@1739a7a75ab975ca867da8603766c39d4befc25b` from `main`.
57
+ - Make `create-plan` classify architecture-bearing work and persist `$show-me`-authored target ownership topology, declared dependency graph, responsibility acceptance criteria, architecture waves, public seams, and temporary-seam migration ledger under the agnostic frontend/backend domain-structure rules.
58
+ - Make `implement-spec` enforce the plan contract through task-level ownership fields, cumulative whole-graph checkpoints after every architecture wave, regression checks for previously met responsibility criteria, and final zero-drift closure with an empty migration ledger.
13
59
 
14
60
  ## baseline/stable/2026.08.13-cli-3.2.0-quality-workflows - 2026-08-13
15
61
 
package/dist/CHANGELOG.md CHANGED
@@ -2,6 +2,42 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ### Changed
6
+
7
+ - Prepare `baseline/stable/2026.08.17-high-signal-tests` for CLI `>=3.2.1 <4` from canonical `wearedevpunks/skills@ebc83ccfc317c9dbae1f6348a7827cba2783a02d`, strengthening high-signal TDD culling and the scoped source-first skill-release flow.
8
+
9
+ - Sync canonical `wearedevpunks/skills@354d08e26897ddbf28eb667498fdf3363ca2081c` from `main` and rename the domain-document convention from `CONTEXT.md`/`CONTEXT-MAP.md` to `GLOSSARY.md`/`GLOSSARY-MAP.md`, including `GLOSSARY-FORMAT.md`.
10
+
11
+ ### Added
12
+
13
+ - Add the concise `rule-authoring` skill for scaffold and update handoffs that create or reconcile project-owned `.agents/rules`.
14
+
15
+ ### Changed
16
+
17
+ - Close applicable technical architecture during requirements grilling so specs own accepted topology, boundaries, dependencies, and seams while planning derives execution work.
18
+ - Make Full Delivery continue through its authorized phases and review cycles without confirmation; HITL pauses now require an explicit user request.
19
+
20
+ ## 3.2.2 - 2026-08-17
21
+
22
+ ### Fixed
23
+
24
+ - Detect SQLAlchemy and Alembic from Python dependency files so scaffold pack selection includes the `sqlalchemy` pack without manual selection.
25
+ - Preserve project-authored wiki `AGENTS.md` content during semantic scaffold reconciliation while continuing to enforce its `CLAUDE.md` mirror and managed wiki files.
26
+
27
+ ## 3.2.1 - 2026-08-13
28
+
29
+ ### Changed
30
+
31
+ - Sync canonical `wearedevpunks/skills@1739a7a75ab975ca867da8603766c39d4befc25b` from `main`.
32
+ - Enforce plan-wide architecture convergence in `create-plan` and `implement-spec`: `$show-me`-authored ownership, dependency, responsibility, architecture-wave, public-seam, and migration-ledger contracts; task-level ownership fields; cumulative per-wave conformance; and final zero-drift closure with an empty migration ledger.
33
+
34
+ ### Fixed
35
+
36
+ - Reuse the cache-backed, partitioned pull-request verification as release evidence instead of replaying the CLI test suite during publication.
37
+ - Stage TypeScript Anti-Slop adoption for existing Harness workspaces while keeping strict defaults for new consumers and excluding vendored plugin sources.
38
+ - Keep baseline archive tests event-loop responsive and avoid duplicate full Turbo graph probes in repository contract tests.
39
+ - Centralize the requirements grilling completion transition before the derived `$show-me` presentation.
40
+
5
41
  ## 3.2.0 - 2026-08-13
6
42
 
7
43
  ### Added
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "channel": "stable",
4
- "version": "2026.08.13-33a55cb6",
5
- "tag": "baseline/stable/2026.08.13-33a55cb6",
6
- "commit": "33a55cb61cf9c26a7e8480968ec3bc597c416678",
4
+ "version": "2026.08.17-5ef3e434",
5
+ "tag": "baseline/stable/2026.08.17-5ef3e434",
6
+ "commit": "5ef3e434d5b8afc9b38d803870003ae016a7b558",
7
7
  "sha256": null,
8
8
  "compatibility": {
9
- "cliVersionRange": ">=3.2.0 <3.3.0"
9
+ "cliVersionRange": ">=3.2.2 <3.3.0"
10
10
  },
11
- "generatedAt": "2026-08-13T14:14:37.000Z"
11
+ "generatedAt": "2026-08-17T09:39:49.000Z"
12
12
  }
@@ -2,6 +2,7 @@
2
2
  {
3
3
  "description": "Vendored Anti-Slop rules for rejecting low-evidence TypeScript and JavaScript patterns.",
4
4
  "id": "typescript-anti-slop",
5
+ "ignorePatterns": ["tools/oxlint/anti-slop/**"],
5
6
  "jsPlugins": [
6
7
  {
7
8
  "name": "anti-slop",
@@ -46,6 +47,52 @@
46
47
  }
47
48
  ]
48
49
  },
50
+ {
51
+ "description": "Explicit Anti-Slop adoption policy for existing Harness workspaces.",
52
+ "id": "punks-anti-slop-transition",
53
+ "jsPlugins": [],
54
+ "oxlintPresets": [],
55
+ "placement": {
56
+ "placementNotes": "Apply only to existing Harness workspaces while they adopt Anti-Slop.",
57
+ "recommendedConfigFile": "oxlint.config.ts",
58
+ "recommendedFiles": ["**/*.{js,jsx,ts,tsx}"],
59
+ "recommendedWorkspaces": ["Harness workspaces"]
60
+ },
61
+ "plugins": [],
62
+ "requiredDevDependencies": [],
63
+ "rules": {
64
+ "anti-slop/no-chained-type-assertions": "off",
65
+ "anti-slop/no-conditional-empty-object-spread": "off",
66
+ "anti-slop/no-known-value-widening": "off",
67
+ "anti-slop/no-module-mocking": "off",
68
+ "anti-slop/no-object-parameters": "off",
69
+ "anti-slop/no-reflect-apply": "off",
70
+ "anti-slop/no-reflect-get": "off",
71
+ "anti-slop/no-runtime-typeof": "off",
72
+ "anti-slop/no-shape-in-symbol-names": "off",
73
+ "anti-slop/no-unknown-parameters": "off",
74
+ "anti-slop/no-unknown-returns": "off",
75
+ "anti-slop/no-unknown-type-aliases": "off",
76
+ "anti-slop/no-unsafe-dictionary-type": "off",
77
+ "anti-slop/no-widen-then-assert": "off",
78
+ "anti-slop/require-safety-comment-for-type-assertion": "off"
79
+ },
80
+ "settings": {},
81
+ "targetPackageNames": [
82
+ "@punks/api",
83
+ "@punks/auth",
84
+ "@punks/backoffice",
85
+ "@punks/cli",
86
+ "@punks/config",
87
+ "@punks/contract",
88
+ "@punks/db",
89
+ "@punks/env",
90
+ "@punks/scaffold",
91
+ "@punks/ui",
92
+ "@punks/web",
93
+ "@punks/wiki"
94
+ ]
95
+ },
49
96
  {
50
97
  "description": "Ultracite React preset for rendered app and shared UI code.",
51
98
  "id": "react-core",
@@ -214,6 +261,7 @@
214
261
  "description": "Canonical lint policy for the shipped Harness CLI package.",
215
262
  "id": "punks-cli-canonical",
216
263
  "ignorePatterns": [
264
+ "src/data/lint/anti-slop/**",
217
265
  "src/data/hooks/format-edited-file.mjs",
218
266
  "src/data/hooks/require-tests-for-pr.mjs",
219
267
  "src/data/hooks/scaffold-update-check.mjs",
@@ -53,7 +53,8 @@
53
53
  "writing-fragments",
54
54
  "writing-beats",
55
55
  "writing-shape",
56
- "writing-for-agents"
56
+ "writing-for-agents",
57
+ "rule-authoring"
57
58
  ],
58
59
  "triggerPackages": []
59
60
  },
@@ -735,6 +735,14 @@
735
735
  "sourceDirectory": "skills/misc/wait-what",
736
736
  "tier": "agnostic"
737
737
  },
738
+ {
739
+ "framework": null,
740
+ "id": "rule-authoring",
741
+ "language": null,
742
+ "requiresTools": [],
743
+ "sourceDirectory": "skills/agnostic/docs/rule-authoring",
744
+ "tier": "agnostic"
745
+ },
738
746
  {
739
747
  "framework": null,
740
748
  "id": "show-me",
@@ -32,16 +32,12 @@ If an expected artifact is missing, continue and report it.
32
32
 
33
33
  Then:
34
34
 
35
+ - activate `$writing-for-agents`, then `$rule-authoring`
35
36
  - author the requested root, docs, and workspace guidance
36
37
  - treat `.devpunks/specs/prompts/**` as the complete prompt-authoring contract; apply every scoped-prompt criterion it contains
37
38
  - ground scoped prompts in current code evidence: structure, placement, dependencies, and boundaries first; applied coding conventions second; enforced constraints outrank the nearest stable module-family pattern
38
39
  - keep each scoped prompt lean with exact-trigger pointers to co-authored reference content; references disclose content and never create deeper prompt scopes
39
- - render every selected non-phase skill in one final `## Skills` table with
40
- `Skill | Exact trigger`; each row names the exact invocation condition
41
- - open every selected installed skill's `SKILL.md`; that installed file remains
42
- workflow authority
43
- - keep root `AGENTS.md` table-free; phase wrappers remain global orchestration
44
- entrypoints and are excluded from scoped tables
40
+ - render every selected non-phase skill in a `Skill | What / when` table derived from its complete `SKILL.md`
45
41
  - always link `opensrc/README.md` from scoped prompts and read it when work depends on third-party library behavior
46
42
  - reconcile only the generated skills, prompts, lint, hooks, scripts, subagents, tools, and wiki assets in scope
47
43
  - preserve repo-owned edits and ask before changing project policy
@@ -69,25 +65,27 @@ Read the command summary before any generated artifact. If it reports no diff, r
69
65
 
70
66
  For a diff, inspect only paths changed or flagged by this run. Apply every matching row:
71
67
 
72
- | Changed category | Required follow-through |
73
- | ---------------------------------------- | --------------------------------------------------------------------- |
74
- | Settings or manifest pins only | Confirm accepted pins. |
75
- | Skill content; IDs unchanged | Inspect affected skills and active mirrors only. |
76
- | Skill added, removed, or renamed | Reconcile affected IDs and their mirrors. |
77
- | `local-edited` conflict | Preserve local intent; ask when project and baseline intent conflict. |
78
- | Missing or stale path | Confirm the named recreation or deletion and direct references. |
79
- | Prompt input | Reconcile only affected prompt scopes and mirrors. |
80
- | Subagent input | Reconcile only generated and final subagent manifests. |
81
- | Lint, hook, or script input | Validate the affected config or command; ask before changing policy. |
82
- | Required tools | Check only added, changed, or failed tools. |
83
- | Source-guide content | Inspect only affected guide files. |
84
- | Wiki input | Reconcile affected routes or documents, then validate them. |
85
- | Default or detected pack addition | Follow only categories changed by that addition. |
86
- | Optional/removal/policy/surface decision | Ask for the unresolved decision. |
87
- | First adoption or missing final output | Run applicable scaffold follow-through. |
68
+ | Changed category | Required follow-through |
69
+ | ---------------------------------------- | --------------------------------------------------------------------------------------------------- |
70
+ | Settings or manifest pins only | Confirm accepted pins. |
71
+ | Skill content; IDs unchanged | Inspect affected skills and active mirrors only. |
72
+ | Skill added, removed, or renamed | Reconcile affected IDs and their mirrors. |
73
+ | `local-edited` conflict | Preserve local intent; ask when project and baseline intent conflict. |
74
+ | Missing or stale path | Confirm the named recreation or deletion and direct references. |
75
+ | Prompt or Rule Registry input | Activate `$writing-for-agents`, then `$rule-authoring`; reconcile only affected scopes and mirrors. |
76
+ | Subagent input | Reconcile only generated and final subagent manifests. |
77
+ | Lint, hook, or script input | Validate the affected config or command; ask before changing policy. |
78
+ | Required tools | Check only added, changed, or failed tools. |
79
+ | Source-guide content | Inspect only affected guide files. |
80
+ | Wiki input | Reconcile affected routes or documents, then validate them. |
81
+ | Default or detected pack addition | Follow only categories changed by that addition. |
82
+ | Optional/removal/policy/surface decision | Ask for the unresolved decision. |
83
+ | First adoption or missing final output | Run applicable scaffold follow-through. |
88
84
 
89
85
  After write modes, run targeted validation and one fresh `hi check --json`. Rerun `hi update` once only when that check detects new CLI or baseline drift, then finish with one final `hi check --json`.
90
86
 
87
+ Before completing a changed update, activate `$writing-for-agents`, then `$rule-authoring`. A no-op Rule Registry reconciliation is valid.
88
+
91
89
  ### Tools Ensure
92
90
 
93
91
  Treat the command as a global or external mutation.
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: rule-authoring
3
+ description: Maintain project-owned Codebase Rules after `hi scaffold` or `hi update`. Use only from those post-command handoffs.
4
+ ---
5
+
6
+ # Rule Authoring
7
+
8
+ Use with `$writing-for-agents`.
9
+
10
+ 1. Read or create `.agents/rules/index.md`.
11
+ 2. Keep one stable invariant per scope-grouped rule file. Require current Code Evidence or a linked accepted architecture decision.
12
+ 3. Index each rule by stable id, scope, path trigger, task trigger, optional tags, and file. Tags aid discovery; the other triggers decide activation.
13
+ 4. Keep scoped `AGENTS.md` files to scope, exact skill routing, and one exhaustive Rule Registry pointer.
14
+ 5. Evaluate every activated rule as `pass`, `fail`, or `not-applicable` with evidence in the current handoff or work log.
15
+
16
+ Rule files contain: `id`, `authority`, one positive requirement, activation triggers, verification, and exceptions.
17
+
18
+ For an existing repository, follow [migration.md](references/migration.md). Completion means the index is exhaustive, every pointer resolves, and project-owned rules remain preserved.
@@ -0,0 +1,10 @@
1
+ # Rule Migration
2
+
3
+ Classify each scoped `AGENTS.md` line:
4
+
5
+ - keep the scope boundary and exact skill-routing table
6
+ - move stable codebase patterns and accepted architecture constraints into granular `.agents/rules/<scope>/` files
7
+ - remove duplicated rule bodies after indexing them
8
+ - keep workflow routing at its owning prompt or skill
9
+
10
+ Start with the narrowest scopes. Use current executable code or a durable accepted architecture decision as authority. Preserve project-owned rule files during scaffold and update. Finish when every scoped prompt has one exhaustive `.agents/rules/index.md` pointer and every migrated invariant has one authoritative body.
@@ -1,22 +1,91 @@
1
- # Matt Pocock Writing Skills
1
+ # Matt Pocock Skills: provenance and coverage
2
2
 
3
- Source: https://github.com/mattpocock/skills/tree/main/skills/in-progress
3
+ This is the source-of-truth audit for Matt Pocock material retained in the
4
+ Devpunks skill library.
4
5
 
5
- Imported from upstream commit:
6
+ ## Audit snapshot
6
7
 
7
- ```text
8
- 694fa30311e02c2639942308513555e61ee84a6f
9
- ```
8
+ - Checked: 2026-08-12
9
+ - Curated catalog: <https://www.aihero.dev/skills>
10
+ - Upstream repository: <https://github.com/mattpocock/skills>
11
+ - Compared GitHub snapshot: `84fdeffd12f2ee307994d1eb6feb48173b6e0502`
12
+ - Upstream license SHA-256: `0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5`
10
13
 
11
- Imported skills:
14
+ The local files below are the only direct Matt-derived skills in this repo.
15
+ Each directory carries an adjacent `LICENSE` copied from the upstream root
16
+ license and an `UPSTREAM.md` with its immutable source commit. The local
17
+ adaptations remain intentionally customized; this audit does not replace them
18
+ with upstream files.
12
19
 
13
- - `writing-fragments`
14
- - `writing-beats`
15
- - `writing-shape`
20
+ ## Direct Matt-derived skills
16
21
 
17
- These skills were in upstream `skills/in-progress` at import time. Devpunks adopts them as reusable agnostic docs/writing skills and distributes them through the normal shared skills sync.
22
+ | Local skill | Upstream skill | Relationship | Imported source |
23
+ | ------------------------------------------------- | ------------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
24
+ | `agnostic/docs/writing-beats` | `in-progress/writing-beats` | adapted | [`694fa303`](https://github.com/mattpocock/skills/tree/694fa30311e02c2639942308513555e61ee84a6f/skills/in-progress/writing-beats) |
25
+ | `agnostic/docs/writing-fragments` | `in-progress/writing-fragments` | adapted | [`694fa303`](https://github.com/mattpocock/skills/tree/694fa30311e02c2639942308513555e61ee84a6f/skills/in-progress/writing-fragments) |
26
+ | `agnostic/docs/writing-shape` | `in-progress/writing-shape` | adapted | [`694fa303`](https://github.com/mattpocock/skills/tree/694fa30311e02c2639942308513555e61ee84a6f/skills/in-progress/writing-shape) |
27
+ | `agnostic/docs/writing-for-agents` | `productivity/writing-for-agents` | imported unchanged | [`2ffb184f`](https://github.com/mattpocock/skills/tree/2ffb184ffbb752faa664c0b204f3c9241b1428e9/skills/productivity/writing-for-agents) |
28
+ | `agnostic/generic/handoff` | `productivity/handoff` | adapted | [`221ffca9`](https://github.com/mattpocock/skills/tree/221ffca96736afefdc08ca7cf0b3965e9ea83f41/skills/productivity/handoff) |
29
+ | `agnostic/quality/codebase-design` | `engineering/codebase-design` | adapted | [`221ffca9`](https://github.com/mattpocock/skills/tree/221ffca96736afefdc08ca7cf0b3965e9ea83f41/skills/engineering/codebase-design) |
30
+ | `agnostic/quality/review` | `in-progress/review` | adapted | [`801dca68`](https://github.com/mattpocock/skills/tree/801dca688564c529fa84f247f64472520d9ebe28/skills/in-progress/review) |
31
+ | `agnostic/quality/tdd` | `engineering/tdd` | adapted | [`62f43a18`](https://github.com/mattpocock/skills/tree/62f43a18177be6ec82da242e59ffbc490a4c22ea/skills/engineering/tdd) |
32
+ | `agnostic/requirements/grilling` | `in-progress/batch-grill-me` | imported with local contract | [`9603c1cc`](https://github.com/mattpocock/skills/tree/9603c1cc8118d08bc1b3bf34cf714f62178dea3b/skills/in-progress/batch-grill-me) |
33
+ | `agnostic/research/improve-codebase-architecture` | `engineering/improve-codebase-architecture` | adapted | [`62f43a18`](https://github.com/mattpocock/skills/tree/62f43a18177be6ec82da242e59ffbc490a4c22ea/skills/engineering/improve-codebase-architecture) |
34
+ | `agnostic/research/prototype` | `engineering/prototype` | adapted | [`2ffb184f`](https://github.com/mattpocock/skills/tree/2ffb184ffbb752faa664c0b204f3c9241b1428e9/skills/engineering/prototype) |
35
+ | `misc/wait-what` | `productivity/wait-what` | imported unchanged | [`2ffb184f`](https://github.com/mattpocock/skills/tree/2ffb184ffbb752faa664c0b204f3c9241b1428e9/skills/productivity/wait-what) |
18
36
 
19
- ## MIT License Notice
37
+ The retained writing skills were in upstream `skills/in-progress` at import
38
+ time, so they remain licensed and attributed even though they are not part of
39
+ the current curated page.
40
+
41
+ ## Indirect derivative with Matt's retained license
42
+
43
+ `frameworks/effect/effect-service-design` is adapted from Dillon Mulroy's
44
+ `dmmulroy/skills` at commit
45
+ `8603380821fee6a77c82639f364ce8fe4f5a92be`. Dillon's source repository
46
+ retains the same Matt Pocock MIT license, so the local skill keeps that exact
47
+ license and now documents the full attribution chain in its adjacent
48
+ `UPSTREAM.md`. It is not counted as one of Matt's direct catalog skills.
49
+
50
+ ## Comparison with the current AI Hero catalog
51
+
52
+ The AI Hero page currently lists 25 curated skills. A dash means the local
53
+ repo does not carry that skill. “Local analogue” means a Devpunks skill with a
54
+ similar role, not copied Matt material, and therefore it does not receive
55
+ Matt's license or attribution solely because the names overlap.
56
+
57
+ | AI Hero skill | Local coverage |
58
+ | ------------------------------- | -------------------------------------------------------------------- |
59
+ | `setup-matt-pocock-skills` | — |
60
+ | `ask-matt` | — |
61
+ | `grill-with-docs` | — |
62
+ | `to-spec` | local analogue: `agnostic/planning/create-spec` |
63
+ | `to-tickets` | local analogue: `agnostic/requirements/write-backlog` |
64
+ | `implement` | local analogue: `agnostic/planning/implement-spec` |
65
+ | `code-review` | direct adaptation: `agnostic/quality/review` |
66
+ | `wayfinder` | local analogue: `agnostic/planning/wayfinder` |
67
+ | `prototype` | direct adaptation: `agnostic/research/prototype` |
68
+ | `research` | local analogue: `agnostic/research/parallel-research` |
69
+ | `improve-codebase-architecture` | direct adaptation: `agnostic/research/improve-codebase-architecture` |
70
+ | `diagnosing-bugs` | local analogue: `agnostic/debug/debug-agent` |
71
+ | `resolving-merge-conflicts` | — |
72
+ | `triage` | — |
73
+ | `wizard` | — |
74
+ | `grill-me` | — |
75
+ | `handoff` | direct adaptation: `agnostic/generic/handoff` |
76
+ | `to-questionnaire` | — |
77
+ | `teach` | — |
78
+ | `wait-what` | imported unchanged: `misc/wait-what` |
79
+ | `writing-for-agents` | imported unchanged: `agnostic/docs/writing-for-agents` |
80
+ | `codebase-design` | direct adaptation: `agnostic/quality/codebase-design` |
81
+ | `domain-modeling` | — |
82
+ | `grilling` | direct adaptation: `agnostic/requirements/grilling` |
83
+ | `tdd` | direct adaptation: `agnostic/quality/tdd` |
84
+
85
+ ## MIT license notice
86
+
87
+ The adjacent `LICENSE` files for the direct Matt-derived skills preserve the
88
+ upstream notice exactly:
20
89
 
21
90
  MIT License
22
91
 
@@ -4,31 +4,28 @@
4
4
 
5
5
  ## Required inner skills
6
6
 
7
- - MUST use `$grilling`
8
- - MUST use `$swarm-planner`
9
- - MUST use `$tdd`
10
- - MUST use `$codebase-design`
7
+ The required-inner-skills list in canonical [SKILL.md](SKILL.md) is authoritative and includes `$show-me`.
8
+ Execute every listed skill; keep this reference focused on sequencing and disclosed rules.
9
+
11
10
  - `opensrc` provides source context for installed or external packages
12
- - scoped `AGENTS.md` files provide per-path skill requirements through one final
13
- `## Skills` table with `Skill | Exact trigger`; select matching non-phase rows
14
- and open each selected installed skill's `SKILL.md`, which remains workflow
15
- authority. Root `AGENTS.md` stays table-free. Phase wrappers remain global
16
- orchestration entrypoints and are excluded from scoped tables.
11
+ - scoped `AGENTS.md` files provide per-path skill requirements through `Skill | What / when` tables; select exact trigger matches and open each selected skill's complete `SKILL.md`
17
12
 
18
13
  ## Graph map
19
14
 
20
15
  1. Read current repo state and derive as much context as possible before asking.
21
16
  2. Reduce ambiguity before task synthesis:
22
17
  - see [references/grill-ambiguity.md](references/grill-ambiguity.md)
23
- 3. Build the swarm graph of `Tn` tasks:
18
+ 3. Classify architecture applicability and persist convergence views when required:
19
+ - see [references/architecture-convergence.md](references/architecture-convergence.md)
20
+ 4. Build the swarm graph of `Tn` tasks from that contract:
24
21
  - see [references/planner-task-graph.md](references/planner-task-graph.md)
25
- 4. Attach TDD shaping to each `Tn` task:
22
+ 5. Attach TDD shaping to each `Tn` task:
26
23
  - see [references/tdd-shaping.md](references/tdd-shaping.md)
27
- 5. Normalize the saved plan using:
24
+ 6. Normalize the saved plan using:
28
25
  - [references/plan-schema.md](references/plan-schema.md)
29
- 6. Sync backlog items using:
26
+ 7. Sync backlog items using:
30
27
  - [references/backlog-sync.md](references/backlog-sync.md)
31
- 7. Stop using:
28
+ 8. Stop using:
32
29
  - [references/stop-conditions.md](references/stop-conditions.md)
33
30
 
34
31
  ## Global rules
@@ -43,27 +43,27 @@ silently renaming them.
43
43
  remains step 13.
44
44
  7. If readonly discovery has independent code paths, specs, backlog items, external docs, or hypotheses, read and use `$parallel-research` before final task synthesis.
45
45
  8. Research with `opensrc path <package>` or `opensrc path <owner>/<repo>` plus primary-source web docs when current behavior matters.
46
- 9. Locate scoped `AGENTS.md` files for every planned task path. Scoped guidance
47
- uses one final `## Skills` table with `Skill | Exact trigger`. Select only
48
- non-phase rows whose exact triggers match the task, then open each selected
49
- installed skill's `SKILL.md`; that installed file is workflow authority.
50
- Root `AGENTS.md` stays table-free. Phase wrappers remain global orchestration
51
- entrypoints and are excluded from scoped tables.
46
+ 9. Locate scoped `AGENTS.md` files for every planned task path. Read each
47
+ applicable `Skill | What / when` table, select rows whose exact `What / when`
48
+ triggers match the task, and open each selected skill's complete `SKILL.md`
49
+ before finalizing task design.
52
50
  10. For every implementation task, convert applicable scoped or named skill
53
51
  obligations into `implementation_skill_guidance`; preserve `assigned_skills`
54
52
  as planning provenance.
55
- 11. Read `references/planner-task-graph.md` and run `$swarm-planner` to produce the swarm graph and `Tn` task contract.
56
- 12. Read `references/tdd-shaping.md` and run `$tdd` to attach RED/GREEN targets to each `Tn` task.
57
- 13. Read `references/backlog-sync.md`. Sync backlog at epic/story level only when
53
+ 11. Read `references/architecture-convergence.md`. Persist architecture applicability. For architecture-bearing
54
+ work, derive and validate the architecture contract accepted in `SPEC.md`; route missing or contradictory target design back to `requirements-grill`.
55
+ 12. Read `references/planner-task-graph.md` and run `$swarm-planner` to produce the swarm graph and `Tn` task contract.
56
+ 13. Read `references/tdd-shaping.md` and run `$tdd` to attach RED/GREEN targets to each `Tn` task.
57
+ 14. Read `references/backlog-sync.md`. Sync backlog at epic/story level only when
58
58
  backlog sync is eligible and in scope; otherwise record an explicit skip
59
59
  reason and continue plan completion.
60
- 14. Invoke `$show-me` to present the task graph, dependencies, waves, and
60
+ 15. Invoke `$show-me` to present the task graph, dependencies, waves, and
61
61
  validation gates from the complete plan state before `$wait-what`. The
62
62
  presentation is a derived view; `PLAN.md` fields remain the execution authority.
63
- 15. Before writing `PLAN.md`, invoke `$wait-what` on the complete plan. Proceed
63
+ 16. Before writing `PLAN.md`, invoke `$wait-what` on the complete plan. Proceed
64
64
  only when its language contract passes without changing the resolved
65
65
  decision ledger.
66
- 16. Read `references/stop-conditions.md` and stop exactly there.
66
+ 17. Read `references/stop-conditions.md` and stop exactly there.
67
67
 
68
68
  ## Workflows
69
69
 
@@ -76,8 +76,8 @@ silently renaming them.
76
76
  5. Scan relevant routed learning artifacts before task synthesis when prior bug knowledge, domain behavior, or project conventions could affect the plan.
77
77
  6. Resolve each task's scoped guidance from root `AGENTS.md` down to the nearest `AGENTS.md` for its `location`.
78
78
  7. Use each task's required skill guidance while shaping its scope, dependencies, validation, RED target, and review mode; do not merely list skills after the plan is written.
79
- 8. Assign each task the deduplicated union of skills whose exact triggers match
80
- in every touched scope, merging all touched scopes for
79
+ 8. Assign each task the deduplicated union of skills whose exact `What / when`
80
+ triggers match in every touched scope, merging all touched scopes for
81
81
  cross-directory tasks.
82
82
  9. Build plan-derived worker waves: place every currently unblocked task with
83
83
  a disjoint write scope in the same wave. Use a one-task wave only when
@@ -89,6 +89,8 @@ silently renaming them.
89
89
  `tdd_status`, `tdd_target`, RED/GREEN commands, evidence fields,
90
90
  `codebase_design_notes`, `review_mode`, `runtime_validation`,
91
91
  `runtime_target`, `runtime_evidence`, and `runtime_cleanup`.
92
+ Architecture-bearing tasks also carry the convergence fields required by
93
+ `references/architecture-convergence.md`.
92
94
  11. Keep `PLAN.md` self-contained: embed gathered context, relevant code paths, existing patterns, constraints, assumptions, design reasoning, tradeoffs, initial situation, issue, solution shape, findings, research, dependency graph, testing strategy, skill-routing notes, risks, validation gates, unresolved questions, and a resolved decision ledger.
93
95
  12. Write enough conceptual reasoning that an executor can implement from `PLAN.md` alone, using supplementary research only when they choose to refresh or deepen context.
94
96
  13. For complex work, express the plan as a swarm graph of `Tn` tasks with dependency-aware validation gates, expected outcomes, assertions, or checks that let the executor self-verify before moving on.
@@ -123,5 +125,6 @@ See [REFERENCE.md](REFERENCE.md) for the overview and graph map.
123
125
  - Planner / swarm graph: see [references/planner-task-graph.md](references/planner-task-graph.md)
124
126
  - TDD shaping: see [references/tdd-shaping.md](references/tdd-shaping.md)
125
127
  - `PLAN.md` schema and task contract: see [references/plan-schema.md](references/plan-schema.md)
128
+ - Architecture applicability and convergence contract: see [references/architecture-convergence.md](references/architecture-convergence.md)
126
129
  - Backlog sync rules: see [references/backlog-sync.md](references/backlog-sync.md)
127
130
  - Stop conditions: see [references/stop-conditions.md](references/stop-conditions.md)