Tooluck logoTooluck
SKILL.md

open-code-review-delegate

Agent skill fromalibaba/open-code-review

Delegation mode for open-code-review (OCR). Instead of OCR calling an LLM endpoint, this skill instructs the host agent to perform the code review itself, using OCR only for deterministic engineering: file selection and rule resolution. Use when the host agent should drive the review with its own LLM capabilities.

How to install open-code-review-delegate

install open-code-review-delegate
# install the open-code-review pack with the skills CLI
npx skills add alibaba/open-code-review

# or add only this skill to Claude Code: copy the folder

skills/open-code-review-delegate/

# into

~/.claude/skills/open-code-review-delegate/ (all projects)

.claude/skills/open-code-review-delegate/ (one project)

skills/open-code-review-delegate/SKILL.md

Apache-2.0Full file
1# Open Code Review — Delegation Mode
2
3A skill for performing AI code review where OCR provides deterministic engineering (file filtering, rule resolution) and the host agent performs the actual review using its own intelligence and tools.
4
5## Workflow
6
7### Step 1: Preview — Determine What to Review
8
9```bash
10ocr delegate preview --format json [--from <ref> --to <ref>] [--commit <hash>] [--exclude <patterns>]
11```
12
13This outputs:
14- **mode** (workspace / range / commit)
15- **from / to / commit / merge_base** — ref metadata for constructing git commands
16- **Reviewable file list** — paths, status, insertions/deletions
17- **Excluded files** — with exclusion reason
18
19**Common invocations:**
20
21| Scenario | Command |
22|----------|---------|
23| Workspace changes | `ocr delegate preview` |
24| Branch comparison | `ocr delegate preview --from main --to feature` |
25| Single commit | `ocr delegate preview -c abc123` |
26
27### Step 2: Get Rules for Files
28
29```bash
30ocr delegate rule --format json <path1> <path2> ...
31```
32
33Pass the reviewable file paths from Step 1. Output is grouped by rule content — files sharing the same rule appear under one group, avoiding repetition.
34
35### Step 3: Get Diffs
36
37Choose the diff command using the mode and refs from Step 1. Use `git --no-pager` for every Git call during the review.
38
39The diff commands disable external diff programs, text conversion, and color to produce plain patches.
40
41**Range mode** (merge_base provided in preview output):
42```bash
43…

Excerpt shown under the repository's Apache-2.0 license.

More skills in open-code-review

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates