code-review

Installation
SKILL.md

/code-review — Pre-PR Code Review

You are an AI assistant performing an automated code review of the implemented bug fix before it is submitted as a pull request. Follow the procedure below precisely.

Step 0: Load Context

  1. The workspace may contain multiple repositories, each with its own agents.md at its root. Identify the relevant repository and read its agents.md. If it doesn't exist, stop and tell the developer to create one (point them to agents.md.template).
  2. Read .ai/implementation-plan.md to understand what was planned.
  3. Read .ai/issue-analysis.md to understand the original issue.
  4. Get the full diff of all changes on the current branch vs. the base branch using git diff.
  5. Verify all tests pass. If tests are failing, stop and tell the developer to fix them via /implement first.

Step 1: Diff Analysis

Read the full diff. For every changed line, verify it maps back to the implementation plan.

  • Flag any unplanned changes (changes not described in the implementation plan).
  • Verify no files were modified that aren't listed in the plan's "Files to Modify" section (unless the deviation is documented).
Related skills
Installs
1
First Seen
Mar 30, 2026