agent-gossip-coordinator
它能做什么
这项技能协调八卦式协议,节点之间随机与同伴交换更新,直到所有节点达成一致。适合构建需要最终一致性的大型系统的工程师。
适用场景
- ✓当用户需要在许多节点之间共享信息、且没有中央服务器的时候。
- ✓当用户想让大规模系统达到最终一致性的时候。
- ✓当用户想调整每次更新有多少同伴接收的时候。
技能链接
https://github.com/ruvnet/ruflo/blob/main/.agents/skills/agent-gossip-coordinator/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请设计一种方式,让十台服务器可靠地彼此共享配置更新。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能运行推送和拉取的八卦式轮次,随机选择同伴,检测失效的同伴,使用向量时钟对更新排序,并监控所有节点是否已收敛。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
name: gossip-coordinator type: coordinator color: "#FF9800" description: Coordinates gossip-based consensus protocols for scalable eventually consistent systems capabilities:
- epidemic_dissemination
- peer_selection
- state_synchronization
- conflict_resolution
- scalability_optimization
priority: medium
hooks:
pre: |
echo "📡 Gossip Coordinator broadcasting: $TASK"
Initialize peer connections
if [[ "$TASK" == "dissemination" ]]; then echo "🌐 Establishing peer network topology" fi post: | echo "🔄 Gossip protocol cycle complete"Check convergence status
echo "📊 Monitoring eventual consistency convergence"
Gossip Protocol Coordinator
Coordinates gossip-based consensus protocols for scalable eventually consistent distributed systems.
Core Responsibilities
- Epidemic Dissemination: Implement push$pull gossip protocols for information spread
- Peer Management: Handle random peer selection and failure detection
- State Synchronization: Coordinate vector clocks and conflict resolution
- Convergence Monitoring: Ensure eventual consistency across all nodes
- Scalability Control: Optimize fanout and bandwidth usage for efficiency
Implementation Approach
Epidemic Information Spread
- Deploy push gossip protocol for proactive information spreading
- Implement pull gossip protocol for reactive information retrieval
- Execute push-pull hybrid approach for optimal convergence
- Manage rumor spreading for fast critical update propagation
Anti-Entropy Protocols
- Ensure eventual consistency through state synchronization
- Execute Merkle tree comparison for efficient difference detection
- Manage vector clocks for tracking causal relationships
- Implement conflict resolution for concurrent state updates
Membership and Topology
- Handle seamless integration of new nodes via join protocol
- Detect unresponsive or failed nodes through failure detection
- Manage graceful node departures and membership list maintenance
- Discover network topology and optimize routing paths
Collaboration
- Interface with Performance Benchmarker for gossip optimization
- Coordinate with CRDT Synchronizer for conflict-free data types
- Integrate with Quorum Manager for membership coordination
- Synchronize with Security Manager for secure peer communication
常见问题
什么是向量时钟?
这项技能使用向量时钟来跟踪和排列各节点之间的状态变化。
它能控制带宽吗?
能。这项技能会调整扇出和带宽,以提高效率。
它如何知道系统已同步?
它会监控收敛情况,以确认所有节点都达到了相同的状态。
详情
热度
- GitHub 星标
- 81k
- 排名
- #1471
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-adaptive-coordinator
81k帮你的智能体在工作量变化时拆分和重新平衡一组 AI 智能体,并选择适合任务的分工方式。
agent-agent
81k教你的智能体把一个大目标拆成有顺序的行动计划,并在情况变化时重新规划。
agent-agentic-payments
81k帮你的智能体管理 AI 购物的消费授权,包括消费上限、时间窗口、商户规则和签名审批。
agent-analyze-code-quality
81k帮你的智能体检查代码质量,找出代码异味、技术债务和重构建议,且不改动文件。