deadlock-prevention
CommunityPrevent deadlocks with safe, deterministic locks.
Software Engineering#concurrency#timeouts#deadlock#code-quality#distributed-systems#locking#lock-ordering
Authoryanko-belov
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Deadlocks occur when multiple processes wait for each other forever, causing system stalls. This Skill provides proven patterns to prevent deadlocks by enforcing consistent lock ordering and safe resource acquisition.
Core Features & Use Cases
- Consistent lock ordering to avoid circular waits across code paths.
- Timeouts and backoff strategies to break hold-and-wait conditions.
- Strategies for hierarchical or coarse-grained locking in nested or distributed environments.
Quick Start
Refactor a transfer operation to acquire resource locks in a deterministic order and wrap operations in finally blocks to guarantee releases.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: deadlock-prevention Download link: https://github.com/yanko-belov/code-craft/archive/main.zip#deadlock-prevention Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.