← Back to list

db-migration-reviewer
by gregsuptown
⭐ 0🍴 0📅 Jan 10, 2026
SKILL.md
name: db-migration-reviewer description: Review Drizzle ORM migrations for MySQL. Checks for potential data loss, performance issues, missing indexes, and schema alignment. Use when reviewing changes in the drizzle/ directory or schema.ts files. allowed-tools: Read, Grep, Glob
Database Migration Reviewer (MySQL/Drizzle)
Standards
Schema Design
- ✅ Use appropriate column types (e.g.,
varchar(255)for emails,textfor long content) - ✅ Ensure primary keys are defined for every table
- ✅ Use
timestampfor created/updated fields with appropriate defaults - ✅ Define foreign key constraints for relationships
Performance
- ✅ Ensure columns used in WHERE clauses are indexed
- ✅ Avoid over-indexing (limit to essential query patterns)
- ✅ Check for full table scans in proposed query changes
Safety
- ❌ No
DROP TABLEorDROP COLUMNwithout explicit confirmation - ❌ No renaming columns without a multi-step migration strategy (if in production)
- ✅ Ensure default values are set for new NOT NULL columns
Drizzle Specifics
- ✅ Ensure
drizzle-kit generatewas run after schema changes - ✅ Check that migrations are sequential and don't conflict
Review Checklist
- Data Loss: Does this migration delete or modify existing data?
- Indexing: Are the new tables/columns properly indexed for their intended use?
- Naming: Do table and column names follow the project's camelCase or snake_case convention?
- Types: Are the column types optimal for the data they will store?
Auto-Invocation Triggers
This Skill should activate when:
- Reviewing files in
drizzle/folder - Reviewing
server/db/schema.tsor similar schema files - User asks to "check database changes" or "review migration"
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon