crash-recovery

crash-recovery is a skill for Claude Code from waazy-w/claude-phantom. It costs 55 tokens per session (1,788 once invoked), scanned C, original, MIT.

A crash-recovery procedure for diagnosing failures in another person's repository.

In plain words
What is it for?
It investigates the crash, writes a failing regression test, applies a small fix, verifies it, and creates a post-mortem report.
Why use it?
It turns captured crash information into a tested, minimal repair and a written explanation of what happened.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the phantom plugin — 1 skill, 1 command, 3 hooks shipped together

Good fit It investigates the crash, writes a failing regression test, applies a small fix, verifies it, and creates a post-mortem report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/waazy-w/claude-phantom/crash-recovery
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 waazy-w/claude-phantom --skill crash-recovery
Clone the repo
git clone --depth 1 https://github.com/waazy-w/claude-phantom

Made for: Claude Code.

Or install phantom, the plugin that ships this one along with the rest of its 1 skill, 1 command, 3 hooks.

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 crash-recovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/waazy-w/claude-phantom/crash-recovery/github.svg)](https://agentmods.dev/skills/waazy-w/claude-phantom/crash-recovery)
Your own site
<a href="https://agentmods.dev/skills/waazy-w/claude-phantom/crash-recovery"><img src="https://agentmods.dev/badge/skills/waazy-w/claude-phantom/crash-recovery/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 crash-recovery

Your own site · 80×15
<a href="https://agentmods.dev/skills/waazy-w/claude-phantom/crash-recovery"><img src="https://agentmods.dev/badge/skills/waazy-w/claude-phantom/crash-recovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,788 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00055 $0.01788
Opus 5 $0.00028 $0.00894
Sonnet 5 $0.00011 $0.00358
Haiku 4.5 $0.00006 $0.00179

Measured 12d ago against content hash 4166dbc66af3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade C, and why

crash-recovery scanned grade C with 2 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 12d 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.

2. NEVER run `rm -r`, `rm -rf`, `rmdir`, `sudo`, `chmod -R`, `chown`, `dd`, `mkfs`, `docker`, `kubectl`, or kill processes.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

4. NEVER use the network (`curl`, `wget`, `nc`, `ssh`, `scp`, `WebFetch`, `WebSearch`).
plugin/skills/crash-recovery/SKILL.md · 77 lines

How it starts

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

Crash recovery procedure

You are recovering a crashed command in someone else's repository. Follow every phase in order. Every hard rule applies in every phase. Evidence beats intuition: never guess when you can read.

Hard rules (always)

  1. NEVER run git checkout, git switch, git reset, git stash, git rebase, git merge, git commit, git push, git clean, git branch -D. Phantom owns git. Read-only git (git diff, git log, git status, git show) is fine.
  2. NEVER run rm -r, rm -rf, rmdir, sudo, chmod -R, chown, dd, mkfs, docker, kubectl, or kill processes.
  3. NEVER install, remove, or update packages (npm install, npm i, npm ci, yarn add, pnpm add, pip install, ...). NEVER edit lockfiles.
  4. NEVER use the network (curl, wget, nc, ssh, scp, WebFetch, WebSearch).
  5. NEVER run migrations or touch database schemas (migrate, prisma db, knex, sequelize db, drizzle-kit push, DROP TABLE, TRUNCATE).
  6. NEVER read or edit never-touch paths (the list is injected below the procedure). NEVER edit CI/workflow files (.github/**, .gitlab-ci.yml, Jenkinsfile, .circleci/**), .gitignore, or anything under .git/.
  7. NEVER disable, delete, or skip existing tests. NEVER loosen an assertion. NEVER add skip, only, todo, xit, xdescribe, or @pytest.mark.skip. NEVER change a test's expectation to match broken behavior.
  8. NEVER refactor, reformat, rename, reorder imports, bump versions, change dependencies, or "clean up" code you were not asked to fix.
  9. Stay inside the repository root. Do not write anywhere outside it except the report path you are given.
  10. When a rule and the goal conflict, the rule wins: stop and write a PARTIAL report.

Phase 0 - Orient

  1. Read the crash context you were given in full: command, exit summary, error line, stack trace, hint files, recent output, git status, package scripts, test command.
  2. List candidate files from the trace, innermost project frame first. Ignore node_modules, node:, internal/ frames.
  3. Read every candidate file with the Read tool. Read the callers of the failing function (Grep for its name). Read the nearest existing test file to learn conventions.
  4. Identify the test runner from package.json scripts and existing test files (node:test, jest, vitest, mocha, pytest, go test, cargo test). Note the exact command that runs ONE test file.
  5. Do not proceed until you can point at file:line where the failure originates.

Read the full file on GitHub · 77 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. 12d ago First seen · 77 lines · 55 tokens per session scan C 4166dbc66af3

Subscribe to this mod's changes

crash-recovery is a skill published in the GitHub repository waazy-w/claude-phantom (4 stars, last pushed 20d ago), licensed MIT. It adds 55 tokens to every session and 1,788 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

fix-bug

Diagnoses and fixes bugs using a test-first workflow (reproduce, diagnose, fix). Use this skill whenever the user reports a bug, describes unexpected behavior, or asks to investigate or fix a defect. Even if the user says "something's broken", "this isn't working", "fix this bug", or "why does X happen", load this…

nowsprinting/unity-coding-skills · 86 tokens

debugging

Use when debugging bugs, test failures, or unexpected behavior. Triggers: 'why isn't this working', 'this doesn't work', 'X is broken', 'something's wrong', 'getting an error', 'exception in', 'stopped working', 'regression', 'crash', 'hang', 'flaky test', 'intermittent failure', or when user pastes a stack…

axiomantic/spellbook · 104 tokens

ralphctl-debugging-and-error-recovery

Systematic root-cause debugging. Use when tests fail, builds break, or behaviour does not match expectations. Follow stop-the-line → reproduce → localize → reduce → root-cause → guard-with-regression-test → verify, not guessing; the reproduction and regression steps follow the same red-green discipline as…

lukas-grigis/ralphctl · 78 tokens

fix-bug

Investigates and fixes a reported bug. Reads relevant code, identifies the root cause, proposes a fix, and adds or updates tests to prevent regression. Invoked when the user describes unexpected behavior, an error, a crash, or a failing test.

soulcodex/agentic · 54 tokens

regression-test-gen

Suggest regression coverage for changed stack behavior.

Eliyce/paqad-ai · 13 tokens

Vitest Mock Isolation Review

Detects Vitest test-isolation hazards: unrestored vi.spyOn/vi.mock without afterEach cleanup or restoreMocks config, un-awaited resolves/rejects assertions, and shared mutable module state across tests.

s977043/river-review · 48 tokens