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 AtlasOmnia/donna-starter --skill coding-worktree-recoverygit clone --depth 1 https://github.com/AtlasOmnia/donna-starterWrote 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/atlasomnia/donna-starter/coding-worktree-recovery)<a href="https://agentmods.dev/skills/atlasomnia/donna-starter/coding-worktree-recovery"><img src="https://agentmods.dev/badge/skills/atlasomnia/donna-starter/coding-worktree-recovery.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector pass
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.00056 | $0.05733 |
| Opus 5 | $0.00028 | $0.02867 |
| Sonnet 5 | $0.00011 | $0.01147 |
| Haiku 4.5 | $0.00006 | $0.00573 |
Grade A, and why
coding-worktree-recovery 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 4d 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- coding-worktree-recovery — 100% identical, 0 lines differ
How it starts
The opening of the file, as written. The whole thing — 278 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Coding Worktree Recovery
Use this skill when coding-agent work is interrupted, an agent exits without a clean commit, multiple controllers target the same checkout, or the checkout produces inconsistent file/Git behavior.
This skill is about preserving valid work and restoring one trustworthy writer. It does not authorize pushing, merging, publishing, or destructive cleanup.
Core invariants
- One checkout, one writer. Read-only reviewers may overlap; write-capable agents may not.
- The live filesystem is authoritative. Agent summaries and successful process exits are evidence leads, not proof.
- Never clean another writer's work. Do not reset, stash, checkout, delete, or overwrite unexplained changes.
- Commits are checkpoints, not completion. Re-run controller gates after the final commit.
- Mechanical status and reasoning are separate. A deterministic watchdog may report process/Git state; acceptance still requires a controller review.
Recovery workflow
1. Freeze new writers
- Do not launch another implementation agent yet.
- Enumerate all live coding/Hermes processes whose full command references the checkout.
- Record PID, parent PID, process group, start time, elapsed time, and command.
- Inspect child processes as well as tool-managed process handles; an interrupted parent can leave an orphan writer.
- Trace workers back to long-lived TUI/gateway controllers. Killing only a visible
hermes ... chatPID is insufficient when its controller can respawn or resume another worker. - Match writers by exact command semantics (for example,
hermes ... chatplus checkout), not by broad words such ashermes, model names, or the checkout path; broad matching misclassifiestsserverand other read-only services. - If a stale TUI or messaging controller repeatedly respawns workers, preserve the user session while stopping its already-spawned worker/monitor process groups. Trace the exact originating conversation before transferring ownership.
- Do not assume
/stopcancels prior task-owned background work. It may correctly report no active task while a previously launched worker survives or its completion notification triggers a successor. When that happens, send an explicit plain-language cancellation instruction into the exact originating conversation, require acknowledgement, and independently verify that no new generation appears. Do not suspend the production messaging gateway for this purpose.
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.
- 4d ago First seen · 278 lines · 56 tokens per session scan A 6dbc12c54627
coding-worktree-recovery is a skill published in the GitHub repository AtlasOmnia/donna-starter (107 stars, last pushed 9d ago), licensed MIT. It adds 56 tokens to every session and 5,733 once invoked, about $0.0003 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-03.
Other skills, from other repositories
git-conventional-commits
Author standardized conventional commit messages (feat, fix, docs, refactor, chore), generate automated semver releases, and format pull request descriptions.
git-project-lifecycle
A guide to managing a software project from Git commits through releases. It covers commit message conventions, semantic versioning, changelogs, tags, releases, and common versioning problems.
stale-patch-reconciliation
Use when a patch/diff must be compared with, repaired against, or refreshed for a moving checkout — "is this patch still needed", "does upstream already contain it", "what changed since it was written", "reconcile X.diff with HEAD", or "make apply-patches pass again".
git-history-cleanup
Clean Git history with git-filter-repo.
git-workflow-and-versioning
Structures git workflow practices. Use when making any code change. Use when committing, branching, resolving conflicts, opening or reviewing a pull request (PR), pushing to a remote, or when you need to organize work across multiple parallel streams. Use when cutting a release, choosing a semantic version bump…
chinese-commit-conventions
A Chinese-language guide to Conventional Commits, a format for writing consistent Git commit messages, plus related changelog, commit-checking, and commit-helper configuration.