Requesting code review

From event4u-app/agent-config · View interactive version

Requesting code review is an AI agent skill from the GitHub repository event4u-app/agent-config. Use when asking for a review or creating a PR — self-review first, frame the right context, test plan included — even when the user just says 'open a PR' or 'ready to merge'.

How to use this skill

Skill file

requesting-code-review

When to use

eyes on it"

context-switch smoothly

diff

Do NOT use when:

requires green tests and a clean diff

Goal

Give the reviewer exactly the context they need — what changed, why,

how to verify — without forcing them to reconstruct your thought

process. A well-framed review request halves review time and

reduces back-and-forth on missing context.

The Iron Law

NEVER REQUEST REVIEW FROM A BRANCH YOU HAVE NOT REVIEWED YOURSELF.

Self-review is the single cheapest filter. It catches the issues a

human reviewer would flag in round one, so the human reviewer can

spend time on the issues only they can see.

Procedure

1. Self-review first

Before asking anyone else:

you remember touching

console.log, commented-out blocks

IDE configs, .env changes

reviewer flags them

Use the CODE0 command

as the structured walk-through.

2. Establish the diff baseline

Determine the correct base commit:

# Simple branch from main
BASE=$(git merge-base HEAD main)

# Stacked PR — parent branch is base, not main
BASE=$(git merge-base HEAD <parent-branch>)

HEAD=$(git rev-parse HEAD)

The base matters for the reviewer's diff view — wrong base = they

review 80 unrelated commits.

3. Write the review request context

Any review request must answer four questions. If any is missing, the

reviewer will ask — and that round trip is preventable.

| Question | Where it lives |

|---|---|

| What changed? | PR title (imperative, Conventional Commits) + summary bullets |

| Why? | Link to ticket / issue / Sentry event / user message |

| How do I verify it? | Test plan: commands to run, URLs to hit, expected behavior |

| What should I look at first? | Highlights: "pay attention to X because Y" or "skip Z, it is generated" |

See CODE0

for the full structured template, and

CODE0

for the title format.

4. Keep the PR reviewable in size

PR) so reviewers can handle each in one sitting

skip them

cannot isolate the risk

5. Pick the right reviewer set

one

gate human review on bot completion

If the project has a CODEOWNERS file, GitHub handles this

automatically — do not override without a reason.

6. Send and wait — do not nudge early

After the PR is open:

schedule

appropriate; do not re-open or force-push to bump the PR list

When review comments arrive → switch to

CODE0.

Output format

When handing the review request to the reviewer (PR body, Slack, email):

  1. Title — Conventional Commit imperative
  2. Summary — 2–5 bullets of what changed
  3. Motivation — why, with ticket / Sentry / user-message link
  4. Test plan — exact commands or URLs + expected result
  5. Risk / scope notes — what the reviewer should pay attention to
  6. Non-goals — what this PR deliberately does not do
  7. Screenshots / logs — when UI or runtime behavior changed

Gotchas

green or explain the specific failure

reviewer has no way to confirm "no behavior change" without reading

every line

— use deliberately, not by habit

reviewers need the why

team) without a longer pairing — they cannot do a deep review cold

finish a round before rebasing when possible

Do NOT

explicitly documenting "CI broken, please eyeball X only")

note to the reviewer

approvals

Anti-patterns

When to hand over to another skill / command

CODE0

CODE0

Validation checklist

Before asking for review:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.