Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计提醒

relay-review接力审查

Agent Skill

relay-review 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

291

周安装

12

GitHub Stars

公开资料未说明

下载量

95
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:relay-review(接力审查)
来源仓库:https://github.com/sungjunlee/dev-relay
仓库路径:skills/relay-review
安装命令:
npx skills add https://github.com/sungjunlee/dev-relay --skill relay-review
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sungjunlee/dev-relay --skill relay-review

简介

relay-review 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前需确认权限范围、维护状态,注意是否触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Relay Review

Independent PR review against the Done Criteria contract and scoring rubric. Use scripts/review-runner.js so round count, reviewer invocation, PR comments, and manifest transitions stay script-managed.

Context Isolation

Reviews MUST run in a fresh context — no prior planning, dispatch, or conversation history. This prevents planning bias from influencing the verdict.

PlatformMechanismHow
Claude Codecontext: fork frontmatterAutomatic — this SKILL.md's frontmatter triggers it
Codex (reviewer adapter)--ephemeral --sandbox read-onlyAutomatic — invoke-reviewer-codex.js passes these flags
Claude (reviewer adapter)--bare --no-session-persistenceAutomatic — invoke-reviewer-claude.js passes these flags
Codex (manual inline review)Start a new sessionManual — do not continue from the dispatch session
Other / FallbackPrefix promptPrepend: "You are reviewing code you did NOT write. You have no context about why it was written this way."

Standard path: run review-runner.js --reviewer codex or --reviewer claude. In that path, isolation is already enforced by the adapter scripts. The manual "start a new session" rule applies only to inline reviews outside review-runner.

Setup: Establish the anchor

  1. Get the PR diff and Done Criteria (this runs in a fresh context — fetch everything needed):
PR_NUM=$(gh pr list --head <branch> --json number -q '.[0].number')
BRANCH=$(gh pr view $PR_NUM --json headRefName -q '.headRefName')
gh pr diff $PR_NUM > /tmp/pr-diff.txt

# Issue number extraction — try each method until one succeeds:
ISSUE_NUM=$(gh pr view $PR_NUM --json closingIssuesReferences -q '.[0].number')
# Fallback 1: grep PR body for issue keywords
[ -z "$ISSUE_NUM" ] && ISSUE_NUM=$(gh pr view $PR_NUM --json body -q '.body' | grep -oiE '(closes|fixes|resolves|refs|related to) #[0-9]+' | grep -oE '[0-9]+' | head -1)
# Fallback 2: extract from branch name (try issue-<N> first, then any number)
if [ -z "$ISSUE_NUM" ]; then
  ISSUE_NUM=$(echo "$BRANCH" | grep -oE 'issue-[0-9]+' | grep -oE '[0-9]+')
  [ -z "$ISSUE_NUM" ] && ISSUE_NUM=$(echo "$BRANCH" | grep -oE '[0-9]+' | tail -1)
fi
# If all fail: escalate — cannot review without Done Criteria
[ -z "$ISSUE_NUM" ] && echo "ERROR: Cannot determine issue number. Provide it manually." && exit 1
gh issue view $ISSUE_NUM  # Done Criteria / Acceptance Criteria source
  1. Fix the anchor — these do NOT change across rounds:

- Done Criteria from anchor.done_criteria_path when present, otherwise from the issue (the contract) - Rubric factors + targets from the Score Log (if relay-plan was used) - Original scope boundary ("do not change" areas)

  1. Preferred path: let the review runner invoke an isolated reviewer directly:
RUN_ID=<run-id-from-dispatch>
node ${CLAUDE_SKILL_DIR}/scripts/review-runner.js --repo . --run-id "$RUN_ID" --pr "$PR_NUM" --reviewer codex --json

Supported built-in adapters:

  • --reviewer codex
  • --reviewer claude

Notes:

  • codex uses a read-only structured-output adapter and must return a full two-phase verdict.
  • claude --bare uses a separate token from the interactive Claude OAuth session; for --reviewer claude (direct or reviewer-swap), set ANTHROPIC_API_KEY or run claude login --api-key.
  • Model precedence for reviewer invocation is --reviewer-model -> manifest.model_hints.review -> reviewer default.
  • When the runner invokes the reviewer itself, it records a review_invoke event with the effective model value (or null when unset).
  1. Fallback path for unsupported environments or debugging:
node ${CLAUDE_SKILL_DIR}/scripts/review-runner.js --repo . --branch "$BRANCH" --pr "$PR_NUM" --prepare-only --json

