Skip to main content
BuildReviewed Aug 30, 2026

System Design Data Architecture

Design system data flows and data-layer ownership, consistency, and store choices from access patterns. Use for critical-flow design, DFD semantic review, data lineage, authority, replication, retention, or a data-tier bottleneck. Avoid unrelated framework stream/dataframe implementation questions.

v1.0.3New

Unsigned, install at your own risk

Unverified

This skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install multi-language-standards-system-design-data-architecture
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/multi-language-standards-system-design-data-architecture/SKILL.md

Setup guide →
0Save

Instructions

Data Architecture

Priority: P1 (HIGH)

Access patterns and per-operation invariants choose the store. Ownership precedes schema. Shard last, not first. Trace critical flows before committing to stores or transport; diagrams are conditional.

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

  • Name one authoritative writer per entity or state boundary. Distinguish derived copies, replicas, caches, queues, projections, files, and client state; each needs an owner and refresh/rebuild or lifecycle rule.
  • Authenticated tenant/user scope is part of authority: carry it from source reads through lexical/vector retrieval, reranking, caches, async jobs and outputs, and deny when it is missing. Ranking relevance never grants access, and a derived copy outlives neither revocation nor its own invalidation. Load tenant-safe retrieval for scoped search, embeddings, caches, or async derived work.
  • Choose consistency per operation and invariant. Strong consistency is not implied by a domain label; state the consequence of stale or conflicting reads/writes.
  • Read replicas serve reads only when the consistency contract permits; expose lag and use primary routing, session pinning, or a write token where read-after-write matters.
  • Choose a bounded synchronous transaction, asynchronous event, saga, or another mechanism from transaction boundaries and failure semantics. A saga is not a universal substitute for atomicity; define recovery and compensations when it is used.

Scaling Order

Apply in order: resolve query shape, unindexed scans, and query amplification (loops, serializers, GraphQL fan-out); see database-query-performance for bounded batching and request-scoped DataLoaders. Then read replicas, caching, vertical scale, partitioning/archival, and sharding last. Sharding costs cross-shard joins, rebalancing, and permanent partition keys.

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.

Anti-Patterns

  • No premature sharding: an unindexed query at 300 QPS is not a sharding problem.
  • No shared database between services: it silently couples deploy and schema lifecycles.
  • No dual writes without reconciliation: use an event log or CDC, then reconcile.
  • No unbounded table growth: define retention, archival tier, and deletion at design time.
  • No denormalization without an update path: every copy needs an owner and a refresh trigger.
  • No relevance as authorization: ranking, similarity, or a namespace does not decide who may read a row.
  • No blanket giant JOIN for amplification: multi-row JOINs corrupt pagination and inflate memory; use bounded batching.

Verify

  • Critical paths name source, sink, transformations, authoritative owner, derived copies, invariant, user-visible outcome, adverse timeline, and observable verification; see flow contract.
  • Every selected store has a stated access-pattern reason; identify single-writer ownership where applicable.
  • Consistency and freshness are stated per relevant operation/flow.
  • Partitioning, hot-key mitigation, retention, archival, and deletion are addressed when workload or lifecycle makes them material.
  • Tenant-scoped flows name authenticated scope at every derived stage, the deny path for missing scope, and derived-copy revocation/invalidation; see tenant-safe retrieval.
  • Access amplification (loops, resolvers, aggregates) is bounded via batching or projection before caching or replicas; see database-query-performance.

References

  • Database Scaling - store comparison, replication topologies, sharding mechanics, query amplification & batching
  • Flow Contracts - critical-flow authority, copies, invariant and verification record
  • Tenant-Safe Retrieval - authenticated scope through retrieval, rerank, cache, jobs and derived-copy revocation

Critical Flows and DFD Review

Before choosing stores or transport, trace ingress, transformations, authority, derived state, consumers, trust boundaries, invariant, adverse timeline, and verification for each critical journey. Add delivery, durability, ordering, deduplication, backlog, recovery, capacity, and lifecycle details when material; explain significant omissions. A diagram is optional when prose or a table answers the question.

Load flow contracts for the canonical record, DFD review for semantic/scope checks, and worked flows for concise payment, CDC/backfill, and client-sync examples. DFD levels are not C4 levels. Use sequence/state/ERD/deployment views for ordering, lifecycle, schema, and placement; do not claim those from dataflow arrows.

Stateless computations and SDK functions may need no store, queue, or database. Select a mechanism from the invariant and constraints, not a domain-name recipe.

This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →

More from Multi-Language Standards

View source →
typescript-best-practicesWrite idiomatic TypeScript patterns for clean, maintainable code. Use when writing or refactoring TypeScript classes, functions, modules, or async logic.27 installscavemanUltra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.25 installsphp-securityPHP-only security standards for database access, password handling, and input validation. Use when securing PHP apps against SQL injection, XSS, or weak password storage; defer Laravel middleware and security questions in other languages.14 installscommon-security-auditProbe for hardcoded secrets, injection surfaces, unguarded routes, business logic flaws, and platform-specific weaknesses across backend (Node, Go, Java, Python, Rust), frontend (React, Angular, Vue), and mobile (iOS, Android, Flutter) codebases. Use when performing security audits, vulnerability scans, secrets detection, or penetration testing.11 installsandroid-performanceOptimize Android app startup, UI rendering, frame stability, and benchmark performance with Baseline Profiles, Macrobenchmark, and lazy initialization. Use when reducing startup time, diagnosing jank, or measuring rendering; defer Compose state API and test-only questions.10 installsnextjs-architectureStructure Next.js projects with Feature-Sliced Design layers, domain-grouped slices, and strict import hierarchy. Use when organizing features into FSD layers, enforcing slice boundaries, or keeping page.tsx thin.9 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.648 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.550 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.359 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.260 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.183 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions147 installs

Frequently asked questions about system-design-data-architecture

What does the system-design-data-architecture skill do?

Design system data flows and data-layer ownership, consistency, and store choices from access patterns. Use for critical-flow design, DFD semantic review, data lineage, authority, replication, retention, or a data-tier bottleneck. Avoid unrelated framework stream/dataframe implementation questions. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the system-design-data-architecture skill?

Run `npx @skills-hub-ai/cli install multi-language-standards-system-design-data-architecture` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/multi-language-standards-system-design-data-architecture/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does system-design-data-architecture work with?

system-design-data-architecture runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the system-design-data-architecture skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use system-design-data-architecture after installing it?

In Claude Code, type `/multi-language-standards-system-design-data-architecture` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the system-design-data-architecture skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.