schema-designer
Skill1 starsChanged 5 months agoMITView on GitHub
Use this to design a normalized, intentional database schema from requirements and access patterns.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- Aizaz-Noor/Agent-Startup-Skillstheir own version, first seen Apr 30, 2026
- batterfried-philosophy172/Agent-Startup-Skillstheir own version, first seen Apr 30, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- Aizaz-Noor/Agent-Startup-Skills★ 2same name
- batterfried-philosophy172/Agent-Startup-Skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository37 other files it gives its agents.
- a11y-auditorSkill
- aria-annotatorSkill
- color-contrast-fixerSkill
- keyboard-nav-checkerSkill
- agent-scaffoldSkill
- prompt-engineerSkill
- migration-plannerSkill
- system-design-reviewerSkill
- tradeoff-analyzerSkill
- openapi-designerSkill
- rest-endpoint-scaffoldSkill
- cloud-resource-provisionerSkill
- index-advisorSkill
- migration-writerSkill
- query-optimizerSkill
- project-scaffolderSkill
- cd-deployment-builderSkill
- ci-pipeline-generatorSkill
- incident-runbook-builderSkill
- observability-instrumenterSkill
- release-automatorSkill
- changelog-generatorSkill
- doc-linterSkill
- doc-writerSkill
- client-perf-optimizerSkill
- component-scaffoldSkill
- code-review-coachSkill
- stakeholder-comms-writerSkill
- codebase-explorerSkill
- dependency-vuln-auditorSkill
- secret-scannerSkill
- security-headers-configurerSkill
- threat-modelerSkill
- coverage-gap-finderSkill
- load-test-designerSkill
- test-refactorerSkill
- unit-test-generatorSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 55
Index for the access patterns: Add indexes that serve the stated queries.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Schema Designer
Use this to design a normalized, intentional database schema from requirements and access patterns.
Tech profile — Technology: database · Language: SQL/DDL · Stack: any RDBMS · Toolchain: any · Domain: database (Method is engine-agnostic; emit DDL for the target RDBMS via the tech profile.)
When to use this skill
- Designing the schema for a new service or feature, before writing migrations.
- Refactoring an ad-hoc/denormalized schema into an intentional model.
- Producing the schema that
database/migration-writer(planned) turns into migrations.
When NOT to use this skill
- Writing/altering migrations — use the
database-migrationworkflow. - Tuning slow queries — use
database/query-optimizer(planned). - High-level domain modeling only — use
architecture/system-design-reviewerfor review.
Prerequisites
- The entities/relationships the system needs and the primary access patterns (the queries that must be fast).
Inputs
| Input | Required | Description |
requirements | yes | What data the system stores and the rules over it |
access_patterns | yes | The key reads/writes (drives keys + indexes) |
engine | no | Target RDBMS (Postgres/MySQL/…); affects types + features |
scale | no | Expected volume/growth (informs partitioning/denormalization) |
Instructions
- Model entities + relationships. Identify entities, attributes, and cardinalities; draw the relationships (1:1, 1:N, M:N → join table).
- Normalize to 3NF, then denormalize deliberately only where an access pattern demands it — and record why (trade-off, not accident).
- Define keys. Choose primary keys (prefer stable surrogate keys); add foreign keys
with explicit
ON DELETE/ON UPDATEbehavior. - Constrain for integrity.
NOT NULL,UNIQUE,CHECK, and enum/domain constraints — push invariants into the schema, not just app code. - Index for the access patterns. Add indexes that serve the stated queries; note the write-cost trade-off. Don't index speculatively.
- Plan for change + scale. Timestamps (
created_at/updated_at), soft-delete if needed, and a partitioning/sharding note ifscalewarrants. - Emit DDL + rationale. Produce target-engine DDL and a short rationale per
non-obvious decision; hand off to the
database-migrationworkflow.
Output
A schema: an entity/relationship description, engine-specific DDL (tables, keys, constraints, indexes), a rationale for each non-obvious choice (normalization, denormalization, indexing), and notes on integrity and growth. Migration-ready.
Constraints & safety
- Integrity in the schema — constraints enforce invariants; don't rely on app code alone.
- No PII by accident — flag columns that hold sensitive data; recommend encryption at rest where appropriate (/standards/security.md).
- Justify denormalization + every index — both have costs.
Examples
Minimal below; full enterprise examples in EXAMPLES.md; build steps in IMPLEMENTATION.md.
Given: an orders system (customers, orders, line items, products) on Postgres,
read-heavy on "orders by customer".
Produces: 3NF tables with FKs, a M:N line-items join, a composite index on
orders(customer_id, created_at), and a rationale for it.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

