sql-architect SKILL.md skillA
sql-architect from ralvarez-ai/ralvaskills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add ralvarez-ai/ralvaskills/sql-architect@v1.0.1Pins v1.0.1 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- ralvarez-ai/ralvaskills
- Path
skills/databases/sql-architect/SKILL.md- Versions recorded
- 3
- Latest version
- v1.0.1, committed Jul 13, 2026
- First version recorded
- May 21, 2026
- Size
- 9,012 bytes
- Repository stars
- 4
- License
- GPL-3.0
SQL standards — UUID v7 PKs, snake_case, soft delete, forward-only migrations, parameter binding, N+1 prevention, EXPLAIN-driven indexing. PostgreSQL 18 primary; MySQL 9 and SQLite 3.53 noted. Use when designing schemas, writing queries, or auditing a database layer.
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
# SQL Architecture & Database Standards Targets **PostgreSQL 18** as the primary engine; MySQL 9 and SQLite 3.53 noted where they differ. See [STACK.md](STACK.md) for pinned tool versions. ## 1. Schema design - **Primary key:** `id UUID PRIMARY KEY DEFAULT uuidv7()` on every table. UUID v7 is sortable, distributed-friendly, and doesn't leak counts via URLs. PG 18 has native `uuidv7()`; on earlier engines use an extension or app-generated UUID v7. - **Natural identifiers stay UNIQUE:** the surrogate `id` is for joins; domain meaning lives in `UNIQUE` constraints (`email`, `slug`, `iso_code`). - **Foreign keys:** always declared at the DB level (`REFERENCES other(id) ON DELETE RESTRICT` by default). Never enforce relationships in app code alone. - **NOT NULL by default.** Make NULL an explicit, justified choice — every nullable column should have a documented reason. - **CHECK constraints:** push invariants into the DB (`CHECK (price >= 0)`, `CHECK (status IN (...))`). They survive bad code paths. …
Read the whole file at its exact version.
How to install
mdr add ralvarez-ai/ralvaskills/sql-architect@sha256:3a514d03b0974ff6The line at the top of this page pins the label v1.0.1, 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_5nj2u3hkwcbzgmg4)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, between May 21, 2026 and Jul 13, 2026, about one every 27 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v1.0.1 latest | 2026-07-13 | 40d4225 | 9,012 B | A | view · diff |
| v1.0.0 | 2026-05-21 | bdf342e | 8,890 B | A | view · diff |
| v1.0.0 | 2026-05-21 | f4a56c0 | 9,032 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 (9012 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
ralvarez-ai/ralvaskills · 4 stars · license GPL-3.0 · pushed 2026-11-02 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_5nj2u3hkwcbzgmg4 GET https://markdownregistry.com/api/v1/resolve?ref=ralvarez-ai/ralvaskills/sql-architect GET https://markdownregistry.com/api/v1/blob/3a514d03b0974ff619faeec96b2cd992b48215246a838ea3f1ef94b76c05d2a0
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.