Skip to content
Back to skills

Data Model

ASecurity

Use when the change stores or reads data: a schema, a migration, a model, a query. Keeps data safe, consistent and fast.

  • 2 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added November 24, 2026
ai-agentssqldatabase

Security analysis

A100/100

Scanned November 24, 2026

npx -y skills add baddeka/rens-office --skill data-model --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data Model?

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

Security grade badge for Data Model
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/baddeka-data-model/badge)](https://www.skillsdirectory.com/skills/baddeka-data-model)

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-model
description: Use when the change stores or reads data: a schema, a migration, a model, a query. Keeps data safe, consistent and fast.
---

# Data model

1. Start with the simplest storage that fits: a JSON file or SQLite for a prototype or a single user; Postgres when several users write at once or the data must survive a redeploy.
2. Model explicitly: types, which fields are required, unique keys, and foreign keys between tables. Tables are plural nouns and columns `snake_case`.
3. Change the schema only through migrations committed with the code, and never edit a migration that has already run; add a new one.
4. Use parameterized queries or the ORM's query builder. Never put input into SQL with string formatting.
5. Index the columns you filter, sort or join on.
6. Wrap writes that must happen together in one transaction.
7. Development data comes from a seed script, not from editing the database by hand.
8. Tests use a fresh database (a temporary SQLite file or a test schema), never real data.

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.