leader-election

Community

Ensure single instance execution.

Authordadbodgeoff
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents multiple instances of a service from running critical tasks simultaneously, ensuring only one instance processes jobs or performs actions at any given time, and automatically handles failover if the leader instance becomes unavailable.

Core Features & Use Cases

  • Singleton Execution: Guarantees that only one instance of a service runs scheduled jobs, consumes from a queue, or acts as a coordinator.
  • Automatic Failover: If the current leader instance fails, another instance automatically takes over leadership.
  • Use Case: Running a daily report generation script where only one process should execute at a time to avoid duplicate reports or race conditions.

Quick Start

Use the leader-election skill to start the election process for the 'report-generator' service with the candidate ID 'worker-1'.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 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: leader-election
Download link: https://github.com/dadbodgeoff/drift/archive/main.zip#leader-election

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.