/shia-guides:ocr-reviewfrom shia-guides
High-precision code review inspired by Alibaba Open Code Review. Script-driven pre-processing, per-file isolated review, three-layer false-positive reduction.
Ships in shia-guides. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
High-precision code review inspired by Alibaba Open Code Review.
Core insight: deterministic engineering for precision-critical steps beats prompt engineering alone. File selection, filtering, checklist routing, and context composition are handled by scripts. LLM judgment is reserved for code understanding and issue identification.
Limitations: This is not a static analyzer. It does not guarantee full coverage. It intentionally trades recall for precision. For security-critical review, pair with tests and SAST tools.
preprocess<skill-dir>/preprocess [diff-target]
staged / HEAD / branch name / commit SHA / range (a..b)--include-tests: include test files (excluded by default)Read the output. Key fields:
diff_base: the git ref to pass to file-context[REVIEW] section: one line per reviewable file — path status changed_lines checklistsIf reviewable_count: 0, report "No reviewable files changed." and stop.
For each file in [REVIEW], run:
<skill-dir>/file-context <diff_base> <filepath> <checklists...>
This outputs the complete review input: other changed files, unified diff, and composed checklists — all structured as XML-like blocks. Read the output and review it.
Review the diff against the composed checklist from <review_checklist>. Gather additional context (Read file, Bash grep/find) only to confirm or reject a suspected issue.
DO:
DO NOT:
After all findings, evaluate each as a skeptic trying to disprove it. Remove any that fails:
Prefer false negatives over false positives. When in doubt, suppress.
Per finding:
### [severity] path/to/file.ext:L15-L20 -- Short title
**Issue:** What is wrong.
**Why it matters:** Concrete consequence.
**Suggested fix:**
```diff
- existing problematic code
+ suggested replacement
Severity: `critical` | `high` | `medium` — do not report `low`.
Summary:
Files reviewed: N Findings: N (X critical, Y high, Z medium)
[findings grouped by file]
No findings: `No issues found. Looks good to me.`
checklists/config.md (opens in a new tab)checklists/general.md (opens in a new tab)checklists/manifests.md (opens in a new tab)checklists/rails.md (opens in a new tab)checklists/rspec.md (opens in a new tab)checklists/ruby.md (opens in a new tab)checklists/rust.md (opens in a new tab)checklists/sql.md (opens in a new tab)checklists/typescript.md (opens in a new tab)file-context (opens in a new tab)ocr_lib.rb (opens in a new tab)preprocess (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub riseshia/dotfiles --plugin shia-guides9 skills in this plugin
/code-styleriseshia's coding conventions. Use it always unless a project-specific convention (CLAUDE.md, style guides) exists./code-style-auditAudit Claude-authored commits across all repositories Claude has worked in against the code-style guide, reporting violations plus guide defects (missing, dead, or ambiguous rules) the violations reveal. Run on demand from the dotfiles (marketplace) repo./commitCreate a git commit with auto-generated message/draft-prCommit changes in logical units and create a Draft PR assigned to riseshia. Creates a new branch if on the base branch./stepbackStop and re-align when the conversation has drifted — re-read the actual request, surface and check assumptions, name where you went off, and re-answer short. Manual reset the user triggers with /stepback (append `deep` to also re-read the source material or spawn a fresh critic)./style-guide-lintQuality-check the code-style guide for contradictions, duplications, and ambiguous rules. Run after editing the code-style skill files.