All recipes

Code review recipe

Review a diff before you open the PR

Review a diff for bugs, missing tests, and assumptions before opening your PR.

Step 1. Install the skill

Run this in your terminal. Select your agent and installation scope when prompted.

npx skills add latestaiagents/agent-skills --skill ai-code-reviewer

Requires Node.js and npm. CLI documentation

Step 2. Start with this prompt

Open your project in your agent and add any task-specific context.

Review my current diff before I open a pull request. Trace the affected code paths, identify correctness issues and missing tests, and rank findings by severity. For each finding, include the file, line, impact, and a concrete fix. Distinguish confirmed bugs from questions. Do not change files yet.

More recipes

Debugging

Find the root cause of a failure

Agent building

Design an MCP tool an agent can use