skills/mine/drizzle-safe-migrations/SKILL.md
Plan safe Drizzle backfills, enum/check/default changes, constraint tightening, migration ordering, and rollback. Excludes other ORMs, query optimization, and new-schema design.
npx skillsauth add pedronauck/skills drizzle-safe-migrationsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill to run database migrations in a way that is auditable, deployment-safe, and consistent with Drizzle's migration model.
bun run db:generate below is an example, not a required script name.bun run db:generate -- --custom --name <name>) and edit only that custom SQL file.schema-only: only column/table/index/default changes.data+schema: old rows must be transformed before new constraints/defaults.data+schema, create custom migration first:
bun run db:generate -- --custom --name <descriptive_name>bun run db:generatedrizzle/meta/_journal.json:
WHERE clauses.UPDATE ... WHERE status = 'legacy_value').When removing allowed values (enum/check):
For large tables or strict uptime targets, evaluate staged constraint validation supported by the actual database and driver. PostgreSQL NOT VALID / VALIDATE CONSTRAINT applies only to supported constraint kinds.
references/production-playbook.md for command templates and review checklists.testing
Assess DDD fit; discover domains with EventStorming, define language and bounded contexts, and design aggregates, value objects, events, and repositories. Excludes architecture-only audits, product specs, and CQRS/Event Sourcing catalogs.
development
Build terminal UIs with ratatui following 2026 Rust best practices. Use when: (1) Creating new TUI apps, (2) Adding widgets/layouts, (3) Keyboard navigation/state management, (4) Image integration via ratatui-image, (5) Async event handling, (6) Release optimization. Covers v0.30.0+ API, Elm Architecture, StatefulWidget, color-eyre.
development
Find 10x product opportunities and high-leverage improvements. Use when user wants strategic product thinking, mentions '10x', wants to find high-impact features, or says 'what would make this 10x better', 'product strategy', or 'what should we build next'.
development
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.