Agent skill

PR Bot Reviews

by pgplex in pgplex/pgconsole

Triage, verdict, and reply to automated PR review comments from GitHub Copilot and Greptile, then iterate until the bots have nothing left to say.

Apache-2.0Auto-check passedDevelopment

Install PR Bot Reviews

skills CLI
$ npx skills add pgplex/pgconsole --skill pr-bot-reviews -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pgplex/pgconsole pr-bot-reviews --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pgplex/pgconsole.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/pr-bot-reviews .claude/skills/pr-bot-reviews && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pr-bot-reviews
GitHub stars
155
Token cost
~2.1k tokens
SKILL.md length
926 words
Files
4 (incl. scripts, references)
Skills in repo
2
Repo updated
First seen
Licence
Apache-2.0

At a glance

Triage, verdict, and reply to automated PR review comments from GitHub Copilot and Greptile, then iterate until the bots have nothing left to say.

  • Works in 6 steps: Collect open bot comments → Verdict each comment → Apply accepted fixes → …
  • Tasks that involve Pull requests
  • SKILL.md covers Principle: you are pragmatic,…, Prerequisites, The loop and Termination, plus 1 more section
  • Runs Shell scripts from its folder; calls gh and git

What it does

PR Bot Reviews is an agent skill from pgplex/pgconsole. Triage, verdict, and reply to automated PR review comments from GitHub Copilot and Greptile, then iterate until the bots have nothing left to say. Use this whenever a pull request has feedback from Copilot or Greptile and the user wants those comments handled — e.g. "deal with the bot review comments", "address the Copilot/Greptile feedback on my PR", "go through the review bots", "resolve the automated review", or after pushing a branch and asking to "clear the AI reviewers". It judges each comment on its merits…

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including scripts and reference files (for example `references/extras.md`, `scripts/fetch-bot-threads.sh` and `scripts/wait-for-review.sh`).

It sits in Development, covering Pull requests. It works with PostgreSQL, Model Context Protocol, SQL and Supabase. The repository describes itself as: Minimal Postgres editor for speed, collaboration, and AI. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Pull requests

Example prompts

  • “deal with the bot review comments”
  • “address the Copilot/Greptile feedback on my PR”
  • “go through the review bots”
  • “/pr-bot-reviews”

Requirements

  • A Bash shell

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Collect open bot comments
  2. Verdict each comment
  3. Apply accepted fixes
  4. Reply inline on every thread
  5. Re-request both bots
  6. Wait for the fresh review

What it can do on your machine

Read from SKILL.md and the folder at commit bf166f0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • gh
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh and git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

PR Bot Reviews loads about 2.1k tokens when it runs, and up to ~2.7k if it reads all its reference files. Until then it costs about 181 tokens; SKILL.md has 926 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~181
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from pgplex/pgconsole at commit bf166f0, republished under its Apache-2.0 licence (© pgplex). 926 words, ~2,056 tokens.

Download SKILL.mdSave it as .claude/skills/pr-bot-reviews/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
pr-bot-reviews
description
Triage, verdict, and reply to automated PR review comments from GitHub Copilot and Greptile, then iterate until the bots have nothing left to say. Use this whenever a pull request has feedback from Copilot or Greptile and the user wants those comments handled — e.g. "deal with the bot review comments", "address the Copilot/Greptile feedback on my PR", "go through the review bots", "resolve the automated review", or after pushing a branch and asking to "clear the AI reviewers". It judges each comment on its merits (fixing real issues, pushing back on nitpicks), replies inline on each thread, commits and pushes fixes, re-requests review from both bots, waits for the fresh round, and repeats until clean.

PR Bot Reviews

Automated reviewers (GitHub Copilot, Greptile) leave a lot of comments. Some are real bugs worth fixing; many are nitpicks, style preferences, or simply wrong. Your job is to act like a thoughtful senior engineer reviewing the reviewer: judge each comment honestly, fix what deserves fixing, push back on the rest with clear reasoning, and drive the PR to a clean state.

