Drizzle orm
Skill kimtth/agent-skill-100-lines-or-less/skills/drizzle-orm
🧿 Minimal but effective AI agent skill definitions in 100 lines or less.
npx -y skills add kimtth/agent-skill-100-lines-or-less --skill drizzle-ormAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when: define type-safe schemas, migrations, and queries with Drizzle ORM and full TS inference.
SKILL.md
1.1 KB, 205 tokens by cl100k_base, as published. Nobody here has run it
Goal: end-to-end type safety from schema to query result.
Use for:
- modeling tables, relations, and constraints in TypeScript
- generating and applying migrations safely
- writing queries with inferred result types
Workflow:
- Define tables and columns in the schema with explicit types.
- Declare relations for type-safe joins and nested reads.
- Generate migrations from the schema; review the SQL.
- Apply migrations through the migrator, not ad hoc edits.
- Query with the typed builder; let result types infer.
- Derive insert/select types from the schema for app code.
Patterns:
- single source of truth: the schema drives types and migrations
- relations for typed joins instead of manual mapping
- prepared statements for hot queries
- transactions for multi-step writes
Rules:
- never hand-edit applied migrations; create a new one
- review generated SQL before running it
- derive types from the schema; do not duplicate them
- scope transactions tightly around the related writes
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.
Gives 0 of the 12 instructions most databases sql skills give in 205 tokens
Counted across 589 of the 662 authors here whose files we hold, read 2026-08-07
- Use parameterized queriesin 37 of 589, across 34 files
- Use timestamptz for timestampsin 30 of 589, across 14 files
- Index foreign keysin 29 of 589, across 18 files
- Create indexes concurrentlyin 29 of 589, across 24 files
- Use numeric type for moneyin 25 of 589, across 8 files
- Use cursor pagination instead of offsetin 24 of 589, across 17 files
- Select only required columnsin 24 of 589, across 20 files
- Add indexes manually on foreign key columnsin 22 of 589, across 12 files
- Normalize to third normal formin 19 of 589, across 10 files
- Configure connection poolingin 19 of 589, across 17 files
- Put equality columns before range columns in indexesin 18 of 589, across 10 files
- Read individual rule files for detailed explanationsin 18 of 589, across 4 files
Said here and by no other author read
- define schema with explicit types
- declare relations for joins
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.