You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .claude/skills/pr-review/SKILL.md
+75-2Lines changed: 75 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,34 @@ If it fails, report as **Must Fix** before reviewing anything else.
38
38
39
39
7. Output a structured review (format below).
40
40
41
-
8. After the review output, print:
41
+
8. Post inline comments to the PR for every ⚠️ and ❌ finding that references a specific file and line number. Before posting, deduplicate against all existing comments (resolved or not) to avoid re-posting anything already raised:
42
+
43
+
```bash
44
+
# Get the head SHA, repo, and all existing review comments (resolved and unresolved)
For each finding, check whether any existing comment (resolved or not) already covers the same file + line (or contains substantially the same text). Skip any finding that is already covered. Then bundle the remaining new comments into a single review submission:
51
+
52
+
```bash
53
+
gh api repos/$REPO/pulls/$ARGUMENTS/reviews \
54
+
--method POST \
55
+
--field commit_id="$HEAD_SHA" \
56
+
--field event="COMMENT" \
57
+
--field "comments[][path]=<file path>" \
58
+
--field "comments[][line]=<line number>" \
59
+
--field "comments[][side]=RIGHT" \
60
+
--field "comments[][body]=<finding text>
61
+
62
+
🤖 Posted by [Claude Code](https://claude.ai/code)" \
63
+
# repeat --field "comments[]..." for each new finding
64
+
```
65
+
66
+
Use the exact file path from the diff and the line number in the current version of the file (RIGHT side). Each comment body should contain the full finding description. Always append the attribution footer `\n\n🤖 Posted by [Claude Code](https://claude.ai/code)` to each comment. If no new actionable findings exist (only ✅ items or all already commented), skip this step.
67
+
68
+
9. After the review output, print:
42
69
43
70
```
44
71
---
@@ -190,4 +217,50 @@ When the user says `dismiss: <title> — <reason>` (in any form — "dismiss the
190
217
**Dismissed by**: <gituser.name>
191
218
```
192
219
193
-
4. Confirm to the user what was added and that it will be suppressed in future reviews.
220
+
4. If the current session reviewed a PR, find any open (unresolved) comment thread on that PR matching the dismissed issue. Use the GraphQL API to locate threads and resolve the matching one, replying with the dismissal reason first:
0 commit comments