gh-squash-merge-closes-only-one-issue

gh-squash-merge-closes-only-one-issue is a skill for Claude Code from wan-huiyan/agent-traffic-control. It costs 307 tokens per session (1,801 once invoked), scanned A, original, MIT.

A GitHub pull-request tracking warning about automatic issue closing after a squash merge. A squash merge combines a pull request’s changes into one commit.

In plain words
What is it for?
Use it after merging a pull request that references multiple issues. It helps check that every intended issue was actually closed.
Why use it?
When several issues are listed with “Closes” or similar wording, GitHub may close only the first one even though the pull request merged successfully.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions Claude Code.

Part of the agent-traffic-control plugin — 105 skills shipped together

Good fit Use it after merging a pull request that references multiple issues. It helps check that every intended issue was actually closed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wan-huiyan/agent-traffic-control/gh-squash-merge-closes-only-one-issue
Install

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.

Any agent
npx skills add wan-huiyan/agent-traffic-control --skill gh-squash-merge-closes-only-one-issue
Clone the repo
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control

Made for: Claude Code.

Or install agent-traffic-control, the plugin that ships this one along with the rest of its 105 skills.

Wrote 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.

agentmods badge for gh-squash-merge-closes-only-one-issue

README.md
[![agentmods](https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/gh-squash-merge-closes-only-one-issue/github.svg)](https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/gh-squash-merge-closes-only-one-issue)
Your own site
<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/gh-squash-merge-closes-only-one-issue"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/gh-squash-merge-closes-only-one-issue/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.

agentmods 80×15 button for gh-squash-merge-closes-only-one-issue

Your own site · 80×15
<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/gh-squash-merge-closes-only-one-issue"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/gh-squash-merge-closes-only-one-issue.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 307 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,801 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00307 $0.01801
Opus 5 $0.00153 $0.00901
Sonnet 5 $0.00061 $0.00360
Haiku 4.5 $0.00031 $0.00180

Measured 12d ago against content hash e961acb944da, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

gh-squash-merge-closes-only-one-issue 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.

plugins/agent-traffic-control/skills/gh-squash-merge-closes-only-one-issue/SKILL.md · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GitHub squash-merge auto-closes only one issue per PR

Problem

You shipped a fix PR that addresses 4 filed issues. PR title:

fix(dashboard): wire /actions segment tiles + plug 4 audit P0s (closes #447, #448, #449, #450)

PR body opens with:

Closes #447, #448, #449, #450 — the four template/route P0s from the audit.

PR squash-merges cleanly. CI green, branch deleted. You move on.

Later: gh issue list --state open shows #448, #449, #450 still OPEN. Only #447 got auto-closed. You spend a confused minute checking whether the fix actually shipped (it did) before realising the issues never closed.

Context / Trigger Conditions

All of:

  1. PR title or body includes a comma-separated Closes #X, #Y, #Z (or Fixes, Resolves) reference.
  2. PR was squash-merged (regular merge has slightly different parsing but the same gotcha applies).
  3. After merge: gh pr view N --json state returns MERGED, but gh issue view #Y returns OPEN for the second-and-later issues.
  4. The first issue in the comma list IS closed correctly — proves your "Closes" keyword wasn't malformed.

This is not about the issues' content / labels / state. The fix did ship. The auto-close parser just bound the keyword to one issue.

Solution

Path A — prevent (preferred, before merge)

Write one keyword per issue in the PR body. GitHub closes each:

## Summary

Bundles four P0 fixes from the 2026-05-07 audit.

Closes #447.
Closes #448.
Closes #449.
Closes #450.

Or comma-list with a keyword per item:

Closes #447, closes #448, closes #449, closes #450.

GitHub recognises close, closes, closed, fix, fixes, fixed, resolve, resolves, resolved (any case). One keyword binds to the immediately-following issue ref; a bare comma + #N after it is a reference, not a close trigger.

Path B — recover (after merge)

If the PR is already merged with the broken comma-list pattern:

# Close each leftover issue with a reference comment
for issue in 448 449 450; do
  gh issue close $issue \
    --comment "Closed by PR #457 (squash-merge auto-close caught only one issue per PR)."
done

Read the full file on GitHub · 146 lines

Changes

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.

  1. 12d ago First seen · 146 lines · 307 tokens per session scan A e961acb944da

Subscribe to this mod's changes

gh-squash-merge-closes-only-one-issue is a skill published in the GitHub repository wan-huiyan/agent-traffic-control (3 stars, last pushed today), licensed MIT. It adds 307 tokens to every session and 1,801 once invoked, about $0.0015 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.

Related

Other skills, from other repositories

cloudflare-workers-ci-cd

Complete CI/CD guide for Cloudflare Workers using GitHub Actions and GitLab CI. Use for automated testing, deployment pipelines, preview environments, secrets management, or encountering deployment failures, workflow errors, environment configuration issues.

secondsky/claude-skills · 50 tokens

claude-code-bash-patterns

Claude Code Bash tool patterns with hooks, automation, git workflows. Use for PreToolUse hooks, command chaining, CLI orchestration, custom commands, or encountering bash permissions, command failures, security guards, hook configurations.

secondsky/claude-skills · 52 tokens

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.

futuresearch/futuresearch-python · 40 tokens

pr-check

PR review compliance: fetch review comments from an open PR, categorize as resolved/unresolved/dismissed, critically evaluate fixable items, implement approved fixes, and reply inline. Pass --unattended to halt on human-judgment items (emitted as Pending-Human) instead of prompting via AskUserQuestion.

rube-de/cc-skills · 67 tokens

babysit

PR babysitter: monitors CI status, auto-rebases when behind, auto-fixes CI where possible, delegates review comment handling to dlc:pr-check, and re-requests review after fixes. Designed for /loop usage with Remote Control.

rube-de/cc-skills · 53 tokens

git-ops

Git hygiene: clean up merged branches, prune stale remotes, and verify repository state.

rube-de/cc-skills · 22 tokens