Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add wan-huiyan/agent-traffic-control --skill gh-pr-merge-unstable-state-needs-auto-and-watch-branch-deletesgit clone --depth 1 https://github.com/wan-huiyan/agent-traffic-controlWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/gh-pr-merge-unstable-state-needs-auto-and-watch-branch-deletes)<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/gh-pr-merge-unstable-state-needs-auto-and-watch-branch-deletes"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/gh-pr-merge-unstable-state-needs-auto-and-watch-branch-deletes/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/gh-pr-merge-unstable-state-needs-auto-and-watch-branch-deletes"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/gh-pr-merge-unstable-state-needs-auto-and-watch-branch-deletes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00417 | $0.03036 |
| Opus 5 | $0.00209 | $0.01518 |
| Sonnet 5 | $0.00083 | $0.00607 |
| Haiku 4.5 | $0.00042 | $0.00304 |
Grade A, and why
gh-pr-merge-unstable-state-needs-auto-and-watch-branch-deletes scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 236 lines — stays where its author put it; the contents beside it link to each section on GitHub.
gh pr merge UNSTABLE state + branch-delete recovery
Problem
Two adjacent failure modes that read as "merge conflicts" but aren't:
Failure A: gh pr merge rejects with "conflicts" when there are none
You push a clean resolution of merge conflicts, GitHub shows the PR as MERGEABLE, and yet:
$ gh pr merge 915 --squash
To have the pull request merged after all the requirements have been met,
add the `--auto` flag.
Run the following to resolve the merge conflicts locally:
gh pr checkout 915 && git fetch origin main && git merge origin/main
The first line is the actual hint; the second is misleading boilerplate. The real cause is
mergeStateStatus: UNSTABLE — branch protection or CI checks are pending. gh can't merge yet
because the repo's rules aren't satisfied, not because of file-level conflicts.
Failure B: PR auto-closes if you delete the remote branch right after Failure A
Common pattern: previous PR on the same branch merged cleanly with gh pr merge <N> --squash. You
then do git push origin --delete <branch> to clean up. Habit kicks in for the next PR — you run
gh pr merge (gets Failure A above), notice the "conflicts" warning, run
git push origin --delete <branch> anyway thinking the merge already landed remotely...
$ gh pr view 915 --json state
{"state":"CLOSED"} # ← not MERGED — the PR closed because the branch was deleted with the merge un-queued
GitHub treats a deleted-branch PR with no merge in progress as abandoned and closes it.
Context / Trigger conditions
gh pr merge --squash(or--merge) returns with the "add the--autoflag" / "resolve conflicts" stderrgh pr view <N> --json state,mergeable,mergeStateStatusshows{state: OPEN, mergeable: MERGEABLE, mergeStateStatus: UNSTABLE}— theUNSTABLEis diagnostic; it means "no real conflicts, but checks aren't passing yet"- Or: a PR you just tried to merge is now
state: CLOSEDrather thanstate: MERGED, AND the remote branch is missing - Repo has branch protection rules (required status checks, required reviews) OR CI workflows that haven't completed yet
- You're in a multi-PR session where the previous PR merged cleanly, conditioning you to expect the same flow
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 236 lines · 417 tokens per session scan A 7ca1bb3046f4
gh-pr-merge-unstable-state-needs-auto-and-watch-branch-deletes is a skill published in the GitHub repository wan-huiyan/agent-traffic-control (3 stars, last pushed today), licensed MIT. It adds 417 tokens to every session and 3,036 once invoked, about $0.0021 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
bump-sdk-version
Bump the FutureSearch SDK version across all files. Use when releasing a new SDK version, updating version numbers, or the user says bump version, release, version bump.
git-workflow
Enforces the release-branch Git model: scaffold feature branches, open PRs with review checks, cut releases with tags, and view workflow reference.
changelog-generator
Generates a structured CHANGELOG.md following Keep a Changelog format from git history and ABD handoff artifacts. Prepends new version sections to existing changelogs.
agent-based-development
Full async multi-agent development workflow: Planning → Design → Dev → Security/Tech Review loop with file-based handoffs and release-branch Git model.
claude-plugin-repo-ci-release
Wire up CI validation and automatic release-cutting for a Claude Code plugin or marketplace repo (a repo with a .claude-plugin/marketplace.json and plugins/). Adds two GitHub Actions — a structure validator that runs on every PR/push, and a release-on-version-bump job that cuts a GitHub Release whenever a VERSION file…
abd-devops
ABD DevOps agent: scaffolds CI/CD, validates .env.example coverage, checks Dockerfile hygiene, and handles release tasks.