home / skills / a5c-ai / babysitter / consensus-protocol-library
This skill helps you design, analyze, and implement consensus protocols like Paxos, Raft, and PBFT with guided safety and liveness checks.
npx playbooks add skill a5c-ai/babysitter --skill consensus-protocol-libraryReview the files below or copy the command above to add this skill to your agents.
---
name: consensus-protocol-library
description: Reference implementations and specifications of consensus protocols
allowed-tools:
- Bash
- Read
- Write
- Edit
- Glob
- Grep
metadata:
specialization: computer-science
domain: science
category: distributed-systems
phase: 6
---
# Consensus Protocol Library
## Purpose
Provides expert guidance on consensus protocol design, analysis, and implementation for distributed systems.
## Capabilities
- Paxos, Raft, PBFT specifications
- Protocol comparison matrix
- Safety/liveness property templates
- Message complexity analysis
- Protocol variant catalog
- Failure mode analysis
## Usage Guidelines
1. **Protocol Selection**: Choose appropriate consensus protocol
2. **Specification Review**: Understand protocol specification
3. **Property Verification**: Verify safety and liveness
4. **Comparison**: Compare protocols for use case
5. **Implementation**: Guide implementation decisions
## Tools/Libraries
- TLA+ specifications
- Reference implementations
- Protocol documentation
This skill provides reference implementations and clear specifications for mainstream consensus protocols used in distributed systems. It bundles formal models, practical analysis, and implementation guidance to help engineers choose and build reliable consensus layers. The library emphasizes safety, liveness, and failure-mode reasoning for production-grade systems.
The skill inspects protocol specifications (Paxos, Raft, PBFT) and offers executable reference implementations and TLA+ models for formal verification. It produces comparative matrices, message-complexity analysis, and templates for proving safety and liveness properties. It also catalogs protocol variants and failure-mode analyses to guide design and testing choices.
Which protocols are included?
Paxos, Raft, and PBFT with documented variants and common extensions.
Are formal models provided?
Yes. TLA+ specifications and verification templates are provided to check safety and liveness properties.