
Auto merge rearms while agent live kill then disarm verify
Holds a pull request from merging by stopping its agent, disarming auto-merge, then
Auto merge rearms while agent live kill then disarm verify is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 5
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Auto merge rearms while agent live kill then disarm verify
This skill covers the case where a PR an agent opened and armed for auto-merge keeps merging after you disarm it. The explanation given is that the agent still runs and re-arms auto-merge because arming is part of its instructions, so a disarm sent without stopping the agent does not stick.
The skill gives two ways to hold a PR. The stronger one converts the PR to a draft with gh pr ready --undo, since GitHub refuses to merge a draft regardless of what an agent does. The ordered alternative keeps the PR ready for review: stop the agent first, run gh pr merge --disable-auto, then read autoMergeRequest and isDraft back with gh pr view, and check again several minutes later.
It also warns that cleanup routines deleting head branches whenever the branch exists can close a held draft, and recommends labelling each held PR with what actually enforces the hold. Inputs are the PR number and the GitHub CLI.
When your agent uses it
Disarming auto-merge on a PR whose agent is still running does not hold it — the agent re-arms within minutes and the PR merges, because arming is a step in the agent's brief and disarming is not an instruction to the agent at all. Use when: (1) you want to STOP a pull request from merging that an agent opened and armed, for review, for a rethink, or because it is landing into a queue you are trying to drain; (2) a PR you disarmed merged anyway; (3) you are telling agents which PRs are on hold and want the hold to be enforced rather than announced; (4) you are about to run `gh pr merge --disable-auto` and have not decided what to do about the agent. The order is KILL THE AGENT FIRST, THEN DISARM, THEN VERIFY the disarm by reading `autoMergeRequest` back — a disarm you did not read back is not a hold. The stronger form needs no ordering at all: convert the PR to a draft with `gh pr ready --undo`. A draft cannot merge whatever any agent does to it, so the hold survives an agent you missed, an agent that restart
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (9 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the agent-traffic-control plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add wan-huiyan/agent-traffic-control
/plugin install agent-traffic-control@wan-huiyan-agent-traffic-controlOr copy only this skill to ~/.claude/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify &&
cp -R "$tmp/plugins/agent-traffic-control/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify" ~/.claude/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify inside it instead.
Copy the skill folder to ~/.agents/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify &&
cp -R "$tmp/plugins/agent-traffic-control/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify" ~/.agents/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify inside it instead.
Copy the skill folder to ~/.cursor/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify &&
cp -R "$tmp/plugins/agent-traffic-control/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify" ~/.cursor/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/wan-huiyan/agent-traffic-control.git --path plugins/agent-traffic-control/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verifyOr copy the folder to ~/.gemini/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify &&
cp -R "$tmp/plugins/agent-traffic-control/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify" ~/.copilot/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify inside it instead.
Get the folder:
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.gitThen copy agent-traffic-control/plugins/agent-traffic-control/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify into your agent's skills folder as auto-merge-rearms-while-agent-live-kill-then-disarm-verify. Agents that support SKILL.md read one folder per skill.
What it does
- Draft conversion hold
- Converts a PR to draft so GitHub blocks merging whatever an agent does.
- Ordered disarm sequence
- Stops the agent, disarms auto-merge, then verifies the disarm by reading state back.
- Delayed re-check
- Repeats the state read several minutes later to catch an agent that re-arms.
- Branch deletion guard
- Warns that deleting branches on existence rather than merge status closes held drafts.
- Hold list labelling
- Recommends recording what enforces each held PR rather than only announcing the hold.
Good for
- Stop a pull request an agent armed from merging while it awaits review
- Check whether a disarmed PR has been re-armed or merged anyway
- Convert an agent-opened PR to draft so it cannot merge
- Verify auto-merge state on a set of PRs that are on hold
Auto merge rearms while agent live kill then disarm verify FAQ
What does Auto merge rearms while agent live kill then disarm verify need to run?
It uses the GitHub CLI (gh) with commands such as gh pr ready, gh pr merge and gh pr view, and needs a PR number.
Why does disarming auto-merge alone fail?
According to the skill, the agent that is still running re-arms auto-merge because arming is one of its brief's steps, so the disarm is undone within minutes.
Is converting to draft a permanent hold?
It is a hold enforced by GitHub, which refuses to merge a draft pull request, so the PR stays blocked until someone marks it ready again.
How do I install Auto merge rearms while agent live kill then disarm verify in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify to use it in all your projects, or to .claude/skills/auto-merge-rearms-while-agent-live-kill-then-disarm-verify in one project. Or install the agent-traffic-control plugin, which includes it: /plugin marketplace add wan-huiyan/agent-traffic-control, then /plugin install agent-traffic-control@wan-huiyan-agent-traffic-control.
Does Auto merge rearms while agent live kill then disarm verify run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Auto merge rearms while agent live kill then disarm verify?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Auto merge rearms while agent live kill then disarm verify?
The closest alternatives to Auto merge rearms while agent live kill then disarm verify are Gh PR merge unstable state needs auto and watch branch deletes, Open draft PR, Merge PR, Make PR and Create PR.
Where this comes from
- Description: from the skill's own SKILL.md.
More from wan-huiyan/agent-traffic-control

Teaches agents to refuse a flawed instruction only with measured evidence attached
- Open source
- 5 GitHub stars
- Developer tools

Catches silent deletions when a subagent edits large files with repeated blocks
- Open source
- 5 GitHub stars
- Developer tools

Checks that a batch of pull requests does not cite file paths that will never exist
- Open source
- 5 GitHub stars
- Developer tools

Checks whether a pull request truly landed by comparing file content, not commit subjects
- Open source
- 5 GitHub stars
- Developer tools

Checks a branch for stale-base changes that would silently undo newer main work
- Open source
- 5 GitHub stars
- Developer tools

Checks whether a CI skip rule actually saves money or only moves job minutes
- Open source
- 5 GitHub stars
- Developer tools




