pr-review

Solid

PR Code Review (Local): perform a thorough local code review with full project context. Use when: (1) User asks to review a PR, (2) User says "/pr-review", (3) User wants to review code changes before merging.

AI & Automation 28,123 stars 2742 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# PR Code Review (Local) Perform a thorough local code review with full project context — reads source files directly, no API truncation limits. **Announce at start:** "I'm using pr-review skill to review the pull request." ## Usage ``` /pr-review [pr_number] ``` `$ARGUMENTS` may contain an optional PR number and/or `--automation` flag. - Without `--automation`: interactive mode (prompts for confirmation, comment, cleanup) - With `--automation`: non-interactive mode (auto-post comment, auto-delete branch, output machine-readable result) --- ## Steps ### Step 1 — Determine PR Number If `$ARGUMENTS` is non-empty, use it as the PR number. Otherwise run: ```bash gh pr view --json number -q .number ``` If this also fails (not on a PR branch), abort with: > No PR number provided and cannot detect one from the current branch. Usage: `/pr-review <pr_number>` Also parse `--automation` from `$ARGUMENTS`: ```bash AUTOMATION_MODE=false if echo "$ARGUMENTS" | grep -q -- '--automation'; then AUTOMATION_MODE=true fi ``` ### Step 2 — Check CI Status ```bash gh pr view <PR_NUMBER> --json statusCheckRollup \ --jq '.statusCheckRollup[] | {name: .name, status: .status, conclusion: .conclusion}' ``` **必检 job 列表:** - `Code Quality` - `Unit Tests (ubuntu-latest)` - `Unit Tests (macos-14)` - `Unit Tests (windows-2022)` - `Coverage Test` - `i18n-check` (`build-test` 为可选 job,不纳入必检范围。) **特殊情形:** 满足以下任一条件时,跳过此步骤,直接继续: - `statusCheckRollup` 为空(CI 从未触发) - `statusCheckRollup` 非空,...

Details

Author
iOfficeAI
Repository
iOfficeAI/AionUi
Created
10 months ago
Last Updated
today
Language
TypeScript
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category