@chris1807/claude-kit 2.1.3 → 2.1.4
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/package.json +1 -1
- package/templates/commands/review.md +62 -9
package/package.json
CHANGED
|
@@ -1,8 +1,30 @@
|
|
|
1
1
|
Review PR #$ARGUMENTS in the current project. Automatically:
|
|
2
2
|
|
|
3
|
-
1. **Read the full diff** — understand every change in the PR
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
1. **Read the full diff** — understand every change in the PR.
|
|
4
|
+
|
|
5
|
+
2. **Read the linked work item** and gather the full acceptance criteria.
|
|
6
|
+
|
|
7
|
+
3. **Detect rework context — do this BEFORE judging acceptance criteria.**
|
|
8
|
+
|
|
9
|
+
A small diff does not mean a small feature. The PR you are reviewing may be a rework that only addresses targeted feedback, while the bulk of the implementation already shipped in earlier PRs. Judging acceptance criteria against the current diff alone will produce false "not met" findings.
|
|
10
|
+
|
|
11
|
+
For each PR linked to the work item (via `relations` / artifact links), fetch its details and classify:
|
|
12
|
+
- **This PR** — the one being reviewed.
|
|
13
|
+
- **Prior merged PRs** — `status: completed` and merged before this PR was created. Their changes are already in the target branch.
|
|
14
|
+
- **Prior abandoned PRs** — ignore for acceptance-criteria coverage; their code is not in the target branch.
|
|
15
|
+
|
|
16
|
+
Also scan the work item comments for rework feedback posted after the most recent prior merged PR. That feedback is what the current PR is expected to address.
|
|
17
|
+
|
|
18
|
+
Treat the PR as a **rework** if any prior merged PR exists for this work item, OR if the work item has rework feedback comments dated after a prior PR. Otherwise treat it as an **initial PR**.
|
|
19
|
+
|
|
20
|
+
4. **Evaluate acceptance criteria against the cumulative work, not just this diff.**
|
|
21
|
+
|
|
22
|
+
- **Initial PR**: evaluate every acceptance criterion against this PR's diff.
|
|
23
|
+
- **Rework PR**: evaluate every acceptance criterion against (prior merged PRs' changes already in the target branch) + (this PR's diff). For criteria already satisfied by prior merged PRs, do not flag them as missing — mark them as **previously delivered** and only re-check them if this PR's diff touches the same area in a way that could regress the prior implementation.
|
|
24
|
+
|
|
25
|
+
When a rework PR's diff is small, the right question is **"does this diff correctly address the rework feedback, and does it avoid regressing the prior implementation?"** — not "does this diff implement every acceptance criterion from scratch?"
|
|
26
|
+
|
|
27
|
+
5. **Review for:**
|
|
6
28
|
- Clean Architecture boundaries (Domain has no infrastructure dependencies)
|
|
7
29
|
- Tenant/organizationId enforcement on all database queries
|
|
8
30
|
- Missing unit or integration tests for new code
|
|
@@ -11,20 +33,51 @@ Review PR #$ARGUMENTS in the current project. Automatically:
|
|
|
11
33
|
- Error handling (are exceptions caught appropriately?)
|
|
12
34
|
- Naming conventions and code style consistency
|
|
13
35
|
- Breaking changes or backwards compatibility issues
|
|
14
|
-
|
|
15
|
-
|
|
36
|
+
- **Rework-specific (if applicable):** does this diff fully address every item in the rework feedback? Does it regress anything that prior merged PRs delivered?
|
|
37
|
+
|
|
38
|
+
6. **Draft (do not post yet) the inline comments** for every finding. For each, capture: file path, line number, severity, and the exact comment body you intend to post.
|
|
39
|
+
|
|
40
|
+
7. **Draft (do not post yet) the PR-level summary comment** with:
|
|
41
|
+
- **PR type**: Initial PR or Rework (and if rework, list the prior merged PR numbers and the rework feedback being addressed)
|
|
16
42
|
- Overall assessment (ready to merge / needs changes)
|
|
17
43
|
- Count of issues by severity (critical / warning / suggestion)
|
|
18
|
-
- Acceptance criteria checklist
|
|
44
|
+
- **Acceptance criteria checklist**, with each item marked as one of:
|
|
45
|
+
- **met (this PR)** — satisfied by changes in this diff
|
|
46
|
+
- **met (prior PR #N)** — already delivered in a prior merged PR; not in this diff
|
|
47
|
+
- **not met** — not satisfied by any merged or pending change
|
|
48
|
+
- **not applicable** — out of scope for this work item
|
|
49
|
+
- **Rework feedback checklist** (rework PRs only) — each feedback item marked addressed / not addressed
|
|
19
50
|
- Test coverage assessment
|
|
20
51
|
|
|
21
|
-
|
|
52
|
+
8. **Preview every comment to me and wait for approval before posting anything to the PR.** Show:
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
Review drafted — nothing has been posted to PR #{id} yet.
|
|
56
|
+
|
|
57
|
+
## Inline comments ({count})
|
|
58
|
+
1. {file}:{line} [{severity}] — {comment body}
|
|
59
|
+
2. ...
|
|
60
|
+
|
|
61
|
+
## PR summary comment
|
|
62
|
+
{full summary body as it will appear on the PR}
|
|
63
|
+
|
|
64
|
+
Reply with one of:
|
|
65
|
+
- "approve" → post all inline comments and the summary exactly as shown above
|
|
66
|
+
- "skip" → post nothing
|
|
67
|
+
- "edit <number>: <new text>" or "skip <numbers>" → revise/drop specific items, then I'll re-preview before posting
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
**Wait for my response. Never post any comment to the PR until I reply "approve".** If I edit or skip individual items, apply the changes and re-preview the full set before asking again. "skip" with no numbers means post nothing at all — move directly to step 9 without posting.
|
|
71
|
+
|
|
72
|
+
9. If I approved, post the inline comments and the summary to the PR. If I skipped, post nothing. Either way, then ask me:
|
|
22
73
|
```
|
|
23
|
-
|
|
74
|
+
{Comments posted to PR #{id}. | No comments posted (skipped).}
|
|
75
|
+
- PR type: {Initial | Rework of prior PR(s) #N, #M}
|
|
24
76
|
- X critical issues
|
|
25
77
|
- Y warnings
|
|
26
78
|
- Z suggestions
|
|
27
|
-
- Acceptance criteria: A
|
|
79
|
+
- Acceptance criteria: A met this PR, B met in prior PRs, C not met
|
|
80
|
+
- Rework feedback (if rework): D/E addressed
|
|
28
81
|
|
|
29
82
|
Approve, Request Changes, or skip the vote?
|
|
30
83
|
```
|