create-distributed-lock
Installation
SKILL.md
Distributed Lock Generator
Creates distributed locking infrastructure for concurrency control and mutual exclusion.
When to Use
| Scenario | Example |
|---|---|
| Resource contention | Prevent concurrent writes to same entity |
| Scheduled tasks | Ensure cron job runs on single node |
| Inventory management | Prevent overselling with stock locks |
| Distributed coordination | Leader election, singleton processes |
Component Characteristics
LockInterface
- Contract for lock implementations
- Methods: acquire, release, isAcquired, refresh
- Supports blocking and non-blocking acquisition