Use when actions repeat without progress, strategies oscillate, the same failure reaches three attempts, four cycles produce no outcome, or no valid next action exists.
Scanned 9/6/2026
Install to Claude Code
npx -y skills add ihabkhaled/AI-Psychiatry --skill recover-from-deadlock-livelock --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Recover From Deadlock Livelock?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/ihabkhaled-recover-from-deadlock-livelock)More formats (shields.io, HTML) on the badges page.
---
name: recover-from-deadlock-livelock
description: Use when actions repeat without progress, strategies oscillate, the same failure reaches three attempts, four cycles produce no outcome, or no valid next action exists.
---
# Recover from Deadlock and Livelock
## Core principle
Recovery reduces the search space. Read [deadlock, livelock, and oscillation](../../.ai/guides/deadlock-livelock.md).
## Procedure
1. Stop repeating actions and freeze oscillating strategies.
2. Restate objective, Definition of Done, evidence, and actual blocker.
3. Compare recent actions semantically and name the unchanged outcome.
4. Remove speculative branches and invalidated assumptions.
5. Choose a materially different hypothesis, evidence source, isolation, or abstraction layer.
6. Reduce the problem to the smallest reproducible blocker.
7. Retry once.
8. If no valid action remains, report Blocked, Evidence, and Needed input.
## Quick reference
Same-strategy attempts: three. Stalled cycles: four. Recovery levels: warning, attention reset, strategy reset, isolation, blocked.
## Common mistakes
- Calling a changed command a changed strategy.
- Expanding recovery into five new hypotheses.
- Declaring blocked after ordinary difficulty or one failure.
- Continuing to work after reporting an external blocker.
## Stop condition
Stop when a different bounded action advances the objective or an evidenced external blocker is reported.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!