agentleFS
Ghost7802Ghost7802/awesome-api-skills/skills/drizzle/SKILL.md

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

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.
  • MicrosoftSkill

    typescript

    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

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
  1. Very specific:

    Always wrap multiple inserts/updates in a db.transaction().

    line 48
  2. Distinctive:

    Use this when your agent works with drizzle — structured patterns beat pasted docs and prevent common hallucinations.

    line 57

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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" --> drizzle

Recommended 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-orm

Production 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 with
  • mysql — integrates with
  • sqlite — integrates with
  • prisma — alternative to
  • neon — works well with
  • turso — works well with

Last Verified: 2026-07-02

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.