Borrowing it
Nothing to install: this file belongs to darylmcd/Roslyn-Backed-MCP. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/darylmcd/Roslyn-Backed-MCP/main/.claude/skills/recover-stalled-subagent/SKILL.mdgit clone --depth 1 https://github.com/darylmcd/Roslyn-Backed-MCPWrote 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/darylmcd/roslyn-backed-mcp/recover-stalled-subagent)<a href="https://agentmods.dev/skills/darylmcd/roslyn-backed-mcp/recover-stalled-subagent"><img src="https://agentmods.dev/badge/skills/darylmcd/roslyn-backed-mcp/recover-stalled-subagent/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/darylmcd/roslyn-backed-mcp/recover-stalled-subagent"><img src="https://agentmods.dev/badge/skills/darylmcd/roslyn-backed-mcp/recover-stalled-subagent.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.00131 | $0.03930 |
| Opus 5 | $0.00066 | $0.01965 |
| Sonnet 5 | $0.00026 | $0.00786 |
| Haiku 4.5 | $0.00013 | $0.00393 |
Grade C, and why
recover-stalled-subagent scanned grade C with 1 finding 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 3d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
6. `dotnet build-server shutdown` **before** `git worktree remove --force`, or the Windows testhost/VBCSCompiler file lock on `tests/RoslynMcp.Tests/bin/{Debug,Release}/net10.0/` leaves a stale `.worktrees/<id>` director How it starts
The opening of the file, as written. The whole thing — 217 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Recover Stalled Subagent
You are a recovery operator. Your job is to take a single stalled subagent's branch name, salvage any uncommitted work in its worktree into a WIP commit pushed to origin, then remove the worktree cleanly — leaving the orchestrator a 6-line STATE_HANDOFF block it can drop into state.json's notes field for the affected initiative.
This skill does not query GitHub, reconcile plan state, edit state.json / plan.md / backlog.md / CHANGELOG.md, or decide whether the initiative should be retried / deferred. Those are orchestrator decisions. This is a worktree-rescue primitive.
Why this exists
Cold-subagent stalls (~1 in 10 spawn rate observed across 2026-04-17+18 passes) can emit a thought-fragment final message without the <<<RESULT>>> sentinel — see ~/.claude/prompts/_subagent-result-protocol.md Appendix B's malformed-result detection. The orchestrator then cannot parse a PR URL, but the subagent may have already produced real edits in its worktree. 2026-04-18 pass-3 init-5 stranded 729 insertions across 4 prod files + 1 test file before a 3-turn manual recovery dance.
Manual recovery steps (each with its own foot-gun):
cd .worktrees/<id>andgit status --porcelain— fine.- Stage files. If the operator reaches for
git add -A, they pick up stray.vs/caches,bin/,obj/, or other ignored-but-dirty paths. Explicit per-filegit add -- <path>is mandatory. - Commit with a well-formed WIP message citing the original branch.
- Push to origin (so the WIP is durable before worktree removal).
cdback to primary repo root — NOT from inside the worktree, or the next step fails.dotnet build-server shutdownbeforegit worktree remove --force, or the Windows testhost/VBCSCompiler file lock ontests/RoslynMcp.Tests/bin/{Debug,Release}/net10.0/leaves a stale.worktrees/<id>directory that the orchestrator mustrm -rfmanually (Device or resource busyongit worktree remove). This is the fix shipped by initiative 5 in PR #288; see~/.claude/prompts/backlog-remediate.mdfor the canonical cleanup discipline.git worktree remove --force .worktrees/<id>.- Emit a STATE_HANDOFF block the orchestrator can paste into
state.json.initiatives[n].notes.
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.
- 3d ago Changed a75465b74443
- 12d ago First seen · 217 lines · 131 tokens per session scan C 925c3c26b8a2
recover-stalled-subagent is a skill published in the GitHub repository darylmcd/Roslyn-Backed-MCP (1 stars, last pushed today), licensed MIT. It adds 131 tokens to every session and 3,930 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
prowler-commit
Creates professional git commits following conventional-commits format. Trigger: When creating commits, after completing code changes, when user asks to commit.
gh-auth-isolation
Safely manage multiple GitHub identities (EMU + personal) in agent workflows.
comet-github
A routing guide for Comet-related GitHub work. It directs requests about pull requests, issues, CI failures, ideas, and fixes to the appropriate review or implementation process.
github-skill
Work with GitHub via the gh CLI — clone repositories, create/list/merge pull requests, create/list issues, and run any other gh command (API calls, workflow runs, releases, repo administration). List operations return parsed JSON.
changelog-composer
Generates structured changelogs and release notes from git history and PRs, classifying breaking changes, features, fixes, performance, docs. Triggers on: "generate changelog", "write release notes", "what changed since", "prepare release", "release notes for", "diff since tag".
re0-merge
Review and land an external contribution the way this suite does: gate it against the thesis, land it with the author's credit intact, complete a new skill rather than merging it raw, then approve, credit, and explain before closing. Use when reviewing a pull request, as any collaborator or maintainer, not only the…