skills/council/architect/distributed-patterns/SKILL.md
Use when designing distributed systems or evaluating distributed architecture patterns. Covers CAP theorem trade-offs, consensus protocols (Raft, Paxos), saga orchestration, CRDTs, event sourcing, partition handling, distributed transactions, and failure detectors. Do not use for general API design (use api-design) or database schema design (use schema-design).
npx skillsauth add dtsong/my-claude-setup distributed-patternsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Evaluate distributed system design decisions and recommend appropriate patterns for consistency, availability, partition tolerance, and failure handling. Ensure designs account for the fundamental constraints of distributed computing.
Analyzes architecture documents, system diagrams, and code for distributed system patterns. Does not modify files or execute code. Does not benchmark or load-test distributed systems.
No user-provided values are used in commands or file paths. All inputs are treated as read-only analysis targets.
Validation gate: Revisit this analysis after 5+ sessions to verify patterns held up under real-world usage and evolution.
Compaction resilience: If context was lost, re-read the Inputs section to identify the system under analysis, check the Progress Checklist for completed steps, then resume from the earliest incomplete step.
| Concern | Pattern | Rationale | Trade-off | |---------|---------|-----------|-----------| | Consistency | Raft / CRDT / Event sourcing | ... | ... | | Failure handling | Circuit breaker + phi-accrual | ... | ... | | Transactions | Saga (orchestration) | ... | ... | | Replication | Single-leader with read replicas | ... | ... |
| Scenario | Impact | Mitigation | Recovery Time | |----------|--------|------------|---------------| | Network partition between A and B | ... | ... | ... | | Leader node failure | ... | ... | ... |
development
Use when planning implementation steps, deciding commit format, or structuring development approach. Provides brainstorm-plan-implement flow with conventional commits. Triggers on 'how should I approach this', 'commit format'.
development
Security audit checklist for web applications. Use when reviewing, auditing, or hardening a web app's security posture. Covers rate limiting, auth headers, IP blocking, CORS, security middleware, input validation, file upload limits, ORM usage, and password hashing. Triggers on requests like "review security", "harden this app", "security audit", "check for vulnerabilities", or when building/reviewing API endpoints.
development
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.