Drizzle
Skill a5c-ai/babysitter/library/specializations/web-development/skills/drizzle
Babysitter enforces obedience on agentic workforces and enables them to manage extremely complex tasks and workflows through deterministic, hallucination-free self-orchestration
npx -y skills add a5c-ai/babysitter --skill drizzleAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its author says it does
Copied from the file, not written here
Drizzle ORM patterns, migrations, type-safe queries, and database schema design.
SKILL.md
1.8 KB, as published. Nobody here has run it
Drizzle Skill
Expert assistance for database operations with Drizzle ORM.
Capabilities
- Define type-safe database schemas
- Write performant SQL queries
- Handle migrations
- Implement relations
- Configure multiple database dialects
Schema Definition
import { pgTable, text, timestamp, uuid, varchar } from 'drizzle-orm/pg-core';
import { relations } from 'drizzle-orm';
export const users = pgTable('users', {
id: uuid('id').primaryKey().defaultRandom(),
name: varchar('name', { length: 255 }).notNull(),
email: varchar('email', { length: 255 }).notNull().unique(),
createdAt: timestamp('created_at').defaultNow().notNull(),
});
export const posts = pgTable('posts', {
id: uuid('id').primaryKey().defaultRandom(),
title: varchar('title', { length: 255 }).notNull(),
content: text('content'),
authorId: uuid('author_id').references(() => users.id),
});
export const usersRelations = relations(users, ({ many }) => ({
posts: many(posts),
}));
Queries
// Select with relations
const result = await db.query.users.findMany({
with: { posts: true },
where: eq(users.name, 'John'),
});
// Insert
await db.insert(users).values({ name: 'John', email: '[email protected]' });
// Update
await db.update(users).set({ name: 'Jane' }).where(eq(users.id, id));
Target Processes
- database-setup
- backend-development
- nextjs-full-stack