Data modelling — conceptual, logical and physical models, normalization and deliberate denormalization, keys and identifiers, temporal data and history, soft delete vs archival, ownership per domain, personal data classification, lineage. Use to design or review data models (data model, schema design, ERD, normalization, ownership, lineage).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Data Modeling?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vectora-os-data-modeling)
---
name: data-modeling
description: Data modelling — conceptual, logical and physical models, normalization and deliberate denormalization, keys and identifiers, temporal data and history, soft delete vs archival, ownership per domain, personal data classification, lineage. Use to design or review data models (data model, schema design, ERD, normalization, ownership, lineage).
metadata:
category: data
---
# Data modeling
## Purpose
Represent the domain in data that stays correct and evolvable.
**Use when:** new entities or significant schema changes.
**Not for:** query tuning (`sql-optimization`).
## Inputs
- Domain model, access patterns, privacy inventory.
## Outputs
- ER diagram, model notes, ownership and classification.
## Read first
- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "data modeling"` for prior decisions, patterns and anti-patterns.
## Steps
1. **Concepts.** Entities and relationships in domain language.
Done when model reviewed against glossary.
2. **Logical.** Normalize; denormalize only with a measured reason.
Done when each denormalization justified.
3. **Identity and time.** Choose ids (UUIDv7/ULID vs sequences) and history strategy.
Done when temporal needs are met.
4. **Classify.** Mark personal and sensitive fields; assign owner and retention.
Done when every field classified.
## Best practices
- Constraints encode invariants.
- Model money as integer minor units with currency.
## Common mistakes
- Polymorphic "type" columns everywhere.
- Floats for money.
## Example
Subscription model with `valid_from/valid_to` history, customer owned by CRM, PII fields flagged.
## Reusable prompt
```text
Apply the Data modeling skill (.agents/skills/data-modeling/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Produce the data model with justification for denormalization, identity/time strategy and field classification.
Return: ER diagram, model notes, ownership and classification..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```