This is a loop. Each round: collect the bots' open comments → verdict each → apply accepted fixes → reply inline on every thread → commit & push → re-request both bots → wait for the fresh review → repeat. Stop when a new round produces no actionable comments.

Principle: you are pragmatic, not obedient

Bots optimize for finding things to say, not for whether the change is worth making. Do not blindly comply. The bar for a change is: would a thoughtful senior engineer make this change? If yes, make it. If not, decline and say why.

  • Fix: correctness bugs, security issues, data-loss risks, resource leaks, off-by-one / null / boundary errors, broken edge cases, genuinely confusing code, clear violations of the repo's own conventions.
  • Push back: subjective style, speculative "what if" hardening for impossible inputs, premature abstraction, churn for marginal gain, suggestions that contradict project conventions (cite CLAUDE.md or surrounding code), or anything that would add complexity without real benefit. The project guidelines here explicitly favor simplicity and surgical changes — defend that.
  • Verify before trusting. Bots hallucinate. Open the file at the referenced path:line and read the surrounding code before accepting a claim. Confirm the problem is real against the actual code, not just the snippet in the comment. Reject confidently-worded comments that are factually wrong, and say so plainly.
  • Never accept a "fix" that introduces a regression or breaks a convention just to silence a bot. A wrong fix is worse than an open comment.

When you decline, be concrete and respectful — explain the reasoning, cite the code or convention, and leave room that you might have misread it. You are having a technical conversation, not winning an argument.

Prerequisites

  • gh is authenticated (gh auth status). The repo resolves from the cwd.

  • A PR exists for the current branch. Get its context:

    bash
    gh pr view --json number,headRefOid,state,url

    If there is no PR, stop and tell the user — there is nothing to review.

The bot author logins this skill targets:

Botuser.login
GitHub Copilotcopilot-pull-request-reviewer[bot]
Greptilegreptile-apps[bot]

The loop

1. Collect open bot comments

Run the helper, which returns only unresolved inline threads authored by the two bots that you have not already replied to (so old/handled threads are skipped automatically):

bash
.claude/skills/pr-bot-reviews/scripts/fetch-bot-threads.sh <pr-number>

It prints a JSON array of {thread_id, comment_id, author, path, line, body}. If the array is empty, the bots have nothing open — go to Termination.

2. Verdict each comment

For every thread, open path around line, read the real code, and decide ACCEPT (fix it) or REJECT (push back), following the pragmatism principle above. Treat each comment on its own merits — bots sometimes contradict each other. Jot a one-line rationale per comment; you'll turn these into replies.

3. Apply accepted fixes

Make the minimal correct change for each ACCEPT. Match surrounding style. Don't "improve" adjacent code. Batch all of a round's fixes together, then commit and push once so the bots re-review a single new head commit:

bash
git add -A
git commit -m "fix: address review comments"   # match the repo's commit conventions
git push
NEW_SHA="$(gh pr view --json headRefOid --jq .headRefOid)"

If a round has zero accepted fixes (all rejected), skip the commit/push — there's no new code to review. Still post your replies (step 4), then go to Termination rather than re-requesting (nothing changed for the bots to look at).

Show full SKILL.md (348 more words)Show less
4. Reply inline on every thread

Reply on each thread's root comment (comment_id from the helper). Use the REST replies endpoint; pass the body on stdin so multi-line text is clean:

bash
gh api --method POST \
  "repos/{owner}/{repo}/pulls/<pr>/comments/<comment_id>/replies" \
  -F body=@- <<'EOF'
<your reply>
EOF

Reply to both accepted and rejected comments — silence reads as ignoring the reviewer. Keep replies short and specific:

  • Accepted: Good catch — fixed in `<sha>`. <one line on what changed>.
  • Rejected: Leaving as-is: <reason>. <cite the code/convention>.