This writes round artifacts under ~/.relay/runs/<repo-slug>/<run-id>/, including:

  • review-round-N-prompt.md
  • review-round-N-done-criteria.md
  • review-round-N-diff.patch

The runner reviews the retained checkout recorded in paths.worktree, not the repo root. It also records review.last_reviewed_sha, enforces review.max_rounds, and escalates when the same issue fingerprint repeats 3 consecutive rounds.

Review Loop

Two phases, run in order. Each round re-measures against the original anchor, not the previous round's state.

Phase 1: Spec Compliance

  1. Review the diff against Done Criteria (see references/reviewer-prompt.md or the generated review-round-N-prompt.md):

- Faithfulness: Each Done Criteria item implemented? Scope respected? - Stubs/placeholders: Any return null, empty bodies, TODO in production paths? - Integration: Does it break callers/consumers of changed code? - Security: Auth/token handling, input validation, injection risks?

  1. Rubric verification (when Score Log present):

- The reviewer evaluates quality_review_status by inspection; the runner independently verifies quality_execution_status via a SHA-bound execution-evidence artifact. The reviewer cannot execute code, so quality evidence comes from two trust roots. - Re-score ALL evaluated factors with fresh eyes (1-10) - Any required factor below target → issue - Score divergence ≥2 points from the executor → flag for review

  1. Phase 1 gate: Issues found → return a structured verdict with verdict=changes_requested, then re-dispatch (see Re-dispatch below). Do NOT proceed to Phase 2 until Phase 1 passes.

Phase 2: Code Quality (only after Phase 1 PASS)

  1. Run a code review skill on changed files — check code quality, patterns, conventions, structural issues (use the platform's best-matching skill, e.g., Claude Code: /review; if no skill is available, perform the quality review inline inside the structured reviewer round)
  2. Run a code simplification skill on changed files — unnecessary complexity, dead code, verbose patterns (use the platform's best-matching skill, e.g., Claude Code: /simplify; if no skill is available, review for simplification inline before returning verdict=pass)
  3. Issues found → return verdict=changes_requested, then re-dispatch and repeat from step 5 (Phase 1 — quality fixes can regress spec compliance)

Drift and stuck detection (both phases)

Before any re-dispatch, check:

  • Scope: Does the fix address a review issue, or is it scope creep?
  • Regression: Are previously passing rubric factors still passing?
  • Churn: Is the total diff growing without convergence?
  • Stuck: Same issue 3+ consecutive rounds → escalate immediately (not fixable by the executor).

Converge

  1. Both phases pass → produce a structured verdict with:

- verdict=pass - next_action=ready_to_merge - issues=[]

Safety cap: 20 rounds total. Ceiling, not target — most PRs converge in 1-3 rounds. Hitting the cap means something is structurally wrong; escalate.

Verdict + Audit Trail

  1. If you used the fallback path, apply the structured verdict with the review runner:
node ${CLAUDE_SKILL_DIR}/scripts/review-runner.js --repo . --run-id "$RUN_ID" --pr "$PR_NUM" --review-file /tmp/review-verdict.json

The runner:

  • validates the JSON verdict
  • optionally invokes the reviewer adapter itself when --reviewer <name> is used
  • computes and overrides quality_execution_status from execution-evidence.json
  • rejects the round if the reviewer mutates the repo and escalates the manifest
  • writes the PR audit comment
  • updates the relay manifest to ready_to_merge, changes_requested, or escalated
  • writes review-round-N-verdict.json
  • writes review-round-N-raw-response.txt when it invoked the reviewer itself
  • writes review-round-N-policy-violation.txt if the reviewer changed files
  • writes review-round-N-redispatch.md when changes are requested

Backward compatibility:

  • Pre-261 runs do not have execution-evidence.json. In that case the runner computes quality_execution_status=missing, a reviewer PASS cannot be applied, and operators should use finalize-run --force-finalize-nonready --reason "pre-261 run, no artifact" only after independent verification.

Re-dispatch (when issues found)

Use the generated review-round-N-redispatch.md artifact as the targeted fix prompt. It already includes the issue list, scope guardrail, and original Done Criteria.

See references/evaluate-criteria.md for escalation policy (auto re-dispatch vs ask user).

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

39.25%
按下载量换算37

Claude

28.41%
按下载量换算27

Cursor

20.82%
按下载量换算20

Gemini CLI

8.95%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills