FocusedReview Workflow
Run a code review with a single focus area using the appropriate specialized reviewer subagent.
Steps
-
Determine the focus area from the user’s request:
- “security” →
reviewer-security - “performance” →
reviewer-performance - “nix” →
reviewer-nix - “general” or unspecified →
reviewer
- “security” →
-
Determine the review target from the user’s request:
- Uncommitted changes:
git diff+git diff --staged+ untracked files - Branch comparison:
git diff <base>..HEAD - Specific commit:
git show <sha> - PR: checkout and diff against base branch
- Folder/file snapshot: read the files directly
- Uncommitted changes:
-
Dispatch to the subagent using the
subagenttool in single mode:
Use the subagent tool with:
agent: "reviewer-security" (or whichever focus)
task: "Review the following code changes for <focus>:\n\n<diff or instructions>"
- Present findings from the subagent output to the user.
Example
User: "Security review of the last commit"
→ Determines focus: security → agent: reviewer-security
→ Gets diff: git show HEAD
→ Dispatches: subagent(agent="reviewer-security", task="Review commit abc123 for security issues. Run `git show HEAD` to see the changes.")
→ Presents structured findings