Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Turn a data model into an entity-relationship (ER) diagram. Use when asked to design a schema, model data, show how tables/entities relate, or diagram a database. Produces a ready-to-render Mermaid ER diagram (renders live, exportable as PNG/SVG) plus key attributes, cardinality, and design notes.
.claude/skills/mohitagw15856-entity-relationship-diagram/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -13% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 1% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -27% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 13% | 0% |
| case-20 | ✓→✗ | ▼ Worse | 10% | 0% |
Before you write a migration, it pays to see the data model: the entities, their key fields, and how they relate (one-to-many, many-to-many). This skill turns a described domain into a clean Mermaid ER diagram with proper cardinality notation and the attributes that matter.
Ask for these only if they aren't already provided:
One line on the scope of the model.
mermaiderDiagram USER ||--o{ ORDER : places ORDER ||--|{ LINE_ITEM : contains PRODUCT ||--o{ LINE_ITEM : "appears in" USER { uuid id PK string email string name } ORDER { uuid id PK uuid user_id FK datetime created_at string status } LINE_ITEM { uuid id PK uuid order_id FK uuid product_id FK int qty } PRODUCT { uuid id PK string name decimal price }
Cardinality key — ||--o{ = one-to-many, }o--o{ = many-to-many, ||--|| = one-to-one.
Design notes — normalization choices, where a join table is needed, indexes worth adding, anything deferred.
erDiagram. Relationship line: A ||--o{ B : label.|| (exactly one), o{ (zero-or-many), |{ (one-or-many), o| (zero-or-one).ENTITY { type name PK } — mark keys with PK / FK.Data modeling (entity-relationship modeling, crow's-foot notation, normalization), expressed as renderable Mermaid.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 17,283 | 10,946 | -37% | 1 | 1 | 0% | 3,645 | 3,159 | -13% | 0 | 0 | — |
case-02 | pass→pass | 11,490 | 6,849 | -40% | 1 | 1 | 0% | 2,182 | 2,215 | +2% | 0 | 0 | — |
case-03 | pass→pass | 13,552 | 7,659 | -43% | 1 | 1 | 0% | 2,481 | 2,329 | -6% | 0 | 0 | — |
case-04 | pass→pass | 10,604 | 7,378 | -30% | 1 | 1 | 0% | 2,171 | 2,233 | +3% | 0 | 0 | — |
case-05 | pass→pass | 11,649 | 8,586 | -26% | 1 | 1 | 0% | 2,366 | 2,223 | -6% | 0 | 0 | — |
case-06 | fail→pass | 10,421 | 6,727 | -35% | 1 | 1 | 0% | 2,125 | 2,152 | +1% | 0 | 0 | — |
case-07 | pass→pass | 14,304 | 8,487 | -41% | 1 | 1 | 0% | 2,597 | 2,274 | -12% | 0 | 0 | — |
case-08 | pass→pass | 11,134 | 7,057 | -37% | 1 | 1 | 0% | 2,125 | 2,173 | +2% | 0 | 0 | — |
case-09 | pass→pass | 10,979 | 8,551 | -22% | 1 | 1 | 0% | 2,229 | 2,527 | +13% | 0 | 0 | — |
case-10 | fail→pass | 14,507 | 7,863 | -46% | 1 | 1 | 0% | 3,014 | 2,212 | -27% | 0 | 0 | — |
case-11 | pass→pass | 9,216 | 7,409 | -20% | 1 | 1 | 0% | 2,016 | 2,237 | +11% | 0 | 0 | — |
case-12 | pass→pass | 10,469 | 6,919 | -34% | 1 | 1 | 0% | 2,056 | 2,046 | -0% | 0 | 0 | — |
case-13 | pass→pass | 15,118 | 16,177 | +7% | 1 | 1 | 0% | 3,033 | 2,730 | -10% | 0 | 0 | — |
case-14 | fail→pass | 12,647 | 10,482 | -17% | 1 | 1 | 0% | 2,431 | 2,751 | +13% | 0 | 0 | — |
case-15 | pass→pass | 10,628 | 6,145 | -42% | 1 | 1 | 0% | 1,887 | 1,820 | -4% | 0 | 0 | — |
case-16 | fail→fail | 16,925 | 9,009 | -47% | 1 | 1 | 0% | 3,357 | 2,447 | -27% | 0 | 0 | — |
case-17 | pass→pass | 13,699 | 8,807 | -36% | 1 | 1 | 0% | 2,945 | 2,373 | -19% | 0 | 0 | — |
case-18 | pass→pass | 13,927 | 11,869 | -15% | 1 | 1 | 0% | 2,789 | 2,956 | +6% | 0 | 0 | — |
case-19 | pass→pass | 15,257 | 10,363 | -32% | 1 | 1 | 0% | 2,905 | 2,490 | -14% | 0 | 0 | — |
case-20 | pass→fail | 13,115 | 10,782 | -18% | 1 | 1 | 0% | 2,641 | 2,900 | +10% | 0 | 0 | — |
case-21 | pass→fail | 10,770 | 12,169 | +13% | 1 | 1 | 0% | 1,917 | 2,875 | +50% | 0 | 0 | — |
case-22 | pass→fail | 23,034 | 20,390 | -11% | 1 | 1 | 0% | 5,055 | 5,086 | +1% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +5 percentage points is the difference between those two pass rates over the 22 comparable cases. 3 cases got worse with the skill loaded, and they are included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.