Review Code Before You Merge

Your branch reviewed, the findings fixed and a description reviewers can follow.

You start withA branch with changes you want checked before a teammate reviews them
You end withA pull request with the findings fixed and a description a reviewer can follow in a minute
Step 1

Use CodeRabbit

Reviews your branch from the terminal and lists each problem with its file, line and a fix.

Open CodeRabbit

Save it as coderabbit-review.txt. On your branch run cr review --base main > coderabbit-review.txt, then tell your agent to work through the file.

Step 2

Give your agent the Code Review and Quality skill

Has your agent sort the findings by severity, fix what blocks a merge and note how it was tested.

The skill is in this folder, at skill/code-review-and-quality. Copy it into your agent's skills folder, or install it from its maker:

npx skills add addyosmani/agent-skills --skill code-review-and-quality

Save it as review.md. Paste review.md into {{Why you made the change}} and git diff main into {{Diff}}; your template or none goes in {{Your team's PR template}}.

Step 3

Run the Pull Request Description prompt

Turns the review note and the diff into a title, a description and what a reviewer would still flag.

Any capable chat assistant writes a clear description from a pasted diff; editor assistants and coding agents that read your branch can draft it without the copy and paste.