land — Claude Code command: squash merge a PR, how to install
land drives one named pull request through review feedback and CI, checks the specs at its head, then squash merges once the session is authorized.
MIT ★ 730 updated 2026-10-29
/plugin marketplace add gmickel/flow-next
/plugin install flow-next@flow-nextWhat land does
It takes a pull request name plus an optional --dry-run flag, as in /flow-next:land <PR>. The command does no merging itself: the PR name and the current session's authorization go to the flow-next-land skill. That skill works through review comments and CI, reads the specs at the PR head, and squash merges when things are ready. One LAND_VERDICT line comes back.
Frontmatter carries disable-model-invocation: true, so the model will not fire it on its own. You call it. On Codex the prompt file sits at ~/.codex/prompts/land.md.
No authorization in the session means no merge, since the command checks it first. Run it in the session where the work was approved, with the PR named outright in the argument.
What it helps with
- Squash merge a pull request without hand-assembling the commands
- Work through review comments and a failing CI run in one pass
- Compare the specs at the PR head before merging
- Get a single
LAND_VERDICTline back for the pull request
Example prompts for the agent
- Land this one:
/flow-next:land <PR> - Start with
/flow-next:land <PR> --dry-run - Call
/flow-next:land <PR>and paste theLAND_VERDICTline
How to install land
1Plugin marketplace
/plugin marketplace add gmickel/flow-next/plugin install flow-next@flow-next2Manually: put the files in place
.claude/commands/land.mdCall it with /land. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/land.mdCall it with /prompts:land. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/land.prompt.mdManually: put the files in place
.gemini/commands/land.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about land
How do I install land in Claude Code?
Add the marketplace first with /plugin marketplace add gmickel/flow-next, then install the plugin with /plugin install flow-next@flow-next. The command file is .claude/commands/land.md.
What does the land command do?
It hands a named PR and the session authorization to the flow-next-land skill, which handles review feedback and CI, checks the specs, and squash merges. The result is printed as a LAND_VERDICT line.
Why doesn't land run on its own?
The frontmatter sets disable-model-invocation: true, so the model never triggers it automatically. You invoke it yourself with a PR name.
Source text
land.md · MIT
--- name: land description: Resolve and squash merge one named, currently authorized pull request argument-hint: "<PR> [--dry-run]" disable-model-invocation: true --- # IMPORTANT: This command MUST invoke the skill `flow-next-land` The ONLY purpose of this command is to call the `flow-next-land` skill. You MUST use that skill now. **Arguments:** $ARGUMENTS Pass the named pull request and current session authorization to the skill. It resolves feedback and CI, checks the specs at the PR head, and merges when ready and authorized. It prints one terminal LAND_VERDICT line.
© Gordon Mickel · MIT · gmickel/flow-next