Context
- •Branch: !
git branch --show-current - •Changed files: !
git diff --name-only HEAD - •Diff stats: !
git diff --stat HEAD
Task
Review staged/unstaged changes before commit by spawning the appropriate language-specific reviewer agent.
Language Detection
- •If the user specified a reviewer via
$ARGUMENTS(rs,ts, orpy), use that - •Otherwise, detect from the changed files above:
- •
.rsfiles →rs-reviewer - •
.ts,.svelte,.jsfiles →ts-reviewer - •
.pyfiles →py-reviewer
- •
- •If multiple languages are changed, spawn each matching reviewer in parallel
- •If no changed files or no matching reviewer, say so and stop
Execution
Spawn the matching reviewer agent(s) with the full diff as input:
- •Pass the output of
git diff HEADas the argument - •Let the agent run its diagnostics, review all sections, and produce the report
- •Present the agent's report as-is — do NOT auto-fix anything
- •If multiple reviewers ran, present each report under a language header