schema-designer

schema-designer is a skill for Claude Code, Codex from batterfried-philosophy172/Agent-Startup-Skills. It costs 47 tokens per session (495 once invoked), scanned A, a copy of schema-designer, MIT.

A database design assistant that defines stored data, connections between records, search indexes, and starter records before coding begins. A database is the structured store an application uses for information such as users, products, and orders.

In plain words
What is it for?
Use it to identify the data an application needs, define tables and fields, describe one-to-many or many-to-many relationships, add indexes, and prepare seed data.
Why use it?
It helps avoid missing relationships, inconsistent data, and slow queries caused by designing storage only after the application is built.

Skill for Claude CodeCodex

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

Good fit Use it to identify the data an application needs, define tables and fields, describe one-to-many or many-to-many relationships, add indexes, and prepare seed data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/batterfried-philosophy172/agent-startup-skills/schema-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 batterfried-philosophy172/Agent-Startup-Skills --skill schema-designer
Clone the repo
git clone --depth 1 https://github.com/batterfried-philosophy172/Agent-Startup-Skills

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/batterfried-philosophy172/agent-startup-skills/schema-designer"><img src="https://agentmods.dev/badge/skills/batterfried-philosophy172/agent-startup-skills/schema-designer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 495 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 100% 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.00047 $0.00495
Opus 5 $0.00023 $0.00247
Sonnet 5 $0.00009 $0.00099
Haiku 4.5 $0.00005 $0.00049

Measured 11d ago against content hash 9733800322e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

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 11d 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

This is a copy

100% identical to schema-designer — 0 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.

skills/schema-designer/SKILL.md · 72 lines

What it actually says

Schema Designer — Data Modeling Agent

Purpose

Design a complete, normalized database schema before coding begins. Prevent data integrity issues, missing relationships, and poor query performance.

When to Use

  • After system architecture is approved
  • When designing a new database from scratch
  • When adding new tables to an existing schema

Process

Step 1: Entity Identification

From the MVP feature list, identify every "thing" the system stores:

  • Users, Products, Orders, Subscriptions, etc.

Step 2: Table Definitions

For each entity, define the complete table:

TABLE: users
├── id            UUID    PRIMARY KEY, DEFAULT gen_random_uuid()
├── email         TEXT    UNIQUE, NOT NULL
├── password_hash TEXT    NOT NULL
├── name          TEXT    NOT NULL
├── role          TEXT    DEFAULT 'user', CHECK (role IN ('user','admin'))
├── created_at    TIMESTAMP DEFAULT NOW()
└── updated_at    TIMESTAMP DEFAULT NOW()

Step 3: Relationships

Define all foreign keys and relationships:

  • One-to-Many: "A user HAS MANY orders"
  • Many-to-Many: "A product BELONGS TO MANY categories" (junction table)

Step 4: Indexes

Add indexes for:

  • All foreign key columns
  • Columns used in WHERE clauses frequently
  • Columns used for sorting (ORDER BY)

Step 5: Seed Data

Provide 2-3 sample rows per table for testing.

Rules

  • Every table MUST have id, created_at, updated_at
  • Never store plain-text passwords (use password_hash)
  • Use UUIDs over auto-incrementing integers for primary keys
  • Add CHECK constraints for enum-like columns

Output

Produce a schema.md file with all table definitions, relationships, indexes, and sample seed data.

Exit Criteria

  • Every MVP feature's data needs are covered
  • All relationships are explicitly defined
  • Indexes exist for expected query patterns
  • No plain-text password fields
  • Seed data is provided for testing
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. 11d ago First seen · 72 lines · 47 tokens per session scan A 9733800322e8

Subscribe to this mod's changes

schema-designer is a skill published in the GitHub repository batterfried-philosophy172/Agent-Startup-Skills (2 stars, last pushed 2d ago), licensed MIT. It adds 47 tokens to every session and 495 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to schema-designer, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

ecto-patterns

Ecto patterns — schemas, changesets, queries, migrations, Multi, associations, preloads, upserts. Use when editing Repo calls, Ecto.Query, or schema fields. Skip for Ash.

oliver-kriska/claude-elixir-phoenix · 45 tokens

phoenix-contexts

Phoenix context design — creating/splitting contexts, Scope (1.8+), Ecto.Multi, PubSub, routers, plugs, controllers. Use when editing contexts, routers, or designing boundaries.

oliver-kriska/claude-elixir-phoenix · 46 tokens

ecto-n1-check

Detect N+1 query anti-patterns specifically — Repo calls inside Enum/for loops, missing preloads on associations. Use when N+1 is explicitly suspected, NOT for unrelated Ecto questions or wider database performance.

oliver-kriska/claude-elixir-phoenix · 49 tokens

data-migration

Moves data from one system to another without losing it or corrupting it — profiling the source before mapping, deciding between big-bang and parallel-run cutover, reconciling counts and values rather than assuming, handling the records that will not map cleanly, and planning a rollback that is actually executable.…

cbrock84/headcount · 102 tokens

data-modeling

Designs the warehouse and semantic layer — source-to-mart structure, dimensional modeling, grain, slowly changing dimensions, and the metric layer analytics reads through. Use this to design or restructure a warehouse, model a new source, decide on grain or table structure, build a semantic or metric layer, or…

cbrock84/headcount · 77 tokens

ecto-constraint-debug

Debug Ecto constraint violations - trace triggers, check migrations, find duplicate data. Use when seeing uniqueconstraint, foreignkeyconstraint, or checkconstraint errors.

oliver-kriska/claude-elixir-phoenix · 36 tokens