system-design-data-architecture

system-design-data-architecture is a skill for Claude Code, Codex from HoangNguyen0403/agent-skills-standard. It costs 59 tokens per session (779 once invoked), scanned A, original, MIT.

Guidance for choosing and scaling the part of a system that stores application data, such as a relational database, key-value store, or object storage.

In plain words
What is it for?
Use it when selecting a database, planning sharding, deciding where files should live, or investigating a data-layer bottleneck.
Why use it?
It links storage choices to actual read and write needs while addressing ownership, consistency, replication, and partitioning 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 when selecting a database, planning sharding, deciding where files should live, or investigating a data-layer bottleneck.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hoangnguyen0403/agent-skills-standard/system-design-data-architecture
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 HoangNguyen0403/agent-skills-standard --skill system-design-data-architecture
Clone the repo
git clone --depth 1 https://github.com/HoangNguyen0403/agent-skills-standard

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-data-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/hoangnguyen0403/agent-skills-standard/system-design-data-architecture/github.svg)](https://agentmods.dev/skills/hoangnguyen0403/agent-skills-standard/system-design-data-architecture)
Your own site
<a href="https://agentmods.dev/skills/hoangnguyen0403/agent-skills-standard/system-design-data-architecture"><img src="https://agentmods.dev/badge/skills/hoangnguyen0403/agent-skills-standard/system-design-data-architecture/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-data-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/hoangnguyen0403/agent-skills-standard/system-design-data-architecture"><img src="https://agentmods.dev/badge/skills/hoangnguyen0403/agent-skills-standard/system-design-data-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 779 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00059 $0.00779
Opus 5 $0.00030 $0.00390
Sonnet 5 $0.00012 $0.00156
Haiku 4.5 $0.00006 $0.00078

Measured 13d ago against content hash fd5551c23036, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

system-design-data-architecture 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 13d 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/skills/system-design/system-design-data-architecture/SKILL.md · 73 lines

How it starts

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

Data Architecture

Priority: P1 (HIGH)

Access patterns choose the store. Ownership precedes schema. Shard last, not first.

Store Selection

  1. List every read and write access pattern with its QPS, latency target, and consistency need.
  2. Default to a relational store. It wins until a specific pattern proves it cannot serve.
  3. Move a pattern to a specialized store only when the relational store fails that named pattern: key-value for hot lookups, wide-column for massive ordered writes, document for schema-variant aggregates, graph for multi-hop traversal, search index for text and facets, object store for blobs.
  4. Every additional store adds sync lag, dual-write risk, and one more operational surface. Justify it.
  5. Blobs never live in the primary database; store bytes in object storage and keep the reference.

Ownership and Consistency

  • One writer owns each entity. Cross-service reads use an API or an event stream, never a shared table.
  • Classify each flow before choosing replication: money, stock, and identity need strong consistency; feeds, counters, and analytics tolerate eventual.
  • Read replicas serve reads only, and replica lag is visible to users. Route read-after-write to the primary or pin the session.
  • Cross-entity atomicity across services needs a saga with compensations, not a distributed transaction.

Scaling Order

Apply in order and stop as soon as headroom is sufficient: index and query fixes, then read replicas, then caching, then vertical scale, then partition or archive cold data, then shard. Sharding is last because it costs cross-shard queries, rebalancing, and a permanent partition key commitment.

Partitioning

  • Choose a partition key that is high-cardinality, present in the hottest query, and evenly distributed.
  • Hash partitioning spreads load but kills range scans; range partitioning keeps scans but creates a moving hot partition on time-ordered keys.
  • Mitigate a celebrity key by salting the key, replicating the record, or serving it from a dedicated cache.
  • Plan resharding before launch: virtual buckets mapped to physical shards let you move buckets without rewriting keys.

Read the full file on GitHub · 73 lines

Files

What ships with it

1 file 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. 13d ago First seen · 73 lines · 59 tokens per session scan A fd5551c23036

Subscribe to this mod's changes

system-design-data-architecture is a skill published in the GitHub repository HoangNguyen0403/agent-skills-standard (565 stars, last pushed 3d ago), licensed MIT. It adds 59 tokens to every session and 779 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-30.

Related

Other skills, from other repositories

api-design

A guide to designing application interfaces that other software can use, including REST, GraphQL, and gRPC APIs.

AsiaOstrich/universal-dev-standards · 116 tokens

database

A guide to database structure, data migrations, queries, and indexes. A database stores application data; a migration changes its structure, and an index helps it find data faster.

AsiaOstrich/universal-dev-standards · 111 tokens

oma-backend

Backend specialist for APIs, databases, authentication with clean architecture (Repository/Service/Router pattern). Use for API, endpoint, REST, database, server, migration, and auth work.

first-fluke/fullstack-starter · 41 tokens

data-access

Data access patterns with Spring Data JPA, Hibernate 7.1, Flyway migrations, HikariCP tuning, N+1 prevention, caching, and query optimization. Use when user mentions database, JPA, queries, migrations, N+1, or slow queries.

altmemy/claude-code-templates · 59 tokens

payload

Use when working with Payload projects (payload.config.ts, collections, fields, hooks, access control, Payload API). Use when debugging validation errors, security issues, relationship queries, transactions, or hook behavior.

payloadcms/payload · 43 tokens

nextjs-app-router

Full end-to-end tRPC setup for Next.js App Router. Covers route handler with fetchRequestHandler (GET + POST exports), TRPCProvider with QueryClientProvider, createTRPCOptionsProxy for RSC prefetching, HydrateClient/HydrationBoundary for hydration, useSuspenseQuery for Suspense, and server-side callers.

trpc/trpc · 74 tokens