troykelly/claude-skills/error-recovery
Claude Code and agent skill by troykelly/claude-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when encountering failures - assess severity, preserve evidence, execute rollback decision tree, and verify post-recovery state
Install
npx vskill@latest install troykelly/claude-skills/error-recoverySKILL.md
Error Recovery
Overview
Handle failures gracefully with structured recovery.
Core principle: When things break, don't panic. Assess, preserve, recover, verify.
Announce at start: "I'm using error-recovery to handle this failure."
The Recovery Protocol
Step 1: Assess Severity
Severity Levels
| Level | Description | Examples | |
|---|---|---|---|
| Critical | System unusable, data at risk | Build completely broken, tests cause data loss | |
| Major | Significant functionality broken | Feature doesn't work, many tests failing | |
| Minor | Isolated issue, workaround exists | Single test flaky, style error | |
| Info | Warning only, not blocking | Deprecation notice, performance hint |
Assessment Questions
Step 2: Preserve Evidence
Capture BEFORE attempting fixes:
Error Logs
Stack Traces
Error: Connection refused at Database.connect (src/db/connection.ts:45) at UserService.init (src/services/user.ts:23) at main (src/index.ts:12)
State Capture
Screenshot (if visual)
For UI errors, capture screenshots before changes.
Step 3: Recover
Decision Tree
Code Error Recovery
Single file broken:
Feature broken (multiple files):
Working directory is a mess:
Build Error Recovery
Environment Error Recovery
External Service Error
Step 4: Verify
After recovery, verify clean state:
Basic Verification
Functionality Verification
Step 5: Document
Issue Comment
Knowledge Graph
Common Recovery Patterns
"Tests were passing, now failing"
"Works locally, fails in CI"
"Build was working, now broken"
"I broke everything"
Escalation
If recovery fails after 2-3 attempts:
Mark issue as Blocked and await human input.
Checklist
When error occurs:
- [ ] Severity assessed
- [ ] Evidence preserved (logs, state, screenshots)
- [ ] Recovery action selected
- [ ] Recovery executed
- [ ] Clean state verified
- [ ] Tests pass
- [ ] Build succeeds
- [ ] Issue documented
Integration
This skill is called by:
issue-driven-development- When errors occurci-monitoring- CI failures
This skill may trigger:
research-after-failure- If cause is unknown- Issue update via
issue-lifecycle
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/error-recovery/SKILL.md
Popularity
- Repository stars
- 7
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 9 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/troykelly/claude-skills/error-recovery)