Install
1
Install the plugin$
npx claudepluginhub Shavakan/claude-marketplace --plugin shavakan-commandsWant just this command?
Add to a custom plugin, then install with one command.
Description
Run full AI code review cycle on current PR branch
Command Content
Code Review Cycle
Iteratively review local changes, fix issues, and re-review until clean.
Prerequisites
Verify shavakan-agents:code-reviewer is installed:
if ! claude plugins list 2>/dev/null | grep -q "shavakan-agents"; then
echo "MISSING: shavakan-agents plugin required"
echo "Install: claude plugins add shavakan-agents@shavakan"
exit 1
fi
Additional Instructions
$ARGUMENTS
Execution
Initialize
Track iterations:
iteration_count = 0issues_by_iteration = []max_iterations = 5
Review Loop
Repeat until no actionable issues or max_iterations reached:
-
Run Review
- Increment
iteration_count - Launch
shavakan-agents:code-revieweragent via Task tool - Parse findings: ๐ด Critical, ๐ High, ๐ก Medium
- Increment
-
Check Exit Condition
- If no findings at any priority โ exit loop, report success
- If
iteration_count >= max_iterationsโ exit loop, report remaining issues
-
Record Issues
- Store findings in
issues_by_iteration[iteration_count] - Include: file:line, type, description, severity
- Store findings in
-
Fix Issues
- Address all actionable issues (๐ด๐ ๐ก) in priority order
- Use Edit tool for code fixes
- Stage changes:
git add -A
-
Continue Loop
Report Summary
Output structured iteration report:
## Code Review Summary
**Iterations**: {iteration_count}
**Final Status**: {Clean | {N} issues remaining}
### Iteration Details
#### Iteration 1
- [file:line] type - description โ Fixed
- [file:line] type - description โ Fixed
#### Iteration 2
- [file:line] type - description โ Fixed
### Statistics
- Total issues found: N
- Issues fixed: M
- Time per iteration: ~Xs average
Constraints
- Max 5 iterations to prevent infinite loops
- Stop immediately if agent reports "No critical or high-priority issues found"
- Don't fix style-only issues unless explicitly flagged as actionable
- Each iteration must have at least one fix to continue (no empty iterations)
Error Handling
- Agent unavailable: Exit with install instructions
- Max iterations reached: Report remaining issues, recommend manual review
- Git dirty state: Warn but continue (agent handles this)
- Fix breaks tests: Rollback fix, mark issue as "requires manual intervention"
Stats
Stars2
Forks1
Last CommitDec 4, 2025
Actions