Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

review

БесплатноЗапускает вложенные скриптыНе проверен

Code review with semantic diffs, expert routing, and auto-TaskCreate. Triggers on: code review, review changes, check code, review PR, security audit.

0xDarkMatterот 0xDarkMatter★ 86 звёзд на GitHub

Об этом скилле

Review Skill - AI Code Review

Perform comprehensive code reviews on staged changes, specific files, or pull requests. States the change's intent first, dispatches general-purpose reviewers that preload the relevant -ops skill based on file types, then runs a lead-judgment pass that sorts every finding before the user sees it, and creates tasks for the ones to act on.

Architecture

review [target] [--focus] [--depth]
    │
    ├─→ Step 1: Determine Scope
    │     ├─ No args → git diff --cached (staged)
    │     ├─ --all → git diff HEAD (all uncommitted)
    │     ├─ File path → specific file diff
    │     └─ --pr N → gh pr diff N
    │
    ├─→ Step 2: State the Intent
    │     ├─ 1-2 sentences: PR body, commits, the user's request
    │     └─ Unclear (interactive) → ask before reviewing
    │
    ├─→ Step 3: Analyze Changes (parallel)
    │     ├─ delta for syntax-highlighted diff
    │     ├─ difft for semantic diff (structural)
    │     ├─ Categorize: logic, style, test, docs, config
    │     └─ Identify touched modules/components
    │
    ├─→ Step 4: Load Project Standards
    │     ├─ AGENTS.md, CLAUDE.md conventions
    │     ├─ .eslintrc, .prettierrc, pyproject.toml
    │     ├─ Detect test framework
    │     └─ Check CI config for existing linting
    │
    ├─→ Step 5: Route to Reviewers (general-purpose + skill preload)
    │     ├─ TypeScript → general-purpose, preload typescript-ops
    │     ├─ React/JSX → general-purpose, preload react-ops
    │     ├─ Python → general-purpose, preload python-pytest-ops
    │     ├─ Go → general-purpose, preload go-ops
    │     ├─ Rust → general-purpose, preload rust-ops
    │     ├─ Vue → general-purpose, preload vue-ops
    │     ├─ SQL/migrations → general-purpose, preload postgres-ops
    │     ├─ Cypress/E2E → general-purpose, preload cypress-ops
    │     ├─ Cloudflare/Workers → general-purpose, preload cloudflare-ops
    │     ├─ Shell/bash → general-purpose, preload bash-ops
    │     ├─ Claude extensions → general-purpose, preload claude-code-ops
    │     ├─ Multi-domain → parallel general-purpose dispatch
    │     ├─ All reviewers preload: security-ops + test-engineering context
    │     └─ --second-opinion → one more reviewer, other model family
    │
    ├─→ Step 6: Lead Judgment
    │     ├─ Check each finding against the repo and the intent
    │     ├─ Sort: act on / consider / noted / dismissed (with reason)
    │     └─ > ~5 act on = filter too loose; no findings is valid
    │
    ├─→ Step 7: Generate Review
    │     ├─ Severity (reviewer): CRITICAL / WARNING / SUGGESTION
    │     ├─ Bucket (lead): the section each finding appears in
    │     ├─ Line-specific comments (file:line refs)
    │     ├─ Suggested fixes as diff blocks
    │     └─ Verdict: ready to commit only when Act On is empty
    │
    └─→ Step 8: Integration
          ├─ Auto-create tasks (TaskCreate) for Act On items
          ├─ Link to /save for tracking
          └─ Suggest follow-up: /test-engineering write, /explain

Execution Steps

Step 1: Determine Scope

# Default: staged changes
git diff --cached --name-only

# Check if anything is staged
STAGED=$(git diff --cached --name-only | wc -l)
if [ "$STAGED" -eq 0 ]; then
    echo "No staged changes. Use --all for uncommitted or specify a file."
    git status --short
fi

For PR review:

gh pr diff $PR_NUMBER --patch

For specific file:

git diff HEAD -- "$FILE"

For baseline comparison (--base):

git diff $BASE_BRANCH...HEAD

Step 2: State the Intent

Before any reviewer runs, write one or two sentences on what the change is meant to do. Take it from the PR body (gh pr view N --json title,body), the commit messages (git log --format=%B $BASE_BRANCH..HEAD) or the user's request; mark it inferred when only the diff supports it. If the sources disagree, or the purpose is unclear in an interactive session, ask before reviewing. Every reviewer gets this statement, and Step 6 judges each finding against it (references/lead-judgment.md).

Step 3: Analyze Changes

Run semantic diff analysis (parallel where possible):

With difft (semantic):

command -v difft >/dev/null 2>&1 && git difftool --tool=difftastic --no-prompt HEAD~1 || git diff HEAD~1

With delta (syntax highlighting):

command -v delta >/dev/null 2>&1 && git diff --cached | delta || git diff --cached

Categorize changes:

git diff --cached --name-only | while read file; do
    case "$file" in
        *.test.* | *.spec.*) echo "TEST: $file" ;;
        *.md | docs/*) echo "DOCS: $file" ;;
        *.json | *.yaml | *.toml) echo "CONFIG: $file" ;;
        *) echo "CODE: $file" ;;
    esac
done

Get diff statistics:

git diff --cached --stat

Step 4: Load Project Standards

# Claude Code conventions
cat AGENTS.md 2>/dev/null | head -50
cat CLAUDE.md 2>/dev/null | head
Полный SKILL.md на GitHub

Установить review в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Bash
Glob
Grep
Task
TaskCreate
TaskUpdate

Вложенные файлы

assets/.gitkeepframework-checks.mdreferences/lead-judgment.mdscripts/.gitkeep

FAQ

Что делает скилл review?

Code review with semantic diffs, expert routing, and auto-TaskCreate. Triggers on: code review, review changes, check code, review PR, security audit.

Как установить скилл review?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл review запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить review с