pr-all-repos
БесплатноБез исполняемых скриптовНе проверенCreate PRs in all sub-repos with uncommitted branches, then link them as siblings
от raffertyuy★ 19 звёзд на GitHubОб этом скилле
PR All Repos
Create pull requests across all sub-repos that have branches ready for review, then cross-link them as sibling PRs.
Prerequisites
ghCLI must be authenticated (gh auth status)- Each sub-repo must have a remote configured
Order of Operations
- Scan — identify repos with PR-ready branches
- Create PRs — open a PR in each qualifying repo
- Cross-link — update each PR description with sibling PR URLs
Step 1: Scan
For each directory in repos/*/ that is a git repository:
- Check the current branch:
git -C repos/<name> branch --show-current - Skip if on the default branch (main/master) — nothing to PR
- Check if a PR already exists for this branch:
gh pr view --repo <remote> --json url 2>/dev/null - Skip if a PR already exists — but record its URL for cross-linking
- Check if the branch has been pushed:
git -C repos/<name> log @{u}..HEAD 2>/dev/null - If unpushed commits exist, push first:
git -C repos/<name> push -u origin <branch>
Collect the list of repos that need new PRs and repos that already have PRs.
Step 2: Create PRs
For each repo that needs a new PR:
cdinto the repo directory- Read
git log --oneline main..<branch>(or master) to understand the changes - Draft a PR title (short, under 70 characters) and body
- Create the PR:
gh pr create --title "<title>" --body "$(cat <<'EOF'
## Summary
<bullet points describing changes>
## Sibling PRs
<!-- Will be updated with cross-links -->
## Test Plan
- [ ] <testing steps>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"
- Record the PR URL
Step 3: Cross-Link
After all PRs are created (or found existing), do a second pass:
For each PR (new and existing), update its description to include a "Sibling PRs" section listing all other PRs in this batch:
## Sibling PRs
- [frontend#42](https://github.com/org/frontend/pull/42) — Update auth UI components
- [infra#18](https://github.com/org/infra/pull/18) — Add new IAM role for auth service
Use gh pr edit <number> --repo <remote> --body "<updated body>" to update descriptions.
Branch Name Convention
If all repos share the same branch name (e.g., feature/ENG-123-auth-redesign), note the ticket ID in the summary. If branch names differ across repos, still link them — the sibling PR section is the coordination mechanism.
Arguments
The user may optionally specify:
- A base branch:
/pr-all-repos --base develop(default:main) - A subset of repos:
/pr-all-repos frontend backend-api(default: all repos with non-default branches)
Summary
Report a table at the end:
| Repo | PR | Status |
|---|---|---|
frontend |
#42 | Created |
backend-api |
#15 | Already existed — updated with sibling links |
infra |
— | Skipped (on main) |
Notes
- Never force-push
- If
ghis not authenticated, inform the user and stop - If a repo has no remote, skip it with a warning
- Preserve any existing PR description content when adding sibling links — only add/update the "Sibling PRs" section
Установить pr-all-repos в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pr-all-repos?
Create PRs in all sub-repos with uncommitted branches, then link them as siblings
Как установить скилл pr-all-repos?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pr-all-repos запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic