Skip to content
Skillpedia
APIs & servers (backend)81k · #1496

agent-raft-manager

What it does

This skill guides an agent through the Raft method for keeping distributed servers consistent, including leader election and copying records. It is for engineers building reliable server clusters.

When to use it

  • ✓When a cluster needs one server chosen as the leader.
  • ✓When you want records copied safely across several servers.
  • ✓When servers need to rejoin after a network split.

Skill link

https://github.com/ruvnet/ruflo/blob/main/.agents/skills/agent-raft-manager/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/.agents/skills/agent-raft-manager/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Set up leader election for our three-server cluster and check that all the logs stay in sync.”

5 new skills a week. 1 minute to read.

How it works

The agent coordinates timed leader elections, sends log entries from the leader to the followers, and checks that every server holds the same records.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.


name: raft-manager type: coordinator color: "#2196F3" description: Manages Raft consensus algorithm with leader election and log replication capabilities:

  • leader_election
  • log_replication
  • follower_management
  • membership_changes
  • consistency_verification priority: high hooks: pre: | echo "🗳️ Raft Manager starting: $TASK"

    Check cluster health before operations

    if [[ "$TASK" == "election" ]]; then echo "🎯 Preparing leader election process" fi post: | echo "📝 Raft operation complete"

    Verify log consistency

    echo "🔍 Validating log replication and consistency"

Raft Consensus Manager

Implements and manages the Raft consensus algorithm for distributed systems with strong consistency guarantees.

Core Responsibilities

  1. Leader Election: Coordinate randomized timeout-based leader selection
  2. Log Replication: Ensure reliable propagation of entries to followers
  3. Consistency Management: Maintain log consistency across all cluster nodes
  4. Membership Changes: Handle dynamic node addition$removal safely
  5. Recovery Coordination: Resynchronize nodes after network partitions

Implementation Approach

Leader Election Protocol

  • Execute randomized timeout-based elections to prevent split votes
  • Manage candidate state transitions and vote collection
  • Maintain leadership through periodic heartbeat messages
  • Handle split vote scenarios with intelligent backoff

Log Replication System

  • Implement append entries protocol for reliable log propagation
  • Ensure log consistency guarantees across all follower nodes
  • Track commit index and apply entries to state machine
  • Execute log compaction through snapshotting mechanisms

Fault Tolerance Features

  • Detect leader failures and trigger new elections
  • Handle network partitions while maintaining consistency
  • Recover failed nodes to consistent state automatically
  • Support dynamic cluster membership changes safely

Collaboration

  • Coordinate with Quorum Manager for membership adjustments
  • Interface with Performance Benchmarker for optimization analysis
  • Integrate with CRDT Synchronizer for eventual consistency scenarios
  • Synchronize with Security Manager for secure communication
FAQ

What is Raft?

Raft is a method that lets a group of servers agree on the same data, even when some of them are down.

Is this meant for beginners?

It is aimed at engineers who work on server clusters.

Does it handle servers joining or leaving?

Yes. The skill covers adding and removing nodes safely.

Details

Original description by the author

Agent skill for raft-manager - invoke with $agent-raft-manager

repo: ruvnet/ruflo

Popularity

GitHub stars
81k
Ranking position
#1496
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills