agent-instructions
Use when writing project instructions for a coding agent (CLAUDE.md, AGENTS.md, or equivalent). Covers what belongs in them, what does not, structure, and…
Use when designing a system or service before implementation. Produces a design covering data model, API surface, failure modes, scaling limits, and the trade-offs that were actually decided.
$ npx -y skills add nimadorostkar/Claude-Skills-collection --skill system-design --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/system-designContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when designing a system or service before implementation. Produces a design covering data model, API surface, failure modes, scaling limits, and the trade-offs that were actually decided.
name: system-design description: Use when designing a system or service before implementation. Produces a design covering data model, API surface, failure modes, scaling limits, and the trade-offs that were actually decided. metadata: category: development version: 1.0.0 tags: [system-design, architecture, scalability, trade-offs]
Produce a design that is honest about its constraints: what it optimizes for, what it gives up, where it breaks, and what would have to change to take it further.
A design document with:
1. **Clarify** — Turn vague requirements into numbers. "Fast" is not a requirement; "p99 under 200ms at 5k rps" is. 2. **Estimate** — Do the arithmetic. Requests per second, bytes per record, records per day, storage at one year. Most designs die on an estimate nobody did. 3. **Model the data** — Access patterns first, schema second. The queries you must serve determine the store you need, not the other way round. 4. **Define the contract** — API surface, idempotency, pagination, error semantics, versioning. 5. **Break it** — For each dependency: what if it is down, slow, or returns garbage? Design the degraded behavior deliberately. 6. **Find the ceiling** — Name the component that saturates first and at what load. That is the scaling path. 7. **Record the trade-offs** — What you gave up, and under what conditions you would revisit.
**Capacity estimate, shown rather than asserted:**
Assumption: 2M daily active users, each posting 3 events/day. Writes : 6M events/day = ~70/s average, ~350/s peak (5x). Payload : ~1.2 KB/event -> 7.2 GB/day -> 2.6 TB/year raw. Reads : 20:1 read/write -> ~1,400/s peak. Implication: 350 writes/s is comfortably within a single Postgres primary. 2.6 TB/year is not — partition by month and move partitions older than 90 days to object storage. Read load needs a cache in front; at 1,400/s with a 90% hit rate the primary sees ~140 reads/s. Ceiling: single primary saturates around 3-5k writes/s. That is ~10x current peak, i.e. roughly two years of growth at the current rate.
A curated library of 137 production-grade skills for Claude and other AI coding agents. Every skill follows one structure, speaks with one voice, and earns its place by changing what the agent does.
Repo: nimadorostkar/Claude-Skills-collection
Use when writing project instructions for a coding agent (CLAUDE.md, AGENTS.md, or equivalent). Covers what belongs in them, what does not, structure, and…
Use when an agent needs state that survives a session or a context compaction. Covers what to persist, file-based memory, structuring notes for retrieval, and…
Use when automating agent behavior with lifecycle hooks. Covers hook events, deterministic enforcement of rules the model should not be trusted to remember,…
Use when packaging skills, commands, hooks, and MCP servers into a distributable plugin. Covers manifest structure, bundling, versioning, testing, and…
Use when writing a new skill for an AI agent. Covers scoping, description writing for reliable triggering, progressive disclosure, and the difference between a…
Use when reviewing or improving an existing agent skill. Covers triggering accuracy, content quality, redundancy with the base model, and measuring whether the…