SkillsReviewed · secondsky

Bun Drizzle Integration

Bun Drizzle Integration is an instruction file for coding assistants helping developers connect Bun applications to SQLite through Drizzle ORM, but several examples need corrections or additional definitions. It covers TypeScript schemas, migrations, database operations, relations and transactions.

Researched 17 Nov 2026

In short.

Bun Drizzle Integration is an instruction file for coding assistants helping developers use Drizzle ORM with Bun's SQLite driver, but its examples are not a complete, internally consistent application. It provides concrete patterns for schemas, migration configuration, database operations, relations, prepared statements and raw SQL. The schema omits an import required by its default expression, and later examples reference undeclared columns and relations. Runtime behavior, dependency compatibility and performance are not assessed.

Researched and written by an AI model and checked by a second AI model. How it works

The selected scope is plugins/bun/skills/bun-drizzle-integration and its files at revision 88378361314f558fb719aec0af9fd898ab36f0b2, together with applicable licence notices. The supplied manifest contains one in-scope file, SKILL.md, and the repository-level LICENSE above it. The referenced migrations.md and performance.md files are absent from that manifest. Other repository skills, surrounding plugin implementation and external dependency documentation are outside the supplied evidence. No code was executed; installation, migrations, queries, transactions, compatibility and performance remain untested.

The overview

identity

Bun Drizzle Integration is the bun-drizzle-integration skill in secondsky/claude-skills, under plugins/bun/skills/bun-drizzle-integration. Its metadata identifies version 1.0.0 and describes its purpose as integrating Drizzle ORM with Bun's SQLite driver for typed schemas and migrations.

