@punks/cli 3.1.9 → 3.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BASELINE_CHANGELOG.md +67 -0
- package/dist/CHANGELOG.md +48 -0
- package/dist/data/subagents/manifest.mjs +11 -6
- package/dist/index.js +32 -29
- package/dist/skills/agnostic/cli/hi-cli/references/post-command-flow.md +5 -0
- package/dist/skills/agnostic/docs/writing-great-skills/GLOSSARY.md +69 -0
- package/dist/skills/agnostic/docs/writing-great-skills/SKILL.md +63 -0
- package/dist/skills/agnostic/planning/create-plan/REFERENCE.md +1 -1
- package/dist/skills/agnostic/planning/create-plan/SKILL.md +19 -7
- package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +19 -0
- package/dist/skills/agnostic/planning/create-plan/references/planner-task-graph.md +27 -10
- package/dist/skills/agnostic/planning/implement-spec/SKILL.md +6 -2
- package/dist/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +22 -6
- package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +12 -0
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +10 -2
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +10 -1
- package/dist/skills/agnostic/planning/implement-spec/references/parallel.md +2 -0
- package/dist/skills/agnostic/quality/autoreview/SKILL.md +11 -2
- package/dist/skills/agnostic/quality/review/SKILL.md +16 -11
- package/dist/skills/frameworks/effect/effect-service-design/LICENSE +21 -0
- package/dist/skills/frameworks/effect/effect-service-design/SKILL.md +124 -0
- package/dist/skills/frameworks/effect/effect-service-design/references/AUDIT.md +98 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/.gitignore +29 -0
- package/dist/skills/languages/python/python-backend-structure/SKILL.md +91 -0
- package/dist/skills/languages/python/python-backend-structure/agents/openai.yaml +4 -0
- package/dist/skills/languages/python/python-design-patterns/SKILL.md +93 -69
- package/dist/skills/languages/python/python-project-structure/SKILL.md +4 -247
- package/dist/skills/phases/delivery-phase/SKILL.md +13 -4
- package/dist/skills/phases/delivery-phase/phases/closeout.md +3 -0
- package/dist/skills/phases/delivery-phase/phases/debug.md +8 -1
- package/dist/skills/phases/delivery-phase/phases/implement.md +11 -2
- package/dist/skills/phases/delivery-phase/phases/review.md +50 -29
- package/dist/skills/phases/delivery-phase/phases/router.md +56 -36
- package/dist/skills/phases/delivery-phase/references/artifact-state.md +8 -2
- package/dist/skills/phases/delivery-phase/references/phase-handoff.md +60 -10
- package/dist/skills/phases/finder-phase/references/root-routing.md +6 -1
- package/dist/skills/phases/review-phase/REFERENCE.md +83 -145
- package/dist/skills/phases/review-phase/SKILL.md +41 -45
- package/dist/skills/phases/review-phase/agents/openai.yaml +2 -0
- package/dist/skills/phases/review-phase/references/durable-report.md +172 -0
- package/dist/skills/phases/review-phase/references/state-graph.md +69 -0
- package/dist/skills/phases/review-phase/references/targets.md +156 -0
- package/dist/skills/phases/review-phase/scripts/review-contract.mjs +819 -0
- package/package.json +9 -63
|
@@ -33,6 +33,11 @@ If an expected artifact is missing, continue and report it.
|
|
|
33
33
|
Then:
|
|
34
34
|
|
|
35
35
|
- author the requested root, docs, and workspace guidance
|
|
36
|
+
- treat `.devpunks/specs/prompts/**` as the complete prompt-authoring contract; apply every scoped-prompt criterion it contains
|
|
37
|
+
- 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
|
+
- 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 a `Skill | What / when` table derived from its complete `SKILL.md`
|
|
40
|
+
- always link `opensrc/README.md` from scoped prompts and read it when work depends on third-party library behavior
|
|
36
41
|
- reconcile only the generated skills, prompts, lint, hooks, scripts, subagents, tools, and wiki assets in scope
|
|
37
42
|
- preserve repo-owned edits and ask before changing project policy
|
|
38
43
|
- run targeted validation for the outputs reconciled
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Glossary - Writing Great Skills
|
|
2
|
+
|
|
3
|
+
## Predictability
|
|
4
|
+
|
|
5
|
+
The degree to which a skill makes the agent follow the same process on every run. The output may vary; the behavior should not.
|
|
6
|
+
|
|
7
|
+
## Model-Invoked
|
|
8
|
+
|
|
9
|
+
A skill with a `description`, visible to the agent for autonomous use. It pays context load.
|
|
10
|
+
|
|
11
|
+
## User-Invoked
|
|
12
|
+
|
|
13
|
+
A skill with `disable-model-invocation: true`. It is reached by the human, not by autonomous discovery. It pays cognitive load.
|
|
14
|
+
|
|
15
|
+
## Description
|
|
16
|
+
|
|
17
|
+
The model-facing trigger for a model-invoked skill. It should describe branches that should cause invocation.
|
|
18
|
+
|
|
19
|
+
## Context Load
|
|
20
|
+
|
|
21
|
+
The permanent attention and token cost a model-invoked skill imposes through its description.
|
|
22
|
+
|
|
23
|
+
## Cognitive Load
|
|
24
|
+
|
|
25
|
+
The cost the human pays to remember and invoke user-invoked skills.
|
|
26
|
+
|
|
27
|
+
## Branch
|
|
28
|
+
|
|
29
|
+
A distinct way a skill can be used.
|
|
30
|
+
|
|
31
|
+
## Information Hierarchy
|
|
32
|
+
|
|
33
|
+
The ordering of skill material by how immediately the agent needs it: steps, inline reference, disclosed reference.
|
|
34
|
+
|
|
35
|
+
## Steps
|
|
36
|
+
|
|
37
|
+
Ordered actions the agent performs. Each step needs a completion criterion.
|
|
38
|
+
|
|
39
|
+
## Completion Criterion
|
|
40
|
+
|
|
41
|
+
The checkable condition that says a step is done.
|
|
42
|
+
|
|
43
|
+
## Reference
|
|
44
|
+
|
|
45
|
+
Definitions, rules, caveats, and examples the agent consults while running a skill.
|
|
46
|
+
|
|
47
|
+
## Progressive Disclosure
|
|
48
|
+
|
|
49
|
+
Moving branch-specific reference out of `SKILL.md` behind a clear pointer.
|
|
50
|
+
|
|
51
|
+
## Leading Word
|
|
52
|
+
|
|
53
|
+
A compact, pretrained concept that anchors behavior and invocation.
|
|
54
|
+
|
|
55
|
+
## Single Source of Truth
|
|
56
|
+
|
|
57
|
+
One authoritative home for one behavior or meaning.
|
|
58
|
+
|
|
59
|
+
## Duplication
|
|
60
|
+
|
|
61
|
+
The same behavior or meaning repeated in multiple places.
|
|
62
|
+
|
|
63
|
+
## No-op
|
|
64
|
+
|
|
65
|
+
An instruction that does not change behavior versus the agent default.
|
|
66
|
+
|
|
67
|
+
## Sediment
|
|
68
|
+
|
|
69
|
+
Stale layers that remain because adding feels safer than removing.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: writing-great-skills
|
|
3
|
+
description: Deprecated compatibility reference for legacy manifests that write and edit skills. Prefer writing-for-agents for new work.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Writing Great Skills
|
|
8
|
+
|
|
9
|
+
Deprecated compatibility skill. New manifests use `writing-for-agents`.
|
|
10
|
+
|
|
11
|
+
A skill wrangles predictability out of a stochastic system. Predictability means the agent follows the same process every run, not that it produces the same output.
|
|
12
|
+
|
|
13
|
+
Bold terms are defined in [GLOSSARY.md](GLOSSARY.md).
|
|
14
|
+
|
|
15
|
+
## Invocation
|
|
16
|
+
|
|
17
|
+
Two invocation modes trade different costs:
|
|
18
|
+
|
|
19
|
+
- **Model-invoked**: keep a `description` so the agent can discover and use the skill. This spends **context load** every turn.
|
|
20
|
+
- **User-invoked**: set `disable-model-invocation: true`; the human must remember and request it. This spends **cognitive load**, not context.
|
|
21
|
+
|
|
22
|
+
Use model invocation only when the agent or another skill must reach the skill on its own. Use user invocation when human judgement should be the router.
|
|
23
|
+
|
|
24
|
+
## Description
|
|
25
|
+
|
|
26
|
+
A model-invoked **description** must state what triggers the skill.
|
|
27
|
+
|
|
28
|
+
- Front-load the leading word users and other skills will actually use.
|
|
29
|
+
- Keep one trigger per branch.
|
|
30
|
+
- Remove identity prose already obvious from the skill body.
|
|
31
|
+
- Prune synonyms that describe the same branch.
|
|
32
|
+
|
|
33
|
+
## Information Hierarchy
|
|
34
|
+
|
|
35
|
+
Put material where the agent needs it:
|
|
36
|
+
|
|
37
|
+
1. **Steps** in `SKILL.md`: ordered actions with checkable completion criteria.
|
|
38
|
+
2. **Reference** in `SKILL.md`: rules or definitions every branch needs.
|
|
39
|
+
3. Disclosed **reference**: linked files loaded only when a branch needs them.
|
|
40
|
+
|
|
41
|
+
Inline what every branch needs. Disclose what only some branches need. If a required pointer is missed in practice, sharpen the pointer before inlining the whole reference.
|
|
42
|
+
|
|
43
|
+
## Splitting
|
|
44
|
+
|
|
45
|
+
Split skills only when the split earns its cost:
|
|
46
|
+
|
|
47
|
+
- By invocation: create a model-invoked skill when a distinct leading word should trigger it independently.
|
|
48
|
+
- By sequence: split steps when visible later steps cause premature completion of the current step.
|
|
49
|
+
|
|
50
|
+
Do not split merely for tidiness. Do not merge separate invocation branches just to reduce file count.
|
|
51
|
+
|
|
52
|
+
## Pruning
|
|
53
|
+
|
|
54
|
+
Keep each behavior in one source of truth.
|
|
55
|
+
|
|
56
|
+
Check each sentence:
|
|
57
|
+
|
|
58
|
+
- Does it change agent behavior?
|
|
59
|
+
- Is it still relevant?
|
|
60
|
+
- Is it duplicated elsewhere?
|
|
61
|
+
- Is a stronger leading word enough?
|
|
62
|
+
|
|
63
|
+
Delete no-ops instead of polishing them.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- MUST use `$tdd`
|
|
10
10
|
- MUST use `$codebase-design`
|
|
11
11
|
- `opensrc` provides source context for installed or external packages
|
|
12
|
-
- scoped `AGENTS.md` files provide per-path skill requirements through `
|
|
12
|
+
- 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`
|
|
13
13
|
|
|
14
14
|
## Graph map
|
|
15
15
|
|
|
@@ -34,16 +34,25 @@ Create a plan first. Never implement code in this skill.
|
|
|
34
34
|
4. Update a running decision ledger after every response set, processing each answer individually so the user never has to reconstruct state from memory.
|
|
35
35
|
5. After a whole response set is processed, emit any synthesis checkpoint required by `references/grill-ambiguity.md`.
|
|
36
36
|
6. After `$grilling` completes, continue to plan synthesis; backlog eligibility
|
|
37
|
-
remains step
|
|
37
|
+
remains step 13.
|
|
38
38
|
7. If readonly discovery has independent code paths, specs, backlog items, external docs, or hypotheses, read and use `$parallel-research` before final task synthesis.
|
|
39
39
|
8. Research with `opensrc path <package>` or `opensrc path <owner>/<repo>` plus primary-source web docs when current behavior matters.
|
|
40
|
-
9. Locate scoped `AGENTS.md` files for every planned task path
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
9. Locate scoped `AGENTS.md` files for every planned task path. Read each
|
|
41
|
+
applicable `Skill | What / when` table, select rows whose exact `What / when`
|
|
42
|
+
triggers match the task, and open each selected skill's complete `SKILL.md`
|
|
43
|
+
before finalizing task design.
|
|
44
|
+
10. For every implementation task, convert applicable scoped or named skill
|
|
45
|
+
obligations into `implementation_skill_guidance`; preserve `assigned_skills`
|
|
46
|
+
as planning provenance.
|
|
47
|
+
11. Read `references/planner-task-graph.md` and run `$swarm-planner` to produce the swarm graph and `Tn` task contract.
|
|
48
|
+
12. Read `references/tdd-shaping.md` and run `$tdd` to attach RED/GREEN targets to each `Tn` task.
|
|
49
|
+
13. Read `references/backlog-sync.md`. Sync backlog at epic/story level only when
|
|
44
50
|
backlog sync is eligible and in scope; otherwise record an explicit skip
|
|
45
51
|
reason and continue plan completion.
|
|
46
|
-
|
|
52
|
+
14. Before writing `PLAN.md`, invoke `$wait-what` on the complete plan. Proceed
|
|
53
|
+
only when its language contract passes without changing the resolved
|
|
54
|
+
decision ledger.
|
|
55
|
+
15. Read `references/stop-conditions.md` and stop exactly there.
|
|
47
56
|
|
|
48
57
|
## Workflows
|
|
49
58
|
|
|
@@ -56,13 +65,16 @@ Create a plan first. Never implement code in this skill.
|
|
|
56
65
|
5. Scan relevant routed learning artifacts before task synthesis when prior bug knowledge, domain behavior, or project conventions could affect the plan.
|
|
57
66
|
6. Resolve each task's scoped guidance from root `AGENTS.md` down to the nearest `AGENTS.md` for its `location`.
|
|
58
67
|
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.
|
|
59
|
-
8. Assign each task the
|
|
68
|
+
8. Assign each task the deduplicated union of skills whose exact `What / when`
|
|
69
|
+
triggers match in every touched scope, merging all touched scopes for
|
|
70
|
+
cross-directory tasks.
|
|
60
71
|
9. Build plan-derived worker waves: place every currently unblocked task with
|
|
61
72
|
a disjoint write scope in the same wave. Use a one-task wave only when
|
|
62
73
|
dependencies or ownership leave one task unblocked.
|
|
63
74
|
10. Normalize every task with stable ids, `depends_on`, `location`,
|
|
64
75
|
`owned_paths`, `wave_boundary`, `description`, `validation`, `status`, `log`,
|
|
65
76
|
`files edited/created`, owning-story backlog references, `assigned_skills`,
|
|
77
|
+
`implementation_skill_guidance`,
|
|
66
78
|
`tdd_status`, `tdd_target`, RED/GREEN commands, evidence fields,
|
|
67
79
|
`codebase_design_notes`, `review_mode`, `runtime_validation`,
|
|
68
80
|
`runtime_target`, `runtime_evidence`, and `runtime_cleanup`.
|
|
@@ -46,6 +46,7 @@ Every task must include:
|
|
|
46
46
|
- `backlog_item_url`
|
|
47
47
|
- `relation_mode`
|
|
48
48
|
- `assigned_skills`
|
|
49
|
+
- `implementation_skill_guidance`
|
|
49
50
|
- `tdd_status`
|
|
50
51
|
- `tdd_target`
|
|
51
52
|
- `red_command`
|
|
@@ -75,6 +76,19 @@ Do not create a new backlog item only because a task boundary exists in the plan
|
|
|
75
76
|
|
|
76
77
|
`assigned_skills` must list the skills used to shape the task during planning, not only skills expected during implementation. Skill guidance should be reflected in the task's boundary, validation, `tdd_target`, `codebase_design_notes`, and `review_mode`.
|
|
77
78
|
|
|
79
|
+
`implementation_skill_guidance` is the executor contract for the task. Assess
|
|
80
|
+
every `assigned_skills` item for implementation applicability. Every
|
|
81
|
+
implementation-applicable `assigned_skills` item maps to exactly one guidance
|
|
82
|
+
entry; omit planning-only items. Each entry carries the exact skill identity and
|
|
83
|
+
concise applicable behavior:
|
|
84
|
+
|
|
85
|
+
- `skill`: exact skill identity
|
|
86
|
+
- `applicable_behavior`: concise behavior the executor must follow while
|
|
87
|
+
implementing this task
|
|
88
|
+
|
|
89
|
+
Deduplicate by skill within one task. Do not replace `assigned_skills`; it
|
|
90
|
+
remains planning provenance.
|
|
91
|
+
|
|
78
92
|
For behavior-changing code tasks, `tdd_status` must be `required` and the task must include concrete RED/GREEN commands before implementation starts. For docs-only, formatting-only, generated-code-only, config-only, scaffold/bookkeeping-only, or truly non-testable tasks, record `tdd_status: not_applicable` or `not_testable` with an explicit `reason_not_testable`.
|
|
79
93
|
|
|
80
94
|
`red_evidence` and `green_evidence` are execution fields. They should be present but blank when the plan is created, then filled by `implement-spec` before the task is marked complete.
|
|
@@ -109,6 +123,11 @@ Use `not_applicable` for the other runtime fields when `runtime_validation: not_
|
|
|
109
123
|
- **backlog_item_url**: https://linear.app/workspace/issue/CP-128/example-story
|
|
110
124
|
- **relation_mode**: native | body-links
|
|
111
125
|
- **assigned_skills**: [`effect`, `tdd`]
|
|
126
|
+
- **implementation_skill_guidance**:
|
|
127
|
+
- **skill**: `effect`
|
|
128
|
+
**applicable_behavior**: Model the boundary with typed effects and preserve typed failure channels.
|
|
129
|
+
- **skill**: `tdd`
|
|
130
|
+
**applicable_behavior**: Capture the named public-result RED before implementation and preserve its GREEN evidence.
|
|
112
131
|
- **tdd_status**: required
|
|
113
132
|
- **tdd_target**: First failing public behavior to implement.
|
|
114
133
|
- **red_command**: Exact command expected to fail before implementation.
|
|
@@ -16,14 +16,27 @@ Before finalizing task boundaries:
|
|
|
16
16
|
|
|
17
17
|
1. List every concrete `location` each task may touch.
|
|
18
18
|
2. For each location, inspect the `AGENTS.md` chain from repo root to the nearest scoped file.
|
|
19
|
-
3.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
`assigned_skills
|
|
19
|
+
3. Read every applicable `Skill | What / when` table and select only rows whose
|
|
20
|
+
exact `What / when` trigger matches the task.
|
|
21
|
+
4. Verify each selected skill exists in `.agents/skills/` or an installed skill
|
|
22
|
+
source visible to the agent.
|
|
23
|
+
5. Open each selected skill's complete `SKILL.md` before finalizing the task's
|
|
24
|
+
boundary, validation, RED target, and review mode.
|
|
25
|
+
6. Add the merged, deduplicated union from every touched scope to the task as
|
|
26
|
+
`assigned_skills`.
|
|
27
|
+
7. For every implementation-applicable item, add exactly one
|
|
28
|
+
`implementation_skill_guidance` entry with the exact skill identity and its
|
|
29
|
+
concise applicable behavior. Planning-only items remain provenance without a
|
|
30
|
+
guidance entry.
|
|
31
|
+
|
|
32
|
+
If a task spans multiple scopes, include all selected skills from all touched
|
|
33
|
+
scopes. If a matching row names a missing skill, keep the task planned but
|
|
34
|
+
record the missing skill in risks and unresolved questions.
|
|
35
|
+
|
|
36
|
+
`assigned_skills` remains planning provenance;
|
|
37
|
+
`implementation_skill_guidance` is the executor handoff. Do not design the task
|
|
38
|
+
first and attach skills afterward. Use guidance to decide the task slice,
|
|
39
|
+
dependency, validation, and test target.
|
|
27
40
|
|
|
28
41
|
## Planner behavior
|
|
29
42
|
|
|
@@ -37,10 +50,14 @@ Preserve `$swarm-planner` behavior:
|
|
|
37
50
|
- validations per task
|
|
38
51
|
- parallel execution waves
|
|
39
52
|
- risks and mitigations
|
|
40
|
-
- explicit `assigned_skills` per task from scoped `
|
|
53
|
+
- explicit `assigned_skills` per task from exact scoped `What / when` trigger
|
|
54
|
+
matches, with task design shaped by those skills
|
|
55
|
+
- complete one-to-one `implementation_skill_guidance` for every
|
|
56
|
+
implementation-applicable assigned skill
|
|
41
57
|
- a final `plan-reviewer` subagent review for missing deps, missing
|
|
42
58
|
`owned_paths`, missing `wave_boundary`, ordering issues, edge cases, invalid
|
|
43
59
|
parallelism, unsafe write overlap, missing RED targets, missing validation,
|
|
44
|
-
missing `assigned_skills`,
|
|
60
|
+
missing `assigned_skills`, missing or duplicate implementation guidance, and
|
|
61
|
+
holes before yielding
|
|
45
62
|
|
|
46
63
|
Do not stop between ambiguity reduction and swarm graph construction unless a true blocking ambiguity remains.
|
|
@@ -34,8 +34,12 @@ implementation tasks.
|
|
|
34
34
|
1. Resolve the target spec folder by checking, in order: `apps/wiki/content/docs/project/specs/<domain>/<spec>/`, legacy `apps/wiki/specs/<domain>/<spec>/`, then `docs/specs/<domain>/<spec>/`.
|
|
35
35
|
2. Read `references/lifecycle.md` and follow the shared execution contract exactly.
|
|
36
36
|
3. Read `references/parallel.md`, parse the plan graph, and build the first unblocked wave.
|
|
37
|
-
4. Launch scoped workers for the current wave using
|
|
38
|
-
|
|
37
|
+
4. Launch scoped workers for the current wave using
|
|
38
|
+
`references/parallel-worker-brief.md`. Forward every guidance item unchanged,
|
|
39
|
+
preserving its `implementation_skill_guidance` skill and behavior fields.
|
|
40
|
+
5. After each validated wave, update `PLAN.md`, `IMPLEMENTATION-NOTES.md`, and
|
|
41
|
+
spec-linked tech debt before advancing. Require exactly one skill-application
|
|
42
|
+
evidence record per guidance entry.
|
|
39
43
|
6. Use `$codebase-design` vocabulary while reviewing each worker change: interface, seam, adapter, depth, leverage, locality, and test surface.
|
|
40
44
|
7. Resolve implementation debt as soon as it appears. Do not leave "later" work, TODOs, temporary compromises, or vague follow-up debt.
|
|
41
45
|
8. If a debt item needs a product/scope decision outside the active goal, stop and run a very small `$requirements-phase` clarification before continuing.
|
package/dist/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
## Summary
|
|
4
4
|
|
|
5
|
-
-
|
|
5
|
+
-
|
|
6
6
|
|
|
7
7
|
## Deviations From the Plan
|
|
8
8
|
|
|
9
|
-
-
|
|
9
|
+
-
|
|
10
10
|
|
|
11
11
|
## Surprises and Decisions
|
|
12
12
|
|
|
13
|
-
-
|
|
13
|
+
-
|
|
14
14
|
|
|
15
15
|
## Sanity Checks
|
|
16
16
|
|
|
@@ -18,6 +18,22 @@
|
|
|
18
18
|
|------|--------|-------|
|
|
19
19
|
| | | |
|
|
20
20
|
|
|
21
|
+
## Skill Application Evidence
|
|
22
|
+
|
|
23
|
+
Use exactly one row per `implementation_skill_guidance` entry. Allowed status:
|
|
24
|
+
`loaded | applied | not_applicable`. A `not_applicable` row must state why and
|
|
25
|
+
where the guidance was assessed.
|
|
26
|
+
|
|
27
|
+
- `loaded`: instructions were read and assessed; the how/where pointer names the
|
|
28
|
+
resulting implementation decision.
|
|
29
|
+
- `applied`: the named behavior shaped changed artifacts; point to that evidence.
|
|
30
|
+
- `not_applicable`: actual task scope made the behavior inapplicable; record why
|
|
31
|
+
and the assessment location.
|
|
32
|
+
|
|
33
|
+
| Task | Skill | Status | How/where | Not-applicable reason and assessment location |
|
|
34
|
+
|------|-------|--------|-----------|-----------------------------------------------|
|
|
35
|
+
| | | | | |
|
|
36
|
+
|
|
21
37
|
## UI Evidence Links
|
|
22
38
|
|
|
23
39
|
| Surface | Viewport | Before | After | Notes |
|
|
@@ -50,15 +66,15 @@
|
|
|
50
66
|
|
|
51
67
|
## Pre-existing Issues
|
|
52
68
|
|
|
53
|
-
-
|
|
69
|
+
-
|
|
54
70
|
|
|
55
71
|
## Out of Scope Observations
|
|
56
72
|
|
|
57
|
-
-
|
|
73
|
+
-
|
|
58
74
|
|
|
59
75
|
## Remaining Work
|
|
60
76
|
|
|
61
|
-
-
|
|
77
|
+
-
|
|
62
78
|
|
|
63
79
|
## Steering
|
|
64
80
|
|
|
@@ -58,6 +58,9 @@ Use [../assets/IMPLEMENTATION-NOTES-TEMPLATE.md](../assets/IMPLEMENTATION-NOTES-
|
|
|
58
58
|
- Keep it current during the run, not only at the end.
|
|
59
59
|
- For UI implementation changes, load [ui-screenshot-evidence.md](ui-screenshot-evidence.md) and keep `## UI Evidence Links` current.
|
|
60
60
|
- For tasks with `runtime_validation: required`, load [runtime-product-validation.md](runtime-product-validation.md) and keep `## Runtime Validation Evidence` current.
|
|
61
|
+
- Seed `## Skill Application Evidence` from every task's
|
|
62
|
+
`implementation_skill_guidance`. Preserve each guidance item unchanged and
|
|
63
|
+
create exactly one evidence row for it.
|
|
61
64
|
|
|
62
65
|
## 5. Prepare the tech-debt ledger
|
|
63
66
|
|
|
@@ -104,6 +107,9 @@ Do not create the file when nothing durable must survive the run.
|
|
|
104
107
|
- Accept missing RED/GREEN evidence only when the task has an explicit `reason_not_testable` or `tdd_status: not_applicable`.
|
|
105
108
|
- Do not accept `reason_not_testable` for forgotten RED. If code came first, recover by writing the public-result RED test, recording failure, patching to pass, and marking `tdd_status: recovered`.
|
|
106
109
|
- Treat every `review_mode` as required validation routing, never optional metadata.
|
|
110
|
+
- Forward every `implementation_skill_guidance` item unchanged to its worker.
|
|
111
|
+
Completion requires exactly one evidence record per guidance entry and no
|
|
112
|
+
unmatched record.
|
|
107
113
|
- Treat `runtime_validation`, `runtime_target`, `runtime_evidence`, and `runtime_cleanup` as a task completion contract orthogonal to `review_mode`.
|
|
108
114
|
- When `runtime_validation: required`, do not mark the task complete until the supported runtime has conclusive public-entrypoint-first evidence recorded under `## Runtime Validation Evidence`.
|
|
109
115
|
- An exact runtime blocker is an honest blocked result, not completion. Record it and keep the affected task and acceptance criterion blocked.
|
|
@@ -124,6 +130,9 @@ After each completed wave:
|
|
|
124
130
|
- record touched files in `PLAN.md`
|
|
125
131
|
- fill `red_evidence` and `green_evidence`, or the accepted non-testable reason, before marking behavior-changing work complete
|
|
126
132
|
- fill or reconcile `codebase_design_notes` when module shape, seam placement, adapters, or test surface changed
|
|
133
|
+
- reconcile `## Skill Application Evidence`: verify each skill identity, allowed
|
|
134
|
+
status, and how/where pointer against changed artifacts; for
|
|
135
|
+
`not_applicable`, verify why and where the guidance was assessed
|
|
127
136
|
- update `IMPLEMENTATION-NOTES.md` with non-obvious decisions, surprises, or deviations
|
|
128
137
|
- for UI implementation changes, record durable before/after screenshot asset links in `IMPLEMENTATION-NOTES.md`
|
|
129
138
|
- for required runtime validation, record the scenario, public action, correlation or provenance ids, observed result, durable evidence, cleanup, and status or exact blocker in `IMPLEMENTATION-NOTES.md`
|
|
@@ -197,6 +206,9 @@ Before reporting back:
|
|
|
197
206
|
- ensure **UI Evidence Links** has durable before/after asset links for UI implementation changes, or an explicit reason no pair was possible
|
|
198
207
|
- ensure **Runtime Validation Evidence** contains conclusive proof for every required task, or an exact blocker with the task and acceptance criterion still marked blocked
|
|
199
208
|
- ensure **Manual Review Checklist** has at least one concrete row, or one explicit non-applicability row
|
|
209
|
+
- ensure **Skill Application Evidence** has exact one-to-one cardinality with
|
|
210
|
+
plan guidance; allowed statuses are `loaded`, `applied`, and
|
|
211
|
+
`not_applicable`
|
|
200
212
|
- ensure **Remaining work** matches any unmet or blocked criteria
|
|
201
213
|
- ensure no in-goal debt remains as TODO, follow-up cleanup, or vague later-work text
|
|
202
214
|
- ensure every tech-debt ledger entry has exact blocker/decision/owner/next action
|
|
@@ -30,6 +30,8 @@ For each task, extract:
|
|
|
30
30
|
- acceptance criteria
|
|
31
31
|
- validation
|
|
32
32
|
- `tdd_target`
|
|
33
|
+
- `assigned_skills`
|
|
34
|
+
- `implementation_skill_guidance`
|
|
33
35
|
- `review_mode`
|
|
34
36
|
- `runtime_validation`
|
|
35
37
|
- `runtime_target`
|
|
@@ -66,6 +68,7 @@ For each unblocked task:
|
|
|
66
68
|
- use the worker-brief contract from [parallel-worker-brief.md](parallel-worker-brief.md)
|
|
67
69
|
- assign the task's owned paths
|
|
68
70
|
- assign its validation gates
|
|
71
|
+
- forward each `implementation_skill_guidance` item unchanged
|
|
69
72
|
|
|
70
73
|
## Step 5: Review and validate the wave
|
|
71
74
|
|
|
@@ -74,8 +77,11 @@ After the workers return:
|
|
|
74
77
|
1. inspect their outputs for correctness and completeness
|
|
75
78
|
2. compare the result against the task validation contract
|
|
76
79
|
3. ensure the task log and touched files were written back into `PLAN.md`
|
|
77
|
-
4. ensure
|
|
78
|
-
|
|
80
|
+
4. ensure `IMPLEMENTATION-NOTES.md` has exactly one evidence record per guidance
|
|
81
|
+
entry and no unmatched record
|
|
82
|
+
5. verify each record against the worker result and changed artifacts
|
|
83
|
+
6. ensure non-obvious deviations or surprises were written into `IMPLEMENTATION-NOTES.md`
|
|
84
|
+
7. retry or escalate failed work instead of quietly advancing
|
|
79
85
|
|
|
80
86
|
Move to the next wave only after the current wave is validated and logged.
|
|
81
87
|
|
|
@@ -100,6 +106,8 @@ A task is complete only when all of the following are true:
|
|
|
100
106
|
- `PLAN.md` reflects the completed status and execution log
|
|
101
107
|
- touched files are recorded
|
|
102
108
|
- any non-obvious deviations are reflected in `IMPLEMENTATION-NOTES.md`
|
|
109
|
+
- skill-application evidence has exact one-to-one cardinality with forwarded
|
|
110
|
+
guidance
|
|
103
111
|
|
|
104
112
|
If any of these are missing, the task is not done yet.
|
|
105
113
|
|
|
@@ -24,6 +24,8 @@ Every worker brief should include:
|
|
|
24
24
|
- `expected_red_failure`
|
|
25
25
|
- `green_command`
|
|
26
26
|
- `reason_not_testable`
|
|
27
|
+
- `assigned_skills` as planning provenance
|
|
28
|
+
- every `implementation_skill_guidance` item, unchanged
|
|
27
29
|
- `review_mode`
|
|
28
30
|
- `runtime_validation`
|
|
29
31
|
- `runtime_target`
|
|
@@ -53,7 +55,12 @@ Each worker brief should require:
|
|
|
53
55
|
14. stopping for parent clarification when a debt item requires a product/scope decision outside the assigned task
|
|
54
56
|
15. capturing and linking durable before/after screenshot evidence when the task changes UI
|
|
55
57
|
16. updating the plan entry with status, log, touched files, and gotchas before handoff closes
|
|
56
|
-
17.
|
|
58
|
+
17. loading every forwarded skill and applying its stated behavior where the
|
|
59
|
+
task evidence supports it
|
|
60
|
+
18. returning exactly one evidence record per guidance entry with skill,
|
|
61
|
+
`loaded`, `applied`, or `not_applicable` status, and a how/where pointer;
|
|
62
|
+
`not_applicable` also states why and where it was assessed
|
|
63
|
+
19. refusing completion for required runtime validation without conclusive recorded evidence; returning an exact blocker leaves the task blocked
|
|
57
64
|
|
|
58
65
|
## Worker output contract
|
|
59
66
|
|
|
@@ -67,6 +74,8 @@ Require the worker to return:
|
|
|
67
74
|
- durable UI before/after screenshot links when UI changed
|
|
68
75
|
- required runtime-validation scenario, observed evidence, cleanup result, or exact blocker
|
|
69
76
|
- validation intentionally deferred
|
|
77
|
+
- one skill-application evidence record for every forwarded guidance item,
|
|
78
|
+
preserving the exact skill identity
|
|
70
79
|
- anything blocked or risky, with exact reason and required decision
|
|
71
80
|
|
|
72
81
|
## Scope rule
|
|
@@ -18,6 +18,8 @@ unblocked. Keep the wave boundary and parent validation.
|
|
|
18
18
|
- post-wave review of worker outputs
|
|
19
19
|
- acceptance-criteria coverage plus RED -> GREEN evidence, or explicit non-testable verification
|
|
20
20
|
- task completion only after validation and plan/log updates
|
|
21
|
+
- unchanged guidance forwarding and exactly one verified skill-application
|
|
22
|
+
evidence record per guidance entry
|
|
21
23
|
- clear reporting of retries, issues, or blockers
|
|
22
24
|
|
|
23
25
|
## Loop rule
|
|
@@ -22,8 +22,9 @@ Use when:
|
|
|
22
22
|
- Read dependency docs/source/types when the finding depends on external behavior.
|
|
23
23
|
- Reject unrealistic edge cases, speculative risks, broad rewrites, and fixes that over-complicate the codebase.
|
|
24
24
|
- Prefer small fixes at the right ownership boundary; no refactor unless it clearly improves the bug class.
|
|
25
|
-
-
|
|
26
|
-
|
|
25
|
+
- Outside `review-phase`, keep going until structured review returns no
|
|
26
|
+
accepted/actionable findings. If a review-triggered fix changes code, rerun
|
|
27
|
+
focused tests and the structured review helper.
|
|
27
28
|
- For security-audit suppression changes, verify accepted findings remain auditable: suppressed findings stay in structured output, active output keeps an unsuppressible suppression notice, and aggregate findings cannot hide unrelated active risk.
|
|
28
29
|
- Never switch or override the requested review engine/model. If the review hits model capacity, retry the same command a few times with the same engine/model.
|
|
29
30
|
- Be patient with large bundles. Structured review can take up to 30 minutes while the model call is active, especially with Codex tools or web search.
|
|
@@ -42,6 +43,14 @@ Use when:
|
|
|
42
43
|
- If Gitcrawl reports a portable manifest mismatch, source/runtime DB health error, or stale portable-store checkout, run `gitcrawl doctor --json` and inspect `source_db_health`, `runtime_db_health`, and `portable_store_status` before falling back to live GitHub.
|
|
43
44
|
- Do not push just to review. Push only when the user requested push/ship/PR update.
|
|
44
45
|
|
|
46
|
+
## Bounded Review-Phase Call
|
|
47
|
+
|
|
48
|
+
When `review-phase` supplies a frozen normalized target, run this helper exactly
|
|
49
|
+
once as advisory candidate generation for that snapshot. Return its structured
|
|
50
|
+
candidates to the parent for verification. ClawPatch, when present, stays inside
|
|
51
|
+
this invocation. Do not repair findings or rerun the helper in this bounded
|
|
52
|
+
call; delivery owns later repair epochs and review passes.
|
|
53
|
+
|
|
45
54
|
## Pick Target
|
|
46
55
|
|
|
47
56
|
Dirty local work:
|
|
@@ -1,26 +1,31 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: review
|
|
3
|
-
description: Review
|
|
3
|
+
description: Review a frozen Git change or standalone plan, spec, or documentation bundle along separate Standards and Spec axes. Runs both checks in parallel and reports them side by side. Use for branch, PR, work-in-progress, or artifact review.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
Two-axis review of
|
|
6
|
+
Two-axis review of either a frozen Git/diff target or a deterministic standalone
|
|
7
|
+
plan, spec, or documentation bundle:
|
|
7
8
|
|
|
8
9
|
- **Standards** — does the code conform to this repo's documented coding standards?
|
|
9
10
|
- **Spec** — does the code faithfully implement the originating issue / PRD / spec?
|
|
10
11
|
|
|
11
|
-
Both axes run as **parallel sub-agents** so they
|
|
12
|
-
|
|
13
|
-
The issue tracker should have been provided to you — run `/setup-matt-pocock-skills` if `docs/agents/issue-tracker.md` is missing.
|
|
12
|
+
Both axes run as **parallel sub-agents** so they do not pollute each other's
|
|
13
|
+
context. Keep their outcomes separate.
|
|
14
14
|
|
|
15
15
|
## Process
|
|
16
16
|
|
|
17
|
-
### 1.
|
|
17
|
+
### 1. Freeze the target
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
When the caller supplies a normalized target, use it unchanged. Otherwise:
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
- For Git work, resolve the supplied commit, branch, tag, or actual PR base.
|
|
22
|
+
Capture `git diff <fixed-point>...HEAD` and
|
|
23
|
+
`git log <fixed-point>..HEAD --oneline` once.
|
|
24
|
+
- For a standalone plan, spec, or documentation review, sort the selected file
|
|
25
|
+
identities deterministically and use the caller's frozen ordered bundle.
|
|
22
26
|
|
|
23
|
-
Before
|
|
27
|
+
Before continuing, verify the fixed point or bundle identity and non-empty
|
|
28
|
+
inclusive scope. Fail invalid targets before dispatch.
|
|
24
29
|
|
|
25
30
|
### 2. Identify the spec source
|
|
26
31
|
|
|
@@ -61,13 +66,13 @@ Send a single message with two `Agent` tool calls. Use the `general-purpose` sub
|
|
|
61
66
|
|
|
62
67
|
**Standards sub-agent prompt** — include:
|
|
63
68
|
|
|
64
|
-
- The
|
|
69
|
+
- The frozen target identity and the command or ordered file bundle used.
|
|
65
70
|
- The list of standards-source files you found in step 3, **plus the smell baseline from step 3** pasted in full — the sub-agent has no other access to it.
|
|
66
71
|
- The brief: "Report — per file/hunk where relevant — (a) every place the diff violates a documented standard: cite the standard (file + the rule); and (b) any baseline smell you spot: name it and quote the hunk. Distinguish hard violations from judgement calls — documented-standard breaches can be hard, but baseline smells are always judgement calls, and a documented repo standard overrides the baseline. Skip anything tooling enforces. Under 400 words."
|
|
67
72
|
|
|
68
73
|
**Spec sub-agent prompt** — include:
|
|
69
74
|
|
|
70
|
-
- The
|
|
75
|
+
- The frozen target identity and the command or ordered file bundle used.
|
|
71
76
|
- The path or fetched contents of the spec.
|
|
72
77
|
- The brief: "Report: (a) requirements the spec asked for that are missing or partial; (b) behaviour in the diff that wasn't asked for (scope creep); (c) requirements that look implemented but where the implementation looks wrong. Quote the spec line for each finding. Under 400 words."
|
|
73
78
|
|
|
@@ -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.
|