drizzle-orm
Skill1 starsChanged 3 months agoMITView on GitHub
Build, review, debug, configure, migrate, teach, or plan Drizzle ORM 1.0 RC (not 0.x) with kit, seed, validators, and Effect drivers. Use for drizzle-orm@rc, drizzle-kit@rc, drizzle-seed@rc, defineRelations RQBv2, pgTable/mysqlTable/sqliteTable, generate migrate push pull studio, drizzle-orm/zod|valibot|typebox|arktype|effect-schema, drizzle-orm/effect-postgres and other effect-* drivers, codecs, snakeCase, InferSelectModel, and 0.x-to-1.0 upgrades.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- marcioaltoe/skillstheir own version, first seen Nov 29, 2026
- thatjuan/agent-skillstheir own version, first seen Oct 20, 2026
- Mindrally/skillstheir own version, first seen Oct 8, 2026
- legions-developer/invoicelytheir own version, first seen Oct 8, 2026
- Spardutti/claude-skillstheir own version, first seen Aug 31, 2026
- kimtth/agent-skill-100-lines-or-lesstheir own version, first seen Jun 26, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- legions-developer/invoicely★ 923same name
- Mindrally/skills★ 275same name
- YepAPI/skills★ 8same name
- Spardutti/claude-skills★ 3same name
- FelipeAngeli/skills★ 2same name
- kimtth/agent-skill-100-lines-or-less★ 2same name
- thatjuan/agent-skills★ 1same name
- jliocsar/parley★ 0same name
- marcioaltoe/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository81 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agents-mdSkill
- base-uiSkill
- better-authSkill
- brainstormSkill
- bullmqSkill
- bunSkill
- clickhouseSkill
- clone-to-tempSkill
- compound-uiSkill
- copywritingSkill
- create-durable-planSkill
- d3Skill
- date-fnsSkill
- decimal-jsSkill
- deduplicateSkill
- design-engineerSkill
- designSkill
- effectSkill
- elysia-architectureSkill
- elysiaSkill
- evlogSkill
- feedsmithSkill
- grokSkill
- handoffSkill
- heyapiSkill
- impitSkill
- intlayerSkill
- jsdocSkill
- kafkaSkill
- kill-legacySkill
- legend-stateSkill
- loopSkill
- mantine-hooksSkill
- mobbinSkill
- motionSkill
- oxfmtSkill
- oxlintSkill
- permixSkill
- plain-languageSkill
- playwrightSkill
- react-boundariesSkill
- react-emailSkill
- reactSkill
- reorganizeSkill
- researchSkill
- schema-dtsSkill
- sentrySkill
- seoSkill
- setup-competitors-mdSkill
- setup-copywriting-mdSkill
- setup-icp-mdSkill
- setup-project-mdSkill
- simplify-layoutSkill
- storybookSkill
- subagentsSkill
- tailwindSkill
- tailwind-variantsSkill
- takumiSkill
- tanstack-chartsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 3 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill for Drizzle 1.0 release candidates (drizzle-orm@rc, currently 1.0.0-rc.4), plus drizzle-kit, drizzle-seed, in-tree …
- Very specific: line 10
Do not treat npm latest (0.45.x) as current for new work.
- Very specific: line 29
Verify with the narrowest useful query, bunx drizzle-kit check / generate --explain-style dry runs, or a focused migrate against a …
- Very specific: line 34
RQBv1 is gone: Use defineRelations(schema, …) and pass { relations } into drizzle() — not per-table relations() + { schema } for db.query.
- Distinctive: line 35
Prefer SQL query builder for joins/aggregations.
- Very specific: line 38
After leaving 0.x: run bunx drizzle-kit up once to convert migration folders to v3 (no journal.json).
- Very specific: line 41
Prefer $inferSelect / $inferInsert (aliases: InferSelectModel / InferInsertModel).
- Distinctive: line 45
Prefer repository-owned commands.
- Distinctive: line 52
After 0.x upgrades: confirm RQBv2 rewrite, casing builders, migrator folder v3, and codec-sensitive columns (arrays, timestamps, JSON).
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Drizzle ORM (1.0 RC)
Use this skill for Drizzle 1.0 release candidates (drizzle-orm@rc, currently 1.0.0-rc.4), plus drizzle-kit, drizzle-seed, in-tree validators, Studio, and official Effect drivers.
Do not treat npm latest (0.45.x) as current for new work. Pin the rc channel for ORM + Kit + Seed together.
Workflow
- Inspect the local Drizzle surface:
- Exact versions / dist-tags for
drizzle-orm,drizzle-kit,drizzle-seed,eslint-plugin-drizzle. - Dialect + driver entrypoints (
postgres-js,neon-http,bun-sql,libsql,effect-postgres, …). - Schema files,
defineRelations,drizzle.config.ts, migrations folder shape (v3 folders vs legacy journal). - Whether Effect (
effect@beta+drizzle-orm/effect-*) or Promise drivers are in use.
- Exact versions / dist-tags for
- For install, day-to-day usage, baselines, and troubleshooting, follow usage-guide.md first.
- Refresh docs when versions drift or the task touches RQBv2, kit v3 migrations, codecs, or Effect. Start from source-map.md.
- Route deeper detail:
- Schema + SQL query builder: schema-queries.md.
- RQBv2
defineRelations/db.query: relations-rqb.md. - Kit CLI, config, generate/migrate/push/pull/studio: kit-migrations.md.
- Seed + Zod/Valibot/TypeBox/ArkType/Effect Schema: seed-validators.md.
- Effect drivers vs
@effect/sql-drizzle: effect-integration.md. - Driver matrix + 0.x → RC upgrade: drivers-upgrade.md.
- Preserve the project's dialect and driver unless the user asks to switch.
- Verify with the narrowest useful query,
bunx drizzle-kit check/generate --explain-style dry runs, or a focused migrate against a disposable DB.
Core Judgment
- Always install
@rcfor new Drizzle 1.0 work:bun add drizzle-orm@rcandbun add -D drizzle-kit@rc. Never mix RC ORM with Kit0.31.x. - RQBv1 is gone. Use
defineRelations(schema, …)and pass{ relations }intodrizzle()— not per-tablerelations()+{ schema }fordb.query. - Prefer SQL query builder for joins/aggregations; prefer RQB for nested graphs.
- Casing is on tables (
snakeCase.table/camelCase.table), notdrizzle({ casing }). - Production schema changes: generate → migrate. Use push only for local prototyping (
--explainfirst). - After leaving 0.x: run
bunx drizzle-kit uponce to convert migration folders to v3 (nojournal.json). - Validators live in-tree:
drizzle-orm/zod,…/valibot,…/typebox,…/arktype,…/effect-schema. Avoid standalonedrizzle-zod@0.xwith RC. - Effect on RC: use
drizzle-orm/effect-*+ Effect v4 beta (effect@beta, matching@effect/sql-*). Do not pair RC with@effect/sql-drizzle(Effect v3 / drizzle<0.50only). - Prefer
$inferSelect/$inferInsert(aliases:InferSelectModel/InferInsertModel).
Verification
Prefer repository-owned commands. For meaningful Drizzle RC work, cover the relevant subset:
- Typecheck schema + relations + client factory.
- Focused insert/select/update/delete or
db.query.*.findManyagainst a real or test DB. bunx drizzle-kit generatethen review SQL;migrateon disposable DB;checkfor branch conflicts.- Seed:
reset+seedon a non-prod database only. - Effect path: provide
PgClient(or dialect) layer and run one Effect program end-to-end. - After 0.x upgrades: confirm RQBv2 rewrite, casing builders, migrator folder v3, and codec-sensitive columns (arrays, timestamps, JSON).
Report which checks ran, which did not, and any @rc vs latest assumptions that remain.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

