Claude Code Skills·Claude Skills·The open SKILL.md registry for Claude
ClaudSkills / Product / product-misc

Subagent Driven Branch Ref Froze Stranded Commits

Category: Product  ·  Sub-category: product-misc  ·  Last updated:
ai:agenttype:debug
Diagnose and recover from "PR merged, but half my work is missing from main" cases in `superpowers:subagent-driven-development` (or similar one-fresh-subagent-per-task) sessions, where committed work survives in the worktree's `HEAD` chain but never makes it into the pushed branch ref. Use when ANY of these appears: (1) `gh pr view <N>` body claims "M files changed, N insertions" but `gh pr diff <N> --name-only | wc -l` returns a smaller number than you expect (canary: PR-body file count > actual squash-commit file count), (2) the merged squash commit on main is MISSING entire files you remember creating (Dockerfile, route handler, deploy artefact, etc.) — and you wrote AND committed them per the subagent reports, (3) `git rev-parse HEAD` ≠ `git rev-parse <feature-branch>` in the worktree (HEAD is ahead), (4) `git reflog show <feature-branch>` ends earlier than `git log --oneline` on the same worktree (reflog gap = stranded zone), (5) tests that passed locally during the session now fail on main because files referenced by the committed code never landed, (6) the receiving session (or human running CI) discovers `ModuleNotFoundError`, `sql_path missing`, or similar "file referenced by code does not exist" symptom on freshly-pulled main. Root cause: one of the implementer subagents committed in a detached-HEAD state (e.g., after a `git checkout <sha>`, post-stash, post-cherry-pick abort, or an internal worktree reset by a tool). Subsequent subagents inherit the detached HEAD; each `git commit` advances HEAD but never updates the named branch. `git log` (without an explicit ref) walks from HEAD, so every per-task diagnostic looked correct. `git push <branch>` ships the branch ref — i.e. the truncated tree. The squash captures only the truncated portion. Sister to `working-tree-edits-stranded-on-squash-merge` (uncommitted Edit() — different mechanism, same symptom class) and `pr-followup-commit-stranded-after-squash` (commits pushed after merge — different timing). Distinct from `pr-hijack-via-stale-worktree-branch-ref` (which is about overwriting a different branch upstream).
Security AStatic scan found no risk patternsHow grading works ›

What this skill does

Subagent Driven Branch Ref Froze Stranded Commits is a community-contributed Claude Code skill in the product-misc sub-category. It ships as a SKILL.md file that Claude Code auto-discovers under ~/.claude/skills/subagent-driven-branch-ref-froze-stranded-commits/ and loads when your prompt matches the skill's trigger.

When to invoke it: Use when ANY of these appears: (1) `gh pr view <N>` body claims "M files changed, N insertions" but `gh pr diff <N> --name-only | wc -l` returns a smaller number than you expect (canary: PR-body file count > actual squash-commit file count), (2) the merged squash commit on main is MISSING entire files you remember creating (Dockerfile, route handler, deploy artefact, etc.) — and you wrote AND committed them per the subagent reports, (3) `git rev-parse HEAD` ≠ `git rev-parse <feature-branch>` in the worktree (HEAD is ahead), (4) `git reflog show <feature-branch>` ends earlier than `git log --oneline` on the same worktree (reflog gap = stranded zone), (5) tests that passed locally during the session now fail on main because files referenced by the committed code never landed, (6) the receiving session (or human running CI) discovers `ModuleNotFoundError`, `sql_path missing`, or similar "file referenced by code does not exist" symptom on freshly-pulled main.

Who uses this skill

The Subagent Driven Branch Ref Froze Stranded Commits Claude Code skill is built for product managers, product designers, and cross-functional teams planning, shipping, and measuring product features. It's part of ClaudSkills (also referred to as Claude Skills or Claude Code Skills) — the open community-curated registry of 211,000+ SKILL.md files for Anthropic's Claude Code agent and the wider Claude ecosystem (Claude API, Claude Agent SDK).

How to install

Free

Manual install (2 steps)

mkdir -p ~/.claude/skills/subagent-driven-branch-ref-froze-stranded-commits
curl -L https://claudskills.com/skills/subagent-driven-branch-ref-froze-stranded-commits/SKILL.md \
  -o ~/.claude/skills/subagent-driven-branch-ref-froze-stranded-commits/SKILL.md

Or just download SKILL.md directly and drop it into ~/.claude/skills/subagent-driven-branch-ref-froze-stranded-commits/. Claude Code auto-discovers it on next session.

Skills live at ~/.claude/skills/subagent-driven-branch-ref-froze-stranded-commits/SKILL.md on macOS/Linux, or %USERPROFILE%\.claude\skills\subagent-driven-branch-ref-froze-stranded-commits\SKILL.md on Windows. See the full install guide for step-by-step instructions.

Telegram

📱 Install from your phone or desktop Telegram

Open @claudskills_bot on Telegram, tap Open Desktop App, and the desktop app installs this skill for you. Or share the bot link with a colleague — they get the same one-tap install. Learn more →

Pro

One-click install via the desktop app

The ClaudSkills desktop app installs any skill directly into ~/.claude/skills/ with one click — no terminal required. Pro starts at $9/mo or $149 lifetime.

Pro

For the full experience including quality scoring and one-click install features for each skill — upgrade to Pro.

Frequently asked questions

