When running a code review, follow the process outlined here.
Project Context
- git installed: !
which git 2>/dev/null || echo "not installed" - CLAUDE.md: !
find . -maxdepth 1 -name "CLAUDE.md" -type f - project-discovery.md: !
find . -maxdepth 3 -name "project-discovery.md" -type f - personal config directory: !
bash "${CLAUDE_PLUGIN_ROOT}/scripts/han-config-dir.sh" 2>/dev/null || echo "$HOME/.claude" - project .han/config.md: !
cat .han/config.md 2>/dev/null || echo ""
As your first action, use the Read tool on .han/config.md inside the personal config directory path above. A read
that returns no file is no personal configuration: continue silently. When that file or the project .han/config.md
probe supplies content, apply it per config-rule.md, which governs precedence
between the two files, relative-path resolution, and what to do with a file that reads but cannot be used.
Review Constraints
Severity levels:
- Critical — Must fix before merge. Security vulnerabilities, data corruption risk, breaking API changes, data
isolation failures.
- Warning — Should fix. Bugs that don't corrupt data, significant performance issues, missing required tests,
missing error handling.
- Suggestion — Consider improving. Style improvements, optional performance gains, documentation gaps, refactoring
opportunities.
Severity calibration is governed by Step 3.3 (the authoritative home for size-based demotion). Manual findings from
Steps 4 to 6 follow the same size-based rules as agent findings classified at Step 7: Small changes escalate only
Critical findings and default uncertain ones to the lower severity, Medium changes escalate Critical and Warning, Large
changes prefer the higher severity when in doubt. Read {size} from Step 3.1. Include file_path:line_number
references and code examples for suggested fixes.
Finding caps: Manual review findings (Steps 4-6) and agent findings (Step 7) are each capped at 30 items. Prioritize
by severity: all CRIT first, then WARN, then SUGG. If either cap is exceeded, note that additional items were omitted
and another code review is recommended after addressing current items. Security findings are not capped (see
classification rubric).
Project pattern deference: A pattern that differs from general best practices but is consistent within the project
is not a review finding. Only flag deviations from the project's own conventions.
YAGNI findings are a separate, non-correcting class. Apply the two-pass YAGNI procedure documented in