recover

recover is a skill for Claude Code from Maximumsoft-Co-LTD/claude-flightdeck. It costs 104 tokens per session (2,250 once invoked), scanned A, original, MIT.

A guided recovery skill for damaged or interrupted Git work, including abandoned worktrees, stopped merges, lost branches, and accidental commits on the main branch. Git is the version-control system used to track code changes.

In plain words
What is it for?
Recovering changes after interrupted parallel work, aborted merges, hand-edit mistakes, accidental main-branch commits, or lost branch references.
Why use it?
Broken Git state can make it unclear what work still exists and which recovery action is safe. It inventories the repository and asks for confirmation before destructive commands.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths.

Good fit Recovering changes after interrupted parallel work, aborted merges, hand-edit mistakes, accidental main-branch commits, or lost branch references.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/maximumsoft-co-ltd/claude-flightdeck/recover
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 Maximumsoft-Co-LTD/claude-flightdeck --skill recover
Clone the repo
git clone --depth 1 https://github.com/Maximumsoft-Co-LTD/claude-flightdeck

Made for: Claude Code.

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 recover

README.md
[![agentmods](https://agentmods.dev/badge/skills/maximumsoft-co-ltd/claude-flightdeck/recover/github.svg)](https://agentmods.dev/skills/maximumsoft-co-ltd/claude-flightdeck/recover)
Your own site
<a href="https://agentmods.dev/skills/maximumsoft-co-ltd/claude-flightdeck/recover"><img src="https://agentmods.dev/badge/skills/maximumsoft-co-ltd/claude-flightdeck/recover/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 recover

Your own site · 80×15
<a href="https://agentmods.dev/skills/maximumsoft-co-ltd/claude-flightdeck/recover"><img src="https://agentmods.dev/badge/skills/maximumsoft-co-ltd/claude-flightdeck/recover.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,250 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.00104 $0.02250
Opus 5.5 $0.00042 $0.00900
Sonnet 5.5 $0.00021 $0.00450
Haiku 4.5 $0.00010 $0.00225

Measured 2mo ago against content hash 3fb04f5434b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

recover 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 2mo 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.

core/.claude/skills/recover/SKILL.md · 243 lines

How it starts

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

/recover — Safe recovery from broken git state

Walks the operator through a deliberate, non-destructive recovery from common failure modes that follow /work (parallel fanout), hand-edit mistakes, or interrupted merges.

Canonical reference: docs/playbooks/failure-recovery.md.

Core principle: git reflog first; destructive operations (reset --hard, clean -fd, branch -D) only after explicit confirmation per step.

Token budget (MANDATORY)

  • git status -s + git worktree list + git stash list + git log --oneline -5 is enough state for 90% of recoveries. Do NOT git diff everything up front.
  • git reflog | head -30 only when you need to find a lost SHA.
  • Read FOLLOWUPS.md before writing to it; otherwise no other file reads.
  • For each recovery branch, the destructive command runs only after the user types literal confirmation ("yes" or the exact SHA).

Step 1 — Inventory current state

Run all four in one shell turn (read-only):

git -C "$PWD" status -s
git -C "$PWD" worktree list
git -C "$PWD" stash list
git -C "$PWD" log --oneline -5

Plus, if the user mentioned a specific branch / SHA / file, also:

git -C "$PWD" reflog | head -30

Report back what you see — do NOT act yet. The operator may have context (e.g. "yes that worktree is mine, abandoned") that changes what's safe.

Step 2 — Classify the failure (user confirms)

Match the inventory against one of the named classes. Present the match to the user with a one-line summary and ask them to confirm.

Class Signals
Partial dispatch git status shows changes from one path but not others declared by /work; some worktrees committed and others didn't
Orphan worktree git worktree list shows worktrees with no recent activity / branches the user doesn't recognize
Dirty merge git status -s shows UU / AA markers, or a MERGE_HEAD file exists in .git/
Accidental main commit git log --oneline -1 on main / dev / integration shows a commit you didn't intend there
Lost branch A branch the user expected to find is gone (git branch --list <name> empty); SHA is recoverable via reflog for ~90 days
Stuck rebase .git/rebase-apply/ or .git/rebase-merge/ exists
Detached HEAD with work git status shows "HEAD detached at " + uncommitted work

Read the full file on GitHub · 243 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. 2mo ago First seen · 243 lines · 104 tokens per session scan A 3fb04f5434b3

Subscribe to this mod's changes

recover is a skill published in the GitHub repository Maximumsoft-Co-LTD/claude-flightdeck (2 stars, last pushed 5mo ago), licensed MIT. It adds 104 tokens to every session and 2,250 once invoked, about $0.0004 per session on Opus 5.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

recover compared with skills from other repositories

recover next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
recoverMaximumsoft-Co-LTD/claude-flightdeckSkill25mo agoMITA104Claude Code
autofix-prQwenLM/qwen-codeSkill29kyesterdayApache-2.0A141Claude Code
repo-hygieneQwenLM/qwen-codeSkill29kyesterdayApache-2.0A48Claude Code, Codex
docs-update-from-diffQwenLM/qwen-codeSkill29kyesterdayApache-2.0A75Claude Code, Codex
githubOrkas-AI/OrkasSkill9.0kyesterdayMITA1Claude Code, Codex
git-checkpointagentscope-ai/agentscope-javaSkill6.3kyesterdayApache-2.0A39Claude Code, Codex
competitor-product-monitortinyfish-io/tinyfish-cookbookSkill2.3k3d agoMITA83Claude Code, Codex