data-modeling SKILL.md skillA
data-modeling from martinolivero/saas-builder is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add martinolivero/saas-builder/data-modeling@git:20261007.f2beefePins git:20261007.f2beefe in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- martinolivero/saas-builder
- Path
skills/data-modeling/SKILL.md- Versions recorded
- 3
- Latest version
- git:20261007.f2beefe, committed Oct 7, 2026
- First version recorded
- Jun 6, 2026
- Size
- 6,979 bytes
- Repository stars
- 4
- License
- MIT
This skill should be used when designing a database schema, modeling data, choosing a database, planning migrations, or setting up multi-tenancy for a SaaS. Trigger phrases include "design the database", "model this data", "what database should I use", "schema for", "multi-tenant", "tenant isolation", "add an index", "how do I migrate", "SQL or NoSQL", "Postgres schema", "row level security", "RLS". It defaults to Postgres, models multi-tenancy safely, and enforces migration and indexing…
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Data Modeling This skill designs the schema your product runs on, and gets multi-tenant isolation right — the mistake that, when wrong, leaks one customer's data to another. Analogy: the schema is the foundation and load-bearing walls of a house. You can repaint and rearrange furniture later cheaply; moving a load-bearing wall after move-in is expensive and dangerous. Get the structure right before building on it. ## Discovery (max 3 questions, only if unknown) 1. Is this multi-tenant (multiple orgs/customers sharing the app) or single-tenant? 2. Is the data mostly relational (users, orders, invoices) or document-like/flexible? 3. Are you on Supabase, Neon, or another Postgres host — or undecided? ## Step 1 — Choose the database **Postgres by default** — relational integrity, JSONB for flexible fields, full-text search, and it scales far. Don't reach for NoSQL without a proven document/scale reason. **Every option below runs Postgres underneath**, so the methodology in this skill (tenant_id + RLS, indexing, migrations) is identical regardless of host. Pick the host by *how you're building*: …
Read the whole file at its exact version.
How to install
mdr add martinolivero/saas-builder/data-modeling@sha256:d0ce82b32dcddaf4The line at the top of this page pins the label git:20261007.f2beefe, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_6tef6d5vug4yvhrt)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, between Jun 6, 2026 and Oct 7, 2026, about one every 62 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261007.f2beefe latest | 2026-10-07 | f2beefe | 6,979 B | A | view · diff |
| git:20260606.2c6841e | 2026-06-06 | 2c6841e | 5,603 B | A | view · diff |
| git:20260606.1d02dd6 | 2026-06-06 | 1d02dd6 | 4,240 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (6979 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
martinolivero/saas-builder · 4 stars · license MIT · pushed 2026-10-11 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_6tef6d5vug4yvhrt GET https://markdownregistry.com/api/v1/resolve?ref=martinolivero/saas-builder/data-modeling GET https://markdownregistry.com/api/v1/blob/d0ce82b32dcddaf468df078db17e38fe3dc6b6ce3eff04bdbf57caf1de0c161d
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from martinolivero/saas-builder
Every file in martinolivero/saas-builder