database-schema-designer

database-schema-designer is a skill for Claude Code, Codex from seaworld008/Commonly-used-high-value-skills. It costs 50 tokens per session (2,979 once invoked), scanned A, original, MIT.

A relational database design tool that turns application requirements into tables, relationships, rules, and supporting code. A relational database stores structured data in connected tables.

In plain words
What is it for?
Use it to design or review a schema, plan migrations, generate TypeScript or Python types, create seed data, define row-level security, add indexes, and produce an entity-relationship diagram.
Why use it?
It helps avoid poorly organized tables, missing constraints, weak indexes, and unsafe changes as an application grows. It can also account for multiple customers, deleted records, audit history, and versioned data.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { hashPassword } from '../src/lib/auth'.

Good fit Use it to design or review a schema, plan migrations, generate TypeScript or Python types, create seed data, define row-level security, add indexes, and produce an entity-relationship diagram.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/seaworld008/Commonly-used-high-value-skills
agentmods
npx agentmods add skills/seaworld008/commonly-used-high-value-skills/database-schema-designer

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-schema-designer

README.md
[![agentmods](https://agentmods.dev/badge/skills/seaworld008/commonly-used-high-value-skills/database-schema-designer/github.svg)](https://agentmods.dev/skills/seaworld008/commonly-used-high-value-skills/database-schema-designer)
Your own site
<a href="https://agentmods.dev/skills/seaworld008/commonly-used-high-value-skills/database-schema-designer"><img src="https://agentmods.dev/badge/skills/seaworld008/commonly-used-high-value-skills/database-schema-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-schema-designer

Your own site · 80×15
<a href="https://agentmods.dev/skills/seaworld008/commonly-used-high-value-skills/database-schema-designer"><img src="https://agentmods.dev/badge/skills/seaworld008/commonly-used-high-value-skills/database-schema-designer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,979 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 512
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 513
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 513
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found 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.00050 $0.02979
Opus 5.5 $0.00020 $0.01192
Sonnet 5.5 $0.00010 $0.00596
Haiku 4.5 $0.00005 $0.00298

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

Security

Grade A, and why

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

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

Copies of this mod

1 near-identical copy found in the catalogue:

openclaw-skills/database-schema-designer/SKILL.md · 367 lines

How it starts

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

Database Schema Designer

Tier: POWERFUL
Category: Engineering
Domain: Data Architecture / Backend


Overview

Design relational database schemas from requirements and generate migrations, TypeScript/Python types, seed data, RLS policies, and indexes. Handles multi-tenancy, soft deletes, audit trails, versioning, and polymorphic associations.

Core Capabilities

  • Schema design — normalize requirements into tables, relationships, constraints
  • Migration generation — Drizzle, Prisma, TypeORM, Alembic
  • Type generation — TypeScript interfaces, Python dataclasses/Pydantic models
  • RLS policies — Row-Level Security for multi-tenant apps
  • Index strategy — composite indexes, partial indexes, covering indexes
  • Seed data — realistic test data generation
  • ERD generation — Mermaid diagram from schema

When to Use

  • Designing a new feature that needs database tables
  • Reviewing a schema for performance or normalization issues
  • Adding multi-tenancy to an existing schema
  • Generating TypeScript types from a Prisma schema
  • Planning a schema migration for a breaking change

Schema Design Process

Step 1: Requirements → Entities

Given requirements:

"Users can create projects. Each project has tasks. Tasks can have labels. Tasks can be assigned to users. We need a full audit trail."

Extract entities:

User, Project, Task, Label, TaskLabel (junction), TaskAssignment, AuditLog

Step 2: Identify Relationships

User 1──* Project         (owner)
Project 1──* Task
Task *──* Label            (via TaskLabel)
Task *──* User            (via TaskAssignment)
User 1──* AuditLog

Step 3: Add Cross-cutting Concerns

  • Multi-tenancy: add organization_id to all tenant-scoped tables
  • Soft deletes: add deleted_at TIMESTAMPTZ instead of hard deletes
  • Audit trail: add created_by, updated_by, created_at, updated_at
  • Versioning: add version INTEGER for optimistic locking

Full Schema Example (Task Management SaaS)

Read the full file on GitHub · 367 lines

Files

What ships with it

1 file 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.

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. 2mo ago Changed · -171 lines 890547056128
  2. 2mo ago First seen · 538 lines · 50 tokens per session scan A b03ec657fc54

Subscribe to this mod's changes

database-schema-designer is a skill published in the GitHub repository seaworld008/Commonly-used-high-value-skills (74 stars, last pushed 2d ago), licensed MIT. It adds 50 tokens to every session and 2,979 once invoked, about $0.0002 per session on Opus 5.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-08-30.

Related

database-schema-designer compared with skills from other repositories

database-schema-designer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
database-schema-designerseaworld008/Commonly-used-high-value-skillsSkill742d agoMITA50Claude Code, Codex
omh-relational-dbrlaope/oh-my-hermesSkill5.2kyesterdayMITA100Claude Code, Codex
supabasejawwadfirdousi/agent-skillsSkill153mo agononeB47Claude Code
read-only-postgresjawwadfirdousi/agent-skillsSkill153mo agononeB78Claude Code
docsite-link-sweepgoogleapis/mcp-toolboxSkill17kyesterdayApache-2.0A148Claude Code, Codex
managing-mcp-serversJetBrains/thinkrailSkill7.8kyesterdayApache-2.0A62Claude Code, Codex
todosJetBrains/thinkrailSkill7.8kyesterdayApache-2.0A58Claude Code, Codex