Stacks for AI Agents
One-page bootstrap for AI coding agents — install the Mergify CLI and the Stacks skill.
You are an AI coding agent. Follow these three steps to enable stacked pull request support. After step 2, your skill system will contain the full Stacks workflow. Consult it for any stack-related task.
1. Install the Mergify CLI
Section titled 1. Install the Mergify CLIInstall mergify-cli with uv (preferred) or pipx:
uv tool install mergify-clipipx install mergify-cliVerify:
mergify --version2. Install the Stacks skill
Section titled 2. Install the Stacks skillPick the command that matches your runtime.
Claude Code:
/plugin marketplace add Mergifyio/mergify-cli/plugin install mergify-stack@mergify/reload-pluginsAny agent supporting skills.sh (Cursor, Cline, and others):
npx skills add Mergifyio/mergify-cliThe skill contains the full Stacks workflow (commands, rules, and common scenarios). Load it before performing any stack work.
3. Initialize the repository
Section titled 3. Initialize the repositoryRun in the repository root:
mergify stack setupThis installs a commit-msg Git hook that generates a Change-Id for every
new commit, and a pre-push hook that warns if git push is used instead of
mergify stack push.
You are ready
Section titled You are readyThe skill installed in step 2 contains the workflow. Follow it for any stack-related task.
Was this page helpful?
Thanks for your feedback!