Alibaba open code review

From yanacuti1121/Yana-AI · View interactive version

Alibaba open code review is an AI agent skill from the GitHub repository yanacuti1121/Yana-AI. AI-powered code review CLI từ Alibaba — phân tích git diff, comment chính xác theo dòng, tích hợp GitHub Actions / GitLab CI. Đã review cho hàng chục nghìn developer nội bộ Alibaba.

How to use this skill

Skill file

Open Code Review (OCR) là CLI review code tự động bằng AI — kết hợp deterministic engineering + agent để tránh các lỗi AI review phổ biến (bỏ sót file, comment sai dòng).

Install

npm install -g open-code-review
# Hoặc tải binary từ GitHub Releases

Config

// ~/.opencodereview/config.json
{
  "llm": {
    "provider": "anthropic",
    "apiKey": "...",
    "model": "claude-sonnet-4-6"
  }
}
ocr llm test   # kiểm tra kết nối

Usage

# Review từ HEAD~1 đến HEAD
ocr review

# Review từ branch cụ thể
ocr review --from main --to feature/my-branch

# Review 1 commit
ocr review --commit abc123

# Output JSON cho CI/CD parse
ocr review --output json

CI/CD Integration

# GitHub Actions
- name: AI Code Review
  run: |
    npm install -g open-code-review
    ocr review --from ${{ github.event.pull_request.base.sha }} \
               --to ${{ github.sha }} \
               --output json > review.json

Architecture

Web Viewer

ocr viewer   # localhost:5483 — UI xem kết quả review

Source

https://github.com/alibaba/open-code-review · Apache-2.0

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.