Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By honra-ioMITIn 1 marketplace
Gives your AI agent Drizzle ORM best practices for PostgreSQL, covering schema design, queries, relations and migrations so it writes idiomatic code. Community-maintained and early-stage; no official Drizzle skill exists yet.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
drizzle-orm, postgres, orm, database-schema, migrations, query-patterns, type-safety
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
AI-agent-ready best practices for Drizzle ORM with PostgreSQL. Designed to be consumed by LLM-based coding agents (Claude, Cursor, Codex, etc.) as a skill or context file so they write correct, idiomatic Drizzle code out of the box.
Inspired by Supabase Agent Skills.
Install the skill using the skills CLI:
npx skills add honra-io/drizzle-best-practices
This makes the Drizzle best practices available to your AI agent (Claude Code, Cursor, Gemini, Kiro, OpenCode, GitHub Copilot, and others).
The skill is organized into 8 priority-ranked categories, each with detailed reference files containing explanations, correct vs incorrect code examples, and links to official docs.
| Category | References | What's Covered |
|---|---|---|
| Schema Design | schema-table-definitions.md, schema-column-types.md, schema-indexes-constraints.md | Table organization, column type selection, indexes, unique constraints, foreign keys, composite keys |
| Query Patterns | query-select-patterns.md, query-mutations.md, query-filters-operators.md, query-error-handling.md | Select/partial select, joins, count queries, insert/update/delete, upsert, returning, where clauses, operator composition, error handling (constraint violations, transactions, driver-portable patterns) |
| Relations | relations-defining.md, relations-querying.md | Relations v2 (defineRelations), legacy relations() API, one-to-one/one-to-many/many-to-many, relational queries with filtering/ordering/limiting |
| Migrations | migrations-config.md, migrations-workflow.md | drizzle.config.ts setup, generate/push/pull/migrate workflow, programmatic migration execution |
| Type Safety | types-inference.md, types-custom-types.md, types-validators.md | $inferSelect/$inferInsert, InferSelectModel/InferInsertModel, $type<T>(), $defaultFn, customType, branded types, deriving Zod/Valibot/Typebox/Arktype schemas (drizzle-orm/zod on v1 vs legacy drizzle-zod) |
| Performance | perf-prepared-statements.md, perf-batch-operations.md | Prepared statements with placeholders, batch API (Neon HTTP), bulk inserts, batch vs transactions |
| Drivers | driver-postgres.md, driver-serverless.md | node-postgres, postgres.js, Neon HTTP/WebSocket, Supabase, driver selection guide, logging/debugging, .toSQL(), serverless/edge patterns (Vercel, Lambda, Workers) |
| Advanced | advanced-dynamic-queries.md, advanced-sql-operator.md | Dynamic WHERE/ORDER BY/SELECT, pagination, $dynamic(), sql template literal, sql<T>, .mapWith(), aggregations, GROUP BY, CASE, EXISTS |
| Postgres Engine | engine-postgres.md | Identity columns, UUIDs, JSONB, arrays, enums (pgEnum), timestamps with timezone, numeric/decimal, full-text search, GIN/GiST/BRIN indexes, partial indexes, views, materialized views, schemas |
The following topics are not yet covered and are on the roadmap for future additions:
Security
Additional Engines
engine-mysql.md)engine-sqlite.md)engine-singlestore.md)engine-mssql.md)Schema Design
Query Patterns
Performance
Common Patterns
deletedAt columns)Integrations
Testing
Migrations (Advanced)
This repository follows the agent-skills pattern. AI agents read SKILL.md for top-level instructions and then load individual references/*.md files on-demand based on what the user is working on.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
drizzle-best-practices@lpbayliss-skills is listed by lpbayliss/claude-skills — review the source before installing
npx claudepluginhub lpbayliss/claude-skills --plugin drizzle-best-practicesPlugins from other owners that cover similar ground