Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

wait-for-pr-review

БесплатноБез исполняемых скриптовНе проверен

Wait for reviews from any reviewer with a deterministic Rust poller that spends no tokens, then run the review loop. Use when waiting for a review of an…

torrustот torrust★ 539 звёзд на GitHub

Об этом скилле

Waiting for Pull-Request Reviews

After you open or update a pull request, reviewers answer on their own schedule. Run the poller instead of asking the contributor to tell you when to look, and instead of polling through an MCP server, which spends inference tokens on every check. The poller is a Rust tool that calls no model, holds no token, and returns only when something happens on the pull request.

This skill is the waiting half of the review loop. process-pr-review is the processing half.

Prerequisites

  • A GitHub CLI command, authenticated as the account you act as. By default that is gh, and the poller refuses to run when gh auth status fails. To run as another account, name its command with --gh-command; never put a stand-in named gh on PATH, because one that calls gh again calls itself without end.
  • The pull request number and the commit you last pushed.

Run the Poller

Stdout carries the result and the poller refuses to run when stdout is a terminal. Redirect each channel to a file, as the CLI output contract recommends for agents:

mkdir -p .tmp
cargo run -q -p wait-for-pr-review -- \
  --pr-number <PR> \
  --since-head-sha "$(git rev-parse HEAD)" \
  > .tmp/wait-for-pr-review.stdout 2> .tmp/wait-for-pr-review.stderr
echo "exit=$?"
cat .tmp/wait-for-pr-review.stdout
Option Default Meaning
--pr-number <N> required Pull request to watch.
--owner, --repository torrust, torrust-tracker Repository.
--reviewer <login> every account except the pull request's author Whose reviews and comments count. Repeat the flag to watch only those logins. Without it, any reviewer, person or bot, wakes the poller, and the author's own replies do not.
--timeout-seconds <N> 900 (15 minutes) Longest wait before a timeout result. At most 86400 (one day); a larger value is a usage error, exit 2.
--poll-interval-seconds N 120 (2 minutes) Pause between two looks at the pull request.
--since-head-sha <sha> the head at the start of the wait The commit you have checked out. A pull request head that differs from it is reported as head_changed. Unless --since is given, reviews and comments created after this commit was made count as new.
--gh-command <command> gh The GitHub CLI command run for every call: one program name or path, never split on spaces and never run through a shell. It must accept the gh command line (api ...). gh auth status runs only when the value is gh. An empty value is a usage error, exit 2.
--since <utc time> the moment the poller starts Count reviews and comments created strictly after this time. Pass the cursor of the previous result. Combine it with --since-head-sha, so a head that moved is not adopted silently.

Always pass --since-head-sha "$(git rev-parse HEAD)", and add --since <cursor> when resuming after an event that needed no push (see The Review Loop). --since-head-sha tells the poller which commit your checkout has, so it reports head_changed when the pull request is ahead of you. Without it, the baseline is the head at the poller start, a push that happened before that is never reported, and a review that landed between your push and the poller start is missed.

If your shell tool caps a call below the 15-minute default, set --timeout-seconds under that cap and run the poller again on a timeout result.

Result

Stdout is exactly one JSON object whose kind says what happened. Every outcome, including a timeout, exits 0, so branch on kind.

kind Meaning Other fields
review A watched reviewer submitted a review (an
Полный SKILL.md на GitHub

Установить wait-for-pr-review в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

tool/Cargo.tomltool/src/error.rstool/src/event.rstool/src/gh.rstool/src/lib.rstool/src/main.rstool/src/snapshot.rstool/src/timestamp.rstool/src/wait.rs

FAQ

Что делает скилл wait-for-pr-review?

Wait for reviews from any reviewer with a deterministic Rust poller that spends no tokens, then run the review loop. Use when waiting for a review of an opened or updated PR.

Как установить скилл wait-for-pr-review?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл wait-for-pr-review запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить wait-for-pr-review с