# Review Pr Comments

> Use when a PR has unresolved bot review comments (e.g.

- Skill: `tomevault-io/review-pr-comments-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/review-pr-comments-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/review-pr-comments-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/review-pr-comments-2

---


# Review PR Bot Comments

## Overview

Fetch bot review comments → evaluate each against the rubric → implement or
decline → push → re-request review → repeat until satisfied.

**Tools:** `gh` CLI (preferred for reliability), GitHub MCP as fallback,
Read/Edit, git bash.

---

## Step 1: Identify the PR

Confirm `owner`, `repo`, and `pull_number` from context or ask.

---

## Step 2: Fetch comments

```bash
gh pr view <number> --repo <owner>/<repo> --comments
gh api repos/<owner>/<repo>/pulls/<number>/reviews
gh api repos/<owner>/<repo>/pulls/<number>/comments
```

Filter to bot accounts (usernames ending in `[bot]`). Skip any comment you
have already replied to or addressed this session. Group by file.

---

## Step 3: Read the affected code

For each comment, read at least 20 lines above and below the flagged line
before forming any opinion. Do not evaluate without reading the actual code.

---

## Step 4: Evaluate — implement or decline?

| Criterion | Decision |
| --- | --- |
| Actual bug or logic error | Implement |
| Security vulnerability (injection, auth bypass, data leak) | Implement |
| Missing error handling at a system boundary | Implement |
| Violates project patterns in `docs/patterns/` | Implement |
| Consistent with existing code; bot preference just differs | Decline |
| Meaningful performance improvement with evidence | Implement |
| Micro-optimisation with negligible real impact | Decline |
| Speculative — "consider adding" for a hypothetical future | Decline |
| Already fixed by another change this session | Decline |

When in doubt, implement. Bot reviewers have seen the full diff.

---

## Step 5a: Implementing

1. Read the full file.
2. Make the minimal change that addresses the concern.
3. **Scan for similar latent issues:** grep the codebase for the same pattern
   in other files. Apply the fix wherever found. List every file changed.
4. Commit with a conventional commit message (`fix(scope): ...`).
5. Do **not** reply on GitHub — the commit is the response.

---

## Step 5b: Declining

Reply to the comment via `gh pr comment <number> --body "..."`. The reply must:

- Acknowledge the suggestion.
- Explain in 1–3 sentences why it does not apply (project convention,
  intentional design, impossible state, out of scope).

Example:

> Thanks for the flag. We omit this null check because `get_session` is a
> SQLModel dependency that already guarantees a valid connection — guarding
> against it would be defensive coding against an impossible state.

---

## Step 6: Push and notify

```bash
git push origin <branch>
```

Then notify via:

```bash
gh pr comment <number> --body "All bot review comments addressed — see commits above. Ready for re-review."
```

---

## Step 7: Repeat

When the user says the bot has re-reviewed, return to Step 2 and process any
new comments.

Stop when:

- No new comments after a re-review, **or**
- The user explicitly signs off.

---

## What this skill does NOT do

- Does not merge or approve the PR.
- Does not implement suggestions that introduce scope creep.
- Does not chase 100% bot satisfaction — a reasoned decline is a valid outcome.

---
> Source: [marlanperumal/eggscaliber-lite](https://github.com/marlanperumal/eggscaliber-lite) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-23 -->

