administering-linux
Manage Linux systems covering systemd services, process management, filesystems, networking, performance tuning, and…
When designing distributed systems for scalability, reliability, and consistency. Covers CAP/PACELC theorems, consistency models (strong, eventual, causal), replication patterns (leader-follower, multi-leader, leaderless), partitioning strategies (hash, range, geographic),
Claude Code
$ npx -y skills add ancoleman/ai-design-components --skill designing-distributed-systems --agent claude-code
Codex
$ npx skills add ancoleman/ai-design-components --skill designing-distributed-systems -a codex -y
Cursor
$ npx skills add ancoleman/ai-design-components --skill designing-distributed-systems -a cursor -y
Gemini CLI
$ npx skills add ancoleman/ai-design-components --skill designing-distributed-systems -a gemini-cli -y
GitHub Copilot
$ npx skills add ancoleman/ai-design-components --skill designing-distributed-systems -a github-copilot -y
OpenCode
$ npx skills add ancoleman/ai-design-components --skill designing-distributed-systems -a opencode -y
Windsurf
$ npx skills add ancoleman/ai-design-components --skill designing-distributed-systems -a windsurf -y
name: designing-distributed-systems description: When designing distributed systems for scalability, reliability, and consistency. Covers CAP/PACELC theorems, consistency models (strong, eventual, causal), replication patterns (leader-follower, multi-leader, leaderless), partitioning strategies (hash, range, geographic), transaction patterns (saga, event sourcing, CQRS), resilience patterns (circuit breaker, bulkhead), service discovery, and caching strategies for building fault-tolerant distributed architectures.
Design scalable, reliable, and fault-tolerant distributed systems using proven patterns and consistency models.
Distributed systems are the foundation of modern cloud-native applications. Understanding fundamental trade-offs (CAP theorem, PACELC), consistency models, replication patterns, and resilience strategies is essential for building systems that scale globally while maintaining correctness and availability.
Apply when:
**CAP Theorem:** In a distributed system experiencing a network partition, choose between Consistency (C) or Availability (A). Partition tolerance (P) is mandatory.
Network partitions WILL occur → Always design for P During partition: ├─ CP (Consistency + Partition Tolerance) │ Use when: Financial transactions, inventory, seat booking │ Trade-off: System unavailable during partition │ Examples: HBase, MongoDB (default), etcd │ └─ AP (Availability + Partition Tolerance) Use when: Social media, caching, analytics, shopping carts Trade-off: Stale reads possible, conflicts need resolution Examples: Cassandra, DynamoDB, Riak
**PACELC:** Extends CAP to consider normal operations (no partition).
Strong Consistency ◄─────────────────────► Eventual Consistency
│ │ │
Linearizable Causal Consistency Convergent
(Slowest, (Middle Ground, (Fastest,
Most Consistent) Causally Ordered) Eventually Consistent)**Strong Consistency (Linearizability):**
**Eventual Consistency:**
**Causal Consistency:**
**Bounded Staleness:**
**1. Leader-Follower (Single-Leader):**
**2. Multi-Leader:**
**3. Leaderless (Dynamo-style):**
**Hash Partitioning (Consistent Hashing):**
**Range Partitioning:**
**Geographic Partitioning:**
**Circuit Breaker:**
[Closed] → Normal operation │ (failures exceed threshold) ▼ [Open] → Fail fast (don't call failing service) │ (timeout expires) ▼ [Half-Open] → Try single request │ success → [Closed] │ failure → [Open]
**Bulkhead Isolation:**
**Timeout and Retry:**
Comprehensive UI/UX and Backend component design skills for AI-assisted development with Claude
Manage Linux systems covering systemd services, process management, filesystems, networking, performance tuning, and…
Data pipelines, feature stores, and embedding generation for AI/ML systems. Use when building RAG pipelines, ML feature serving,…
Strategic guidance for designing modern data platforms, covering storage paradigms (data lake, warehouse, lakehouse), modeling…
Design cloud network architectures with VPC patterns, subnet strategies, zero trust principles, and hybrid connectivity. Use when…
Design comprehensive security architectures using defense-in-depth, zero trust principles, threat modeling (STRIDE, PASTA), and…
Assembles component outputs from AI Design Components skills into unified, production-ready component systems with validated…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.