pr-review
БесплатноБез исполняемых скриптовНе проверенEnd-to-end PR reviewer for dotnet/maui. Orchestrates 3 phases — Pre-Flight, Try-Fix, Report. Gate runs separately before this skill. Use when asked to 'review…
от dotnet★ 23 319 звёзд на GitHubОб этом скилле
PR Review — 3-Phase Orchestrator
End-to-end PR review workflow that orchestrates phases to explore independent fix alternatives and produce a recommendation.
Trigger phrases: "review PR #XXXXX", "work on PR #XXXXX", "fix issue #XXXXX"
🚨 NEVER use
gh pr review --approveor--request-changes. AI agents must NEVER post review comments. 🚨 DO NOT post any comments to the PR. This skill only produces output files inCustomAgentLogsTmp/PRState/.
Overview
Gate (pre-run) → Already completed by Review-PR.ps1 before this skill runs
Phase 1: Pre-Flight → Gather context, classify files, code review → .github/pr-review/pr-preflight.md
Phase 2: Try-Fix → ⚠️ MANDATORY multi-model exploration → invoke try-fix skill (×2 models)
Phase 3: Report → Write review recommendation → .github/pr-review/pr-report.md
Gate and Branch setup are handled by
Review-PR.ps1before this skill is invoked. The gate result is passed in the prompt. Do NOT re-run gate verification.
All phases write output to: CustomAgentLogsTmp/PRState/{PRNumber}/PRAgent/{phase}/content.md
Pre-Flight also writes: CustomAgentLogsTmp/PRState/{PRNumber}/PRAgent/pre-flight/code-review.md
Critical Rules
- ❌ Never run
git checkoutorgit switchto change branches — stay on the review branch set up by the caller - ❌ Never stop and ask the user — use best judgment to skip blocked phases and continue
- ❌ Never mark a phase complete with pending fields
- ❌ Never skip Phase 2 multi-model exploration — it is MANDATORY for every review, no exceptions
- ❌ Never run git commands that change branch state during Phases 2-3 (scripts handle file manipulation)
- ❌ Never duplicate phase content — each phase writes ONLY to its own
content.md. Do NOT copy gate results into try-fix or report content files. - ✅ Always create
CustomAgentLogsTmp/output files for every phase - ✅ Always include
Co-authored-by: Copilot <[email protected]>in any commits - ✅ Always use skills' scripts — don't bypass with manual commands
- ✅ Each phase's
content.mdmust use the exact template from the phase instruction doc — no extra prose
Multi-Model Configuration
Phase 2 uses these 2 AI models (run SEQUENTIALLY — they modify the same files):
| Order | Model |
|---|---|
| 1 | gpt-5.3-codex |
| 2 | gpt-5.6-sol |
Two GPT-family models keep the try-fix phase fast (each attempt is a full build+test cycle, so every extra model adds ~15–20 min to the review) while still varying optimization profiles: gpt-5.3-codex explores the implementation first, and gpt-5.6-sol provides the higher-reasoning comparison.
🚨 MANDATORY: Use mode: "sync" for ALL try-fix task invocations. Never use mode: "background". Background mode causes the orchestrator to move on before the attempt finishes, which means try-fix/content.md is never written and try-fix results are lost from the PR comment. Each try-fix task MUST complete and return its result before you proceed to the next attempt or to the Phase 3 completion checklist.
Environment Blockers
| Blocker Type | Max Retries | Then Do |
|---|---|---|
| Missing tool/driver | 1 install attempt | Skip phase, continue |
| Server errors (500, timeout) | 1 retry | Skip phase, continue |
| Port conflicts | 1 (kill process) | Skip phase, continue |
| Build failures in try-fix | 2 attempts | Skip remaining models, proceed to Report |
| Configuration issues | 1 fix attempt | Skip phase, continue |
Phase 1: Pre-Flight
Read and follow
.github/pr-review/pr-preflight.md
Gather context from the issue, PR, comments, classify changed files, and perform a deep code review using the code-review skill.
Pre-Flight now has two parts:
- Part A (Steps 1–6): Context gathering — read issue, PR, comments, classify files
- Part B (Step 7): Code review — independence-first code analysis using
.github/skills/code-review/SKILL.mdand.github/skills/code-review/references/review-rules.md
Outputs:
pre-flight/content.md— Context + code review summarypre-flight/code-review.md— Full code-review output (findings, blast radius, failure-mode probes, verdict)
Gate: None — always runs.
Why code review runs here: The code-review findings (❌ Errors, ⚠️ Warnings, failure-mode probes, blast radius) become structured hints for Phase 2 (Try-Fix). Instead of each model starting from scratch, they receive concrete code concerns to address, leading to higher-quality fix exploration.
Phase 2: Try-Fix → Invoke try-fix Skill (×2 Models)
Read and follow
.github/skills/try-fix/SKILL.md
⚠️ THIS PHASE IS MANDATORY. YOU MUST NEVER SKIP IT. NO EXCEPTIONS.
Even if the PR's fix looks correct and Gate passed, you MUST still run both models to explore alternative approaches. The purpose is to find the BEST fix, not just vali
Установить pr-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pr-review?
End-to-end PR reviewer for dotnet/maui. Orchestrates 3 phases — Pre-Flight, Try-Fix, Report. Gate runs separately before this skill. Use when asked to 'review PR #XXXXX', 'work on PR #XXXXX', or 'fix issue #XXXXX'.
Как установить скилл pr-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pr-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic