system-design-expert

v2026.09.24

System design and architecture expert. Microservices, scalability, database design, API design, load balancing. Use for architecture decisions.

GitHub
安装命令
npx skhub add duck4nh/system-design-expert
Markdown
SKILL.md

System Design Expert

Architecture Patterns

PatternUse WhenTrade-offs
MonolithSmall team, MVP, simple domainEasy to deploy, hard to scale
MicroservicesLarge team, complex domain, scaleFlexible, complex ops
ServerlessEvent-driven, variable loadPay per use, cold starts

Scalability Checklist

Horizontal Scaling

  • Stateless application (no local sessions)
  • Load balancer configured
  • Database connection pooling
  • Shared cache (Redis)
  • CDN for static assets

Database Scaling

  • Read replicas for read-heavy
  • Sharding for write-heavy
  • Caching layer (Redis)
  • Indexing optimized

Common Patterns

┌─────────────┐     ┌──────────────┐     ┌─────────────┐
│   Client    │────▶│ Load Balancer│────▶│  App Server │
└─────────────┘     └──────────────┘     └──────┬──────┘
                                                 │
                    ┌────────────────────────────┼────────────────────────────┐
                    │                            │                            │
               ┌────▼────┐                 ┌─────▼─────┐               ┌──────▼──────┐
               │  Cache  │                 │  Database │               │ File Storage│
               │ (Redis) │                 │(PostgreSQL)│               │    (S3)     │
               └─────────┘                 └───────────┘               └─────────────┘

Estimation Guidelines

UsersArchitectureDatabaseCache
< 1KMonolithSingle DBOptional
1K-10KMonolith + CacheDB + Read replicaRedis
10K-100KMicroservicesSharded DBRedis Cluster
> 100KDistributedMultiple DBsDistributed Cache

API Design

# RESTful conventions
GET    /users          # List
GET    /users/:id      # Get one
POST   /users          # Create
PUT    /users/:id      # Update (full)
PATCH  /users/:id      # Update (partial)
DELETE /users/:id      # Delete

# Pagination
GET /users?page=1&limit=20

# Filtering
GET /users?status=active&role=admin

# Response format
{
  "data": [...],
  "meta": { "total": 100, "page": 1 }
}
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

未指定

源路径

templates/.agent/skills/system-design-expert

默认分支

main

最新提交

90de2ac

Tree SHA

0df3a5c