Agent Skillsareal-project/AReaL › review-pr

review-pr

GitHub

用于只读审查PR的工作流,包含风险分析、目标检查表和Codex子代理咨询。遵循硬规则禁止修改环境,分阶段解析上下文、分析变更、规划审查并生成按严重程度排序的发现报告。

.agents/skills/review-pr/SKILL.md areal-project/AReaL

Trigger Scenarios

用户请求对当前分支或特定PR进行代码审查 需要评估PR风险等级和潜在故障模式

Install

npx skills add areal-project/AReaL --skill review-pr -g -y
More Options

Non-standard path

npx skills add https://github.com/areal-project/AReaL/tree/main/.agents/skills/review-pr -g -y

Use without installing

npx skills use areal-project/AReaL@review-pr

指定 Agent (Claude Code)

npx skills add areal-project/AReaL --skill review-pr -a claude-code -g -y

安装 repo 全部 skill

npx skills add areal-project/AReaL --all -g -y

预览 repo 内 skill

npx skills add areal-project/AReaL --list

SKILL.md

Frontmatter
{
    "name": "review-pr",
    "description": "Read-only pull request review workflow with risk analysis, targeted checklists, and Codex subagent consultation."
}

Review Pull Request

Use this skill when the user asks for a PR review of the current branch or a specific PR.

Inputs

  • Optional PR number
  • Optional --quick to stop after the change analysis phase

Hard Rules

  • Stay read-only.
  • Do not edit files, commit, push, rebase, or change GitHub state.
  • Do not run build, install, or test commands that mutate the environment.
  • Use gh for PR metadata and git diff retrieval.

Reference Files

  • references/review-pr-domains-and-signals.md
  • references/review-pr-templates.md

Workflow

Phase 1: Resolve PR context

  1. Use gh pr view to fetch PR title, body, state, draft status, and changed files.
  2. If no PR exists, stop and report that clearly.
  3. If the PR is closed, stop.
  4. Record the branch name and changed file list.

Phase 2: Change analysis

  1. Classify changed files using references/review-pr-domains-and-signals.md.
  2. Determine the highest overall risk level: CRITICAL, HIGH, MEDIUM, or LOW.
  3. Build a CHANGE_ANALYSIS_REPORT that lists:
    • detected domains/signals
    • risk level
    • affected files
    • related frameworks
    • likely failure modes

If --quick is set, return the change analysis report and stop here.

Phase 3: Review planning

  1. Select the smallest useful set of review passes from references/review-pr-templates.md.
  2. Split by risk area, not by file count.
  3. Always include at least one general logic pass.

Phase 4: Expert consultation

Consult the matching Codex subagents registered in .codex/config.toml when relevant:

  • archon-expert
  • fsdp-expert
  • megatron-expert
  • algorithm-expert
  • launcher-expert

If the Codex runtime supports parallel subagent execution, run independent review passes in parallel. Otherwise, execute them serially.

Phase 5: Final review

Produce findings first, ordered by severity:

  1. CRITICAL
  2. HIGH
  3. MEDIUM
  4. LOW

For every finding, include:

  • file path
  • line number when available
  • why it is a bug, regression, or risk
  • concrete fix direction

What to Ignore

  • Pure style nits with no correctness impact
  • Issues outside the changed scope unless the PR makes them worse
  • Failures that standard linters or formatters would already catch
  • Speculative concerns with no concrete trigger in the diff

Output Shape

Use this structure:

CHANGE_ANALYSIS_REPORT:
- detected_domains: [...]
- detected_signals: [...]
- risk_level: ...
- affected_files: [...]
- related_frameworks: [...]
- identified_risks: [...]

Findings
1. [severity] Title — path:line
   - Problem: ...
   - Fix: ...

Open Questions
- ...

Residual Risk
- ...

Version History

  • d99124e Current 2026-07-05 09:13

Same Skill Collection

.agents/skills/add-archon-model/SKILL.md
.agents/skills/add-dataset/SKILL.md
.agents/skills/add-reward/SKILL.md
.agents/skills/add-unit-tests/SKILL.md
.agents/skills/add-workflow/SKILL.md
.agents/skills/commit-conventions/SKILL.md
.agents/skills/create-pr/SKILL.md
.agents/skills/debug-distributed/SKILL.md
.agents/skills/translate-doc-zh/SKILL.md
.agents/skills/upgrade-deps/SKILL.md
.claude/skills/add-archon-model/SKILL.md
.claude/skills/add-dataset/SKILL.md
.claude/skills/add-reward/SKILL.md
.claude/skills/add-unit-tests/SKILL.md
.claude/skills/add-workflow/SKILL.md
.claude/skills/commit-conventions/SKILL.md
.claude/skills/debug-distributed/SKILL.md
.opencode/skills/add-archon-model/SKILL.md
.opencode/skills/add-dataset/SKILL.md
.opencode/skills/add-reward/SKILL.md
.opencode/skills/add-unit-tests/SKILL.md
.opencode/skills/add-workflow/SKILL.md
.opencode/skills/commit-conventions/SKILL.md
.opencode/skills/debug-distributed/SKILL.md

Metadata

Files
0
Version
d99124e
Hash
4a06d12b
Indexed
2026-07-05 09:13

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-05 21:56
浙ICP备14020137号-1 $Гость$