Agent Skillsmohitagw15856/pm-claude-skills › system-design-interview

system-design-interview

GitHub

用于结构化回答系统设计面试题或实际架构设计。通过收集需求、规模、约束等输入,输出包含澄清问题、功能/非功能需求、容量估算、高层架构图及组件深度分析的完整方案,适用于面试准备与真实架构决策。

exports/openclaw/system-design-interview/SKILL.md mohitagw15856/pm-claude-skills

Trigger Scenarios

用户要求设计某个系统 用户询问系统设计面试题答案 用户需要大规模架构解决方案

Install

npx skills add mohitagw15856/pm-claude-skills --skill system-design-interview -g -y
More Options

Non-standard path

npx skills add https://github.com/mohitagw15856/pm-claude-skills/tree/main/exports/openclaw/system-design-interview -g -y

Use without installing

npx skills use mohitagw15856/pm-claude-skills@system-design-interview

指定 Agent (Claude Code)

npx skills add mohitagw15856/pm-claude-skills --skill system-design-interview -a claude-code -g -y

安装 repo 全部 skill

npx skills add mohitagw15856/pm-claude-skills --all -g -y

预览 repo 内 skill

npx skills add mohitagw15856/pm-claude-skills --list

SKILL.md

Frontmatter
{
    "name": "system-design-interview",
    "homepage": "https:\/\/mohitagw15856.github.io\/pm-claude-skills\/skill\/system-design-interview.html",
    "metadata": {
        "openclaw": {
            "emoji": "⚙️"
        }
    },
    "description": "Structure a complete system design answer for interview questions or real architecture sessions. Use when asked to design a system, answer a system design interview question, or architect a solution at scale. Produces a structured answer covering requirements, capacity estimates, high-level design, component deep-dives, trade-offs, and follow-up considerations."
}

System Design Interview Skill

Structures a complete, interview-grade system design response — covering clarifying questions, requirements, capacity estimates, architecture, component design, and trade-offs. Works equally well for real architecture sessions.

Required Inputs

Ask for these if not provided:

  • The system to design (e.g. "design a URL shortener", "design a notification service", "design Twitter's feed")
  • Scope (interview prep / real architecture decision / practice run)
  • Scale target (rough numbers: DAU, requests/sec, data volume — or "assume typical web scale")
  • Constraints or priorities (e.g. prioritise availability over consistency, minimise cost, low-latency reads)
  • Time available (interview context only: 30 / 45 / 60 minutes — skip for real architecture sessions)
  • Emphasis (optional — any area to go deeper on, e.g. "focus on the DB design" or "spend more time on scaling")

Output Format

1. Clarifying Questions

Before designing, list 4–6 questions that would change the design. Examples:

  • Read-heavy or write-heavy? (affects caching and DB choice)
  • Global or single-region? (affects latency requirements)
  • Strong or eventual consistency? (affects storage and replication)
  • Acceptable latency targets? (p50 / p99)
  • Any existing infrastructure constraints?

Then proceed with stated assumptions if answering an interview question.

2. Functional Requirements

Core features (must have):

  • [Feature 1]
  • [Feature 2]
  • [Feature 3]

Out of scope (for this design):

  • [What's deliberately excluded and why]

3. Non-Functional Requirements

Requirement Target
Availability [e.g. 99.9% / 99.99%]
Latency [e.g. p95 < 100ms for reads]
Throughput [e.g. 10k writes/sec peak]
Consistency [Strong / Eventual]
Durability [e.g. 99.999% — no data loss]

4. Capacity Estimation

Traffic:

  • DAU: [X]
  • Reads/sec: [X] (peak: [X])
  • Writes/sec: [X] (peak: [X])

Storage:

  • Per record size: [X bytes]
  • Records per day: [X]
  • 5-year storage: [X GB/TB]

Bandwidth:

  • Inbound: [X MB/s]
  • Outbound: [X MB/s]

5. High-Level Architecture

Draw an ASCII diagram specific to this system. Do not default to the client→CDN→LB→API→Cache→DB template unless it genuinely applies. Label each component with the specific technology chosen (e.g. "Kafka" not "Message Queue", "PostgreSQL" not "DB"). Describe each component in 1–2 sentences explaining its role and why that technology was chosen.

6. Component Deep-Dive

Pick the 2–3 most critical/interesting components and go deep:

[Component 1: e.g. Database Layer]

  • Choice: [Technology and why — e.g. PostgreSQL for ACID guarantees, Cassandra for write throughput]
  • Schema design (high-level): [Key tables/collections and their structure]
  • Indexing strategy: [What gets indexed and why]
  • Replication: [Primary-replica / Multi-primary — and why]

[Component 2: e.g. Caching Strategy]

  • Cache type: [Redis / Memcached — and why]
  • What gets cached: [Hot data — e.g. user sessions, frequent reads]
  • Cache invalidation: [TTL / Write-through / Write-behind — trade-offs]
  • Cache hit rate target: [e.g. 95%]

[Component 3: e.g. API Design]

  • Key endpoints: [List the 3–5 most important API calls]
  • Authentication: [JWT / OAuth / API keys]
  • Rate limiting: [Where and at what rate]

7. Data Flow

Walk through the two most critical paths end-to-end:

Write path: [Step 1 → Step 2 → Step 3...] Read path: [Step 1 → Step 2 → Step 3...]

8. Scaling Bottlenecks and Mitigations

Bottleneck Mitigation
[e.g. DB write throughput] [e.g. sharding by user_id, write batching]
[e.g. Hot-key cache misses] [e.g. local in-process cache, probabilistic early expiry]
[e.g. Single region latency] [e.g. multi-region deployment, GeoDNS routing]

9. Trade-offs and Alternatives

Be explicit about what was chosen and what was sacrificed:

Decision Why Trade-off
[e.g. Eventual consistency] [Higher availability, lower latency] [Stale reads possible]
[e.g. SQL over NoSQL] [Complex queries, ACID transactions] [Harder to shard horizontally]
[e.g. Async processing via queue] [Decoupled, more resilient] [Eventual delivery, harder to debug]

10. Follow-up Considerations

Things to tackle in production but out of scope for this design session:

  • Monitoring and alerting (what metrics matter)
  • Disaster recovery and backup strategy
  • Security (auth, encryption at rest/transit, rate limiting)
  • Cost optimisation at scale
  • Gradual rollout and feature flagging

Quality Checks

  • Clarifying questions are design-changing (not generic filler)
  • Capacity estimates show the arithmetic: DAU → requests/day → requests/sec → storage per record → total storage, so the numbers can be sanity-checked
  • Every row in the Trade-offs table has a non-empty Trade-off column (no rows where the trade-off is blank or says "none")
  • At least 2 component deep-dives with technology choices justified
  • Trade-offs section is honest (not just benefits of chosen approach)
  • Data flow is described end-to-end for the critical path

Anti-Patterns

  • Do not jump to solutions before clarifying requirements — always establish functional and non-functional requirements first
  • Do not present a design without discussing trade-offs — every architecture decision has costs and benefits that must be acknowledged
  • Do not use vague capacity estimates — show the actual calculation (QPS, storage bytes, bandwidth) not just "this handles scale"
  • Do not design for unlimited scale by default — match the design to the requirements stated
  • Do not skip the data model — a system design without entity definitions and data flow is incomplete

Usage Examples

  • "Help me answer a system design interview: [question]"
  • "Design [system] for a system design interview"
  • "How would I architect [system] at scale?"
  • "I have a system design interview — the question is [X]"
  • "Design a [URL shortener / chat system / notification service / feed]"

Version History

  • 54fad50 Current 2026-07-19 12:35

Same Skill Collection

exports/openclaw/360-feedback-template/SKILL.md
exports/openclaw/401k-plan-decoder/SKILL.md
exports/openclaw/ab-test-planner/SKILL.md
exports/openclaw/ab-test-readout/SKILL.md
exports/openclaw/accessibility-audit/SKILL.md
exports/openclaw/account-plan/SKILL.md
exports/openclaw/acquirer-red-team/SKILL.md
exports/openclaw/ad-copy/SKILL.md
exports/openclaw/aeo-optimizer/SKILL.md
exports/openclaw/agenda-or-cancel/SKILL.md
exports/openclaw/agent-design-review/SKILL.md
exports/openclaw/agent-observability-spec/SKILL.md
exports/openclaw/agent-spec/SKILL.md
exports/openclaw/ai-ethics-review/SKILL.md
exports/openclaw/ai-eval-plan/SKILL.md
exports/openclaw/ai-feature-prd/SKILL.md
exports/openclaw/ai-product-canvas/SKILL.md
exports/openclaw/air-quality/SKILL.md
exports/openclaw/altitude-shifter/SKILL.md
exports/openclaw/ambiguity-resolver/SKILL.md
exports/openclaw/analyst-relations-brief/SKILL.md
exports/openclaw/announcement-card/SKILL.md
exports/openclaw/api-docs-writer/SKILL.md
exports/openclaw/api-test-plan/SKILL.md
exports/openclaw/api-versioning-strategy/SKILL.md
exports/openclaw/apology-letter/SKILL.md
exports/openclaw/architecture-decision-record/SKILL.md
exports/openclaw/architecture-diagram/SKILL.md
exports/openclaw/archive-strategy/SKILL.md
exports/openclaw/assumption-bounty/SKILL.md
exports/openclaw/assumption-mapper/SKILL.md
exports/openclaw/async-update-format/SKILL.md
exports/openclaw/auto-repair-estimate-decoder/SKILL.md
exports/openclaw/autopilot-charter/SKILL.md
exports/openclaw/benefits-decoder/SKILL.md
exports/openclaw/bid-tender-review/SKILL.md
exports/openclaw/board-deck-narrative/SKILL.md
exports/openclaw/board-minutes/SKILL.md
exports/openclaw/board-pre-read/SKILL.md
exports/openclaw/bom-cost-review/SKILL.md
exports/openclaw/bookkeeping-categorization/SKILL.md
exports/openclaw/boolean-search-builder/SKILL.md
exports/openclaw/brag-doc/SKILL.md
exports/openclaw/brainstorming/SKILL.md
exports/openclaw/brief-builder/SKILL.md
exports/openclaw/briefing-note/SKILL.md
exports/openclaw/budget-builder/SKILL.md
exports/openclaw/budget-variance-analysis/SKILL.md
exports/openclaw/bug-diagnosis/SKILL.md
exports/openclaw/bug-report/SKILL.md

Metadata

Files
0
Version
471c606
Hash
b2387e2e
Indexed
2026-07-19 12:35

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-30 22:09
浙ICP备14020137号-1 $방문자$