Schema Design

Schema Design is a skill for Claude Code, Codex from niels-emmer/myace. It costs 25 tokens per session (505 once invoked), scanned A, original, MIT.

A set of database schema design rules for adding tables and changing existing ones safely as an application grows.

In plain words
What is it for?
Use it when designing, changing, or reviewing tables, columns, relationships, constraints, or delete rules.
Why use it?
It helps prevent accidental breaking changes, invalid data, and unclear delete behavior. It makes important database decisions explicit and enforceable.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for aider. Also seen: mentions Codex; built for aider; mentions OpenCode.

Good fit Use it when designing, changing, or reviewing tables, columns, relationships, constraints, or delete rules.

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

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 Design

README.md
[![agentmods](https://agentmods.dev/badge/skills/niels-emmer/myace/schema-design/github.svg)](https://agentmods.dev/skills/niels-emmer/myace/schema-design)
Your own site
<a href="https://agentmods.dev/skills/niels-emmer/myace/schema-design"><img src="https://agentmods.dev/badge/skills/niels-emmer/myace/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/niels-emmer/myace/schema-design"><img src="https://agentmods.dev/badge/skills/niels-emmer/myace/schema-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 505 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.00025 $0.00505
Opus 5 $0.00013 $0.00253
Sonnet 5 $0.00005 $0.00101
Haiku 4.5 $0.00003 $0.00051

Measured 6d ago against content hash fbfb94dd02b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 6d 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.

collections/additional/database/skills/schema-design/SKILL.md · 28 lines

What it actually says

Purpose

A schema is the longest-lived artifact in most systems — it outlives every framework and most of the code that reads it. This skill is a checklist for designing schemas that stay easy to evolve: additive by default, constraint-driven, and explicit about the decisions that are hard to reverse.

When to use it

Whenever you're designing a new table, changing an existing one, or reviewing a schema change. The discipline matters most for tables that will accumulate data and consumers over time.

Checklist

  • Additive by default. New columns are nullable or have a default; new tables are created empty. A breaking change (rename, drop, type change) is a deliberate, reviewed decision with a migration path — not an accident of editing a column.
  • Constraints over convention. Enforce invariants with foreign keys, uniqueness, check constraints, and not-null wherever the DB can express them. If an invariant can be violated by any code path that forgets it, it belongs in the DB.
  • Explicit soft vs. hard delete. Decide per entity, and make the decision visible. Soft-delete columns need to be filtered everywhere; hard-delete is irreversible. Don't default to one silently.
  • Types match meaning. Use the narrowest type that fits the data (dates as dates, not strings; money as a decimal, not a float). A type that's too loose invites bugs that are hard to find later.
  • Keys are stable. Prefer surrogate keys that never change meaning. A natural key that can change (email, username) makes a poor primary key.
  • Naming is consistent. One convention for table/column/index names across the schema. A new table that drifts from the surrounding naming is a review finding, not a style preference.

Expected output

A schema that a developer familiar with the system can extend without guessing: new columns are additive, invariants are enforced by the DB, delete semantics are explicit per entity, and the naming/typing is consistent with everything around it.

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. 6d ago First seen · 28 lines · 25 tokens per session scan A fbfb94dd02b0

Subscribe to this mod's changes

Schema Design is a skill published in the GitHub repository niels-emmer/myace (1 stars, last pushed 3d ago), licensed MIT. It adds 25 tokens to every session and 505 once invoked, about $0.0001 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.