Scalability analysis is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Scalability analysis expertise including horizontal vs vertical scaling, sharding strategies, read/write splitting, eventual consistency patterns, CQRS for scale, back-of-envelope calculations, and caching layer design.
Claude Code: save it as .claude/skills/scalability-analysis/SKILL.md
Cursor: save it as .cursor/rules/scalability-analysis.md
Codex: save it as .agents/skills/scalability-analysis/SKILL.md
ChatGPT, Gemini and other assistants: paste it into custom or project instructions
Skill file
Scalability Analysis
When to use
Choosing between vertical and horizontal scaling for a workload
Designing a sharding strategy for a database that is approaching its single-node limit
Implementing read/write splitting with replication-lag awareness
Deciding whether CQRS is justified for a given read/write pattern divergence
Performing back-of-envelope QPS, storage, bandwidth, or memory estimates
Designing caching layers with appropriate invalidation strategies
Core principles
Scale vertically first — distributed coordination has a real cost; delay it until necessary
Shard key determines your fate — cardinality and query pattern alignment before anything else
Replication lag is not zero — design read/write splitting with explicit lag tolerance per flow
CQRS only when patterns diverge — premature CQRS is just complexity you'll regret
Estimate before architecting — back-of-envelope math prevents over- and under-engineering
Reference Files
references/scaling-strategies-and-sharding.md — vertical vs horizontal scaling, hybrid approach, hash/range/geo-based sharding, shard key selection, read/write splitting with replication lag handling, eventual consistency patterns (compensating transactions, idempotency), and CQRS write/read model separation
references/capacity-math-and-caching.md — QPS/storage/bandwidth/memory estimation formulas, application-level and distributed cache patterns, database query cache and materialized views, CDN and edge cache, TTL/event-based/write-through/cache-aside invalidation strategies
Use this skill with your AI agent:Open on Skill Issue to copy, download, or add to your library.
Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.