@softure-ai/skills 0.2.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/WORKFLOW.md +30 -3
- package/package.json +1 -1
- package/skills/softure-archive/SKILL.md +76 -24
- package/skills/softure-archive/references/example-archive.md +106 -0
- package/skills/softure-code-review/SKILL.md +68 -18
- package/skills/softure-code-review/references/example-review.md +108 -0
- package/skills/softure-frame/SKILL.md +129 -40
- package/skills/softure-frame/references/diagnostic-lens.md +85 -0
- package/skills/softure-frame/references/examples.md +111 -0
- package/skills/softure-frame/references/pushback.md +38 -0
- package/skills/softure-impl-review/SKILL.md +138 -76
- package/skills/softure-impl-review/references/example-review.md +127 -0
- package/skills/softure-impl-review/references/rubric.md +120 -0
- package/skills/softure-impl-review/references/triage.md +124 -0
- package/skills/softure-implement/SKILL.md +116 -49
- package/skills/softure-implement/references/phase-commit.md +214 -0
- package/skills/softure-implement/references/worked-example.md +201 -0
- package/skills/softure-init/SKILL.md +59 -41
- package/skills/softure-init/references/example.md +96 -0
- package/skills/softure-init/references/templates.md +73 -0
- package/skills/softure-lesson/SKILL.md +47 -19
- package/skills/softure-lesson/references/examples.md +65 -0
- package/skills/softure-new/SKILL.md +100 -43
- package/skills/softure-new/references/example-change.md +149 -0
- package/skills/softure-new/references/placement.md +60 -0
- package/skills/softure-plan/SKILL.md +182 -50
- package/skills/softure-plan/references/plan-example.md +206 -0
- package/skills/softure-plan/references/progress-format.md +56 -2
- package/skills/softure-plan/references/questioning.md +162 -0
- package/skills/softure-plan-review/SKILL.md +211 -83
- package/skills/softure-plan-review/references/lenses.md +121 -0
- package/skills/softure-plan-review/references/review-example.md +184 -0
- package/skills/softure-prd/SKILL.md +130 -71
- package/skills/softure-prd/references/example-prd.md +233 -0
- package/skills/softure-prd/references/leak-lint.md +43 -0
- package/skills/softure-prd/references/prd-template.md +219 -0
- package/skills/softure-research/SKILL.md +73 -33
- package/skills/softure-research/references/example-research.md +106 -0
- package/skills/softure-research/references/fan-out.md +61 -0
- package/skills/softure-roadmap/SKILL.md +215 -65
- package/skills/softure-roadmap/references/example-roadmap.md +203 -0
- package/skills/softure-roadmap/references/interview.md +132 -0
- package/skills/softure-roadmap/references/slicing.md +118 -0
- package/skills/softure-rule-review/SKILL.md +83 -19
- package/skills/softure-rule-review/references/example-report.md +73 -0
- package/skills/softure-rule-review/references/scorecard.md +129 -0
- package/skills/softure-shape/SKILL.md +163 -53
- package/skills/softure-shape/references/example-shape-notes.md +192 -0
- package/skills/softure-shape/references/question-bank.md +248 -0
- package/skills/softure-worktree/SKILL.md +11 -3
- package/skills/softure-worktree/scripts/wt-integration.sh +27 -3
- package/skills/softure-worktree-manager/SKILL.md +24 -4
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# Interviewing for a plan
|
|
2
|
+
|
|
3
|
+
Read this when preparing the questions in step 3 of softure-plan. The goal of the interview is
|
|
4
|
+
not to collect opinions. It is to make every decision that would otherwise be guessed during
|
|
5
|
+
implementation, and nothing more.
|
|
6
|
+
|
|
7
|
+
## Every artifact is a decision already made
|
|
8
|
+
|
|
9
|
+
Reading change.md, research.md and frame.md counts as listening to the user. A question whose
|
|
10
|
+
answer is already written down tells the user that their earlier work was ignored.
|
|
11
|
+
|
|
12
|
+
| Inputs | small | medium | large | What to skip |
|
|
13
|
+
| --- | --- | --- | --- | --- |
|
|
14
|
+
| research | 2-4 | 4-7 | 6-10 | anything research answers, with or without evidence |
|
|
15
|
+
| research + frame | 1-2 | 2-4 | 4-6 | also every problem question: frame owns the problem, you own the solution |
|
|
16
|
+
|
|
17
|
+
The numbers are a ceiling. Stop earlier when the answers stop changing the plan. Asking fewer
|
|
18
|
+
questions because the material is good is a success, not a shortcut.
|
|
19
|
+
|
|
20
|
+
When frame.md is present, take its problem statement as the task definition. If frame marks its
|
|
21
|
+
own confidence as low, put that in `## Risks and rollback` and spend one question on how to
|
|
22
|
+
proceed: verify first (a spike phase) or plan with the risk named.
|
|
23
|
+
|
|
24
|
+
## Problem questions and solution questions
|
|
25
|
+
|
|
26
|
+
Tag every candidate question before asking it:
|
|
27
|
+
|
|
28
|
+
- **[P] problem**: what is in or out, how success is judged from the user's side, what is a
|
|
29
|
+
must-have versus a nice-to-have, how big the data or the audience is. Skip all of them when a
|
|
30
|
+
frame exists.
|
|
31
|
+
- **[S] solution**: how the system should behave in a situation the requirements did not
|
|
32
|
+
describe. Always allowed, because no upstream step decides them.
|
|
33
|
+
|
|
34
|
+
Categories worth checking, by complexity:
|
|
35
|
+
|
|
36
|
+
| Category | Tag | From |
|
|
37
|
+
| --- | --- | --- |
|
|
38
|
+
| Scope boundary (what is explicitly out) | P | small |
|
|
39
|
+
| Success as the user sees it | P | small |
|
|
40
|
+
| Priority: what gets cut first | P | small |
|
|
41
|
+
| Edge cases and failure modes (empty, duplicate, concurrent, partial) | S | small |
|
|
42
|
+
| Data model: columns, constraints, what existing rows get | S | medium |
|
|
43
|
+
| Error handling the user sees: message, retry, nothing | S | medium |
|
|
44
|
+
| Test depth: which cases deserve an e2e test | S | medium |
|
|
45
|
+
| Load and latency: expected volume, acceptable wait | S | medium |
|
|
46
|
+
| Architecture: sync or async, job or request, where state lives | S | large |
|
|
47
|
+
| Concurrency and conflicts: who wins, what the loser sees | S | large |
|
|
48
|
+
| Security model: who may call it, what they may see | S | large |
|
|
49
|
+
| Rollout and rollback: flag, staged migration, revert path | S | large |
|
|
50
|
+
| Observability: what tells us it broke in production | S | large |
|
|
51
|
+
|
|
52
|
+
Do not ask about implementation details the code already decides (the project's error type,
|
|
53
|
+
its test helpers, its folder layout). Find them and follow them.
|
|
54
|
+
|
|
55
|
+
## Shape of a question
|
|
56
|
+
|
|
57
|
+
- One question per message. Wait for the answer before the next one.
|
|
58
|
+
- 2-4 options. The recommended option comes first and carries `(Recommended)`.
|
|
59
|
+
- Each option: what it means, its strength, its trade-off, in one line. The recommendation
|
|
60
|
+
cites the code, research or a lesson that justifies it.
|
|
61
|
+
- Options are mutually exclusive unless the question says "pick all that apply".
|
|
62
|
+
- The user may always answer in their own words.
|
|
63
|
+
|
|
64
|
+
## Worked examples
|
|
65
|
+
|
|
66
|
+
### 1. Booking app, medium, [S] concurrency
|
|
67
|
+
|
|
68
|
+
> Two people can open the same free slot at once. When both confirm, what should happen?
|
|
69
|
+
>
|
|
70
|
+
> 1. **Second confirmation fails with "this slot was just taken" (Recommended).** A unique
|
|
71
|
+
> constraint on `(resource_id, starts_at)` rejects the second insert. Strength: no double
|
|
72
|
+
> booking even under load, matches how `reservations` already guards rooms
|
|
73
|
+
> (`src/db/schema.ts:88`). Trade-off: the loser re-picks a slot; we need one new message.
|
|
74
|
+
> 2. **Hold the slot for 5 minutes when it is opened.** Strength: the loser never fills in the
|
|
75
|
+
> form for nothing. Trade-off: expiring holds need a job and a cleanup path; abandoned holds
|
|
76
|
+
> hide free slots.
|
|
77
|
+
> 3. **Last confirmation wins.** Strength: no new code. Trade-off: one customer silently loses
|
|
78
|
+
> a booking they were shown as confirmed. Acceptable only if double booking is harmless.
|
|
79
|
+
|
|
80
|
+
Why it is a good question: the requirements never described this case, each option changes
|
|
81
|
+
the plan (a constraint and a message, a job, or nothing), and the recommendation points at an
|
|
82
|
+
existing pattern in the code.
|
|
83
|
+
|
|
84
|
+
### 2. Invoicing tool, small, [P] scope (skip it when a frame exists)
|
|
85
|
+
|
|
86
|
+
> Reminders go out for overdue invoices. Should partially paid invoices get one too?
|
|
87
|
+
>
|
|
88
|
+
> 1. **Yes, for the remaining amount (Recommended).** Strength: matches the overdue filter on
|
|
89
|
+
> the dashboard, which already counts partial payments as overdue (`src/invoices/status.ts:31`).
|
|
90
|
+
> Trade-off: the email must show the remaining amount, not the total.
|
|
91
|
+
> 2. **No, only invoices with no payment at all.** Strength: simpler wording. Trade-off: the
|
|
92
|
+
> dashboard and the reminders disagree about what "overdue" means.
|
|
93
|
+
|
|
94
|
+
### 3. Team wiki, large, [S] data for existing rows
|
|
95
|
+
|
|
96
|
+
> Pages get an owner. What do the 4,200 existing pages get?
|
|
97
|
+
>
|
|
98
|
+
> 1. **Their original author, backfilled in a separate, restartable step (Recommended).**
|
|
99
|
+
> Strength: every page has a real owner from day one; the backfill can resume after a
|
|
100
|
+
> failure. Trade-off: a second migration step after the column is added; pages whose author
|
|
101
|
+
> left the team need a fallback owner (the space admin).
|
|
102
|
+
> 2. **No owner (nullable column), shown as "unowned".** Strength: one small migration.
|
|
103
|
+
> Trade-off: the review reminders this change exists for skip most of the wiki.
|
|
104
|
+
|
|
105
|
+
## Bad questions, and why
|
|
106
|
+
|
|
107
|
+
- "Should we write tests?" There is one answer, and the skill already decides it (discipline).
|
|
108
|
+
- "Which folder should the new component go in?" The code decides; look at its neighbours.
|
|
109
|
+
- "Do you want reminders to be reliable?" Not a decision. Ask what happens on a failed send.
|
|
110
|
+
- "What is the scope?" Too open. Offer the two or three concrete boundaries that matter.
|
|
111
|
+
- Three questions in one message. The user answers the easiest one and the rest get lost.
|
|
112
|
+
|
|
113
|
+
## Playback before the questions
|
|
114
|
+
|
|
115
|
+
Before the first question, show that you understood. For example:
|
|
116
|
+
|
|
117
|
+
> We need overdue invoices to trigger one reminder email, three days after the due date,
|
|
118
|
+
> unless the client has reminders switched off.
|
|
119
|
+
>
|
|
120
|
+
> What shapes the plan:
|
|
121
|
+
> - invoices have no record of reminders today (`src/db/schema.ts:120`), so we need a column
|
|
122
|
+
> to make "once" true;
|
|
123
|
+
> - the mail module is already configured for receipts (research §SOFTURE modules), so sending
|
|
124
|
+
> is covered;
|
|
125
|
+
> - due dates are stored as dates without a time zone, so "three days after" needs a reference
|
|
126
|
+
> zone.
|
|
127
|
+
>
|
|
128
|
+
> Complexity: medium. Data change, a scheduled job and one settings toggle; no new service.
|
|
129
|
+
> I expect 3 phases and about 4 questions. Does that match your view?
|
|
130
|
+
|
|
131
|
+
## Pushing back
|
|
132
|
+
|
|
133
|
+
- **A factual correction.** User: "The job runner already retries failed sends." Check before
|
|
134
|
+
agreeing. If `src/jobs/runner.ts` has no retry, answer with the evidence: "I read
|
|
135
|
+
`src/jobs/runner.ts:12-40`: a failed job is logged and dropped. Do you want retries added in
|
|
136
|
+
this change, or is a failed reminder acceptable?"
|
|
137
|
+
- **Scope growth.** User: "While we are here, let us add SMS reminders." Answer: "SMS is not in
|
|
138
|
+
change.md Intent and needs a new provider. Keep it out (I will add it to out of scope and the
|
|
139
|
+
backlog), or extend change.md first?"
|
|
140
|
+
- **A costlier choice.** User picks the 5-minute hold. Say once: "That adds a job and a cleanup
|
|
141
|
+
path, so one more phase." Then plan it.
|
|
142
|
+
|
|
143
|
+
## Confirming the outline
|
|
144
|
+
|
|
145
|
+
After the approach is clear, print the phases before writing them out:
|
|
146
|
+
|
|
147
|
+
> 1. Reminder state and eligibility rule: the column and a tested query that finds due invoices.
|
|
148
|
+
> 2. Sending job: the scheduled job sends once per invoice, safe to run twice.
|
|
149
|
+
> 3. Per-client switch: the settings toggle, respected by the job, with an e2e test.
|
|
150
|
+
>
|
|
151
|
+
> Looks right (Recommended) / Adjust / Merge phases / Split phases?
|
|
152
|
+
|
|
153
|
+
## `--auto`
|
|
154
|
+
|
|
155
|
+
No question is asked. For each question you would have asked, take the recommended option and
|
|
156
|
+
record it:
|
|
157
|
+
|
|
158
|
+
```markdown
|
|
159
|
+
## Decisions (auto)
|
|
160
|
+
- Partially paid invoices get a reminder? → yes, for the remaining amount (matches the dashboard overdue filter, src/invoices/status.ts:31)
|
|
161
|
+
- Reference time zone for "three days after due"? → the account's time zone (due dates are local business dates)
|
|
162
|
+
```
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: softure-plan-review
|
|
3
3
|
description: >
|
|
4
|
-
Adversarially review a plan before any code is written: check plan.md against
|
|
5
|
-
change.md, research.md and the real codebase for missing
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
Adversarially review a plan before any code is written: check plan.md against itself,
|
|
5
|
+
against change.md, research.md and lessons, and against the real codebase for missing
|
|
6
|
+
phases, broken contracts between steps, unverifiable criteria, unsafe migrations, test
|
|
7
|
+
gaps, pattern proliferation, scope creep and ignored lessons. Every finding gets a
|
|
8
|
+
severity, a decision effort, evidence and a recommended fix; the user triages them one at
|
|
9
|
+
a time (or saves the review and resumes later); accepted fixes are applied to plan.md.
|
|
10
|
+
Use after softure-plan, before softure-implement. Triggers: "review the plan", "plan
|
|
11
|
+
review", "/softure-plan-review", "check the plan before implementation", "is this plan
|
|
12
|
+
good", "resume the plan review".
|
|
13
|
+
argument-hint: "<change-id> [--quick] [--auto]"
|
|
11
14
|
allowed-tools:
|
|
12
15
|
- Read
|
|
13
16
|
- Glob
|
|
@@ -22,7 +25,11 @@ allowed-tools:
|
|
|
22
25
|
# softure-plan-review: break the plan before it breaks the code
|
|
23
26
|
|
|
24
27
|
A plan fixed now costs minutes. The same flaw found during implementation costs a phase. This
|
|
25
|
-
skill assumes the plan is wrong somewhere and looks for where. It is not a style pass
|
|
28
|
+
skill assumes the plan is wrong somewhere and looks for where. It is not a style pass, and it
|
|
29
|
+
does not manufacture findings: a sound plan gets a short review that says so.
|
|
30
|
+
|
|
31
|
+
Where softure-impl-review asks "did we build what we planned?", this asks "will this plan
|
|
32
|
+
work?"
|
|
26
33
|
|
|
27
34
|
## Required inputs
|
|
28
35
|
|
|
@@ -31,122 +38,243 @@ skill assumes the plan is wrong somewhere and looks for where. It is not a style
|
|
|
31
38
|
- `research.md` (and `frame.md` when present), `context/foundation/lessons.md`, and
|
|
32
39
|
`context/workflow.json`.
|
|
33
40
|
|
|
41
|
+
## Resolve the input
|
|
42
|
+
|
|
43
|
+
- **No argument:** list changes with status `planned`, newest `updated` first, and ask which
|
|
44
|
+
one. In `--auto` an id is mandatory: stop and say so.
|
|
45
|
+
- **A path under `context/archive/`:** refuse. Archived plans are not reviewed.
|
|
46
|
+
- **`reviews/plan-review.md` exists with `**Decision:** pending` findings:** resume triage at
|
|
47
|
+
the first pending finding (step 9). Re-check that plan.md has not changed in the meantime;
|
|
48
|
+
if it has, re-verify those findings before asking about them.
|
|
49
|
+
- **`reviews/plan-review.md` exists, fully decided, and plan.md changed since** (refine or
|
|
50
|
+
re-plan): run a fresh review and overwrite the file. Carry an earlier finding over, with its
|
|
51
|
+
decision, only when it still applies.
|
|
52
|
+
- **`--quick`:** document-only review. Run steps 1-3 and 5-12, skip the deep verification
|
|
53
|
+
(step 4), and say "quick" in the review header. Use it for small plans or a second pass after
|
|
54
|
+
fixes, never as the only review of a plan with data changes.
|
|
55
|
+
|
|
34
56
|
## Procedure
|
|
35
57
|
|
|
36
|
-
1. **
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
- **
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
- **
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
58
|
+
1. **Load and extract.** Read plan.md fully, then change.md, research.md, frame.md and the
|
|
59
|
+
lessons whose "Applies to" touch the plan's paths. Pull out: the goal and its measurable
|
|
60
|
+
outcome, out of scope, the starting point, each phase (files, steps, contracts, tests,
|
|
61
|
+
criteria), the key decisions, the risks, and `## Progress`.
|
|
62
|
+
|
|
63
|
+
2. **Check the plan against itself.** These scans are cheap and often find the most valuable
|
|
64
|
+
defects: things the author discovered but did not follow through on.
|
|
65
|
+
- **Contradiction:** the starting point or a critical detail names a limitation that a phase
|
|
66
|
+
relies on anyway; an out-of-scope item reappears in a phase; a key decision says one thing
|
|
67
|
+
and a step does another.
|
|
68
|
+
- **Promise gap:** every capability in `## Goal` and every risk mitigation has a phase or a
|
|
69
|
+
step that builds it.
|
|
70
|
+
- **Contract breaks:** follow the data across steps and phases. If step B needs an id, a
|
|
71
|
+
token, a column or an event from step A, does A produce it, in that shape? If the plan
|
|
72
|
+
renames or reshapes anything other code or other clients consume (an API field, an
|
|
73
|
+
event, a public route, a file format), is it flagged as breaking, with a migration path?
|
|
74
|
+
Flag every place where the implementer would have to guess (which endpoint, which table,
|
|
75
|
+
which time zone).
|
|
76
|
+
- **Progress mechanics:** one `## Progress`, last; titles identical to the phases; one item
|
|
77
|
+
per Done-when bullet; no checkboxes elsewhere; gates item last in each phase
|
|
78
|
+
(`softure-plan/references/progress-format.md`). A defect is CRITICAL: softure-implement
|
|
79
|
+
resumes from this section.
|
|
80
|
+
|
|
81
|
+
3. **Ground it in the repository.** For every file, function, table, column and command the
|
|
82
|
+
plan names, verify it exists and behaves as the plan assumes (Glob, Grep, Read). Commands
|
|
83
|
+
must match `workflow.json`. A plan built on a misread file is the most common critical
|
|
84
|
+
defect. Record one grounding line for the review, for example
|
|
85
|
+
`Grounding: 9/9 paths, 6/7 symbols (findInvoiceById missing), 3/3 commands`. A miss becomes
|
|
86
|
+
a finding; a full match needs no more than the line.
|
|
87
|
+
|
|
88
|
+
4. **Verify the riskiest claims (deep mode).** Pick the 3-5 claims that would force the most
|
|
89
|
+
rework if wrong (an assumed behaviour of a library or job runner, "nothing else calls this",
|
|
90
|
+
"this table is small", "the module covers it"). Hand them to one read-only subagent, or one
|
|
91
|
+
per phase for a large plan, with a focused brief: the claims, the paths, and three tasks:
|
|
92
|
+
- confirm or contradict each claim with `path:line` evidence;
|
|
93
|
+
- **blast radius:** find callers, importers and consumers of everything the plan modifies
|
|
94
|
+
that the plan does not mention;
|
|
95
|
+
- **existing patterns:** where the plan introduces a new pattern, find whether the touched
|
|
96
|
+
area already solves it another way.
|
|
97
|
+
|
|
98
|
+
A focused brief finds more than "review this plan". Check surprising answers yourself.
|
|
99
|
+
|
|
100
|
+
5. **Walk the review lenses.** Each lens ends with PASS, WARN or FAIL, and findings only for real
|
|
101
|
+
issues. The questions and a typical finding per lens are in `references/lenses.md`: read it
|
|
102
|
+
during the first reviews in a repo and whenever a lens feels thin.
|
|
103
|
+
- **Coverage and end state:** finishing all phases achieves change.md Intent; no criterion
|
|
104
|
+
set that passes while the goal is unmet; no "last mile" left; every roadmap Unknown and
|
|
105
|
+
research risk has a phase or a mitigation.
|
|
106
|
+
- **Slicing:** every phase leaves the system green and deployable; no horizontal layers.
|
|
107
|
+
- **Verifiability:** every criterion checkable by someone else; no unmeasured "works",
|
|
108
|
+
"looks good", "handles errors".
|
|
109
|
+
- **Data and migrations:** order, locking on large tables, restartable backfill, rollback or
|
|
110
|
+
justified forward-only, a real-row criterion, collisions with other in-flight changes.
|
|
111
|
+
- **Tests:** right discipline, named edge cases, the user-visible outcome covered end to end.
|
|
112
|
+
- **Security:** authorisation on every new entry point, validated input, no secrets in code,
|
|
113
|
+
safe error messages.
|
|
114
|
+
- **Lean:** the removal test per phase and step; no premature abstraction or "while we are
|
|
115
|
+
here" work.
|
|
116
|
+
- **Fit:** no second way of doing what the codebase already does; sane dependency direction;
|
|
117
|
+
shared utilities listed with their callers; no vague "update accordingly" steps.
|
|
118
|
+
- **Cost and defaults:** paid calls, emails and compute at expected volume; changed defaults
|
|
119
|
+
that silently alter behaviour.
|
|
120
|
+
- **Scope:** nothing beyond change.md; Constraints and files owned by other changes respected.
|
|
121
|
+
- **Reuse:** SOFTURE modules (WORKFLOW.md §10) and existing helpers used, not rebuilt.
|
|
122
|
+
- **Lessons:** every matching lesson followed. A finding that repeats a known lesson weighs
|
|
123
|
+
more, not less: the team has paid for it before.
|
|
124
|
+
- **Progress format:** the result of the mechanics check in step 2.
|
|
125
|
+
|
|
126
|
+
6. **Grade every finding.**
|
|
127
|
+
- **Severity** (how bad if ignored):
|
|
128
|
+
- **CRITICAL:** implementing as written fails the Intent, loses data, opens a security
|
|
129
|
+
hole, or cannot be verified.
|
|
130
|
+
- **WARNING:** likely rework, a fragile step, or a missing test or rollback.
|
|
131
|
+
- **SUGGESTION:** a clear improvement that is cheap now.
|
|
132
|
+
- **Effort** (how much thought the decision needs, independent of severity): **low** (obvious,
|
|
133
|
+
narrow fix), **medium** (a real trade-off or a non-trivial edit), **high** (wide blast
|
|
134
|
+
radius or no clear best path). A CRITICAL with low effort is cheap; a WARNING with high
|
|
135
|
+
effort deserves time.
|
|
136
|
+
- **Fix:** default to one. Offer two only when each has an upside the other lacks (patch
|
|
137
|
+
the symptom versus remove the class of problem); never invent a weak second option. For
|
|
138
|
+
medium and high effort, give each option its strength, trade-off, confidence (high,
|
|
139
|
+
medium or low, with why) and blind spot (what is not verified). Mark one `(Recommended)`.
|
|
140
|
+
- Be specific (a path, a line, the consequence), and separate "will not work" (CRITICAL)
|
|
141
|
+
from "could be better". Cap the review at about 10 findings by consolidating related ones.
|
|
142
|
+
|
|
143
|
+
7. **Set the verdict.**
|
|
144
|
+
- **ready:** every lens PASS, or only SUGGESTIONs.
|
|
145
|
+
- **ready after fixes:** findings exist and every CRITICAL and WARNING is decided, CRITICALs
|
|
146
|
+
by an applied fix.
|
|
147
|
+
- **back to plan:** the approach itself is wrong or most lenses FAIL; patching would rewrite
|
|
148
|
+
the plan. Name the finding softure-plan must address.
|
|
149
|
+
- **back to research:** the plan rests on a fact that turned out false or unknown. Name the
|
|
150
|
+
question research must answer.
|
|
151
|
+
|
|
152
|
+
8. **Present the review.** Plain text, CRITICAL first, empty groups omitted, PASS lenses only in
|
|
153
|
+
the lens table; each finding opens with its id and title alone, then labelled lines
|
|
154
|
+
(severity as a word, effort, lens, where, problem, fix). Then ask: Triage now (Recommended) /
|
|
155
|
+
Save and triage later. "Later" writes the review with `**Decision:** pending` on the open
|
|
156
|
+
findings and keeps `status: planned`; a re-run resumes it.
|
|
157
|
+
|
|
158
|
+
9. **Triage, one finding at a time,** in severity order. Show the finding and offer:
|
|
159
|
+
- **Apply the fix** (or Fix A / Fix B): show the exact plan edit, before and after, then
|
|
160
|
+
apply it;
|
|
161
|
+
- **Fix differently:** take the user's approach, apply it;
|
|
162
|
+
- **Accept risk:** record the risk, why it is acceptable, and who accepted it;
|
|
163
|
+
- **Defer:** record where it goes (backlog file, follow-up change, roadmap item);
|
|
164
|
+
- **Dismiss:** not an issue; record the user's reason.
|
|
165
|
+
|
|
166
|
+
Recommend one. Keep momentum: the user has read the review, so take the decision and move
|
|
167
|
+
on. For a CRITICAL accepted or dismissed against your recommendation, state the consequence
|
|
168
|
+
once in one sentence, then record the user's decision. Apply SUGGESTIONs you agree with
|
|
169
|
+
directly and list them in the summary. Update the review file after every decision.
|
|
170
|
+
|
|
171
|
+
10. **Apply the fixes to plan.md.** Minimal, targeted edits: fix the defect, keep the author's
|
|
172
|
+
structure. Keep `## Progress` consistent with the phases. Before implementation starts,
|
|
173
|
+
items may still be renumbered; after a re-plan, done items stay untouched.
|
|
174
|
+
|
|
175
|
+
11. **Write `reviews/plan-review.md`** using the template below, in the `workflow.json` language.
|
|
176
|
+
A complete worked review, a triage exchange and good versus bad findings:
|
|
177
|
+
`references/review-example.md`.
|
|
178
|
+
|
|
179
|
+
12. **Update `change.md`.** Set `status: plan_reviewed`, but only when no finding is pending and
|
|
180
|
+
no CRITICAL finding remains with a decision other than "Fix now (applied)". With verdict
|
|
181
|
+
`back to plan` or `back to research`, keep `status: planned` and name the step to redo.
|
|
182
|
+
|
|
183
|
+
13. **Report:** counts per severity, the decisions (fixed, accepted, deferred, dismissed), the
|
|
184
|
+
verdict before and after triage, and the next step.
|
|
89
185
|
|
|
90
186
|
## Output template
|
|
91
187
|
|
|
92
188
|
```markdown
|
|
93
189
|
# Plan review: <change-id>
|
|
94
190
|
|
|
95
|
-
Reviewed: plan.md @ <date>. Verdict: <ready | ready after fixes | back to research>.
|
|
191
|
+
Reviewed: plan.md @ <date>. Mode: <deep | quick>. Verdict: <ready | ready after fixes | back to plan | back to research>.
|
|
192
|
+
Findings: <n> critical, <n> warning, <n> suggestion.
|
|
193
|
+
Grounding: <n/n paths, n/n symbols, n/n commands>
|
|
194
|
+
|
|
195
|
+
## Lenses
|
|
196
|
+
| Lens | Result |
|
|
197
|
+
| --- | --- |
|
|
198
|
+
| Coverage and end state | PASS |
|
|
199
|
+
| Data and migrations | FAIL (C1) |
|
|
200
|
+
| ... | ... |
|
|
96
201
|
|
|
97
202
|
## Findings
|
|
98
203
|
|
|
99
204
|
### C1 [CRITICAL] <title>
|
|
100
|
-
**Where:** Phase 2, step 3 (plan.md) · `src/x.ts:40`
|
|
205
|
+
**Effort:** high. **Lens:** Data and migrations. **Where:** Phase 2, step 3 (plan.md) · `src/x.ts:40`
|
|
101
206
|
**Problem:** <what is wrong, with evidence>
|
|
102
|
-
**
|
|
207
|
+
**Fix A (Recommended):** <approach>. Strength: ... Trade-off: ... Confidence: high, <why>. Blind spot: ...
|
|
208
|
+
**Fix B:** <approach>. Strength: ... Trade-off: ... Confidence: medium, <why>. Blind spot: ...
|
|
209
|
+
**Decision:** Fix now (applied, Fix A) - <what changed in plan.md>
|
|
103
210
|
|
|
104
211
|
### W1 [WARNING] <title>
|
|
105
|
-
...
|
|
106
|
-
**
|
|
212
|
+
**Effort:** low. **Lens:** ... **Where:** ...
|
|
213
|
+
**Problem:** ...
|
|
214
|
+
**Fix:** <one line>
|
|
215
|
+
**Decision:** Accept risk - <why acceptable; accepted by owner|auto>
|
|
107
216
|
|
|
108
217
|
### S1 [SUGGESTION] <title>
|
|
109
218
|
...
|
|
110
|
-
**Decision:** Defer
|
|
219
|
+
**Decision:** Defer - <where it goes>
|
|
111
220
|
|
|
112
|
-
##
|
|
113
|
-
|
|
221
|
+
## Triage summary
|
|
222
|
+
Fixed: C1, S1. Accepted: W1. Deferred: -. Dismissed: -. Verdict after triage: ready after fixes.
|
|
114
223
|
|
|
115
224
|
## Decisions (auto)
|
|
116
225
|
<only in --auto>
|
|
117
226
|
```
|
|
118
227
|
|
|
228
|
+
Allowed decisions: `Fix now (applied[, Fix A|B])`, `Accept risk`, `Defer`, `Dismiss`, and
|
|
229
|
+
`pending` only in a review saved for later.
|
|
230
|
+
|
|
119
231
|
## Status transitions
|
|
120
232
|
|
|
121
|
-
- `planned` → `plan_reviewed` when nothing CRITICAL remains open.
|
|
122
|
-
- Otherwise `status` stays `planned` and the report says why.
|
|
233
|
+
- `planned` → `plan_reviewed` when nothing is pending and nothing CRITICAL remains open.
|
|
234
|
+
- Otherwise `status` stays `planned` and the report says why and which step comes next.
|
|
123
235
|
|
|
124
236
|
## `--auto`
|
|
125
237
|
|
|
126
|
-
- Do not ask. Decide each finding yourself:
|
|
127
|
-
- CRITICAL and WARNING findings with a clear fix → **Fix now**;
|
|
238
|
+
- Do not ask; never save for later. Decide each finding yourself:
|
|
239
|
+
- CRITICAL and WARNING findings with a clear fix → **Fix now**; with two fixes, the
|
|
240
|
+
recommended one;
|
|
128
241
|
- SUGGESTION → Fix now when it is cheap, otherwise Defer;
|
|
129
|
-
- **Accept risk** only when the fix would contradict change.md Constraints
|
|
130
|
-
-
|
|
131
|
-
|
|
242
|
+
- **Accept risk** only when the fix would contradict change.md Constraints;
|
|
243
|
+
- **Dismiss** only when the deep verification produced evidence that the finding is a false
|
|
244
|
+
positive; cite it.
|
|
245
|
+
- Record each decision under `## Decisions (auto)` as `- <finding id> <title> → <decision>
|
|
246
|
+
(<reason>)`.
|
|
247
|
+
- `--quick` is ignored in `--auto`: autonomous runs always do the deep verification.
|
|
248
|
+
- Escalate when a CRITICAL finding needs an owner decision (scope, business rule, data
|
|
249
|
+
deletion). With verdict `back to plan` or `back to research`, stop with status `planned`
|
|
250
|
+
and name the step to redo; the orchestrator reads that finding before re-running.
|
|
132
251
|
|
|
133
252
|
## Quality checklist
|
|
134
253
|
|
|
135
|
-
- [ ]
|
|
136
|
-
|
|
137
|
-
- [ ] Every
|
|
254
|
+
- [ ] The internal consistency scans (contradiction, promise gap, contract breaks, Progress
|
|
255
|
+
mechanics) were run.
|
|
256
|
+
- [ ] Every named file, symbol, table and command was verified in the code; the grounding line
|
|
257
|
+
is in the review.
|
|
258
|
+
- [ ] In deep mode, the riskiest claims, the blast radius and existing patterns were checked.
|
|
259
|
+
- [ ] Every lens has a result; findings exist only for real issues.
|
|
260
|
+
- [ ] Every finding has a severity, an effort, evidence, a fix and a decision.
|
|
138
261
|
- [ ] Accepted fixes are actually applied to plan.md, and Progress is still consistent.
|
|
139
|
-
- [ ] No CRITICAL finding is open while the status is `plan_reviewed`.
|
|
262
|
+
- [ ] No CRITICAL finding is open and nothing is pending while the status is `plan_reviewed`.
|
|
140
263
|
|
|
141
264
|
## Anti-patterns
|
|
142
265
|
|
|
143
266
|
- Reviewing prose instead of checking the plan against the code.
|
|
144
|
-
- Leaving findings without decisions ("consider
|
|
267
|
+
- Leaving findings without decisions ("consider...", "might want to...").
|
|
145
268
|
- Inflating style nits to WARNING, or hiding a real risk as a SUGGESTION.
|
|
269
|
+
- Manufacturing findings, or a second fix option, to look thorough.
|
|
270
|
+
- Arguing with the user after they decided. State the consequence once, then record.
|
|
146
271
|
- Rewriting the whole plan. Fix the defects and keep the author's structure.
|
|
147
272
|
- Approving a plan whose criteria cannot be checked.
|
|
148
273
|
|
|
149
274
|
## Handoff
|
|
150
275
|
|
|
151
|
-
- Verdict ready: `softure-implement <change-id>`, starting at phase 1
|
|
152
|
-
|
|
276
|
+
- Verdict ready or ready after fixes: `softure-implement <change-id>`, starting at phase 1 (or
|
|
277
|
+
at the first open Automated item after a re-plan).
|
|
278
|
+
- Back to plan: `softure-plan <change-id>`, focused on the named finding.
|
|
279
|
+
- Back to research: `softure-research <change-id>`, focused on the named question.
|
|
280
|
+
- Review saved for later: `softure-plan-review <change-id>` resumes the triage.
|