Comprehensive Review of Changes
Review uncommitted changes or recent commits using specialized agents. Each agent focuses on a specific aspect of code quality.
Arguments: "$ARGUMENTS"
- •
--last N- Review the last N commits (default: uncommitted changes only) - •Aspects: code, errors, comments, types, tests, simplify, all
Context
Parse arguments to determine the diff target:
- •
If
--last Nspecified: usegit diff HEAD~N..HEAD - •
Otherwise: use
git diff HEAD(uncommitted changes) - •
Git status:
git status --short - •
Changed files:
git diff --name-only <target> - •
Diff to review:
git diff <target>
Instructions
- •
Parse arguments from "$ARGUMENTS":
- •Extract
--last Nif present (N = number of commits) - •Remaining arguments are review aspects
- •Extract
- •
Determine which agents to run based on aspects and changed files:
Aspect Agent (subagent_type) When applicable codepr-review-toolkit:code-reviewerAlways - general quality review errorspr-review-toolkit:silent-failure-hunterIf error handling code changed commentspr-review-toolkit:comment-analyzerIf comments/docs added or modified typespr-review-toolkit:type-design-analyzerIf new types introduced testspr-review-toolkit:pr-test-analyzerIf test files changed simplifycode-simplifier:code-simplifierAfter other reviews pass - •
Launch agents using the Task tool:
- •Tell each agent to review the appropriate diff range
- •Run sequentially by default, or in parallel if user specifies "parallel"
- •Each agent returns its own detailed report
- •
Aggregate and summarize the findings:
- •Critical Issues - must fix before commit
- •Important Issues - should fix
- •Suggestions - consider
- •Strengths - what's done well
Usage
code
/check-strong # Review uncommitted changes /check-strong --last 1 # Review the last commit /check-strong --last 3 # Review the last 3 commits /check-strong --last 2 code # Last 2 commits, code review only /check-strong code errors # Uncommitted changes, specific aspects /check-strong --last 5 all parallel # Last 5 commits, all agents in parallel
Notes
- •This is the thorough version - use
/checkfor quick lightweight review - •Agents analyze only the specified diff range, not the whole codebase
- •Results include specific file:line references