Stacks
Break large changes into small, reviewable pull requests. One branch, many PRs.
AI can write 1,000 lines of code in minutes, but nobody wants to review a 1,000-line pull request. Reviewers skim instead of reading, bugs slip through, and merges stall for days.
The Problem: One Branch = One PR
Section titled The Problem: One Branch = One PRGitHub’s pull request model ties every branch to a single PR. As you add commits, the PR grows, and so does the review burden.
Developers face a bad choice: ship one giant PR that no one can review thoroughly, or manually manage a chain of dependent branches and rebase each one whenever the base changes. Git has the tools to split work into atomic commits. GitHub just doesn’t expose them as separate, reviewable units.
The Solution: One Branch, Many PRs
Section titled The Solution: One Branch, Many PRsMergify Stacks maps each commit on your branch to its own pull request, automatically chained in dependency order.
You work on a single local branch using standard Git: commits, rebase, amend. When you push, Stacks creates a separate PR for each commit, linked together so reviewers see the logical progression of your work.
- Small, focused PRs that reviewers actually read
- One local branch (no juggling N branches for N PRs)
- Automatic PR chaining with dependency tracking
- Smart updates that only touch PRs that changed
- Standard Git, no new commands to learn
- Ships with skills for Claude Code, Cursor, and any agent supporting skills.sh
- Complements Merge Queue for safe, fast landing
Get Started in 30 Seconds
Section titled Get Started in 30 SecondsFor your AI coding agent: share this URL:
https://docs.mergify.com/stacks/agentsYour agent installs the CLI and the Stacks skill itself, then you prompt it as usual.
For yourself:
uv tool install mergify-climergify stack setupmergify stack pushSee the setup guide for the full walkthrough.
Learn More
Section titled Learn MoreFor AI Agents
A single URL to hand your AI coding agent so it installs the CLI and the Stacks skill itself.
Was this page helpful?
Thanks for your feedback!