drizzle
Skill13 starsChanged 27 days agoMITView on GitHub
Next generation TypeScript ORM. - prisma (Score: 0.92) Why: Direct relationship, Both are Databases, Shared ecosystem (typescript), Can deploy to vercel, Similar network profile - sqlite (Score: 0.81) Why: Direct relationship, Both are Databases, Can deploy to cloudflare, Similar network profile - cloudflare-workers (Score: 0.8) Why: Direct relationship, Both are Developer Tools, Can deploy to cloudflare
- Installs packages
7 other projects use a version of this.
Adopted by
Most recently taken up by
- lobehub/lobehubtheir own version, first seen Nov 24, 2026
- G1Joshi/Agent-Skillstheir own version, first seen Oct 13, 2026
- tazo90/next-openapi-gentheir own version, first seen Oct 8, 2026
- lobehub/lobe-chattheir own version, first seen Oct 8, 2026
- triggerdotdev/trigger.devtheir own version, first seen Aug 12, 2026
- miketromba/skillstheir own version, first seen Apr 8, 2026
Used with
Projects with it also use typescript.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkilltypescript
TypeScript best practices for this monorepo. Use this skill when: (1) writing new TypeScript code, (2) reviewing TypeScript code, (3) working with API responses, fetch calls, or JSON parsing, (4) adding or modifying types and interfaces.
Also in 3 projects that use this
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- lobehub/lobe-chat★ 86ksame name
- lobehub/lobehub★ 86ksame name
- triggerdotdev/trigger.dev★ 17ksame name
- tazo90/next-openapi-gen★ 199same name
- G1Joshi/Agent-Skills★ 15same name
- miketromba/skills★ 2same name
- leonaaardob/lb-drizzle-skill★ 1same 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 repository140 other files it gives its agents.
- algoliaSkill
- anthropic-mcpSkill
- anthropicSkill
- argo-cdSkill
- auth0Skill
- aws-bedrockSkill
- aws-dynamodbSkill
- aws-lambdaSkill
- aws-s3Skill
- azure-blob-storageSkill
- azure-openaiSkill
- better-authSkill
- better-sqlite3Skill
- biomeSkill
- braintreeSkill
- bullmqSkill
- caddySkill
- chromadbSkill
- clerkSkill
- cloudflare-d1Skill
- cloudflare-r2Skill
- cloudflareSkill
- cloudflare-workersSkill
- cloudinarySkill
- cohereSkill
- convexSkill
- datadogSkill
- deepgramSkill
- deepseekSkill
- deno-deploySkill
- digitaloceanSkill
- discordSkill
- dockerSkill
- elevenlabsSkill
- eslintSkill
- expressSkill
- fastapiSkill
- firebaseSkill
- flySkill
- geminiSkill
- github-actionsSkill
- githubSkill
- gitSkill
- google-cloud-runSkill
- google-cloud-storageSkill
- google-maps-platformSkill
- grafanaSkill
- groqSkill
- helmSkill
- honoSkill
- inngestSkill
- jaegerSkill
- jwtSkill
- kafkaSkill
- kubernetesSkill
- langchainSkill
- langfuseSkill
- langgraphSkill
- lemon-squeezySkill
- linearSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 48
Always wrap multiple inserts/updates in a db.transaction().
- Distinctive: line 57
Use this when your agent works with drizzle — structured patterns beat pasted docs and prevent common hallucinations.
“Common” is measured: kept by at least 6 in 10 of the 7 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 Skill
Next generation TypeScript ORM.
Ecosystem Graph Preview
graph LR
drizzle["drizzle"]:::core
classDef core fill:#f9f,stroke:#333,stroke-width:4px;
cloudflare-workers -- "integrates with" --> drizzle
drizzle -- "integrates with" --> postgresql
drizzle -- "integrates with" --> mysql
drizzle -- "integrates with" --> sqlite
drizzle -- "alternative to" --> prisma
drizzle -- "works well with" --> neon
drizzle -- "works well with" --> turso
postgresql -- "integrates with" --> drizzle
prisma -- "alternative to" --> drizzle
sqlite -- "integrates with" --> drizzleRecommended Next Skills
- prisma (Score: 0.92) Why: Direct relationship, Both are Databases, Shared ecosystem (typescript), Can deploy to vercel, Similar network profile
- sqlite (Score: 0.81) Why: Direct relationship, Both are Databases, Can deploy to cloudflare, Similar network profile
- cloudflare-workers (Score: 0.8) Why: Direct relationship, Both are Developer Tools, Can deploy to cloudflare
Quick Start
Drizzle is a headless TypeScript ORM. It generates pure SQL with zero runtime overhead, making it incredibly fast and compatible with Edge environments (Vercel Edge, Cloudflare Workers).
npm i drizzle-ormProduction Patterns
Relational Queries vs SQL-Like
Drizzle supports both traditional SQL-like querying and a Prisma-like db.query syntax. Use the db.query API for deeply nested relational fetches, but stick to the SQL-like syntax for complex aggregations and joins for maximum performance.
Architecture & Scaling
Zero Dependencies
Unlike Prisma, Drizzle does not require downloading a Rust binary engine. It is just JavaScript, meaning it natively supports serverless and edge functions without massive cold starts.
Error Recovery
Always wrap multiple inserts/updates in a db.transaction(). If the underlying database driver throws an error, Drizzle will automatically issue the rollback.
Security Notes
Drizzle utilizes prepared statements by default to completely mitigate SQL injection. Never concatenate raw strings inside `sql`` template literals.
References
Why use this skill
Use this when your agent works with drizzle — structured patterns beat pasted docs and prevent common hallucinations.
AI pitfalls
- Inventing column names or schema fields
- Using deprecated driver methods or wrong connection strings
- Omitting connection pooling or transaction boundaries
Production checklist
- Migrations version-controlled and applied via CI
- Connection limits and pooling configured
- Backups and restore procedure documented
Related skills
postgresql— integrates withmysql— integrates withsqlite— integrates withprisma— alternative toneon— works well withturso— works well with
Last Verified: 2026-07-02
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.

