بنقرة واحدة
pr-all-repos
Create PRs in all sub-repos with uncommitted branches, then link them as siblings
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Create PRs in all sub-repos with uncommitted branches, then link them as siblings
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Create an implementation plan in _plans/ with embedded repo context and step-by-step task lists
Execute a plan from _plans/, implementing steps, checking off tasks, running tests, and documenting fixes
Clone/pull git repos, verify local folders, auto-register orphans, and regenerate repos.md
Clone a git repo or register a local folder into repos/ and update repos.md with its description
Find and remove stale entries from repos.yaml whose directories no longer exist on disk
Iterate through all sub-repos in repos/ and stage/commit/push each one, then do the same for the master repo
| name | pr-all-repos |
| description | Create PRs in all sub-repos with uncommitted branches, then link them as siblings |
| user-invocable | true |
| origin | template |
Create pull requests across all sub-repos that have branches ready for review, then cross-link them as sibling PRs.
gh CLI must be authenticated (gh auth status)For each directory in repos/*/ that is a git repository:
git -C repos/<name> branch --show-currentgh pr view --repo <remote> --json url 2>/dev/nullgit -C repos/<name> log @{u}..HEAD 2>/dev/nullgit -C repos/<name> push -u origin <branch>Collect the list of repos that need new PRs and repos that already have PRs.
For each repo that needs a new PR:
cd into the repo directorygit log --oneline main..<branch> (or master) to understand the changesgh 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
)"
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.
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.
The user may optionally specify:
/pr-all-repos --base develop (default: main)/pr-all-repos frontend backend-api (default: all repos with non-default branches)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) |
gh is not authenticated, inform the user and stop