agentleFS
FlatbreadLabsFlatbreadLabs/flatbread/.agents/skills/mergify-merge-queue/SKILL.md

mergify-merge-queue

Skill67 starsChanged 2 months agoMITView on GitHub

Use Mergify merge queue to monitor, inspect, pause, and manage the merge queue. ALWAYS use this skill when checking queue status, investigating PR merge state, pausing/unpausing the queue, or debugging merge failures. Triggers on merge queue, queue status, queue pause, queue show, pause, unpause, frozen, bisecting, batch, CI checks.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 1 is distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use mergify queue status to see the current state of the merge queue:

    line 27
  2. Very specific:

    Use --json when you need to parse the output programmatically.

    line 33
  3. Very specific:

    Use mergify queue show <PR_NUMBER> to check why a PR is stuck or how it's progressing:

    line 37
  4. Very specific:

    Use -v (verbose) for the full checks table and conditions tree

    line 43
  5. Very specific:

    Use --yes-i-am-sure to skip the confirmation prompt in scripts

    line 71
  6. Very specific:

    Check that the PR's merge conditions are met: mergify queue show <PR_NUMBER> -v

    line 77
  7. Distinctive:

    Look at the conditions section for unmet requirements

    line 78
  8. Very specific:

    Check CI state: mergify queue show <PR_NUMBER>

    line 82
  9. Very specific:

    If checks are failing, inspect the failing checks with -v

    line 83
  10. Very specific:

    If the queue is paused, check who paused it: mergify queue status

    line 84
  11. Very specific:

    Check for failing batches that trigger bisection: mergify queue status

    line 88

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Mergify Merge Queue

Overview

The merge queue serializes PR merges, running CI on temporary merge commits to catch integration failures before they reach the target branch. Use the CLI to monitor queue state, inspect individual PRs, and manage the queue.

Commands

mergify queue status                 # Show queue status (batches, waiting PRs)
mergify queue status --branch main   # Filter by branch
mergify queue status --json          # Machine-readable JSON output
mergify queue show <PR_NUMBER>       # Detailed state of a PR in the queue
mergify queue show <PR_NUMBER> -v    # Full checks table and conditions tree
mergify queue show <PR_NUMBER> --json # Machine-readable JSON output
mergify queue pause --reason "..."   # Pause the queue (requires reason)
mergify queue unpause                # Resume the queue

Checking Queue Status

Use mergify queue status to see the current state of the merge queue:

  • Batches: groups of PRs being tested together, shown with their CI status and ETA
  • Waiting PRs: PRs queued but not yet in a batch, shown with priority and queue time
  • Pause state: whether the queue is paused and why

Use --json when you need to parse the output programmatically.

Inspecting a PR

Use mergify queue show <PR_NUMBER> to check why a PR is stuck or how it's progressing:

  • Position: where the PR sits in the queue
  • Priority: which priority rule matched
  • CI state: whether checks are passing, pending, or failing
  • Conditions: which merge conditions are met and which are blocking
  • Use -v (verbose) for the full checks table and conditions tree

Queue States

StateMeaning
runningBatch is actively running CI
preparingBatch is being set up
bisectingBatch failed, bisecting to find the culprit
failedCI failed for this batch
mergedPRs in this batch have been merged
waiting_for_mergeCI passed, waiting for GitHub to merge
waiting_for_previous_batchesBlocked on earlier batches completing
waiting_for_batchWaiting to be picked up into a batch
waiting_scheduleOutside the configured merge schedule
frozenQueue is paused

Pausing and Unpausing

Pause the queue to temporarily halt all merges (e.g., during incidents or deployments):

mergify queue pause --reason "production incident — halting merges"
mergify queue unpause
  • Pausing does not cancel running CI — it prevents new merges from starting
  • The reason is visible to all team members in the queue status
  • Use --yes-i-am-sure to skip the confirmation prompt in scripts

Troubleshooting

PR not entering the queue:

  • Check that the PR's merge conditions are met: mergify queue show <PR_NUMBER> -v
  • Look at the conditions section for unmet requirements

PR stuck in queue:

  • Check CI state: mergify queue show <PR_NUMBER>
  • If checks are failing, inspect the failing checks with -v
  • If the queue is paused, check who paused it: mergify queue status

Queue moving slowly:

  • Check for failing batches that trigger bisection: mergify queue status
  • Bisecting batches test PRs individually, which is slower than batch merging

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.