system-design

system-design is a skill for Claude Code, Codex from chandrudp29/skillhub. It costs 26 tokens per session (1,124 once invoked), scanned A, original, MIT.

A guide for designing software systems that can handle growth. It covers requirements, rough capacity estimates, data storage, APIs, caching, and architecture trade-offs.

In plain words
What is it for?
Use it to design new systems, review architecture decisions, and prepare for system design interviews.
Why use it?
It gives a consistent way to compare design choices before implementation. This helps expose limits around speed, reliability, data consistency, and cost.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/chandrudp29/skillhub/system-design
Any agent
npx skills add chandrudp29/skillhub --skill system-design
Clone the repo
git clone --depth 1 https://github.com/chandrudp29/skillhub

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for system-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/chandrudp29/skillhub/system-design.svg)](https://agentmods.dev/skills/chandrudp29/skillhub/system-design)
Your own site
<a href="https://agentmods.dev/skills/chandrudp29/skillhub/system-design"><img src="https://agentmods.dev/badge/skills/chandrudp29/skillhub/system-design.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,124 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00026 $0.01124
Opus 5 $0.00013 $0.00562
Sonnet 5 $0.00005 $0.00225
Haiku 4.5 $0.00003 $0.00112

Measured 4d ago against content hash 8cc45ca78176, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

system-design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/system-design/SKILL.md · 123 lines

How it starts

The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.

When to Use

Apply when designing new systems, reviewing architecture decisions, preparing for system design interviews, or evaluating trade-offs between approaches.

Framework: RESDAC

Use this order for every system design problem:

  1. Requirements — functional (what it does) vs non-functional (scale, latency, availability)
  2. Estimations — DAU, QPS, storage, bandwidth. Back-of-envelope before any architecture
  3. Storage — what data model, which database, why
  4. Data flow — how does data move through the system
  5. Architecture — high-level components, then drill into bottlenecks
  6. Consistency — what CAP trade-offs, where eventual vs strong consistency

Estimation Shortcuts

Traffic:
  1M DAU × 10 requests/day = 10M requests/day = ~120 QPS
  Peak = 3–5× average → 360–600 QPS

Storage:
  1 tweet = 140 chars + metadata ≈ 500 bytes
  500M tweets/day × 500 bytes = 250 GB/day
  250 GB × 365 = ~90 TB/year

Bandwidth:
  Read-heavy: 1B reads/day × 10 KB/read = 10 TB/day = ~1 GB/s

Database Selection

Need Choice Why
Transactions, relations PostgreSQL ACID, mature, great for most systems
High-write throughput Cassandra Wide-column, no joins, linear scale
Flexible schema MongoDB Document model, good for hierarchical data
Key-value, low latency Redis In-memory, microsecond reads
Full-text search Elasticsearch Inverted index, relevance ranking
Time-series TimescaleDB / InfluxDB Optimized for append-only time data
Graph relationships Neo4j Native graph traversal

Caching Strategy

Levels (fastest to slowest):
  L1: In-process (application memory) — microseconds, evicted on restart
  L2: Distributed cache (Redis) — sub-millisecond, survives restarts
  L3: CDN — geographic edge, for static/quasi-static content
  L4: Database cache (pgBouncer, read replicas) — database-level

Cache patterns:
  Cache-aside: App reads cache → miss → reads DB → writes cache
  Write-through: App writes cache AND DB simultaneously
  Write-behind: App writes cache → async write to DB (risk: data loss)
  Read-through: Cache handles DB reads transparently

TTL strategy: match TTL to data freshness requirements, not convenience
Cache invalidation: tag-based (preferred), time-based, event-based

Read the full file on GitHub · 123 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 123 lines · 26 tokens per session scan A 8cc45ca78176

Subscribe to this mod's changes

system-design is a skill published in the GitHub repository chandrudp29/skillhub (13 stars, last pushed 2mo ago), licensed MIT. It adds 26 tokens to every session and 1,124 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

architecture-paradigm-cqrs-es

Applies CQRS and Event Sourcing for read/write separation and audit trails. Use when designing systems with complex domain logic or full state-change history.

athola/claude-night-market · 39 tokens

design-expert

Expert-level system design, architecture patterns, scalability, and distributed systems.

personamanagmentlayer/pcl · 17 tokens

architecture-paradigm-microservices

Applies microservices for independent deployment and per-service scaling. Use when teams need autonomous release cycles with distinct capability scaling needs.

athola/claude-night-market · 33 tokens

architecture-paradigm-space-based

Applies data-grid architecture for high-traffic stateful workloads. Use when a single database cannot scale and in-memory partitioning is needed.

athola/claude-night-market · 35 tokens

data-intensive-patterns

Generate and review data-intensive application code using patterns from Martin Kleppmann's "Designing Data-Intensive Applications." Use this skill whenever the user asks about data storage engines, replication, partitioning, transactions, distributed systems, batch or stream processing, encoding/serialization…

booklib-ai/booklib · 178 tokens

system-design-interview

Apply system design principles from System Design Interview by Alex Xu. Covers scaling (load balancing, DB replication, sharding, caching, CDN), estimation (QPS, storage, bandwidth), the 4-step framework, and 12 real designs: rate limiter, consistent hashing, key-value store, unique ID generator, URL shortener, web…

booklib-ai/booklib · 168 tokens