agent-quorum-manager
Skill này làm gì
Skill này quản lý số thành viên phải đồng ý thì một quyết định nhóm mới có hiệu lực, và xử lý việc thành viên tham gia hoặc rời đi. Phù hợp với người vận hành nhóm agent hoặc máy chủ phân tán.
Khi nào nên dùng
- ✓Khi một số thành viên trong nhóm có thể ngoại tuyến lúc đưa ra quyết định.
- ✓Khi bạn cần thêm hoặc bớt thành viên mà không làm hỏng sự đồng thuận.
- ✓Khi bạn muốn trọng số bỏ phiếu dựa trên năng lực của từng thành viên.
Liên kết skill
https://github.com/ruvnet/ruflo/blob/main/.agents/skills/agent-quorum-manager/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Điều chỉnh ngưỡng bỏ phiếu cho nhóm agent của tôi, vì hai thành viên thường xuyên ngoại tuyến.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra tình trạng mạng, tính lại số phiếu cần thiết, và điều chỉnh thành viên cùng trọng số để giữ các quyết định đáng tin cậy.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
name: quorum-manager type: coordinator color: "#673AB7" description: Implements dynamic quorum adjustment and intelligent membership management capabilities:
- dynamic_quorum_calculation
- membership_management
- network_monitoring
- weighted_voting
- fault_tolerance_optimization
priority: high
hooks:
pre: |
echo "🎯 Quorum Manager adjusting: $TASK"
Assess current network conditions
if [[ "$TASK" == "quorum" ]]; then echo "📡 Analyzing network topology and node health" fi post: | echo "⚖️ Quorum adjustment complete"Validate new quorum configuration
echo "✅ Verifying fault tolerance and availability guarantees"
Quorum Manager
Implements dynamic quorum adjustment and intelligent membership management for distributed consensus protocols.
Core Responsibilities
- Dynamic Quorum Calculation: Adapt quorum requirements based on real-time network conditions
- Membership Management: Handle seamless node addition, removal, and failure scenarios
- Network Monitoring: Assess connectivity, latency, and partition detection
- Weighted Voting: Implement capability-based voting weight assignments
- Fault Tolerance Optimization: Balance availability and consistency guarantees
Technical Implementation
Core Quorum Management System
class QuorumManager {
constructor(nodeId, consensusProtocol) {
this.nodeId = nodeId;
this.protocol = consensusProtocol;
this.currentQuorum = new Map(); // nodeId -> QuorumNode
this.quorumHistory = [];
this.networkMonitor = new NetworkConditionMonitor();
this.membershipTracker = new MembershipTracker();
this.faultToleranceCalculator = new FaultToleranceCalculator();
this.adjustmentStrategies = new Map();
this.initializeStrategies();
}
// Initialize quorum adjustment strategies
initializeStrategies() {
this.adjustmentStrategies.set('NETWORK_BASED', new NetworkBasedStrategy());
this.adjustmentStrategies.set('PERFORMANCE_BASED', new PerformanceBasedStrategy());
this.adjustmentStrategies.set('FAULT_TOLERANCE_BASED', new FaultToleranceStrategy());
this.adjustmentStrategies.set('HYBRID', new HybridStrategy());
}
// Calculate optimal quorum size based on current conditions
async calculateOptimalQuorum(context = {}) {
const networkConditions = await this.networkMonitor.getCurrentConditions();
const membershipStatus = await this.membershipTracker.getMembershipStatus();
const performanceMetrics = context.performanceMetrics || await this.getPerformanceMetrics();
const analysisInput = {
networkConditions: networkConditions,
membershipStatus: membershipStatus,
performanceMetrics: performanceMetrics,
currentQuorum: this.currentQuorum,
protocol: this.protocol,
faultToleranceRequirements: context.faultToleranceRequirements || this.getDefaultFaultTolerance()
};
// Apply multiple strategies and select optimal result
const strategyResults = new Map();
for (const [strategyName, strategy] of this.adjustmentStrategies) {
try {
const result = await strategy.calculateQuorum(analysisInput);
strategyResults.set(strategyName, result);
} catch (error) {
console.warn(`Strategy ${strategyName} failed:`, error);
}
}
// Select best strategy result
const optimalResult = this.selectOptimalStrategy(strategyResults, analysisInput);
return {
recommendedQuorum: optimalResult.quorum,
strategy: optimalResult.strategy,
confidence: optimalResult.confidence,
reasoning: optimalResult.reasoning,
expectedImpact: optimalResult.expectedImpact
};
}
// Apply quorum changes with validation and rollback capability
async adjustQuorum(newQuorumConfig, options = {}) {
const adjustmentId = `adjustment_${Date.now()}`;
try {
// Validate new quorum configuration
await this.validateQuorumConfiguration(newQuorumConfig);
// Create adjustment plan
const adjustmentPlan = await this.createAdjustmentPlan(
this.currentQuorum, newQuorumConfig
);
// Execute adjustment with monitoring
const adjustmentResult = await this.executeQuorumAdjustment(
adjustmentPlan, adjustmentId, options
);
// Verify adjustment success
await this.verifyQuorumAdjustment(adjustmentResult);
// Update curre
Câu hỏi thường gặp
Quorum là gì?
Đó là số thành viên tối thiểu phải đồng ý để một quyết định có giá trị.
Nó có tự thay đổi ngưỡng không?
Skill mô tả việc điều chỉnh động dựa trên điều kiện mạng.
Nó có cần giám sát mạng không?
Nó đánh giá kết nối và các phân tách trong mạng, nên cần quyền truy cập vào dữ liệu mạng.
Chi tiết
Mô tả gốc của tác giả
Agent skill for quorum-manager - invoke with $agent-quorum-manager
repo: ruvnet/ruflo
Độ phổ biến
- Sao GitHub
- 81k
- Vị trí xếp hạng
- #1495
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-adaptive-coordinator
81kGiúp agent của bạn chia và cân bằng lại một nhóm agent AI khi khối lượng công việc thay đổi, chọn bố cục phù hợp với tác vụ.
agent-agent
81kDạy agent của bạn biến một mục tiêu lớn thành kế hoạch hành động có thứ tự, và lập lại kế hoạch khi điều kiện thay đổi.
agent-agentic-payments
81kGiúp agent của bạn quản lý ủy quyền chi tiêu cho mua sắm bằng AI, với hạn mức chi, khung thời gian, quy tắc người bán và phê duyệt có chữ ký.
agent-analyze-code-quality
81kGiúp agent của bạn rà soát chất lượng mã, tìm code smell, nợ kỹ thuật và gợi ý tái cấu trúc mà không thay đổi các file.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.