schema-design

schema-design is a skill for Claude Code, Codex from int2t05/engineering-skills. It costs 27 tokens per session (327 once invoked), scanned A, original, MIT.

A guide to designing the structure of a relational database, including its tables, links between records, rules, and ways to find data quickly.

In plain words
What is it for?
Use it when planning or reviewing entities and relationships, database normalization, indexes, constraints, or partitioning in PostgreSQL, MySQL, or SQLite.
Why use it?
It helps prevent data models that become slow, inconsistent, or difficult to change as features are added.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the engineering-skills plugin — 47 skills, 1 hook shipped together

Good fit Use it when planning or reviewing entities and relationships, database normalization, indexes, constraints, or partitioning in PostgreSQL, MySQL, or SQLite.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/int2t05/engineering-skills/schema-design
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 int2t05/engineering-skills --skill schema-design
Clone the repo
git clone --depth 1 https://github.com/int2t05/engineering-skills

Made for: Claude Code, Codex.

Or install engineering-skills, the plugin that ships this one along with the rest of its 47 skills, 1 hook.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/int2t05/engineering-skills/schema-design/github.svg)](https://agentmods.dev/skills/int2t05/engineering-skills/schema-design)
Your own site
<a href="https://agentmods.dev/skills/int2t05/engineering-skills/schema-design"><img src="https://agentmods.dev/badge/skills/int2t05/engineering-skills/schema-design/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 schema-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/int2t05/engineering-skills/schema-design"><img src="https://agentmods.dev/badge/skills/int2t05/engineering-skills/schema-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 327 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 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.00027 $0.00327
Opus 5.5 $0.00011 $0.00131
Sonnet 5.5 $0.00005 $0.00065
Haiku 4.5 $0.00003 $0.00033

Measured 16d ago against content hash 824c99c2112e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

schema-design 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 16d 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.

skills/03-design/schema-design/SKILL.md · 36 lines

What it actually says

Schema Design

When to use

  • Design data structures, invariants and migrations for an identified datastore.

Not for: api-design for transport; deprecation-migration for migration execution.

Steps

  1. Identify datastore, ownership, access patterns, consistency and retention; do not assume relational storage.

  2. Model entities or documents, identifiers, constraints and indexes using actual datastore capabilities.

  3. Evaluate deletion, concurrency, uniqueness and query cost; validate performance using real query plans or representative data.

  4. Specify backfill, repeated execution, consumer impact and recovery; create a separate SCHEMA only if useful for review.

Output: Suggested paths, subject to human audit: docs/design/SCHEMA.md if useful beyond schema source.

Verify

  • Structures fit real access patterns; integrity and migration checks are explicit and performance evidence is labelled.

References

Files

What ships with it

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

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. 16d ago Changed · -93 lines · -35 tokens per session 824c99c2112e
  2. 23d ago Changed · +4 lines 1266d66a78e6
  3. 2mo ago First seen · 125 lines · 62 tokens per session scan A 95015ef22cb3

Subscribe to this mod's changes

schema-design is a skill published in the GitHub repository int2t05/engineering-skills (3 stars, last pushed 17d ago), licensed MIT. It adds 27 tokens to every session and 327 once invoked, about $0.0001 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-31.

Related

Other skills, from other repositories

deep-plan

Creates detailed, sectionized, TDD-oriented implementation plans through research, stakeholder interviews, and multi-LLM review. Use when planning features that need thorough pre-implementation analysis.

piercelamb/deep-plan · 39 tokens

cloudflare-vectorize

Cloudflare Vectorize vector database for semantic search and RAG. Use for vector indexes, embeddings, similarity search, or encountering dimension mismatches, filter errors.

secondsky/claude-skills · 37 tokens

migration-ready-schema

Data-model rules that make a schema importable from day one, so the migration-import-engineer is never blocked on missing columns. Every SMB Product-Builder product must let a customer bring their data from an incumbent (ServiceTitan/Toast/Mindbody/Shopify) — that requires provenance (sourceref) and rollback…

avelikiy/great_cto · 133 tokens

nw-data-architecture-patterns

Data architecture patterns (warehouse, lake, lakehouse, mesh), ETL/ELT pipelines, streaming architectures, scaling strategies, and schema design patterns.

nWave-ai/nWave · 37 tokens

postgresql

PostgreSQL schema design, query optimization, indexing, and administration. Use when writing schemas, queries, migrations, or mentions PostgreSQL, Postgres, JSONB, partitioning, RLS, CTEs, window functions, EXPLAIN ANALYZE, or connection pooling.

iliaal/whetstone · 61 tokens

meta-prompting

Enhanced reasoning patterns via slash commands (/think, /verify, /adversarial, /edge, /compare, /confidence, /budget, /constrain, /json, /flip, /assumptions, /tensions, /analyze, /trade) or natural language ("argue against", "what could break", "show reasoning", "deep review", "meta-prompts", "thinking modes"…

iliaal/whetstone · 104 tokens