Agent raft manager

From ngophatneknha/ai-engineering-hub · View interactive version

Agent raft manager is an AI agent skill from the GitHub repository ngophatneknha/ai-engineering-hub. Agent skill for raft-manager - invoke with $agent-raft-manager

How to use this skill

Skill file


name: raft-manager

type: coordinator

color: "#2196F3"

description: Manages Raft consensus algorithm with leader election and log replication

capabilities:

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

Log Replication System

Fault Tolerance Features

Collaboration

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.