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.
npx agentmods add skills/chandrudp29/skillhub/system-designnpx skills add chandrudp29/skillhub --skill system-designgit clone --depth 1 https://github.com/chandrudp29/skillhubWrote 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.
[](https://agentmods.dev/skills/chandrudp29/skillhub/system-design)<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>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.
| Model | Per session | Once 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 |
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.
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:
- Requirements — functional (what it does) vs non-functional (scale, latency, availability)
- Estimations — DAU, QPS, storage, bandwidth. Back-of-envelope before any architecture
- Storage — what data model, which database, why
- Data flow — how does data move through the system
- Architecture — high-level components, then drill into bottlenecks
- 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
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.
- 4d ago First seen · 123 lines · 26 tokens per session scan A 8cc45ca78176
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.
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.
design-expert
Expert-level system design, architecture patterns, scalability, and distributed systems.
architecture-paradigm-microservices
Applies microservices for independent deployment and per-service scaling. Use when teams need autonomous release cycles with distinct capability scaling needs.
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.
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…
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…