Claude Phantom — Git skill for Claude Code
Autonomous crash recovery for your terminal: wrap a command; on crash, headless Claude Code diagnoses, tests, patches on a branch, and writes a post-mortem.
How to install Claude Phantom
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open waazy-w/claude-phantom and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Phantom does
Autonomous crash recovery for your terminal: wrap a command; on crash, headless Claude Code diagnoses, tests, patches on a branch, and writes a post-mortem.
Alternatives in Git
- GitHub Review PR — Use when a PR needs full review — resolves merge conflicts with the base first, then fixes CI failures, then a 1.5k ★
- Fix GitHub Issue — by jeremymailen - Analyzes and fixes GitHub issues using a structured approach with GitHub CLI for issue detai 708 ★
- MiniCode Roadmap — MiniCode already has a usable lightweight terminal coding workflow, but there is still a visible gap between t 388 ★
README
claude-phantom
**[claudephantom.dev](https://claudephantom.dev)**
An autonomous crash-recovery agent for your terminal. Run your app through `phantom`; if it crashes, a headless Claude Code session diagnoses the bug, writes a failing test, patches it on a separate branch, verifies the fix independently, and leaves a post-mortem. Your branch is never touched.

[](https://github.com/waazy-w/claude-phantom/actions/workflows/ci.yml) [](https://www.npmjs.com/package/claude-phantom) [](LICENSE) [](package.json) [](package.json)
Setup
**You need:** Node >= 18, git (phantom only recovers inside a git repository), and the Claude Code CLI, logged in:
npm install -g @anthropic-ai/claude-code
claude # follow the login prompt once
**Install and run:**
npm install -g claude-phantom
phantom npm run dev # any command; phantom is invisible until it crashes
That is the whole setup. On a crash, phantom creates `phantom/fix--`, fixes it there, verifies, writes `.phantom/reports/-.md`, and puts you back on your branch with `git diff` / `git merge` / `git branch -D` commands to revie
Related Skills
Autonomous Issue Agent
Autonomous GitHub issue implementation using Claude Code in headless mode
Spine Plan
Plan-first spine population — a Socratic per-unit dialogue that authors a unit's contract (purpose/pre/post) u
Post Merge
Execute post-merge actions including syncing main, re-running tests, and cleanup
Aegis Resume
Persistent run state — checkpoint a session, then resume after a Claude Code crash, machine restart, or branch
Wrap Branch
/wrap-branch — Finish a development branch
Wrap Up
Full session closeout in one pass - reflect, then notes, then the git sync ritual, ending with the work pushed
Related Agents
Autopilot Fixer
Automatic fix-up pass when autopilot output is incomplete/wrong. Diagnoses, patches, verifies, reviews (one bo
Review Crash Safety
Reviews code changes for crash safety, WAL correctness, durability guarantees, atomic operations, page-level c
Error Recovery
Diagnoses and fixes system errors, inconsistencies, and quality issues automatically.