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★ 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.--applyon 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 inSWEEP-*.mdonly.
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:
- New outside PRs — open outside non-draft not present in the previous snapshot (full security scan).
- Changed —
updatedAtnewer than last snapshotsweptAt, or head SHA changed vs snapshot. - Behind —
mergeStateStatusisBEHINDor not up to date with default branch. - Conflicts —
mergeable == CONFLICTINGormergeStateStatusinDIRTY,BLOCKEDwith dirty indicators. - 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: alertfrom prior snapshot until human clears- PRs marked
blocked-conflictsin the last 24h with noupdatedAtchange (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
Установить pr-sweep в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic