Dev local review

From Nebulavenus/forge-gpu · View interactive version

Dev local review is an AI agent skill from the GitHub repository Nebulavenus/forge-gpu. Run a local code review using the CodeRabbit agent before pushing to catch issues early

How to use this skill

Skill file

Run a local code review before pushing to catch issues before they hit the PR

and burn a review round. Uses the built-in CodeRabbit code-reviewer agent

(subagent_type: "coderabbit:code-reviewer") which runs entirely locally at

zero cost.

This is not a substitute for the GitHub PR review. The local review cannot

access CodeRabbit's learnings from past PRs or perform repo-wide architectural

analysis. It is a fast, free pre-push gate that catches the obvious issues.

How it works

The skill uses Claude Code's built-in coderabbit:code-reviewer agent type.

This agent reads the diff locally and performs a thorough code review covering

correctness, style, documentation accuracy, and common issues. No external

service, CLI tool, or API key required.

Usage

Invoke the skill before pushing:

/dev-local-review

Or with a specific base branch:

/dev-local-review --base develop

When to use

instead of waiting for the GitHub bot

before the first review

Workflow

1. Determine what to review

Check git status and git diff --stat to understand the scope of changes.

Use the base branch from the argument (default: main).

2. Run the CodeRabbit code-reviewer agent

Launch a single agent with subagent_type: "coderabbit:code-reviewer". The

prompt must include:

context)

Agent(
  subagent_type="coderabbit:code-reviewer",
  prompt="Review all changes compared to <base-branch>. [file list, context, instructions]"
)

3. Triage findings

When the agent returns, present findings sorted by severity (Major, Medium,

Low, Informational). For each finding, determine:

for determinism tests)

4. Fix actionable findings

Implement all actionable fixes. Do not ask about each one individually —

fix them all, then report what was changed.

5. Re-run review (MANDATORY — cannot skip)

After fixing, run the agent again to verify no new issues were introduced.

The re-run prompt should note which issues were already addressed so the

agent focuses on finding new problems.

6. Repeat until zero feedback (MANDATORY — strict rule)

This is an absolute rule with no exceptions. The review loop MUST

continue until the CodeRabbit agent returns with zero findings. The

agent executing this skill is not allowed to decide on its own that

remaining feedback is "just a nitpick" or "informational" and stop the

loop early.

The only two valid exit conditions are:

  1. The review agent reports zero findings. The loop ends. Proceed to

"After a clean local review."

  1. The agent explicitly asks the user whether to stop (presenting the

remaining findings), and the user agrees to stop. Without user

confirmation, the loop continues.

Prohibited behaviors:

automatic reasons to exit the loop

Each round of the loop:

  1. Run the CodeRabbit review agent
  2. If zero findings → exit loop (clean)
  3. If findings exist → fix actionable ones, ask user about ambiguous ones
  4. Go to step 1

If the same finding keeps reappearing after being fixed, investigate the

root cause rather than stopping the loop. If genuinely stuck, ask the user

for guidance — do not silently exit.

What it catches

Based on project experience, this review reliably catches:

also uses fminf)

malloc, etc.) — use SDL equivalents or approved project wrappers

(forge_isfinite, forge_fmaxf, forge_fminf) for cross-platform portability

What it cannot do

After a clean local review

A clean local review means the obvious issues are handled. Push and request

a full PR review:

  1. Push the commits (single push, never piecemeal)
  2. Wait for CodeRabbit's PR review — it may find additional issues the

local review missed

  1. If the PR review finds issues, use /dev-review-pr to handle them
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.