agent-reviews 0.5.1 → 0.5.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-reviews",
|
|
3
3
|
"description": "Manage GitHub PR review comments from Claude Code. Automatically triage, fix, and respond to bot findings.",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.2",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Paul Bakaus",
|
|
7
7
|
"url": "https://github.com/pbakaus"
|
package/package.json
CHANGED
|
@@ -3,14 +3,17 @@ name: agent-reviews
|
|
|
3
3
|
description: Review and fix PR review bot findings on current PR, loop until resolved. Fetches unanswered bot comments, evaluates each finding, fixes real bugs, dismisses false positives, and replies to every comment with the outcome.
|
|
4
4
|
license: MIT
|
|
5
5
|
compatibility: Requires git and gh (GitHub CLI) installed. Designed for Claude Code.
|
|
6
|
+
allowed-tools: Bash(node scripts/agent-reviews.js *) Bash(gh pr view *)
|
|
6
7
|
metadata:
|
|
7
8
|
author: pbakaus
|
|
8
|
-
version: "0.5.
|
|
9
|
+
version: "0.5.2"
|
|
9
10
|
homepage: https://github.com/pbakaus/agent-reviews
|
|
10
11
|
---
|
|
11
12
|
|
|
12
13
|
Automatically review, fix, and respond to findings from PR review bots on the current PR. Uses a deterministic two-phase workflow: first fix all existing issues, then poll once for new ones.
|
|
13
14
|
|
|
15
|
+
**Path note:** All `scripts/agent-reviews.js` references below are relative to this skill's directory (next to this SKILL.md file). Run them with `node`.
|
|
16
|
+
|
|
14
17
|
## Phase 1: FETCH & FIX (synchronous)
|
|
15
18
|
|
|
16
19
|
### Step 1: Identify Current PR
|
|
@@ -23,9 +26,7 @@ If no PR exists, notify the user and exit.
|
|
|
23
26
|
|
|
24
27
|
### Step 2: Fetch All Bot Comments (Expanded)
|
|
25
28
|
|
|
26
|
-
|
|
27
|
-
scripts/agent-reviews.js --bots-only --unanswered --expanded
|
|
28
|
-
```
|
|
29
|
+
Run `scripts/agent-reviews.js --bots-only --unanswered --expanded`
|
|
29
30
|
|
|
30
31
|
This shows only unanswered bot comments with full detail: complete comment body (no truncation), diff hunk (code context), and all replies. Each comment shows its ID in brackets (e.g., `[12345678]`).
|
|
31
32
|
|
|
@@ -94,23 +95,16 @@ After evaluating and fixing ALL unanswered comments:
|
|
|
94
95
|
Now that the commit hash exists, reply to every processed comment:
|
|
95
96
|
|
|
96
97
|
**For each TRUE POSITIVE:**
|
|
97
|
-
```bash
|
|
98
|
-
scripts/agent-reviews.js --reply <comment_id> "Fixed in {hash}.
|
|
99
98
|
|
|
100
|
-
{Brief description of the fix}"
|
|
101
|
-
```
|
|
99
|
+
Run `scripts/agent-reviews.js --reply <comment_id> "Fixed in {hash}. {Brief description of the fix}"`
|
|
102
100
|
|
|
103
101
|
**For each FALSE POSITIVE:**
|
|
104
|
-
```bash
|
|
105
|
-
scripts/agent-reviews.js --reply <comment_id> "Won't fix: {reason}
|
|
106
102
|
|
|
107
|
-
{Explanation of why this is intentional or not applicable}"
|
|
108
|
-
```
|
|
103
|
+
Run `scripts/agent-reviews.js --reply <comment_id> "Won't fix: {reason}. {Explanation of why this is intentional or not applicable}"`
|
|
109
104
|
|
|
110
105
|
**For each SKIPPED:**
|
|
111
|
-
|
|
112
|
-
scripts/agent-reviews.js --reply <comment_id> "Skipped per user request"
|
|
113
|
-
```
|
|
106
|
+
|
|
107
|
+
Run `scripts/agent-reviews.js --reply <comment_id> "Skipped per user request"`
|
|
114
108
|
|
|
115
109
|
**DO NOT start Phase 2 until all replies are posted.**
|
|
116
110
|
|
|
@@ -122,11 +116,7 @@ scripts/agent-reviews.js --reply <comment_id> "Skipped per user request"
|
|
|
122
116
|
|
|
123
117
|
Launch the watcher in the background. It polls every 30 seconds and exits after 10 minutes of inactivity (no new comments):
|
|
124
118
|
|
|
125
|
-
|
|
126
|
-
scripts/agent-reviews.js --watch --bots-only
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
This runs as a background task.
|
|
119
|
+
Run `scripts/agent-reviews.js --watch --bots-only` as a background task.
|
|
130
120
|
|
|
131
121
|
**CRITICAL: DO NOT cancel the background task early. Let it complete its full cycle.**
|
|
132
122
|
|