Skip to main content
command CX Codex

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

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add gmickel/flow-next
/plugin install flow-next@flow-next
Open on GitHub

What 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_VERDICT line 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 the LAND_VERDICT line

How to install land

1Plugin marketplace

/plugin marketplace add gmickel/flow-next
/plugin install flow-next@flow-next

2Manually: put the files in place

.claude/commands/land.md

Call it with /land. For all projects use ~/.claude/commands/

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

Similar slash commands

All slash commands for Git and GitHub →

From the same set70

The whole set →

Project sponsors

Companies that keep this analytics open