一键导入
review
Run a lead code review on the current branch or a given PR. Standalone entry point for the lead-reviewer agent.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run a lead code review on the current branch or a given PR. Standalone entry point for the lead-reviewer agent.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run the Definition of Done checklist for the current branch — PASS/WARN/FAIL with evidence.
Start a full delivery run from a GitHub issue number, URL, or raw description.
Adversarially review a grooming spec before implementation starts. Finds hidden risks, unvalidated assumptions, and missing dependencies. Standalone entry point for the challenger agent.
Check a change against WordPress.org plugin rules and PHPCS standards.
Update developer-facing documentation to reflect code changes on the current branch.
Run E2E smoke tests (basic) or full acceptance + regression suite (extended).
| name | review |
| description | Run a lead code review on the current branch or a given PR. Standalone entry point for the lead-reviewer agent. |
| argument-hint | ["PR-number-or-URL"] |
Standalone code review for any PR. Runs the full lead-reviewer analysis against the spec and project standards. Posting inline comments and the summary to GitHub is your choice — you are prompted at the end.
Read project config from the orchestrator's ## Project Config block:
ORCHESTRATOR=".claude/skills/orchestrator/SKILL.md"
REPO=$(grep '^REPO=' "$ORCHESTRATOR" | cut -d= -f2)
TEMP_ROOT=$(grep '^TEMP_ROOT=' "$ORCHESTRATOR" | cut -d= -f2)
If $ARGUMENTS is provided, use it as the PR number or URL.
Otherwise resolve from the current branch:
gh pr list --head "$(git branch --show-current)" --json number,url -q '.[0] | "\(.number) \(.url)"'
If no PR is found, tell the user and stop.
Get the base branch from the PR:
gh pr view <PR_NUMBER> --json baseRefName,body -q '{base: .baseRefName, body: .body}'
Extract the linked issue number from the PR body (Fixes #N, Closes #N, or a GitHub
issue URL).
If a linked issue number was found, check for a spec at:
{TEMP_ROOT}/issues/<N>/spec.md
If it exists, pass its path to the agent. If it does not exist, inform the user: "No grooming spec found — the review will check against project standards only (spec compliance section will be skipped)."
Invoke the lead-reviewer sub-agent with:
CURRENT_MODEL: "standalone"session_learnings: read Section 13 of AGENTS.md if it exists, else pass empty stringTEMP_ROOT={TEMP_ROOT}, REPO={REPO}STANDALONE MODE — two differences from the normal pipeline run:
- Skip Step 5 (inline PR comments) and Step 5b (summary PR comment). Instead, output the full review report — findings table, blockers, nice-to-haves — as formatted Markdown in your response, in a section titled
## Review Report.- Skip Step 6 (StructuredOutput JSON). Return a short human-readable verdict summary instead: overall verdict, blocker count, and any open questions.
After the agent responds, display its ## Review Report and ask:
Post this review to PR #<PR_NUMBER>? Reply
yesto post inline comments + summary,noto finish here.
If yes — the agent posts inline comments (Step 5) and the summary comment (Step 5b)
using the normal dedup flow. The <!-- ai-pipeline:lead-review --> marker ensures a
later pipeline re-run updates in place rather than duplicating.
If no — confirm the review is complete and finish.