Skip to content
Back to skills

Data Modeling

ASecurity

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).

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgosql

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add vectora-os/kit --skill data-modeling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data Modeling?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Data Modeling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectora-os-data-modeling/badge)](https://www.skillsdirectory.com/skills/vectora-os-data-modeling)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.