skills/drizzle-orm/SKILL.md
Guidelines for using Drizzle ORM with SQLite. Trigger: When writing SQL queries, migrations, or modifying schema definitions.
npx skillsauth add luisdavidtf/vindex drizzle-ormInstall 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.
src/data/local/schema.ts (or modular files imported there).integer('id', { mode: 'number' }).primaryKey({ autoIncrement: true }) for IDs in SQLite.text for dates (ISO 8601 strings) and booleans (0/1 or 'true'/'false' depending on preference, but be consistent).drizzle-kit generate after modifying the schema..sql files manually unless fixing a specific complex migration issue.db.select().from(table).where(...).db.query.table.findMany(...) for relation fetching as it's more readable.// Example
const users = await db.select().from(usersTable).where(eq(usersTable.active, true));
relations() for easier querying, even if strict foreign keys are enforced at the DB level.documentation
Guidelines for global state management with Zustand. Trigger: When creating global stores, shared UI state, or managing session data.
development
TypeScript strict patterns and best practices. Trigger: When implementing or refactoring TypeScript in .ts/.tsx (types, interfaces, generics, const maps, type guards, removing any, tightening unknown).
development
Guidelines for styling in React Native (Flexbox, StyleSheet). Trigger: When styling components, fixing layout issues, or adding visual effects.
testing
Protocol for QA, error verification, and skill evolution to prevent recurring bugs.