database-design
Skill0 starsChanged 4 days agoMITArchived repositoryView on GitHub
Use to explore or review persistent data models, schemas, entity relationships, normalization, database selection, OLTP/OLAP/HTAP workloads, indexes, queries, transactions, storage engines, replication, partitioning, retention, migrations, or data recovery. Compare actual workload and constraints before recommending a technology. Pair with software-design-thinking for domain invariants and effects. Not for unrelated UI styling or tiny code-only edits.
66 other projects use a version of this.
Adopted by
Most recently taken up by
- gromov0737/skillstheir own version, first seen Nov 29, 2026
- hybridlabor-api/aostheir own version, first seen Nov 29, 2026
- sivaprasadreddy/sivalabs-agent-skillstheir own version, first seen Nov 29, 2026
- jamestorrevillas/dev-skillstheir own version, first seen Nov 22, 2026
- AtilaMedeiros/skillstheir own version, first seen Nov 16, 2026
- Ivan-propio/claude-skillstheir own version, first seen Nov 16, 2026
Used with
Projects with it also use intelligent-routing, llm-application-dev and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SKB3002Skillintelligent-routing
Automatic agent selection and intelligent task routing. Analyzes user requests and automatically selects the best specialist agent(s) without requiring explicit user mentions.
Also in 5 projects that use this
pepebot-spaceSkillllm-application-dev
Building applications with Large Language Models - prompt engineering, RAG patterns, and LLM integration. Use for AI-powered features, chatbots, or LLM-based automation.
Also in 4 projects that use this
xenitV1Skillred-team-tactics
Red team tactics principles based on MITRE ATT&CK. Attack phases, detection evasion, reporting.
Also in 7 projects that use this
MoizIbnYousafSkillaudit-library-health
Use when checking the overall health of a skills library. Run doctor, validate, check for stale skills, and verify generated docs are in sync.
Also in 3 projects that use this
MoizIbnYousafSkillbrowse-and-evaluate
Use when exploring the ai-agent-skills catalog to find, compare, and evaluate skills before installing. Always use --fields to limit output size and --dry-run before committing to an install.
Also in 3 projects that use this
SKB3002Skillnextjs-react-expert
React and Next.js performance optimization from Vercel Engineering. Use when building React components, optimizing performance, eliminating waterfalls, reducing bundle size, reviewing code for performance issues, or implementing server/client-side optimizations.
Also in 3 projects that use this
- +5 more from MoizIbnYousaf
Other versions66 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 66
- vudovn/ag-kit★ 8.2ksame name
- vudovn/antigravity-kit★ 8.2ksame name
- CloudAI-X/claude-workflow★ 1.4ksame name
- CloudAI-X/claude-workflow-v2★ 1.4ksame name
- MoizIbnYousaf/Ai-Agent-Skills★ 1.1ksame name
- skillcreatorai/Ai-Agent-Skills★ 1.1ksame name
- MoizIbnYousaf/ai-agent-skills★ 1.1ksame name
- KbWen/agentic-os★ 245same name
- sivaprasadreddy/sivalabs-agent-skills★ 198same name
- kid-sid/claude-spellbook★ 190same name
56 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- adrSkill
- advanced-sqlSkill
- bend-proofSkill
- content-writingSkill
- data-decision-scienceSkill
- data-dimensional-modelingSkill
- data-lifecycleSkill
- data-operationsSkill
- data-slicingSkill
- data-statisticsSkill
- data-storytellingSkill
- evidence-researchSkill
- graph-protocolSkill
- gui-design-thinkingSkill
- marimo-notebooksSkill
- project-adoptionSkill
- repository-workSkill
- requirementsSkill
- software-design-thinkingSkill
- software-factorySkill
- testingSkill
- visual-designSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 62 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
Never compare different axes as direct alternatives (for example OLTP vs LSM).
- Very specific: line 62
Use $advanced-sql for relational query logic, window/recursive queries, join multiplicity, SQL-level known answers and dialect-specific …
“Common” is measured: kept by at least 6 in 10 of the 62 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Database design — workload → data contract → evidence
Authority: persistence models, constraints, access paths, consistency implementation, durability, recovery and operations. $software-design-thinking owns domain facts, shapes, Inv(S), command/effect contracts and resource owners; $gui-design-thinking owns view/draft/events. Database Committed is not UI Loading. This skill cannot invent product rules, force a vendor or override the canonical design methods.
Job + known/unknown facts + readers/writers + failure stakes
→ Representative workload and owned data invariants
→ Logical facts/relationships + constraint boundary
→ Compare existing stack with smallest credible alternatives
→ Critical query access paths + concurrent transaction outcomes
→ Migration, recovery, observability, costs
→ Measured checks and decision | Explicit unknown / experimentScale: a query or column fix needs a relevant shape, compatibility, explain/query check and targeted test. New schema, shared writer, analytics or DB replacement warrants broader evaluation. Use references selectively; no database change/ADR/benchmark for cosmetic UI work.
Separate the axes
| Axis | Examples | Decision |
| Workload | OLTP, OLAP, mixed/HTAP | Operations and service guarantees. |
| Logical model | Relational, document, key-value, graph, dimensional | Identities, relationships, representation. |
| Physical layout | Row/column, B-tree/B+, LSM, log/heap | Storage/write/read behavior of the actual engine. |
| Access | B-tree, hash, inverted, GiST, BRIN, vector/ANN | How specific queries find records. |
| Deployment | Embedded, client/server, managed, replicated | Operations, ownership, failure and recovery. |
Never compare different axes as direct alternatives (for example OLTP vs LSM). An engine may combine them; generic performance rankings do not establish its actual behavior. Use references/WORKLOAD-AND-CHOICES.md and references/STORAGE-ENGINES.md when selecting an engine.
Inspect and choose
Inputs: known data owners/sensitivity, readers/writers, important point/range/join/aggregate/search/time-series queries, ingest/change streams, observed sizes/rates, skew, hot keys, concurrency, latency/freshness needs, retention, edge/offline needs, regulations, team capability and costs. Unknowns stay unknown. Identify how the current stack works before proposing replacement; do not invent measurements.
Facts: keys, identity, cardinality, optionality, temporal meaning, ownership, uniqueness, references, authorization, deletion/retention. Separate authoritative data, projections, drafts, caches and event histories. Compare conceptual entities, logical representation and physical layout. Normalize when it avoids update anomalies; denormalize only with an explicit maintenance/reconciliation rule. Document embedding fits bounded co-updates; independent/high-cardinality records favor references when justified. Analytics requires declared fact grain. Event sources need schema evolution/replay rules. A program type is not automatically a database constraint. For deeper modeling read references/DATA-MODELING.md.
Alternatives: existing engine first; compare at least one simpler baseline when a real choice exists. Evaluate transactions/isolation, access, security, workload fit, recovery, migrations, team experience, observability, license/hosting, portability and reversal cost. Secondary search/analytics systems add synchronization, reindex and failure modes; evaluate costs explicitly. Distinguish verified engine/version properties from vendor assertions. For B+/LSM choices inspect compaction, caching, media and real write pattern rather than assuming speed.
Access and concurrency: for critical queries record predicates, ordering, cardinality, projection, pagination, selectivity and actual plans; consider index order, expression/partial/covering variants and write/storage costs (references/QUERY-AND-INDEX-DESIGN.md). For multiple writers define transaction boundary, constraints, isolation, conflict resolution, duplicate/retry and idempotency behavior. Locks, optimistic versions, serializable transactions and single-writer queues are different; test selected engine semantics. A timed-out write may have unknown outcome. Use ../software-design-thinking/references/CONCURRENCY.md and EFFECTS-AND-RECOVERY.md when relevant.
Operations: plan schema versions and readers, backfills, data moves, retention, deletion, backup/restore exercises, recovery point/time objectives, encryption/access, auditability, replication/partition failures and derived-view lag/rebuild/reconciliation. Replicas are not backups. Use expand/migrate/contract only where live compatibility is actually needed; see references/OPERATIONS-AND-EVOLUTION.md.
Decision and verification
Evidence = (inspected schema/migration revision, actual query plans,
measured or explicitly unknown rates, conflict/retry tests,
backup/restore exercise when material, accepted requirements)
Claim accepted ⇒ relevant evidence addresses its scopeTest constraint violations, conflicting writers, 0/1/large/skewed data, plan regressions, crash/retry and restoration as appropriate. Do not claim a product or schema is validated from this guide alone. Output a bounded decision sketch: workload, data facts/invariants/owners, knowns/unknowns, existing-stack baseline and credible alternatives, keys/constraints/queries, transaction/effect/recovery contract, operational costs, evidence, next experiment/owner. ADR only for consequential hard-to-reverse choice.
Audit boundary: show current-source-derived, revision-labeled ERD/data slice only for material relationships, cardinality, ownership or migration decisions. Proposed logical models and implemented schema must be labeled separately; diagrams do not override actual constraints. Small changes need only focused schema diff/check. Refresh or mark stale after source changes. Graph Protocol governs delegation only, not database topology; keep docs/ protected under AGENTS.md.
SQL query handoff
Use $advanced-sql for relational query logic, window/recursive queries, join multiplicity, SQL-level known answers and dialect-specific optimization. $database-design remains responsible for persistent physical design, index/storage choices, transactions and engine migration. A slow query is not automatic evidence that a new database is needed.
Analytical model boundary (when applicable)
When the consumer is BI/metrics rather than OLTP, pair with $data-dimensional-modeling for declared business process, fact grain, conformed dimensions, additive classification, SCD history and metric meaning. This skill chooses persistence/workload/physical implementation, not business meaning. Reconcile multi-grain joins, time travel and query cost against representative workload; do not make normalization/star schema a universal physical law.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

