Command Palette

Search for a command to run...

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

pr-sweep

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

Sweep open (or listed) PRs with up to 100 parallel agents: security-scan outside contributors, rebase onto main when behind (push --force-with-lease), approve…

TanStackот TanStack★ 3 396 звёзд на GitHub

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

PR Sweep

Prep PRs for review. Fan out one subagent per PR (cap 100). Default is dry-run (report only). Mutating steps require --apply (or the user saying "apply" / "go ahead").

Args

Invocation Behavior
/pr-sweep All open non-draft PRs (full audit)
/pr-sweep 12 34 56 Only those PR numbers
/pr-sweep --apply Full set, then rebase and push (--force-with-lease)
/pr-sweep --apply 12 34 Rebase and push listed PRs only
/pr-sweep --outside-only Action target = outside authors only (default for mutations)
/pr-sweep --include-in-house Also rebase/update in-house branches (still never merge)
/pr-sweep --behind Only PRs behind base / BEHIND / not up to date
/pr-sweep --conflicts Only CONFLICTING / DIRTY / dirty merge state
/pr-sweep --changed Only PRs changed since last snapshot (or updatedAt within 24h if no snapshot)
/pr-sweep --daily Recommended daily recipe: --changed ∪ --behind ∪ --conflicts ∪ new outside PRs; security-scan new outside; lighter pass on the rest
/pr-sweep --apply --daily --include-in-house Daily apply: prep outside + rebase ours when behind/conflicting

Combine freely: --apply --daily --include-in-house. Explicit PR numbers always win over filters.

Modes

  • dry-run (default): fetch, classify, security-scan, decide relevance / rebase need / CI need / assign recommendation. No push, no CI approve, no comments.
  • apply: after dry-run logic, rebase + git push --force-with-lease + CI approve for PRs that pass security and are marked actionable, in the same turn. --apply on the invocation is consent — do not wait for a second yes. Still never merge a PR and never comment on a PR. A local rebase with no push is a failed apply. Record results in SWEEP-*.md only.

Daily routine (recommended)

Option A — Grok /loop (same machine, session-scoped, expires ~7d)

/loop 1d /pr-sweep --apply --daily --include-in-house

Or dry-run every morning and apply only when you say go:

/loop 1d /pr-sweep --daily --include-in-house

/loop intervals: Nm / Nh / Nd (min 60s). Cancel with scheduler_list → scheduler_delete <id>.

Option B — Manual weekday

/pr-sweep --daily --include-in-house          # dry-run first
/pr-sweep --apply --daily --include-in-house  # after skimming plan

What --daily processes

Build the action set as the union of:

  1. New outside PRs — open outside non-draft not present in the previous snapshot (full security scan).
  2. Changed — updatedAt newer than last snapshot sweptAt, or head SHA changed vs snapshot.
  3. Behind — mergeStateStatus is BEHIND or not up to date with default branch.
  4. Conflicts — mergeable == CONFLICTING or mergeStateStatus in DIRTY, BLOCKED with dirty indicators.
  5. CI waiting approval — outside PRs with first-time-contributor gate (cheap; no full diff if already in snapshot as security: clean).

Skip from action set (still note counts in report):

  • Drafts (unless listed explicitly)
  • security: alert from prior snapshot until human clears
  • PRs marked blocked-conflicts in the last 24h with no updatedAt change (avoid thrashing)
  • Bot version/release PRs (changeset-release/*, pure Renovate) unless --include-bots

Cost target: daily should touch tens, not all open history. Full /pr-sweep remains the weekly deep scan.

Snapshot (enab

Полный SKILL.md на GitHub

Установить pr-sweep в Claude Code и Claude Desktop

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

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

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

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

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

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

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

references/security-checklist.md

FAQ

Что делает скилл pr-sweep?

Sweep open (or listed) PRs with up to 100 parallel agents: security-scan outside contributors, rebase onto main when behind (push --force-with-lease), approve pending first-time-contributor CI when relevant, optionally rebase in-house PRs, and report who should review. Supports full, changed-only, behind-only, and conflict-only scopes for cheap daily runs. Use when the user runs /pr-sweep (or /pr-inbound-sweep), or asks to "sweep PRs", "sweep inbound PRs", "security-check outside PRs", "rebase outsider PRs", "rebase our PRs", "approve waiting CI on PRs", "daily PR sweep", or "prep external PRs for review".

Как установить скилл pr-sweep?

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

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

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

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

Сравнить pr-sweep с