本文へスキップ
Skillpedia
APIとサーバー(バックエンド)81k · #1496

agent-raft-manager

できること

このスキルは、リーダー選出やレコードの複製を含め、分散したサーバーの一貫性を保つRaftの方法を、エージェントに教えます。信頼できるサーバーのクラスタを作るエンジニアのためのものです。

使う場面

  • ✓クラスタで1つのサーバーをリーダーとして選ぶ必要があるとき。
  • ✓レコードを複数のサーバーに安全に複製したいとき。
  • ✓ネットワークの分断の後に、サーバーが再参加する必要があるとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/ruvnet/ruflo/blob/main/.agents/skills/agent-raft-manager/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“3台のサーバーのクラスタでリーダー選出を設定し、すべてのログが同期していることを確認してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、時間を決めたリーダー選出を調整し、リーダーからフォロワーにログのエントリを送り、すべてのサーバーが同じレコードを持っていることを確認します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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
よくある質問

Raftとは何ですか?

一部のサーバーが止まっていても、サーバーのグループが同じデータに合意できるようにする方法です。

初心者向けですか?

サーバーのクラスタで作業するエンジニアのためのものです。

サーバーの参加や離脱を扱いますか?

はい。スキルは、ノードを安全に追加、削除することを扱います。

詳細

作者による元の説明

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

repo: ruvnet/ruflo

人気

GitHubのスター
81k
ランキング
#1496
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル