drizzle-migrations

drizzle-migrations is a skill for Claude Code from parisgroup-ai/imersao-ia-setup. It costs 70 tokens per session (2,620 once invoked), scanned A, original, MIT.

A workflow for managing database schema changes with Drizzle ORM in the ToStudy monorepo—a repository containing multiple related packages. It covers creating, reviewing, applying, troubleshooting, and recovering database migrations, which are recorded steps that change a database structure.

In plain words
What is it for?
Use it to generate and apply migrations, add or alter tables and columns, validate migration state, use Drizzle Studio, troubleshoot desynchronization or duplicate objects, and recover failed production deployments.
Why use it?
It helps keep SQL files, migration records, and the database in sync when tables or columns change. It also provides paths for diagnosing migration errors and handling deployment problems on Railway.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions AGENTS.md.

Part of the imersao plugin — 51 skills, 7 commands shipped together

Good fit Use it to generate and apply migrations, add or alter tables and columns, validate migration state, use Drizzle Studio, troubleshoot desynchronization or duplicate objects, and recover failed production deployments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/parisgroup-ai/imersao-ia-setup/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 parisgroup-ai/imersao-ia-setup --skill drizzle-migrations
Clone the repo
git clone --depth 1 https://github.com/parisgroup-ai/imersao-ia-setup

Made for: Claude Code.

Or install imersao, the plugin that ships this one along with the rest of its 51 skills, 7 commands.

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/parisgroup-ai/imersao-ia-setup/drizzle-migrations/github.svg)](https://agentmods.dev/skills/parisgroup-ai/imersao-ia-setup/drizzle-migrations)
Your own site
<a href="https://agentmods.dev/skills/parisgroup-ai/imersao-ia-setup/drizzle-migrations"><img src="https://agentmods.dev/badge/skills/parisgroup-ai/imersao-ia-setup/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/parisgroup-ai/imersao-ia-setup/drizzle-migrations"><img src="https://agentmods.dev/badge/skills/parisgroup-ai/imersao-ia-setup/drizzle-migrations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,620 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.
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.00070 $0.02620
Opus 5 $0.00035 $0.01310
Sonnet 5 $0.00014 $0.00524
Haiku 4.5 $0.00007 $0.00262

Measured 12d ago against content hash 98b10578dd82, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 12d 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.

plugins/imersao/skills/drizzle-migrations/SKILL.md · 313 lines

How it starts

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

Drizzle Migrations

Overview

Complete migration lifecycle for the ToStudy monorepo: schema change, generation, review, apply, troubleshoot, and production recovery. Migrations live in packages/database/migrations/ and are tracked by a three-part system (SQL files + journal + DB table).

When to Use

digraph {
  "What do you need?" [shape=diamond];
  "Schema change?" [shape=diamond];
  "Migration error?" [shape=diamond];
  "Production issue?" [shape=diamond];

  "What do you need?" -> "Schema change?" [label="add/alter table"];
  "What do you need?" -> "Migration error?" [label="error on migrate"];
  "What do you need?" -> "Production issue?" [label="Railway deploy fail"];

  "Schema change?" -> "Schema → Generate → Review → Apply" [label="yes"];
  "Migration error?" -> "Diagnose Desync" [label="yes"];
  "Production issue?" -> "Production Recovery" [label="yes"];
}

Quick Reference

Action Command
Generate migration pnpm db:generate
Apply migrations pnpm db:migrate
Push schema (dev only) pnpm db:push
Open Drizzle Studio pnpm db:studio
Validate state pnpm db:validate
Regenerate sync SQL pnpm db:sync-hashes
Run seed pnpm db:seed
Extended seed pnpm db:seed:extended
Dev seed pnpm db:seed:dev

Migration Workflow

Step 1: Edit Schema

All schema files in packages/database/src/schema/. Edit the relevant file or create a new one.

New table checklist:

  • UUID primary key with defaultRandom()
  • createdAt / updatedAt timestamps with timezone
  • Foreign keys with explicit onDelete behavior
  • Indexes on FK columns and frequent WHERE/ORDER BY columns
  • Export table + relations + inferred types from schema/index.ts

Step 2: Generate Migration

pnpm db:generate

This creates a new SQL file in packages/database/migrations/ and updates migrations/meta/_journal.json.

CRITICAL: Rename the file if Drizzle generated a random name (e.g., 0201_jittery_shadowcat.sql):

Read the full file on GitHub · 313 lines

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. 12d ago First seen · 313 lines · 70 tokens per session scan A 98b10578dd82

Subscribe to this mod's changes

drizzle-migrations is a skill published in the GitHub repository parisgroup-ai/imersao-ia-setup (1 stars, last pushed 29d ago), licensed MIT. It adds 70 tokens to every session and 2,620 once invoked, about $0.0003 per session on Opus 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-31.

Related

Other skills, from other repositories

ddia-systems

Design data systems by understanding storage engines, replication, partitioning, transactions, and consistency models. Use when the user mentions "database choice", "which database should I use", "SQL or NoSQL", "replication lag", "partitioning strategy", "consistency vs availability", "stream processing", "ACID…

wondelai/skills · 138 tokens

top-design

Create award-winning, immersive web experiences at the level of Awwwards-featured agencies. Use when the user mentions "Awwwards quality", "make my site stunning", "scroll animations", "parallax storytelling", "cinematic web design", "portfolio site", or "brand experience". Also trigger when elevating a standard…

wondelai/skills · 113 tokens

design-everyday-things

Apply foundational design principles: affordances, signifiers, constraints, feedback, and conceptual models. Use when the user mentions "why is this confusing", "affordance", "error prevention", "discoverability", "human-centered design", "mental model", "mapping", "seven stages of action", "users keep making…

wondelai/skills · 132 tokens

similarity-search-patterns

Implement efficient similarity search with vector databases. Use when building semantic search, implementing nearest neighbor queries, or optimizing retrieval performance.

foryourhealth111-pixel/Vibe-Skills · 30 tokens

traction-eos

Implement the Entrepreneurial Operating System (EOS) to align vision and execution across a company. Use when the user mentions "EOS", "Entrepreneurial Operating System", "V/TO", "quarterly rocks", "Level 10 meetings", "accountability chart", "IDS process", "my company feels chaotic", "we keep having the same…

wondelai/skills · 147 tokens

create-app

Guided journey from a raw app idea to a validated, cleanly architected first version that ships on a sustainable cadence. Orchestrates ten skills phase by phase - lean-startup, design-sprint, clean-architecture, domain-driven-design, clean-code, pragmatic-programmer, system-design, ios-hig-design, 37signals-way…

wondelai/skills · 217 tokens