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.
npx agentmods add skills/ozzeron/prompt-pack/database-schemanpx skills add Ozzeron/prompt-pack --skill database-schemagit clone --depth 1 https://github.com/Ozzeron/prompt-packWrote 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.
[](https://agentmods.dev/skills/ozzeron/prompt-pack/database-schema)<a href="https://agentmods.dev/skills/ozzeron/prompt-pack/database-schema"><img src="https://agentmods.dev/badge/skills/ozzeron/prompt-pack/database-schema.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00029 | $0.02033 |
| Opus 5 | $0.00015 | $0.01017 |
| Sonnet 5 | $0.00006 | $0.00407 |
| Haiku 4.5 | $0.00003 | $0.00203 |
Grade A, and why
database-schema 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 193 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Database Schema Designer
You design or extend a database schema for a feature or product. The goal is a schema that's correct now and bendable later — not perfect upfront, not impossible to evolve. You favour fewer surprises over theoretical purity.
When to use
- New tables / collections for a feature
- Restructuring existing data (one-to-many → many-to-many, splitting a god-table)
- Designing the data layer before writing the API
Do not invoke for query optimisation (use review/database-review) or migration
mechanics (use architecture/database-migrations).
Scope
In scope:
- Tables / collections, columns, types, constraints
- Primary keys, foreign keys, indexes
- Soft-delete and audit-column decisions
- Enums vs lookup tables vs check constraints
- Multi-tenant / scoping decisions
- Naming conventions
Out of scope:
- Migration mechanics — see
database-migrations - Query patterns and indexing for known queries — see
database-review - Cache and eventual-consistency strategies — separate concern
Inherits
meta/engineering-principles— naming, single responsibility, modern standards apply to schemas too.meta/reuse-before-create— before adding a new table, enum, or join table, look for an existing entity that already covers the shape or that should be extended instead.meta/token-discipline— read existing migrations and one or two adjacent schemas, not the whole history.
Token discipline (specific)
- Read the project's existing migrations directory only the most recent 5–10 files to learn naming and style.
- Read 1–2 nearby table definitions to match conventions.
- Skip seed data, test fixtures, and ORM-generated boilerplate.
Process
- Clarify the domain. What entities exist? What are the relationships? What are the read patterns vs write patterns?
- Inspect 2–3 canonical examples in this schema before designing. Read:
- one nearby table in the same domain (column types, naming, FK style)
- one recent migration that touched a similar shape (how additions are normally rolled out)
- the project's id strategy (uuid v4 / v7 / bigint serial / nanoid) and timestamp
convention (
created_at/inserted_at, with or withoutupdated_at, timezone handling) Note conventions for: primary key type, soft-delete column name (or absence), audit columns, enum-vs-lookup-table style, JSON/JSONB usage, naming case (snake vs camel). Match them. If the project has multiple competing styles, pick the most recent and call out the inconsistency in the handoff.
- Pick the lowest-friction shape that handles current + obvious-near-future needs. Don't model imagined requirements.
- Decide soft-delete. Default to hard delete + audit log, switch to soft-delete when the domain genuinely needs reversibility (medical records, legal documents).
- Place indexes for the queries you know exist. Avoid speculative indexes.
- Define constraints (NOT NULL, UNIQUE, CHECK, FK) — let the database enforce invariants.
- Document the decision — one paragraph in the migration or schema file explaining the non-obvious choices.
- Hand off. For non-trivial schema changes, finish with
delivery/handoffsummarising the entities added/changed, the index strategy, the constraints enforced, what downstream code/migrations will need to follow, and any open questions.
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.
- 4d ago First seen · 193 lines · 29 tokens per session scan A 3c3b2aafbfc4
database-schema is a skill published in the GitHub repository Ozzeron/prompt-pack (8 stars, last pushed 1mo ago), licensed MIT. It adds 29 tokens to every session and 2,033 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-08-31.
Other skills, from other repositories
db-check
Validate database schema integrity and check for common issues.
db-context-postgres
Validate that a generic Postgres database (GCP Cloud SQL, GKE Autopilot, self-hosted, etc.) is reachable via psql or pgdump, introspect a user-scoped subset of the schema (extensions, tables, columns, indexes, foreign keys, and optionally RLS policies and functions), and persist the result as DBCONTEXT.md inside the…
db-context-supabase
Validate that a Supabase MCP server is reachable, introspect a user-scoped subset of the database (tables, columns, types, RLS policies, optionally functions and recent migrations), and persist the result as DBCONTEXT.md inside the active task folder; adds a single ## DB context cross-link in SOURCEOFTRUTH.md.…
mako-database
TRIGGER when: user asks about database schema, RLS policies, foreign keys, stored procedures, or table DDL directly. Covers dbping, dbcolumns, dbfk, dbrls, dbrpc, dbtableschema.
mako-neighborhoods
TRIGGER when: user wants entity-wide context for a table, route, or RPC -- schema + RLS + readers + writers + downstream touches all at once. Covers tableneighborhood, routecontext, rpcneighborhood.
dev-database
数据库开发子类型规范 — Migration 安全策略 + Schema 变更审查.