subagent-driven-branch-ref-froze-stranded-commits

subagent-driven-branch-ref-froze-stranded-commits is a skill for Claude Code from wan-huiyan/agent-traffic-control. It costs 545 tokens per session (3,710 once invoked), scanned A, original, MIT.

A Git recovery guide for commits that exist in a local worktree but were never included in the remote branch or merged pull request.

In plain words
What is it for?
It is for finding stranded commits after a merge, checking what reached the remote repository, and recovering missing changes.
Why use it?
It explains how work can look committed locally while the branch reference—the pointer Git uses for the published branch—stops before those commits.

Skill for Claude Code

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

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

Good fit It is for finding stranded commits after a merge, checking what reached the remote repository, and recovering missing changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wan-huiyan/agent-traffic-control/subagent-driven-branch-ref-froze-stranded-commits
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 subagent-driven-branch-ref-froze-stranded-commits
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 subagent-driven-branch-ref-froze-stranded-commits

README.md
[![agentmods](https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/subagent-driven-branch-ref-froze-stranded-commits/github.svg)](https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/subagent-driven-branch-ref-froze-stranded-commits)
Your own site
<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/subagent-driven-branch-ref-froze-stranded-commits"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/subagent-driven-branch-ref-froze-stranded-commits/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 subagent-driven-branch-ref-froze-stranded-commits

Your own site · 80×15
<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/subagent-driven-branch-ref-froze-stranded-commits"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/subagent-driven-branch-ref-froze-stranded-commits.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 545 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,710 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.00545 $0.03710
Opus 5 $0.00272 $0.01855
Sonnet 5 $0.00109 $0.00742
Haiku 4.5 $0.00055 $0.00371

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

Security

Grade A, and why

subagent-driven-branch-ref-froze-stranded-commits 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 6d 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/subagent-driven-branch-ref-froze-stranded-commits/SKILL.md · 313 lines

How it starts

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

Subagent-driven session left commits stranded — branch ref froze while worktree HEAD advanced

Problem

You ran a long superpowers:subagent-driven-development (or similar fresh- subagent-per-task) session in a worktree. Each subagent did its task, committed its work, the controlling session ran spec + code-quality review per task, all green. At the end you pushed the worktree's branch to origin, opened a PR, CI went green, you squash-merged.

Hours or one session later, somebody runs pytest on freshly-pulled main and gets a ModuleNotFoundError, a missing-file assertion, or a sql_path missing error pointing at code that was definitely committed during the session. git log in your old worktree still shows all the commits at the top of the branch. But on main, half of them are gone.

The squash commit on main contains only the early portion of your work — typically the first N tasks before some specific transition point. Tasks after that point exist as commits in the worktree (git log shows them) but did not reach origin, did not reach the PR, did not reach the merge.

Context / Trigger Conditions

Strong signal after the merge:

  1. gh pr view <N> body claims a file count (e.g. "55 files changed") that doesn't match the actual squash-commit file count (git diff-tree --no-commit-id --name-only -r <merge-sha> | wc -l).
  2. A test that passed locally during the session now fails on main because a file the test depends on isn't there.
  3. Receiving session's first pip install or pytest surfaces ModuleNotFoundError, sql_path missing, or "no such file" referencing work the previous session reported as DONE.

Strong signal during the session (catch it before pushing):

  1. git rev-parse HEADgit rev-parse <feature-branch> in the worktree. The branch ref is behind.
  2. git reflog show <feature-branch> has a reflog gap — the most recent worktree-...@{0} entry is older than the most recent commit shown by git log. The commits between branch-ref's frozen point and current HEAD are stranded.
  3. git status in the worktree may or may not report HEAD detached at <sha> — sometimes the detach happened mid-stream and a later subagent created the symbolic-ref linkage on its own, leaving an inconsistent state.

Read the full file on GitHub · 313 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. 6d ago First seen · 313 lines · 545 tokens per session scan A 5bebe74e790f

Subscribe to this mod's changes

subagent-driven-branch-ref-froze-stranded-commits is a skill published in the GitHub repository wan-huiyan/agent-traffic-control (3 stars, last pushed 6d ago), licensed MIT. It adds 545 tokens to every session and 3,710 once invoked, about $0.0027 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-09-05.

Related

Other skills, from other repositories

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

git-commit

Turn the working changes into one or more atomic commits with well-written messages. Use whenever the user runs /git-commit or asks to commit their work, wrap up a feature, or "commit what I have.".

thoughtbot/rails-consultant · 47 tokens

misuzu

Respond to PR review comments semi-automatically. Fetches all review threads and comments, splits them into logical units, fixes and commits one unit at a time, then replies and resolves review threads. Use when the user wants to address PR review feedback or respond to review comments.

ncaq/konoka · 59 tokens

commit-style

Commit message style guidelines. Use when writing or proposing git commit messages, including direct git commit commands outside the /commit skill.

ncaq/konoka · 28 tokens

pre-commit

Fast pre-commit quality gate: scans staged files for secrets, dead code, naming issues, merge conflict markers, and direct-to-main commits. Installs as a git hook via /pre-commit install.

RealDougEubanks/ClaudeMarketplace · 46 tokens

commit

One-shot conventional commit; bundled scripts adaptively gather diff context, draft the message, and stage+commit — pass ask to confirm first or add a hint for the title. Use only when the user asks for a commit.

foyzulkarim/skills · 49 tokens