Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/jayrha/agentskills/sql-schema-designernpx skills add JayRHa/AgentSkills --skill sql-schema-designergit clone --depth 1 https://github.com/JayRHa/AgentSkillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/jayrha/agentskills/sql-schema-designer)<a href="https://agentmods.dev/skills/jayrha/agentskills/sql-schema-designer"><img src="https://agentmods.dev/badge/skills/jayrha/agentskills/sql-schema-designer.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00102 | $0.02032 |
| Opus 5 | $0.00051 | $0.01016 |
| Sonnet 5 | $0.00020 | $0.00406 |
| Haiku 4.5 | $0.00010 | $0.00203 |
Grade A, and why
sql-schema-designer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 145 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SQL Schema Designer
Overview
Turn fuzzy requirements into a clean, normalized relational schema with correct keys, constraints, indexes, and justified denormalization. Output is runnable DDL plus a documented data model.
Keywords: database schema design, normalization, 1NF 2NF 3NF BCNF, primary key, foreign key, referential integrity, ON DELETE CASCADE, CHECK constraint, unique constraint, surrogate vs natural key, composite key, index, composite index, covering index, denormalization, ER diagram, entity relationship, data modeling, DDL, CREATE TABLE, PostgreSQL, MySQL, SQLite, SQL Server, junction table, many-to-many.
Workflow
-
Clarify scope and engine. Identify the target database engine (PostgreSQL, MySQL, SQLite, SQL Server) because types and identity syntax differ — see
references/data-types-and-constraints.md. Ask about expected scale, read/write ratio, and whether reporting queries matter. -
Extract entities and attributes. From the domain, list nouns that have independent existence (
customer,product,order). Each becomes a table. List the attributes (facts) each must store. Mark attributes that are required vs optional. -
Define relationships and cardinality. For every pair of related entities decide one-to-one, one-to-many, or many-to-many.
- One-to-many: foreign key on the "many" side.
- Many-to-many: create a junction table with both FKs (its PK is usually the composite of both, or a surrogate plus a UNIQUE on the pair).
- One-to-one: FK + UNIQUE on the dependent side, or share a PK.
-
Choose keys. Pick a primary key per table.
- Prefer a surrogate key (auto-increment / identity / UUID) for stability when natural keys are large, mutable, or composite.
- Always also declare a UNIQUE constraint on the real natural key (email, SKU, ISBN) to preserve business integrity.
- Use composite natural PKs for pure junction tables when no surrogate is needed.
-
Normalize to 3NF. Apply 1NF -> 2NF -> 3NF, removing partial and transitive dependencies. Escalate to BCNF only when a concrete anomaly remains. Use the decomposition checklist in
references/normalization.md.
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 145 lines · 102 tokens per session scan A 38370a6e86e6
sql-schema-designer is a skill published in the GitHub repository JayRHa/AgentSkills (4 stars, last pushed 1mo ago), licensed MIT. It adds 102 tokens to every session and 2,032 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
database-designer
Используй только внутри активного Codex Project Autopilot-проекта, когда data-layer уже относится к плану автопилота.
sql-explainer
Paste a SQL query and get a plain English explanation of what it does.
baserow-automation
Automate Baserow tasks via Rube MCP (Composio). Always search tools first for current schemas.
drizzle
Skill "drizzle" from ashish7802/awesome-api-skills, covering drizzle orm skill, ecosystem graph preview, recommended next skills, quick start and production patterns.
mysql
Skill "mysql" from ashish7802/awesome-api-skills, covering mysql skill, ecosystem graph preview, recommended next skills, quick start and production patterns.
neon
Neon separates compute and storage, allowing instant database branching and autoscaling. For most Node.js applications, use the @neondatabase/serverless driver over standard pg to leverage WebSocket connections, which bypass serverless environment connection limits.