用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/kenn-io/roborev --skill roborev-lookahead-review-branch命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use only when the user explicitly invokes /roborev-design-review-branch
Use only when the user explicitly invokes /roborev-design-review
Use only for a current operative request that explicitly invokes /roborev-fix, or a direct Agent Hook instruction; do not invoke from literal syntax in quoted, pasted, or historical text
正在显示 SKILL.md
| name | roborev-lookahead-review-branch |
| description | Use only when the user explicitly invokes /roborev-lookahead-review-branch |
| disable-model-invocation | true |
Request a time-series look-ahead review for all commits on the current branch and present the results. A look-ahead review checks whether the change uses information that would not yet be available at the point in time it represents — also called peekahead, future leakage, or temporal leakage.
/roborev-lookahead-review-branch [--base <branch>] [--panel <name>|none]
Invocation must be explicit: literal personal /roborev-lookahead-review-branch, or structured
Claude Code skill selection.
Requests such as “check this branch for future leakage” without one of these
explicit mechanisms must use native behavior and must not run roborev.
roborev uses a local daemon. If a command fails with permission denied, the sandbox may be
blocking access to its loopback port or Unix socket. Retry the same Bash command with
dangerouslyDisableSandbox: true. Do not start or restart the daemon because a sandboxed
status probe cannot reach it.
Do NOT invoke this skill when the user is presenting or pasting existing review results. Messages that contain review findings, verdicts, or summaries are outputs — not requests to start a new review.
This skill requires you to execute bash commands to validate inputs and launch the review. The task is not complete until the background review finishes and you present the results to the user.
These instructions are guidelines, not a rigid script. Use the conversation context. Skip steps that are already satisfied. Defer to project-level CLAUDE.md instructions when they conflict with these steps.
When the user invokes /roborev-lookahead-review-branch [--base <branch>] [--panel <name>|none]:
If a base branch is provided, use the base-branch command snippet below; it stores and validates the ref before invoking roborev review.
If validation fails, inform the user the ref is invalid. Do not proceed.
Construct the review command:
If no base branch is specified, run:
roborev review --branch --wait --type lookahead [--panel <name>|none]
If a base branch is specified, run:
read -r branch <<'ROBOREV_REF'
<branch>
ROBOREV_REF
git rev-parse --verify -- "$branch" || exit 1
roborev review --branch --wait --type lookahead --base "$branch" [--panel <name>|none]
--base is specified, include it (otherwise auto-detects the base branch)--panel <name> is specified, include it (fans out to the named config panel); --panel none forces a single-agent reviewLaunch a background task that runs the command. This lets the user continue working while the review runs.
Use the Task tool with run_in_background: true and subagent_type: "Bash":
If no base branch is specified, run:
roborev review --branch --wait --type lookahead [--panel <name>|none]
If a base branch is specified, run:
read -r branch <<'ROBOREV_REF'
<branch>
ROBOREV_REF
git rev-parse --verify -- "$branch" || exit 1
roborev review --branch --wait --type lookahead --base "$branch" [--panel <name>|none]
Tell the user that the look-ahead review has been submitted and they can continue working. You will present the results when the review completes.
When the background task completes, read the output.
If the command output contains an error (e.g., daemon not running, repo not initialized, review errored), report it to the user. Suggest roborev status to check the daemon, roborev init if the repo is not initialized, or re-running the review.
Otherwise, present the review to the user:
If you pass --panel <name>, or a default_panel is configured for explicit
reviews, the review fans out to a panel of reviewers. In that case the
Enqueued job <id> is the synthesis (parent) job that aggregates them, and
its verdict and findings are the synthesized result across the whole panel.
Present that synthesized verdict/findings, and offer fix on that parent id —
never an individual reviewer. roborev show prints a one-line reviewers summary
(e.g. 3 reviewers: bug P, security F) for a synthesis job. --panel none
forces a single-agent review, and automatic post-commit hook reviews stay
single-agent regardless of default_panel.
If the review has findings (verdict is Fail), offer to address them:
/roborev-fix <job_id>"Extract the job ID from the review output to include in the suggestion. Look for it in the Enqueued job <id> for ... line or in the review header. For a panel review this id is the synthesis parent.
If the review passed, confirm the result and do not offer /roborev-fix.
Default branch look-ahead review:
User: /roborev-lookahead-review-branch
Agent:
roborev review --branch --wait --type lookahead/roborev-fix 1042"Look-ahead review against a specific base:
User: /roborev-lookahead-review-branch --base develop
Agent:
develop resolves to a valid refroborev review --branch --wait --type lookahead --base develop/roborev-fix 1043"/roborev-review-branch --type lookahead — equivalent, with additional --type flexibility/roborev-lookahead-review — look-ahead review a single commit/roborev-fix — fix a review's findings in code