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がスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
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
- Leader Election: Coordinate randomized timeout-based leader selection
- Log Replication: Ensure reliable propagation of entries to followers
- Consistency Management: Maintain log consistency across all cluster nodes
- Membership Changes: Handle dynamic node addition$removal safely
- 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とは何ですか?
一部のサーバーが止まっていても、サーバーのグループが同じデータに合意できるようにする方法です。
初心者向けですか?
サーバーのクラスタで作業するエンジニアのためのものです。
サーバーの参加や離脱を扱いますか?
はい。スキルは、ノードを安全に追加、削除することを扱います。
詳細
人気
- GitHubのスター
- 81k
- ランキング
- #1496
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
agent-adaptive-coordinator
81k作業量の変化に合わせて、エージェントのグループを分割し、再配分する手助けをします。作業に合った配置を選びます。
agent-agent
81k大きな目標を順番に並んだ行動計画にし、状況が変わったときに計画を立て直す方法をエージェントに教えます。
agent-agentic-payments
81kAIの買い物のために、支出の上限、期間、販売店のルール、署名付きの承認を含む支出の委任を管理する手助けをします。
agent-analyze-code-quality
81kコードの品質を確認し、コードの臭い、技術的負債、リファクタリングの案を見つける手助けをします。ファイルは変更しません。
似ているスキル
api-connector-builder
280kエージェントが既存のパターンに従って、新しいAPI連携を構築します。新しい方式を作らずに、もう一つ連携を追加したいときに使います。
api-design
280kエージェントがベストプラクティスに沿ってREST APIを設計できるようにします。APIの通信方法、エラーの表示方法、データの整理方法を決めるのに役立ちます。
backend-patterns
280kエージェントのサーバーサイドのアーキテクチャパターンとデータベースの最適化を支援します。サーバー上で動くコードを作成またはレビューするときに役立ちます。