How this command is triggered — by the user, by Claude, or both
Slash command
/core:reviewThe summary Claude sees in its command listing — used to decide when to auto-load this command
# Code Review Workflow ## Name han-core:review - Multi-agent code review with confidence-based filtering ## Synopsis ## Description Multi-agent code review with confidence-based filtering ## Implementation Automated multi-agent code review with confidence-based filtering. Runs parallel specialized review agents to identify high-confidence issues across quality, security, and discipline-specific concerns. ## Overview This command orchestrates multiple review agents in parallel to provide comprehensive code review: - **General Quality**: Code correctness, maintainability, testing ...
han-core:review - Multi-agent code review with confidence-based filtering
/review [arguments]
Multi-agent code review with confidence-based filtering
Automated multi-agent code review with confidence-based filtering. Runs parallel specialized review agents to identify high-confidence issues across quality, security, and discipline-specific concerns.
This command orchestrates multiple review agents in parallel to provide comprehensive code review:
Key Features:
Gathers context about the changes:
# Review scope of changes
git diff --stat main...HEAD
# Get full diff
git diff main...HEAD
# Check recent commits
git log main...HEAD --oneline
Launches multiple independent agents in parallel (single message, multiple Task calls):
han-core:code-reviewer skilldo-security-engineering:security-engineerAuto-detection based on changed files:
| File Pattern | Agent | Focus |
|---|---|---|
*.tsx, *.jsx, *.css | do-frontend-development:presentation-engineer | UI/UX, accessibility, responsiveness |
**/api/**, **/controllers/** | do-backend-development:backend-architect | API design, scalability, error handling |
**/db/**, **/*schema* | do-database-engineering:database-designer | Query optimization, migrations, indexes |
**/test/**, **/*.test.* | do-quality-assurance:test-architect | Test quality, coverage, patterns |
**/infra/**, *.tf | do-infrastructure:devops-engineer | Infrastructure, deployment, configuration |
Manual override: Specify agent explicitly if auto-detection is incorrect.
Merges findings from all agents:
Presents consolidated findings:
## Review Summary
Total files changed: X
Lines added: +X, removed: -X
Review agents: 3 (Core, Security, Frontend)
---
## Findings
### 🔴 Critical Issues (Must Fix)
**[Issue]** - `file.ts:42` - **Confidence: 95%**
- Problem: ...
- Impact: ...
- Fix: ...
### 🟡 Important Issues (Should Fix)
**[Issue]** - `file.ts:89` - **Confidence: 85%**
- Problem: ...
- Impact: ...
- Suggestion: ...
---
## Verification Status
- [ ] All automated checks passed
- [ ] Security review: 1 critical issue
- [ ] Quality review: 0 issues
- [ ] Frontend review: 2 important issues
---
## Decision: REQUEST CHANGES
Critical issues must be resolved before approval.
---
## Next Actions
1. Fix SQL injection vulnerability at `services/user.ts:42`
2. Add error handling to `components/UserForm.tsx:89`
3. Re-run /review after fixes
/review
Reviews all changes from main branch to HEAD.
/review pr 123
Uses gh CLI to fetch PR #123 and review changes.
/review --agents security,performance
Override auto-detection and run only specified agents.
/review src/services/payment.ts
Review only specified files instead of entire diff.
All findings include confidence scores to reduce noise:
| Score | Meaning | Action |
|---|---|---|
| 100% | Absolutely certain | Always report (linter errors, type errors, failing tests) |
| 90-99% | Very high confidence | Always report (clear violations, obvious bugs) |
| 80-89% | High confidence | Report (pattern violations, missing tests) |
| <80% | Medium-low confidence | Do not report (speculative, subjective) |
Filtering rules:
Dimensions:
Red flags (never approve):
Focus areas:
Severity levels:
Each Dō agent brings specialized expertise:
Frontend (presentation-engineer):
Backend (backend-architect):
Database (database-designer):
Phase 6: Review (from /feature-dev)
↓
Calls /review command
↓
Reports findings
↓
User fixes issues
↓
Re-run /review until clean
# Make changes
git add .
# Review before commit
/review
# Fix issues
# Review again
/review
# If clean, commit
/commit
# Fetch PR
gh pr checkout 123
# Review changes
/review
# Comment on PR
gh pr comment 123 --body "$(cat review-findings.md)"
For high-risk changes (auth, payments, security), run redundant reviewers:
/review --redundant
This runs:
Consensus logic: Report issue only if ≥2 reviewers agree (reduces false positives).
Include git history analysis:
/review --with-history
Adds:
Define custom agent combinations:
/review --team security-critical
Uses pre-defined team from .claude/review-teams.json:
{
"security-critical": [
"han-core:code-reviewer",
"do-security-engineering:security-engineer",
"do-security-engineering:security-engineer", // redundant
"do-infrastructure:devops-engineer"
]
}
{
"review": {
"confidenceThreshold": 80,
"autoSelectAgents": true,
"enableRedundancy": false,
"includeHistory": false,
"maxIssuesPerCategory": 10
}
}
Review agents check these files for project standards:
CLAUDE.md - Project-specific guidelinesCONTRIBUTING.md - Contribution standards.github/PULL_REQUEST_TEMPLATE.md - PR requirementsLikely causes:
Solutions:
--confidence-threshold 70 to see filtered issuesLikely causes:
Solutions:
Normal: Different perspectives are valuable
Resolution:
/feature-dev - Full feature development workflow (includes review)/commit - Smart commit after review passeshan-core:code-reviewer - Core review skill documentationdo-security-engineering - Security agent detailsnpx claudepluginhub thedotmack/han --plugin core/reviewConducts a five-axis code review of staged or recent changes covering correctness, readability, architecture, security, and performance. Outputs categorized findings with file:line references and fix recommendations.
/reviewRuns Codex code review on local git state — working tree, branch diff, or against a base ref. Supports foreground/background and scope options.
/reviewReviews code changes using OpenCodeReview (OCR) and autonomously applies high-confidence fixes. Supports workspace mode, commit range, and optional background requirement context.
/reviewRequests cross-AI peer review of phase plans from external AI CLIs (Gemini, Claude, Codex, OpenCode, Qwen, Cursor) and writes structured REVIEWS.md with per-reviewer feedback.
/reviewPerforms a multi-LLM code review with inline PR comments, checking availability of several supplemental model providers before running the enhanced review workflow.
/reviewReviews an HTML design file for anti-patterns, design principles, and accessibility issues, producing a structured markdown report.