More screenshots

    Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIGitHub CopilotGitHub CopilotGemini CLIGemini CLI+20 more

    Repair Distributed Lock Fencing Bugs

    1

    Repair distributed-lock bugs where expired or partitioned lock holders continue writing after ownership moved, renewals race, or downstream systems cannot reject stale owners.

    $8.99

    Secure checkout via Stripe

    30-day refund guarantee

    Converts to your local currency at checkout

    0 installsSecurity scanned
    Repair Distributed Lock Fencing Bugs

    Repair Distributed Lock Fencing Bugs

    Example session with this skill installed

    A worker holds a Redis lease while processing. If it pauses past TTL, another worker acquires the lock, but the old worker can still commit its database write after resuming. Repair locally without changing the job's business rules.

    • Read your context and instructions
    • Compiled the repair distributed lock

    Mutual exclusion at acquisition time cannot stop a stale owner after lease expiry. The repair adds a monotonically increasing ownership generation/fencing token and requires the downstream mutation boundary to reject older generations, with tests for pause/expiry/reacquire, renew races, partitions, and normal ownership.

    Connects securely to your tools. The creator never sees your data.

    What you get

    Implement monotonic fencing tokens to prevent stale-owner writes.Fix lease renewal races that cause intermittent leader-election failures.Create deterministic test fixtures for network partitions and clock drift.Verify that identity and trust boundaries agree across the locking lifecycle.

    About this skill

    The problem

    Distributed locking bugs often lead to silent data corruption, split-brain scenarios, or leaked leases that stall system progress. Manually tracing fencing tokens and stale-owner write races across distributed repository logic is error-prone and difficult to reproduce.

    What it does

    • Identifies race conditions in lease acquisition, renewal, and release cycles.
    • Implements monotonic fencing tokens to reject stale-owner writes at the storage layer.
    • Hardens trust boundaries between owner identity, generation binding, and write guards.
    • Refactors validation logic to ensure rejection occurs before irreversible state mutations.
    • Generates deterministic local fixtures and regression tests using time-shifts and network barriers.

    Frameworks & tools

    Works with repository-level code involving distributed locks (Redis/Redlock, Etcd, Zookeeper) and storage authorities (PostgreSQL, DynamoDB, S3) using Read, Edit, and Bash tools.

    Why this beats prompting it yourself

    This skill follows a formal method to map every concurrent timeline and state transition before touching code. It prevents common "quick fixes" like adding sleeps or widening retry policies, ensuring the fix addresses the underlying clock or partition logic defect.

    Use cases

    • Fixing split-brain issues where two nodes believe they hold the same leader lease.
    • Preventing "zombie" processes from writing to a database after their lease has expired.
    • Hardening monotonic counter increments used for fencing in distributed environments.
    • Adding observability to track lease TTL drift and fencing rejection rates.

    How to install

    Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 3

      Ask your agent to use it

      Restart the agent if it was already running. It picks the skill up automatically - no config needed.

    Skills folder by agent

    Click the path to copy it. Create the folder if it does not exist yet.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean 20 days ago

    • Passed all security checks, Safe to install

    Listed20 days ago

    Frequently Asked Questions