How do I install the Subagent Driven Branch Ref Froze Stranded Commits Claude Code skill?
Install via the ClaudSkills desktop app (one click) or copy SKILL.md from the source repository to ~/.claude/skills/subagent-driven-branch-ref-froze-stranded-commits/SKILL.md and restart Claude Code. Both flows are detailed at claudskills.com/install/.
What does the Subagent Driven Branch Ref Froze Stranded Commits skill do?
Diagnose and recover from "PR merged, but half my work is missing from main" cases in `superpowers:subagent-driven-development` (or similar one-fresh-subagent-per-task) sessions, where committed work survives in the worktree's `HEAD` chain but never makes it into the pushed branch ref. Use when ANY of these appears: (1) `gh pr view <N>` body claims "M files changed, N insertions" but `gh pr diff <N> --name-only | wc -l` returns a smaller number than you expect (canary: PR-body file count > actual squash-commit file count), (2) the merged squash commit on main is MISSING entire files you remember creating (Dockerfile, route handler, deploy artefact, etc.) — and you wrote AND committed them per the subagent reports, (3) `git rev-parse HEAD` ≠ `git rev-parse <feature-branch>` in the worktree (HEAD is ahead), (4) `git reflog show <feature-branch>` ends earlier than `git log --oneline` on the same worktree (reflog gap = stranded zone), (5) tests that passed locally during the session now fail on main because files referenced by the committed code never landed, (6) the receiving session (or human running CI) discovers `ModuleNotFoundError`, `sql_path missing`, or similar "file referenced by code does not exist" symptom on freshly-pulled main. Root cause: one of the implementer subagents committed in a detached-HEAD state (e.g., after a `git checkout <sha>`, post-stash, post-cherry-pick abort, or an internal worktree reset by a tool). Subsequent subagents inherit the detached HEAD; each `git commit` advances HEAD but never updates the named branch. `git log` (without an explicit ref) walks from HEAD, so every per-task diagnostic looked correct. `git push <branch>` ships the branch ref — i.e. the truncated tree. The squash captures only the truncated portion. Sister to `working-tree-edits-stranded-on-squash-merge` (uncommitted Edit() — different mechanism, same symptom class) and `pr-followup-commit-stranded-after-squash` (commits pushed after merge — different timing). Distinct from `pr-hijack-via-stale-worktree-branch-ref` (which is about overwriting a different branch upstream).
Is this skill free to install?
Yes. ClaudSkills is an open registry — every skill keeps its source repository's license, and manual install via copy is free. ClaudSkills Pro ($9/mo, $79/yr, or $149 one-time) adds one-click install via the desktop app and a multi-signal Quality Score.
When should I use the Subagent Driven Branch Ref Froze Stranded Commits skill?
Use Subagent Driven Branch Ref Froze Stranded Commits when your Claude Code task falls under the Product category — specifically in the product misc area. Claude Code auto-discovers installed skills and invokes the right one based on the task description, so you can also ask Claude directly (e.g. "use Subagent Driven Branch Ref Froze Stranded Commits" or describe the task and let Claude pick). Browse related skills at /category/product/.
What is a Claude Code skill and how does the Subagent Driven Branch Ref Froze Stranded Commits skill fit in?
A Claude Code skill is a SKILL.md file that lives under ~/.claude/skills/<name>/ and tells the Claude Code CLI agent how to perform a specific task (instructions, prompts, allowed tools). Skills are auto-discovered at session start. Subagent Driven Branch Ref Froze Stranded Commits is one of 67,000+ skills indexed in the open ClaudSkills catalog, classified under the Product category. Learn more at /learn/what-is-a-claude-skill/.

Attribution & license

Cite this skill

If you reference this skill in a blog post, paper, or documentation, you can cite it as:

APA
Claude Code. (2026). Subagent Driven Branch Ref Froze Stranded Commits [Claude Code skill]. ClaudSkills. https://claudskills.com/skills/subagent-driven-branch-ref-froze-stranded-commits/
BibTeX
@misc{subagent-driven-branch-ref-froze-stranded-commits-2026,
  author    = {Claude Code},
  title     = {Subagent Driven Branch Ref Froze Stranded Commits [Claude Code skill]},
  year      = {2026},
  publisher = {ClaudSkills},
  url       = {https://claudskills.com/skills/subagent-driven-branch-ref-froze-stranded-commits/}
}

Embed this skill

Promote, attribute, or link this skill from your own README, blog post, or documentation. All three snippets are free to use — no sign-up, no API key. More distribution surfaces →

Badge
[![ClaudSkills](https://claudskills.com/badge/subagent-driven-branch-ref-froze-stranded-commits.svg)](https://claudskills.com/skills/subagent-driven-branch-ref-froze-stranded-commits/?utm_source=badge&utm_medium=readme&utm_campaign=skill_badge)
<script>
<script src="https://claudskills.com/embed/subagent-driven-branch-ref-froze-stranded-commits.js" async></script>
<iframe>
<iframe src="https://claudskills.com/embed/subagent-driven-branch-ref-froze-stranded-commits.html" width="100%" height="160" frameborder="0" loading="lazy" title="ClaudSkills: Subagent Driven Branch Ref Froze Stranded Commits"></iframe>

Security scan

Grade A · scanned 2026-10-25 — free static scan against the OWASP Agentic Skills Top 10.

No risk patterns were found in any of the ten OWASP-aligned categories. How grading works ›

Show this grade on your repo (click to copy):

[![Security: A](https://img.shields.io/badge/Security-A-2e7d32)](https://claudskills.com/skills/subagent-driven-branch-ref-froze-stranded-commits/#security)

Free. No spam. Unsubscribe in one click.

More Product skills

Browse all Product skills in the ClaudSkills registry, or explore these other picks from the same category:

Browse all Product skills → Top 100 skills
Part of ClaudSkills — the open registry for Claude Skills & Claude Code Skills.  ·  What's New  ·  Install guide  ·  About  ·  llms.txt

Part of Acreator Store — Adam Lankamer's AI tools: PerfectStudio · Ucaption · UTagger · AutoXPoster · TestYourSkills · AutomationFlows · Au Naturel · Telegram @acreatorstore