review-pr
Review a pull request — analyze diffs, commit quality, test coverage, pattern compliance across all changed files, and provide structured feedback
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Review a pull request — analyze diffs, commit quality, test coverage, pattern compliance across all changed files, and provide structured feedback
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Review test files for pattern compliance, code quality, correctness, coverage gaps, and best practices — produces actionable feedback
Scaffold E2E UI test files following project patterns — Playwright assertions, Page Objects, Components, markers, fixtures, Allure decorators, BrowserStorage
Scaffold GraphQL API test files following project patterns — markers, fixtures, Allure decorators, Pydantic assertions, try-finally cleanup
Scaffold REST API test files and factory fixture conftest files — admin auth, RestClient, factory fixtures with auto-teardown, Allure steps, CRUD patterns
Create Page Objects (MainLayout/CheckoutLayout subclasses) and UI Components (Component subclasses) with Playwright locators and data-test-id conventions
Create GraphQL Operations classes (BaseOperations subclass with auto-fragment injection) and Pydantic GqlModel types for response/input types
| name | review-pr |
| description | Review a pull request — analyze diffs, commit quality, test coverage, pattern compliance across all changed files, and provide structured feedback |
| argument-hint | <pr-number-or-url> |
When reviewing a PR, analyze the full scope of changes and provide structured, actionable feedback.
# Get PR details
gh pr view <number> --json title,body,baseRefName,headRefName,files,additions,deletions,commits
# Get changed files
gh pr diff <number>
# Get commit messages
gh pr view <number> --json commits --jq '.commits[].messageHeadline'
# Check CI status
gh pr checks <number>
For each file in the diff, apply the relevant checklist:
tests/**/*.py)Apply the full test code review checklist:
gql/operations/*.py, restapi/operations/*.py)BaseOperations / RestBaseOperations pattern_build_query()page_objects/**/*.py)MainLayout, Component)gql/types/*.py)GqlModel__init__.py**/conftest.py)gql/fragments/*.graphql)__init__.py exports updated?## PR Review: #<number> — <title>
### Summary
<2-3 sentence overview: what the PR does, overall quality assessment>
### Scope
- **Files changed:** <count>
- **Test types affected:** GraphQL / E2E / REST API
- **Categories:** <new tests | operations | pages | fixtures | infrastructure>
### Critical Issues
- **[file:line]** <issue> — **Fix:** <specific fix>
### Warnings
- **[file:line]** <issue> — **Suggestion:** <improvement>
### Suggestions
- <improvement idea>
### Coverage Assessment
- **New code tested:** Yes / No / Partially
- **Missing coverage:** <list of untested scenarios>
### Commit Quality
- <assessment of commit messages and scope>
### CI Status
- <passing / failing — details if failing>
### Verdict
**APPROVE** | **REQUEST_CHANGES** | **NEEDS_DISCUSSION**
<brief rationale for verdict>