drizzle-migrations

drizzle-migrations is a skill for Claude Code from curiositech/some_claude_skills. It costs 48 tokens per session (2,649 once invoked), scanned A, original, MIT.

A guide for changing a SQLite database schema with Drizzle ORM, a TypeScript tool that maps application code to database tables and queries. It covers tables, columns, indexes, configuration, migrations, and Drizzle-specific queries.

In plain words
What is it for?
Use it to add or change tables and columns, create indexes, generate or run migrations, configure Drizzle, inspect the database with Drizzle Studio, and write Drizzle queries.
Why use it?
It helps keep database structure changes organized and reproducible instead of editing the database by hand. It also distinguishes Drizzle and SQLite work from other tools such as Prisma, TypeORM, Sequelize, and PostgreSQL services.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the drizzle-migrations plugin — 1 skill shipped together

Good fit Use it to add or change tables and columns, create indexes, generate or run migrations, configure Drizzle, inspect the database with Drizzle Studio, and write Drizzle queries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/curiositech/some_claude_skills/drizzle-migrations
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add curiositech/some_claude_skills --skill drizzle-migrations
Clone the repo
git clone --depth 1 https://github.com/curiositech/some_claude_skills

Made for: Claude Code.

Or install drizzle-migrations, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for drizzle-migrations

README.md
[![agentmods](https://agentmods.dev/badge/skills/curiositech/some_claude_skills/drizzle-migrations/github.svg)](https://agentmods.dev/skills/curiositech/some_claude_skills/drizzle-migrations)
Your own site
<a href="https://agentmods.dev/skills/curiositech/some_claude_skills/drizzle-migrations"><img src="https://agentmods.dev/badge/skills/curiositech/some_claude_skills/drizzle-migrations/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for drizzle-migrations

Your own site · 80×15
<a href="https://agentmods.dev/skills/curiositech/some_claude_skills/drizzle-migrations"><img src="https://agentmods.dev/badge/skills/curiositech/some_claude_skills/drizzle-migrations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,649 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.02649
Opus 5.5 $0.00019 $0.01060
Sonnet 5.5 $0.00010 $0.00530
Haiku 4.5 $0.00005 $0.00265

Measured 3mo ago against content hash e4a1d882cc62, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

drizzle-migrations scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/drizzle-migrations/SKILL.md · 424 lines

How it starts

The opening of the file, as written. The whole thing — 424 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Drizzle ORM Migrations

This skill helps you manage database schema changes using Drizzle ORM with SQLite.

When to Use

✅ USE this skill for:

  • Adding new tables or modifying existing columns
  • Generating and running database migrations
  • Drizzle-specific query patterns and relations
  • SQLite schema best practices with Drizzle
  • Setting up Drizzle configuration

❌ DO NOT use for:

  • Supabase/PostgreSQL → use supabase-admin skill
  • Raw SQL without Drizzle → use standard SQL resources
  • Prisma ORM → different syntax and patterns
  • General database design theory → use database architecture resources

Project Setup

Configuration: drizzle.config.ts

import { defineConfig } from 'drizzle-kit';

export default defineConfig({
  schema: './src/db/schema.ts',
  out: './drizzle',
  dialect: 'sqlite',
  dbCredentials: {
    url: './data/app.db',
  },
});

Commands:

npm run db:generate  # Generate migration files
npm run db:push      # Push schema directly (dev only)
npm run db:studio    # Open Drizzle Studio GUI

Schema Definition

Location: src/db/schema.ts

Table Definition

import { sqliteTable, text, integer, real, blob } from 'drizzle-orm/sqlite-core';
import { relations } from 'drizzle-orm';

// Basic table
export const users = sqliteTable('users', {
  id: text('id').primaryKey(),
  email: text('email').notNull().unique(),
  username: text('username').notNull(),
  passwordHash: text('password_hash'),
  createdAt: text('created_at').notNull().default(sql`CURRENT_TIMESTAMP`),
  updatedAt: text('updated_at'),
});

// Table with foreign key
export const checkIns = sqliteTable('check_ins', {
  id: text('id').primaryKey(),
  userId: text('user_id').notNull().references(() => users.id, {
    onDelete: 'cascade',
  }),
  mood: integer('mood').notNull(),
  cravingLevel: integer('craving_level').notNull(),
  sleepHours: real('sleep_hours'),
  notes: text('notes'),
  createdAt: text('created_at').notNull().default(sql`CURRENT_TIMESTAMP`),
});

// Table with composite index
export const auditLog = sqliteTable('audit_log', {
  id: text('id').primaryKey(),
  userId: text('user_id').notNull(),
  action: text('action').notNull(),
  targetType: text('target_type'),
  targetId: text('target_id'),
  details: text('details'),  // JSON string
  createdAt: text('created_at').notNull().default(sql`CURRENT_TIMESTAMP`),
}, (table) => ({
  userActionIdx: index('idx_audit_user_action').on(table.userId, table.action),
  createdAtIdx: index('idx_audit_created').on(table.createdAt),
}));

Read the full file on GitHub · 424 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 424 lines · 48 tokens per session scan A e4a1d882cc62

Subscribe to this mod's changes

drizzle-migrations is a skill published in the GitHub repository curiositech/some_claude_skills (278 stars, last pushed 2d ago), licensed MIT. It adds 48 tokens to every session and 2,649 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

drizzle-migrations compared with skills from other repositories

drizzle-migrations next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
drizzle-migrationscuriositech/some_claude_skillsSkill2782d agoMITA48Claude Code
psl-ast-layersprisma/ormSkill48ktodayApache-2.0A78Claude Code, Codex
ast-visitor-patternprisma/ormSkill48ktodayApache-2.0A65Claude Code, Codex
no-bare-castsprisma/ormSkill48ktodayApache-2.0A52Claude Code, Codex
bumping-biomeprisma/ormSkill48ktodayApache-2.0A96Claude Code, Codex
qdrant-clients-sdktruera/trulensSkill3.7k3d agoMITA28Claude Code
drizzle-ormericrisco/rsc-harnessSkill6825d agoMITA96Claude Code, Codex