---
name: code-review-first-pass
description: "Reviews new pull request diffs and linked issues and prepares at most five specific draft comments on likely bugs, missing tests or confusing names. Use when a pull request opens and needs a first-pass review before a person reviews it."
license: CC-BY-4.0
compatibility: "Needs access to: GitHub, Terminal."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-16"
  source: "https://botbento.com/usecases/code-review-first-pass/"
  kind: workflow
  hermes:
    tags: ["code review", "pull requests", "github"]
    category: coding
    requires_toolsets: ["terminal"]
---
# First-pass code review on pull requests

A short, specific first review on every pull request.

## When to use

Ask a bot to read each new pull request diff and leave a short list of likely bugs, missing tests and unclear names before a person reviews it. Keep the comments few and specific so reviewers do not learn to ignore them.

## Inputs

- `pull_request_diff`: The diff from the newly opened pull request.
- `linked_issue`: The issue linked to the pull request.

## Steps

1. When something happens: Pull request opens (A pull request opens)
2. Reads the diff and issue
3. Up to five comments

## Instructions

When a pull request opens, read the diff and the linked issue. Reply with at most five comments that point to a likely bug, a missing test or a confusing name. Skip style nits the linter already catches. Say when you are unsure. Save them as a draft review and wait for my approval before posting.

## Approvals

- Posting the draft review comments must wait for the person's approval.

## Output

At most five draft review comments on likely bugs, missing tests or confusing names. (format: comment)

## Source

Summarized in our own words from [How we made our AI code review bot stop leaving nitpicky comments](https://news.ycombinator.com/item?id=42451968) (Hacker News, checked 2026-10-14). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/code-review-first-pass/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