Optionally resolve threads you've definitively handled to keep the PR tidy (see references/extras.md). Resolving is not required — the fetch helper already skips threads you've replied to, so they won't reappear next round.

5. Re-request both bots

Only if you pushed a new commit in this round.

Copilot (this gh is < 2.88, so the --add-reviewer @copilot flag is unavailable — use the REST remove-then-add; re-adding an already-requested reviewer is a no-op otherwise):

bash
gh api --method DELETE "repos/{owner}/{repo}/pulls/<pr>/requested_reviewers" \
  -f "reviewers[]=copilot-pull-request-reviewer[bot]" 2>/dev/null || true
gh api --method POST   "repos/{owner}/{repo}/pulls/<pr>/requested_reviewers" \
  -f "reviewers[]=copilot-pull-request-reviewer[bot]"

Greptile (re-reviews on a mention; the handle is @greptileai):

bash
gh pr comment <pr> --body "@greptileai review"
6. Wait for the fresh review

Poll until each re-requested bot posts a review against NEW_SHA. Matching on the commit SHA (not a timestamp) is the robust signal that it's this round, not an old one. Run the helper once per bot, and give the Bash tool a 600000 ms timeout since bots can take a few minutes:

bash
.claude/skills/pr-bot-reviews/scripts/wait-for-review.sh <pr> "$NEW_SHA" "copilot-pull-request-reviewer[bot]"
.claude/skills/pr-bot-reviews/scripts/wait-for-review.sh <pr> "$NEW_SHA" "greptile-apps[bot]"

It prints ready on success or timeout after ~10 min. If it times out, re-run it to keep waiting; after a second timeout, report the stall to the user instead of looping forever. Once both are ready, go back to step 1.

Termination

Stop the loop when a fresh review round produces no actionable bot comments (the fetch helper returns [], or the only new comments are approvals / "LGTM" / pure praise). Also stop, and report, if:

  • A round has zero accepted fixes and you've replied to everything (nothing left to push), or
  • Polling stalls past two timeouts, or
  • You've run ~5 rounds without converging — surface what's still contested and let the user decide.

Then give a concise final report:

PR #<n> — bot review: <N> rounds
Accepted & fixed: <count>   (one bullet each: file:line — what changed)
Pushed back:      <count>   (one bullet each: file:line — why)
Status: clean / stalled / handed back

Files

  • scripts/fetch-bot-threads.sh — list unresolved, un-replied bot threads as JSON.
  • scripts/wait-for-review.sh — poll until a bot reviews a given commit SHA.
  • references/extras.md — resolving threads, verifying bot logins, gotchas.

© pgplex, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (scripts, references) in .claude/skills/pr-bot-reviews of pgplex/pgconsole.

  • SKILL.md
  • references/extras.md
  • scripts/fetch-bot-threads.sh
  • scripts/wait-for-review.sh

Open the folder on GitHubat commit bf166f0

Compare with similar skills

PR Bot Reviews next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

PR Bot Reviews compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
PR Bot Reviews this skillpgplex/pgconsole155—~2.1kAutomated safety check: PassApache-2.0
NubaseOtterMind/Nubase623—~2.2kAutomated safety check: NotesApache-2.0
New Lintsupabase/splinter280—~2.9kAutomated safety check: NotesNone
Requesting Code Reviewt1mmen/srtd105—~807Automated safety check: PassMIT
Mz PR ReviewMaterializeInc/materialize6.4k—~1.6kAutomated safety check: NotesCustom licence
Supabase Advanced Troubleshootingjeremylongshore/tons-of-skills-marketplace2.8k—~2.8kAutomated safety check: PassMIT

Similar skills

  • Nubase

    OtterMind/Nubase

    A skill your agent uses when the user mentions Nubase broadly, wants a backend for an AI-generated app, or needs to deploy/publish generated code online — across Database, Auth, Storage, Assets…

    623 GitHub stars~2.2k tokensUpdated 10 days ago
    Backend & APIsAuto-check: notes
  • New Lint

    supabase/splinter

    Official

    Create a new splinter lint — a SQL view that checks for a database anti-pattern.

    280 GitHub stars~2.9k tokensUpdated 9 days ago
    DevelopmentAuto-check: notes
  • Structured code review workflow for SRTD development. An agent skill from t1mmen/srtd.

    105 GitHub stars~807 tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Mz PR Review

    MaterializeInc/materialize

    Local code review of current branch vs Materialize standards.

    6.4k GitHub stars~1.6k tokensUpdated today
    DevelopmentAuto-check: notes
  • Supabase Advanced Troubleshooting

    jeremylongshore/tons-of-skills-marketplace

    Deep Supabase diagnostics: pgstatstatements for slow queries, lock debugging with pglocks, connection leak detection, RLS policy conflicts, Edge Function cold starts, and Realtime connection drop…

    2.8k GitHub stars~2.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Srtd Dev

    t1mmen/srtd

    Expert knowledge for developing the SRTD codebase itself. An agent skill from t1mmen/srtd.

    105 GitHub stars~2.3k tokensUpdated 1 mo ago
    DatabasesAuto-check passed

More from pgplex/pgconsole

  • Take Doc Screenshots

    pgplex/pgconsole

    Take screenshots of the running pgconsole app for documentation.

    155 GitHub stars~841 tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about PR Bot Reviews

What does PR Bot Reviews do?

Triage, verdict, and reply to automated PR review comments from GitHub Copilot and Greptile, then iterate until the bots have nothing left to say. PR Bot Reviews is an agent skill from pgplex/pgconsole. Triage, verdict, and reply to automated PR review comments from GitHub Copilot and Greptile, then iterate until the bots have nothing left to say.

When should I use PR Bot Reviews?

PR Bot Reviews fits situations like: tasks that involve Pull requests.

How do I install PR Bot Reviews in Claude Code?

Run `npx skills add pgplex/pgconsole --skill pr-bot-reviews -a claude-code`. Or copy the skill folder (.claude/skills/pr-bot-reviews in pgplex/pgconsole) into .claude/skills/pr-bot-reviews in your project. Claude Code loads it when a task matches its description.

How do I install PR Bot Reviews in Codex?

Run `npx skills add pgplex/pgconsole --skill pr-bot-reviews -a codex`. Or copy the skill folder (.claude/skills/pr-bot-reviews in pgplex/pgconsole) into .agents/skills/pr-bot-reviews in your project. Codex loads it when a task matches its description.

Can I use PR Bot Reviews in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pgplex/pgconsole --skill pr-bot-reviews -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pr-bot-reviews, .gemini/skills/pr-bot-reviews, .github/skills/pr-bot-reviews and .opencode/skills/pr-bot-reviews in your project.

What does PR Bot Reviews need to run?

Going by SKILL.md and its folder, PR Bot Reviews needs a shell for the scripts in its folder and the command-line tools its instructions call (gh and git). Our summary lists: A Bash shell.

Does PR Bot Reviews access the network?

SKILL.md contains no URLs. Its commands use gh and git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is PR Bot Reviews safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does PR Bot Reviews use?

PR Bot Reviews is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does PR Bot Reviews use?

About 2.1k tokens (SKILL.md is roughly 8.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 661 tokens, read only when the agent opens those files.

What are the alternatives to PR Bot Reviews?

Skills that share tags, products or a category with PR Bot Reviews: Nubase (OtterMind/Nubase, 623 stars), New Lint (supabase/splinter, 280 stars), Requesting Code Review (t1mmen/srtd, 105 stars) and Mz PR Review (MaterializeInc/materialize, 6.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains PR Bot Reviews?

pgplex (a GitHub organization) maintains it in pgplex/pgconsole, which has 155 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on August 14, 2026.

Source: pgplex/pgconsole on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.