Skip to content
system-design-analysis logo

System Design Analysis

system-design-analysis

Analyze, review, and provide recommendations for distributed system designs. Use when: (1) Reviewing existing system architectures for gaps or improvements, (2) Analyzing system designs for scalability, reliability, or performance issues, (3) Providing recommendations on load balancing, caching, ...

SKILL.md

Full skill instructions

System Design Analysis

Analyze distributed system designs for scalability, reliability, performance, and security. Produce structured review documents with gaps and actionable recommendations.

Core Principle

System design is about trade-offs, not perfect answers. Every recommendation must consider context: access patterns, scale requirements, consistency needs, and operational constraints.

Workflow

Phase 1: Information Gathering

Ask focused questions to understand the system. Prioritize these areas:

  1. Functional scope: What does the system do? Core operations?
  2. Scale: Expected QPS, data volume, user count?
  3. Access patterns: Read-heavy vs write-heavy? Hot spots?
  4. Consistency requirements: Strong vs eventual? Where?
  5. Availability targets: SLA requirements? Acceptable downtime?
  6. Current architecture: Existing components, databases, services?
  7. Known pain points: What's broken or struggling today?

Limit to 3-5 questions per message. Make reasonable assumptions when information is missing—document assumptions explicitly.

Phase 2: Topic Analysis

Based on gathered information, analyze relevant system design topics. Load reference files as needed:

TopicReference FileWhen to Load
Load balancingload-balancing.mdTraffic distribution, L4/​L7 decisions
Cachingcaching.mdLatency optimization, read scaling
Databasesdatabases.mdData modeling, SQL vs NoSQL choices
CAP & Consistencycap-consistency.mdConsistency model decisions
Shardingsharding-partitioning.mdWrite/​storage scaling
Replicationreplication.mdAvailability, read scaling
Message queuesmessage-queues.mdAsync processing, decoupling
Rate limitingrate-limiting.mdTraffic protection, abuse prevention
Authauth.mdSecurity, identity management
Resilienceresilience-patterns.mdFailure handling, fault tolerance
Monitoringmonitoring-observability.mdObservability, debugging

Load only topics relevant to the specific system under review.

Phase 3: Document Generation

Produce a structured analysis document with these sections:

# System Design Analysis: [System Name]

## 1. Abstract
Brief summary of the system and analysis scope (2-3 paragraphs).

## 2. Requirements

### 2.1 Stated Requirements
Requirements explicitly provided by user.

### 2.2 Assumed Requirements
Reasonable assumptions with rationale. Format:
- **Assumption**: [what was assumed]
- **Rationale**: [why this is reasonable]

## 3. Current System Review
Analysis of existing architecture against requirements. Organize by topic area.

## 4. Gaps
Identified issues, risks, or missing capabilities. Prioritize by impact:
- **Critical**: System failures, data loss risks
- **High**: Performance bottlenecks, scalability limits
- **Medium**: Operational inefficiencies, maintainability issues
- **Low**: Nice-to-have improvements

## 5. Recommendations
Actionable improvements with:
- **Problem addressed**: Which gap(s) this solves
- **Recommendation**: Specific technical approach
- **Example**: Concrete implementation guidance
- **Trade-offs**: What you gain vs what you sacrifice
- **Impact**: Expected improvement if implemented

Analysis Checklist

For each relevant topic, evaluate:

Load Balancing

  • Algorithm appropriate for workload (round robin, least connections, consistent hashing)?
  • L4 vs L7 appropriate for use case?
  • LB itself highly available?
  • Health checks configured?

Caching

  • Cache strategy defined (cache-aside, write-through)?
  • Eviction policy appropriate (LRU, TTL)?
  • Cache invalidation strategy?
  • Hot key and cache stampede handling?

Databases

  • Data model matches access patterns?
  • Indexes support critical queries?
  • Read-heavy vs write-heavy considered?
  • Appropriate SQL vs NoSQL choice?

CAP & Consistency

  • Consistency model matches business requirements?
  • Trade-offs between C and A explicit?
  • Read-your-writes where needed?

Sharding

  • Shard key distributes load evenly?
  • Hot partitions addressed?
  • Cross-shard operations minimized?

Replication

  • Sync vs async replication appropriate?
  • Replica lag acceptable?
  • Leader election mechanism defined?
  • Split-brain prevention?

Message Queues

  • Delivery guarantees appropriate?
  • Consumer idempotency?
  • Dead-letter queue for failures?
  • Backpressure handling?

Rate Limiting

  • Algorithm chosen (token bucket recommended)?
  • Limits appropriate for different tiers?
  • Distributed enforcement for multi-node?
  • Graceful handling of limit breaches?

Authentication & Authorization

  • AuthN mechanism appropriate (JWT, sessions)?
  • Token lifecycle managed (expiry, refresh)?
  • AuthZ model defined (RBAC, ABAC)?
  • Service-to-service auth?

Resilience

  • Timeouts on all external calls?
  • Retry strategy with backoff?
  • Circuit breakers for unstable dependencies?
  • Graceful degradation paths?

Monitoring

  • Golden signals tracked (latency, traffic, errors, saturation)?
  • Distributed tracing for request flows?
  • Structured logging?
  • Alerts tied to SLOs, not raw metrics?

Common Anti-Patterns to Flag

  • No caching strategy: "Just add Redis" without invalidation plan
  • Wrong database choice: Forcing SQL for graph data or NoSQL for transactions
  • Ignoring partition tolerance: Designing as if network never fails
  • Naive sharding: Choosing shard key without considering access patterns
  • Synchronous everything: No async processing for non-critical paths
  • Alert fatigue: Alerting on every error instead of user impact
  • Missing rate limiting: No protection against traffic spikes
  • Stateless assumption violations: Session stickiness breaking horizontal scaling

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View