Skills for Real Engineers. Straight from my .agents directory.
open-code-review
Agent skill fromalibaba/open-code-review
Performs AI-powered code review on Git changes using the `ocr` CLI from alibaba/open-code-review. Use when the user asks to review code, review a pull request, review staged/unstaged changes, review a commit, or compare branches for code quality issues. Produces line-level review comments and can automatically apply fixes when requested. With appropriate review rules, can detect various types of issues including bugs, security vulnerabilities, performance problems, and code quality concerns.
How to install open-code-review
npx skills add alibaba/open-code-review# or add only this skill to Claude Code: copy the folder
skills/open-code-review/
# into
~/.claude/skills/open-code-review/ (all projects)
.claude/skills/open-code-review/ (one project)
1# Open Code Review23A skill for invoking [open-code-review](https://github.com/alibaba/open-code-review) (`ocr`) — an open-source AI code review CLI that reads Git diffs and generates structured, line-level review comments.45## Workflow67### Step 1: Gather Business Context89Analyze the review target (commits, branch, or changes) to extract concise business context. Pass this context via `--background` to improve review quality.1011### Step 2: Run Code Review1213**Do not pre-check whether `ocr` is installed** — skip probes like `command -v ocr` or `ocr --version`. Assume the CLI is available and run the review directly; that saves a tool call on the common path. Only if the review fails with `command not found` should you install it per Troubleshooting.1415Run the OCR command with appropriate flags. **Always pass business context via `--background`** when available:1617```bash18ocr review --audience agent --background "business context here" [user-args]19```2021**Argument handling:**2223- **Background context** (RECOMMENDED): use `--background "context"` or `-b "context"` to provide business context for better review quality24- **Default** (no user arguments): reviews staged, unstaged, and untracked changes (workspace mode)25- **Specific commit**: use `--commit` or `-c` to review a single commit against its parent26- **Branch comparison**: use `--from <ref>` and `--to <ref>` to review diff between two refs27…
Excerpt shown under the repository's Apache-2.0 license.
More skills in open-code-review
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
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