The original resource location is [https://github.com/secondsky/claude-skills/tree/main/plugins/bun/skills/bun-drizzle-integration]. The supplied content is pinned to revision 88378361314f558fb719aec0af9fd898ab36f0b2.

assessment

This is useful as a compact reference for a developer or coding assistant already working with Bun, TypeScript and SQLite. It brings installation, schema configuration and common database patterns into one instruction file.

Treat its snippets as patterns to adapt. Missing imports, undeclared fields and unfinished examples prevent treating the document as a ready-to-run application. No execution results establish that the examples work together.

users

The strongest fit is a TypeScript developer using a coding assistant to build or maintain a Bun application with a SQLite database. Beginners get examples of creating, reading, updating and deleting records; experienced developers get reminders for conflict handling, relational queries and prepared statements.

Readers need enough programming knowledge to reconcile separate snippets and supply missing definitions. Projects using another runtime or database driver would need adapted setup and compatibility checks.

capabilities

The skill illustrates users and posts tables, unique and foreign-key declarations, migration generation and application, direct schema pushing, and opening Drizzle Studio. Query examples cover inserts, conflict handling, filtering, projections, ordering, updates and deletes.

Additional examples cover relation declarations, nested queries, transactions, rollback, reusable prepared statements and embedded SQL expressions. Its column reference includes integer, text, real, blob, boolean, timestamp and JSON representations. These are documented patterns, with no demonstrated runtime or performance results.

Using it

requirements

The shown application setup uses Bun, drizzle-orm and the development dependency drizzle-kit. It imports Database from bun:sqlite and the Drizzle adapter from drizzle-orm/bun-sqlite, with TypeScript schema files and a local app.db database.

No minimum or pinned Bun, Drizzle ORM, Drizzle Kit or TypeScript versions are supplied. Assistant-host compatibility, skill installation requirements, operating-system support and deployment requirements are not established.

mechanism

The resource supplies instructions and examples for a coding assistant; the database functionality comes from the application dependencies. The setup opens app.db through Bun's Database constructor and passes that connection, together with the schema, to Drizzle.

TypeScript table declarations describe the database structure. A separate drizzle.config.ts points Drizzle Kit to the schema, migration output directory and database file. Relations describe connections between records, while SQL expressions provide an escape hatch for operations outside the illustrated query-builder patterns.

setup

The document starts with bun add drizzle-orm and bun add -D drizzle-kit. It then shows src/db/schema.ts, src/db/index.ts and drizzle.config.ts, using ./drizzle for generated migrations and ./app.db for the database.

Its migration commands are bun drizzle-kit generate and bun drizzle-kit migrate. It labels bun drizzle-kit push for development use and also lists bun drizzle-kit studio. These commands are reproduced from the document; their compatibility with a particular dependency version is not established.

Before using the schema example, import sql from drizzle-orm for its unixepoch() default expression. The skill does not explain how to install or register itself in an assistant host.

example

A concrete use case is a small application with users and posts. The supplied schema gives each user a name and unique email, and each post a title and authorId referencing a user. Its insert example supplies Alice's name and email and requests the inserted record through returning().

The projection db.select({ name: users.name, email: users.email }).from(users) uses fields present in that schema. By contrast, the later age and status filters require schema additions. This illustrates how to choose a consistent subset of the examples; it does not establish an execution result.

Assessment & evidence

limitations

The initial schema uses sql without importing it. Later snippets refer to users.status, users.age and users.updatedAt, although those columns are absent from that schema. A raw update also assumes a last_login column, and the nested relation example assumes comments without defining that relation.

The rollback example inserts a user without the schema's required email and includes an unfinished object spread. The raw-SQL projection declares a local variable named users while referring to users in its own initializer, creating a naming conflict. These examples need correction or additional context.

The document uses async transaction callbacks, but compatibility with the intended Bun SQLite adapter version is not established. Foreign-key enforcement, rollback behavior, migration safety and performance are also unverified.

The skill points to references/migrations.md and references/performance.md. Neither file appears in the supplied selected-folder manifest, so their promised migration, seeding and optimization guidance is unavailable.

reasoning

The resource's practical value comes from showing how schema declarations, a Bun SQLite connection and migration configuration fit together. Its users-and-posts examples give readers a recognizable starting point for adapting database code.

Confidence is limited by inconsistencies visible within the document itself: its later examples assume fields and relations beyond the opening schema. The supported recommendation is to use it as an adaptable reference, with dependency-specific verification before adopting migration or transaction code.

alternatives

The setup also identifies Bun's lower-level Database API from bun:sqlite. Using that API directly is a possible alternative for a project that prefers writing SQL without Drizzle, although the document does not provide an equivalent direct-SQL application or migration workflow.

Within Drizzle, the skill illustrates both query-builder operations and raw SQL expressions. It supplies no comparison with competing ORMs, skills or database services, so comparative performance, completeness and cost are unknown.

evidence

The supplied material consists of the complete SKILL.md text and the repository's MIT LICENSE at revision 88378361314f558fb719aec0af9fd898ab36f0b2. The skill's SHA-256 is 6e0327578b2083a7bd7eda19eed0ee50b616cc2fea81246aa45fee594a2e99f2.

The unchanged skill source is available at [https://raw.githubusercontent.com/secondsky/claude-skills/88378361314f558fb719aec0af9fd898ab36f0b2/plugins/bun/skills/bun-drizzle-integration/SKILL.md]. The material establishes what the document contains, but supplies no execution logs, dependency lockfile, benchmark results or complete application demonstrating the examples.

Access & freshness

costs

The MIT licence permits use, modification and redistribution without specifying a licence fee. The supplied material gives no prices for an assistant service, hosting, deployment or ongoing operation.

Total cost is unknown. There are no usage measurements or benchmarks from which to estimate resource consumption or operating expense.

rights

The skill metadata declares MIT, and the supplied repository licence grants permission to use, copy, modify, merge, publish, distribute, sublicense and sell the software and associated documentation. Copies or substantial portions must retain the copyright and permission notices.

The notice names Claude Skills Maintainers with a 2025 copyright and disclaims warranties and liability. It supports redistribution of the captured skill with its notice; licences for separate dependencies are not supplied.

The licence text is available at [https://raw.githubusercontent.com/secondsky/claude-skills/88378361314f558fb719aec0af9fd898ab36f0b2/LICENSE].

freshness

The supplied snapshot was captured on 17 November 2026 at 13:09:10.379 UTC and identifies the skill as version 1.0.0. The capture timestamp does not establish when the skill was last maintained.

No dependency versions or compatibility matrix are given. Whether this revision matches current Bun, Drizzle ORM and Drizzle Kit behavior is unknown, as are changes after the pinned source revision.

actions

For adoption, start with the users-and-posts schema and connection setup. Add the missing sql import, reconcile every referenced column and relation, rename the conflicting users result variable, and replace unfinished examples with application-specific definitions.

Confirm the installed dependencies' migration commands, transaction callback requirements and foreign-key behavior. Validate schema changes and rollback behavior against a disposable database before applying them to valuable data. Obtain the missing reference material separately if advanced migration or performance guidance is needed.

Retain the MIT notice when redistributing the skill or substantial portions of it. Installation, runtime behavior and performance remain unassessed.

Evidence for this report

LICENSEnotice · checked 2026-11-17