SQL database design, query optimization, and migration safety. Use when writing queries, designing schemas, or planning database migrations.
70
56%
Does it follow best practices?
Impact
95%
1.06xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/platform/platform-database/SKILL.mdQuery performance optimization
N+1 fix: JOIN or IN
100%
100%
Explicit columns in getCustomerOrders
100%
100%
Filter before aggregate
100%
100%
No SELECT * in getProOrgStats
100%
100%
Trailing wildcard or full-text search
100%
100%
EXISTS over IN subquery
100%
100%
No function on indexed column
100%
100%
Explicit columns in getSignupsIn2024
100%
100%
Safe migration authoring
No edit to existing file
100%
100%
Column added as nullable or with default
100%
100%
Schema and data separated
100%
100%
Backfill is batched
100%
100%
NOT NULL constraint separate
100%
100%
One change per migration file
30%
100%
Migration files numbered sequentially
100%
100%
Execution order documented
100%
100%
No accidental DROP/TRUNCATE
100%
100%
Schema design and indexing
Timestamps on all tables
37%
75%
Appropriate column types
100%
100%
VARCHAR with length for bounded strings
0%
100%
FK indexes present
83%
100%
Covering index for browse-jobs query
100%
100%
Index for application feed query
100%
100%
CONCURRENTLY used for index creation
0%
0%
UNION ALL for activity stream
100%
100%
No SELECT * in production queries
100%
100%
Short transactions
100%
100%
Related mutations wrapped atomically
100%
100%
7b466be
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.