Agent skill
merge-all
Merge all open PRs into main with testing between each
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/merge-all
SKILL.md
Merge all open PRs into main, testing between each merge.
- List open PRs with
gh pr list. Include PRs from Claude agents and the repo owner. - For each PR, in order by PR number:
a. Check mergeable status. If conflicts exist, stop and report — do not force merge.
b. Merge with
gh pr merge N --merge --delete-branch. c. Pull to local main:git pull origin main. d. Run full test suite:.\tests\test.ps1 --livee. If tests fail: stop immediately, report which PR broke tests and what failed. Do not proceed to the next PR. f. If tests pass: clean up the local worktree if one exists for this branch (git worktree remove .claude/worktrees/<name>thengit branch -d <branch>). Continue to next PR. - After all PRs merged and all tests green,
git push origin main. - Report summary: how many PRs merged, worktrees cleaned, any issues encountered.
If there are no open PRs, just say so.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?