system-design

system-design is a skill for Claude Code, Codex from kok-o/koko-contextos-agents. It costs 61 tokens per session (3,384 once invoked), scanned A, original, MIT.

A planning guide for designing backend systems that can handle growth. It covers choices such as load balancing, caching, database splitting, data consistency, microservices, serverless, and edge computing.

In plain words
What is it for?
Use it to plan or review backend architecture, including Next.js applications, serverless or edge systems, backend-for-frontend services, and domain-driven designs.
Why use it?
It helps you think about traffic, data size, speed, and reliability before choosing an architecture. This makes trade-offs visible before they become implementation problems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to plan or review backend architecture, including Next.js applications, serverless or edge systems, backend-for-frontend services, and domain-driven designs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kok-o/koko-contextos-agents/system-design
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.

Any agent
npx skills add kok-o/koko-contextos-agents --skill system-design
Clone the repo
git clone --depth 1 https://github.com/kok-o/koko-contextos-agents

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/kok-o/koko-contextos-agents/system-design/github.svg)](https://agentmods.dev/skills/kok-o/koko-contextos-agents/system-design)
Your own site
<a href="https://agentmods.dev/skills/kok-o/koko-contextos-agents/system-design"><img src="https://agentmods.dev/badge/skills/kok-o/koko-contextos-agents/system-design/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for system-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/kok-o/koko-contextos-agents/system-design"><img src="https://agentmods.dev/badge/skills/kok-o/koko-contextos-agents/system-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,384 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00061 $0.03384
Opus 5 $0.00030 $0.01692
Sonnet 5 $0.00012 $0.00677
Haiku 4.5 $0.00006 $0.00338

Measured 4d ago against content hash 6ac25191f9e9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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.

.agents/core/skills/system-design/SKILL.md · 420 lines

How it starts

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

system-design

Overview

A brief summary of what the skill does and its core philosophy.

When to Use

Context for when this skill is applicable.

Rules & Patterns

Based on donnemartin/system-design-primer — the most starred system design resource on GitHub.

Core Principle

Everything is a trade-off. Before writing a single line of backend code, reason through the system at scale. A flat monolith that works now fails at 10× load.


Mandatory Pre-Design Checklist

Before architecting any backend system, answer these questions:

  1. Scale: What is the expected QPS (queries per second)? Peak vs average?
  2. Data volume: How much data? Growth rate? 1GB? 1TB? 1PB?
  3. Consistency vs Availability: Can we tolerate eventual consistency? (CAP theorem)
  4. Read/Write ratio: Is it read-heavy (cache it!) or write-heavy (shard it!)?
  5. Latency requirements: Real-time (<100ms)? Near-real-time (<1s)? Batch?
  6. Global distribution: Single region or multi-region?
  7. Deployment model: Traditional servers, Serverless, or Edge functions?

Core Architecture Patterns

Load Balancing

Clients → Load Balancer → [App Server 1, App Server 2, App Server N]
  • Use Round Robin for stateless services
  • Use Least Connections for varying request times
  • Use IP Hash for session affinity (or move sessions to Redis)
  • Always add health checks — remove unhealthy nodes automatically

Rule: Any service expecting > 1000 RPS needs a load balancer. No exceptions.

Caching Strategy

App → [Cache Layer: Redis/Memcached] → Database

Cache decision ladder (check in order):

  1. Is it read > write? → Cache it
  2. Is it expensive to compute? → Cache it
  3. Is it user-specific? → Cache with user key
  4. Is it global? → Shared cache, shorter TTL

Cache patterns:

  • Cache-aside (lazy loading): check cache → miss → load DB → write cache
  • Write-through: write to DB AND cache simultaneously (consistency > performance)
  • Write-behind: write to cache → async flush to DB (performance > consistency)

Read the full file on GitHub · 420 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 Changed · +38 lines 6ac25191f9e9
  2. 9d ago First seen · 382 lines · 61 tokens per session scan A 118875830b8a

Subscribe to this mod's changes

system-design is a skill published in the GitHub repository kok-o/koko-contextos-agents (2 stars, last pushed 5d ago), licensed MIT. It adds 61 tokens to every session and 3,384 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

event_driven

Structure systems around asynchronous, event-based communication to decouple producers and consumers for improved scalability and resilience. Use when building loosely coupled systems with asynchronous message-based communication.

vuralserhat86/antigravity-agentic-skills · 36 tokens

cache_patterns

Instruction set for enabling and operating the Spring Cache abstraction in Spring Boot when implementing application-level caching for performance-sensitive workloads.

DonggangChen/antigravity-agentic-skills · 26 tokens

event_driven

Structure systems around asynchronous, event-based communication to decouple producers and consumers for improved scalability and resilience. Use when building loosely coupled systems with asynchronous message-based communication.

DonggangChen/antigravity-agentic-skills · 36 tokens

angular-http-client

Integrate HttpClient, Interceptors, and API interactions in Angular. Use when integrating HttpClient, writing interceptors, or handling API calls in Angular.

HoangNguyen0403/agent-skills-standard · 35 tokens

system-design-methodology

Drives an interactive system design session: classifies depth, elicits scale/SLO/consistency inputs, computes capacity, then reveals components one at a time with a constraint justification each. Use when designing a system or running a design session; defer diagrams to the diagramming skill.

HoangNguyen0403/agent-skills-standard · 62 tokens

system-design-case-catalog

Answer classic system design problems as constraint-to-solution sketches and coach interview practice: URL shortener, rate limiter, news feed, chat, notification, autocomplete, crawler, unique id. Use for interview practice or naming the closest known shape for a new problem.

HoangNguyen0403/agent-skills-standard · 58 tokens