Drizzle ORM schema design, relational queries, and migration patterns. Use when working with Drizzle ORM, writing database queries, or managing Drizzle migrations.
71
Quality
56%
Does it follow best practices?
Impact
100%
1.35xAverage score across 3 eval scenarios
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/framework/tech-drizzle/SKILL.mdSchema organization and type inference
One table per file
100%
100%
Relations in separate file
0%
100%
Index exports base tables first
100%
100%
Index exports relations last
0%
100%
Junction table export order
100%
100%
$inferSelect type exported
100%
100%
$inferInsert type exported
100%
100%
No manual interface duplicates
100%
100%
Relations file imports all tables
0%
100%
README explains structure
100%
100%
Without context: $0.5842 · 2m 32s · 34 turns · 40 in / 7,267 out tokens
With context: $1.1116 · 3m 52s · 46 turns · 1,829 in / 14,072 out tokens
Relational queries and N+1 prevention
db.query used for relations
100%
100%
No manual JOIN for relations
100%
100%
with clause for eager loading
100%
100%
Root-level column selection
66%
100%
Nested column selection
100%
100%
Sensitive fields excluded
100%
100%
No N+1 loop pattern
100%
100%
NOTES.md references eager loading
100%
100%
Without context: $0.4103 · 2m 10s · 25 turns · 32 in / 5,807 out tokens
With context: $0.6160 · 2m 4s · 32 turns · 947 in / 7,139 out tokens
Aggregation queries and migration safety
db.select for aggregations
100%
100%
Aggregation functions imported
100%
100%
GROUP BY used correctly
100%
100%
db:push for local dev
0%
100%
db:generate before commit
60%
100%
SQL review step included
100%
100%
RENAME vs DROP+ADD check
33%
100%
NOT NULL DEFAULT check
0%
100%
CONCURRENTLY for large table indexes
0%
100%
No relational API for aggregations
100%
100%
Without context: $0.4105 · 1m 47s · 22 turns · 27 in / 5,628 out tokens
With context: $0.6474 · 2m 8s · 32 turns · 829 in / 7,784 out tokens
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.