database-designer

database-designer is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 77 tokens per session (3,674 once invoked), scanned A, a copy of database-designer, Apache-2.0.

A database design aid for modeling and reviewing how data is stored and related. It covers SQL and NoSQL choices, schema structure, constraints, indexes, migrations, and ERD diagrams; an ERD is a visual map of tables and their relationships.

In plain words
What is it for?
Use it to design schemas, check normalization, generate Mermaid ERDs from database definitions, plan migrations and seed data, model multi-tenancy or row-level security, and review query performance.
Why use it?
It helps catch weak relationships, inconsistent structure, missing indexes, and migration risks before they become application problems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to design schemas, check normalization, generate Mermaid ERDs from database definitions, plan migrations and seed data, model multi-tenancy or row-level security, and review query performance.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/database-designer
Install

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.

Any agent
npx skills add Morningstar202604/awesome-skillkit --skill database-designer
Clone the repo
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkit

Made for: Claude Code, Codex.

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

agentmods badge for database-designer

README.md
[![agentmods](https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/database-designer/github.svg)](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/database-designer)
Your own site
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/database-designer"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/database-designer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for database-designer

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/database-designer"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/database-designer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,674 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00077 $0.03674
Opus 5.5 $0.00031 $0.01470
Sonnet 5.5 $0.00015 $0.00735
Haiku 4.5 $0.00008 $0.00367

Measured 1mo ago against content hash d24e8711a594, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

database-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 1mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (index_optimizer.py, migration_generator.py, schema_analyzer.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Origin

This is a copy

97% identical to database-designer — 306 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

site/skills/programming/database/database-designer/SKILL.md · 321 lines

How it starts

The opening of the file, as written. The whole thing — 321 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Database Design Assistant

Uses tools to support schema design and evolution: automated normalization analysis, ERD generation, index optimization based on real query patterns, and zero-downtime migration planning. It only does analysis and plan generation — it never executes schema changes against a live database.

Input Checklist

Input Required Description
Current schema Required SQL DDL file or JSON schema (samples in assets/sample_schema.sql / sample_schema.json)
Hot query patterns Conditionally required Query-pattern JSON for index optimization (copy assets/sample_query_patterns.json, fill in the user's queries)
Target schema Conditionally required The second schema JSON when generating a migration
Database engine Optional PostgreSQL (SQL samples default to it), MySQL, SQLite, SQL Server
Multi-tenancy / RLS / seed-data needs Optional Triggers the schema-design-playbook workflow

When inputs are missing, ask for all at once: "Please provide: (1) current schema (DDL file or JSON), (2) the hottest queries (for indexing), (3) the target schema if you want a migration plan, (4) target engine and tenant/RLS requirements. Everything else runs on defaults."

Pre-flight Checks

Probe one by one; on any failure → give the fix and STOP:

python3 --version   # expected 3.8+; on failure: install python3
# Self-check: python3 scripts/schema_analyzer.py --help / index_optimizer.py / migration_generator.py should all exit 0; on failure: script missing → check the skill directory
test -f <schema-input>   # expected exit code 0; on failure: file missing → ask the user for the DDL/JSON schema

Workflow

Use the tools; don't analyze schemas by hand. All paths are relative to this skill directory; sample inputs are in assets/.

Step 1: Analyze the schema

python3 scripts/schema_analyzer.py --input assets/sample_schema.sql --generate-erd --output-format json -o analysis.json   # bundled sample DDL; swap in schema.sql for your real schema

Read the full file on GitHub · 321 lines

Changes

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.

  1. 1mo ago Changed · -7 tokens per session d24e8711a594
  2. 1mo ago Changed · -2 lines b10dbdd12f7f
  3. 1mo ago Changed · +1 lines · +30 tokens per session bd29b0a44e74
  4. 1mo ago First seen · 322 lines · 54 tokens per session scan A c20ada273be3

Subscribe to this mod's changes

database-designer is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (0 stars, last pushed 25d ago), licensed Apache-2.0. It adds 77 tokens to every session and 3,674 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 97% identical to database-designer, differing in 306 lines, and is treated as a copy.

Related

Other skills, from other repositories