Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Designs relational and document schemas: keys, constraints, query-driven indexes, ERDs, reversible migrations; defaults to PostgreSQL.
82% 73%−9 ptsof test cases passed
Passed 16 of 22 test cases with the skill, and 18 of 22 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
Structure the deliverable in this order. Omit sections that do not apply (for example, scaling notes for a small internal tool).
# [Domain] schema - [Engine and version]
## Assumptions
- [Volumes, tenancy model, anything inferred rather than stated]
## ERD
```mermaid
erDiagram
...
```
## DDL
```sql
-- Full CREATE statements: tables, constraints, indexes, triggers, RLS
```
## Query-to-index map
| Query | Served by |
|---|---|
## Design decisions
- [Key type, why]
- [Each deliberate denormalization, and the query it serves]
- [ON DELETE choices that are not obvious]
## Migrations
```sql
-- up
```
```sql
-- down (mark destructive steps)
```
## Verification
- [What was run: DDL applied to Postgres 18, EXPLAIN results for key queries]
```
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.