data-modeling
Skill1 starsChanged 4 days agoMITView on GitHub
Design database schemas, relationships, indexes, and migration strategies — relational and document stores. Triggers: data model, schema design, ER diagram, database schema, table design, foreign key, index strategy, normalization, denormalization, migration plan, document model, partition key.
16 other projects use a version of this.
Adopted by
Most recently taken up by
- nisarth/claude-skills-storetheir own version, first seen Nov 8, 2026
- getditto/agent-skillstheir own version, first seen Nov 8, 2026
- timmywheels/skillstheir own version, first seen Nov 1, 2026
- vindreshsingh/engineering-skillstheir own version, first seen Oct 20, 2026
- MartinOlivero/saas-buildertheir own version, first seen Oct 13, 2026
- nimadorostkar/Claude-Skills-collectiontheir own version, first seen Oct 13, 2026
Used with
Projects with it also use observability, accessibility and 1 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.
OpenAISkillobservability
Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.
Also in 6 projects that use this
ElasticSkillaccessibility
Accessibility guidance for Kibana. Use this skill when working with or reviewing EUI components, resolving a11y-related (@elastic/eui) ESLint issues, and ensuring proper use of ARIA attributes, focus management, keyboard interactions, and accessible naming conventions.
Also in 5 projects that use this
AnthropicSkilldocumentation
Write and maintain technical documentation. Trigger with "write docs for", "document this", "create a README", "write a runbook", "onboarding guide", or when the user needs help with any form of technical writing — API docs, architecture docs, or operational runbooks.
Also in 3 projects that use this
Other versions16 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 16
- microsoft/rayfin★ 646same name
- microsoft/awesome-rayfin★ 108same name
- nimadorostkar/Claude-Skills-collection★ 33same name
- jdm4pku/RE-Skills★ 26same name
- khuynh22/agent-dev-team★ 9same name
- getditto/agent-skills★ 4same name
- MartinOlivero/saas-builder★ 4same name
- bjornjee/skills★ 2same name
- mmondora/claude-skills★ 1same name
- nisarth/claude-skills-store★ 1same name
6 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 repository68 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accessibility-designSkill
- ai-evaluationSkill
- api-designSkill
- architecture-designSkill
- architecture-documentationSkill
- brainstormingSkill
- browser-verificationSkill
- bug-investigatingSkill
- build-vs-buySkill
- cicd-pipelineSkill
- code-archaeologySkill
- code-reviewingSkill
- code-slop-cleanupSkill
- compliance-privacySkill
- configuration-strategySkill
- containerizationSkill
- data-pipeline-designSkill
- data-qualitySkill
- dependency-impact-analysisSkill
- dependency-managementSkill
- deployment-checklistSkill
- deployment-repoSkill
- dx-auditSkill
- effort-estimationSkill
- exploratory-data-analysisSkill
- feature-planningSkill
- finops-cost-optimizationSkill
- frontend-architectureSkill
- gitops-deliverySkill
- git-workflowSkill
- incident-responseSkill
- infrastructure-as-codeSkill
- llm-app-engineeringSkill
- metrics-and-okrsSkill
- ml-experiment-trackingSkill
- ml-model-deploymentSkill
- ml-pipeline-designSkill
- mobile-architectureSkill
- mobile-releaseSkill
- notebook-to-productionSkill
- observability-designSkill
- performance-optimizationSkill
- plan-executionSkill
- prd-writingSkill
- project-documentationSkill
- project-proposalSkill
- project-reviewSkill
- refactoringSkill
- release-managementSkill
- research-methodologySkill
- resilience-engineeringSkill
- retrospectiveSkill
- rollback-strategySkill
- security-auditSkill
- skill-routerSkill
- statistical-analysisSkill
- strategic-reviewSkill
- subagent-orchestrationSkill
- tdd-workflowSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 11 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
If any database exists, establish what it already holds before proposing a single new table, column, or index.
- Distinctive: line 44
Before touching schemas, understand the business domain:
- Distinctive: line 52
If the user describes a feature rather than a domain, extract the entities from the feature description first.
- Distinctive: line 68
1NF: No repeating groups; every column holds atomic values
- Distinctive: line 69
2NF: Every non-key column depends on the whole primary key
- Distinctive: line 70
3NF: No transitive dependencies (non-key → non-key)
- Distinctive: line 84
Use templates/schema.md as a starting point for table DDL, index naming, enum patterns, and migration file structure.
- Distinctive: line 88
If modifying an existing schema:
- Distinctive: line 90
Backwards-compatible changes: Add columns with defaults, add tables, add indexes
- Distinctive: line 109
KISS: Start normalized; denormalize only when measured performance demands it
- Distinctive: line 111
YAGNI: Don't add columns or tables "just in case"
“Common” is measured: kept by at least 6 in 10 of the 15 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
Data Modeling
Guide the user through designing data models that are normalized, consistent, and evolvable. Good data models make the right things easy and the wrong things hard.
Workflow
Step 0: Inventory What Already Exists
If any database exists, establish what it already holds before proposing a single new table, column, or index. Inspect the current schema directly — don't infer it from the requirements, the ORM models, or memory. Dump it from the live database where you can reach one, otherwise read the migration history end to end.
Cover both:
- Artifacts — existing tables, columns, and indexes that hold, or could hold, the fact in question. Grep for the concept by name and by synonym; the right table is often named for a different concern than the one you're serving.
- Written decisions — ADRs, schema conventions, and prior audit findings that already constrain the shape.
Exit condition — one line, then keep going in the same response:
"<existing table> already stores <fact>; it does / does not serve this
because <reason>."
This step is not a gate on delivering. Greenfield — no database yet, or none you can reach — closes it in one line: say so and go straight to Step 1. When you can't inspect (no repo access, a conversational answer), name what you would check and continue under stated assumptions. Never answer a schema request with inventory and questions alone; produce the model in the same reply.
This constrains the input, not the choice. A new table is a fine outcome; an unexamined one isn't — and a second home for the same fact is duplication however well it's named.
Step 1: Understand the Domain
Before touching schemas, understand the business domain:
- What are the core entities? (nouns in the requirements: User, Order, Product)
- What are the relationships? (verbs: User places Order, Order contains Products)
- What are the cardinalities? (one-to-one, one-to-many, many-to-many)
- What are the access patterns? (how will the data be queried most often)
- What are the invariants? (rules that must always hold: "an order must have at least one item")
If the user describes a feature rather than a domain, extract the entities from the feature description first.
Step 2: Design the Conceptual Model
Produce an entity-relationship description listing:
- Each entity with its key attributes
- Relationships with cardinality (1:1, 1:N, M:N)
- Business rules that constrain the model
Present this as a structured list or ASCII diagram. Don't jump to SQL yet — validate the conceptual model with the user first.
Step 3: Apply Normalization
Design tables following normalization principles:
- 1NF: No repeating groups; every column holds atomic values
- 2NF: Every non-key column depends on the whole primary key
- 3NF: No transitive dependencies (non-key → non-key)
Denormalize only with explicit justification (specific read performance requirement with measured data). Document every denormalization decision and the access pattern it serves.
Step 4: Define the Physical Schema
Produce SQL DDL or ORM model definitions. For each table include:
- Primary key strategy (auto-increment, UUID, ULID — justify the choice)
- Foreign keys with ON DELETE/ON UPDATE behavior
- Indexes based on identified access patterns
- Constraints (NOT NULL, UNIQUE, CHECK) that enforce business rules
- Timestamps (created_at, updated_at) as appropriate
Use templates/schema.md as a starting point for table DDL, index naming, enum patterns, and migration file structure.
Step 5: Plan the Migration
If modifying an existing schema:
- Backwards-compatible changes: Add columns with defaults, add tables, add indexes
- Breaking changes: Require a migration strategy (expand-contract pattern)
- Data backfills: Script them, don't do them manually
Produce migration files appropriate to the ORM/framework in use. Each migration should be independently reversible.
Step 6: Validate
Cross-check the schema against:
- Every acceptance criterion from the feature plan can be served by the schema
- Every identified access pattern has an appropriate index
- Every business invariant is enforced by constraints
- No data can be orphaned (foreign keys and cascades are correct)
- The migration is reversible
Principles Applied
- DRY: Single source of truth for each piece of data
- KISS: Start normalized; denormalize only when measured performance demands it
- Functional Independence: Each table represents one concept
- YAGNI: Don't add columns or tables "just in case"
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.

