Agent skill

DB Migrations

by kurealnum in kurealnum/dotfiles

A skill your agent uses when generating or regenerating Drizzle migration files, changing database schema tables or columns, resolving migration sequence conflicts after rebase, reviewing migration…

No licenceAuto-check passedDatabases

Install DB Migrations

skills CLI
$ npx skills add kurealnum/dotfiles --skill db-migrations -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install kurealnum/dotfiles db-migrations --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/kurealnum/dotfiles.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/db-migrations .claude/skills/db-migrations && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
db-migrations
GitHub stars
290
Token cost
~820 tokens
SKILL.md length
165 words
Files
1
Skills in repo
13
Repo updated
First seen
Licence
None found

At a glance

A skill your agent uses when generating or regenerating Drizzle migration files, changing database schema tables or columns, resolving migration sequence conflicts after rebase, reviewing migration…

  • Works in 4 steps: Generate Migrations → Optimize Migration SQL Filename → Use Idempotent Clauses (Defensive… → …
  • Regenerating Drizzle migration files
  • SKILL.md covers Step 1: Generate Migrations, Custom Migrations (e.g. CREATE…, Step 2: Optimize Migration SQL… and Step 3: Use Idempotent Clauses…, plus 1 more section
  • Calls bun and bunx

What it does

DB Migrations is an agent skill from kurealnum/dotfiles. Use when generating or regenerating Drizzle migration files, changing database schema tables or columns, resolving migration sequence conflicts after rebase, reviewing migration SQL for idempotent patterns, or renaming migration files.

Its SKILL.md is about 820 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Databases, covering Database migrations, SQL and Database schema design. It works with SQL.

When your agent uses it

  • Regenerating Drizzle migration files
  • Changing database schema tables
  • Resolving migration sequence conflicts after rebase
  • Reviewing migration SQL for idempotent patterns

Example prompts

  • “/db-migrations”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Generate Migrations
  2. Optimize Migration SQL Filename
  3. Use Idempotent Clauses (Defensive Programming)
  4. Update Journal Tag

What it can do on your machine

Read from SKILL.md and the folder at commit bcd8741. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bun
    • bunx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use bunx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

DB Migrations loads about 820 tokens when it runs. Until then it costs about 62 tokens; SKILL.md has 165 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~62
When it runs · the whole SKILL.md, loaded when a task matches
~820

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 165 words (~820 tokens).

name
db-migrations

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/db-migrations of kurealnum/dotfiles.

Open the folder on GitHubat commit bcd8741

Compare with similar skills

DB Migrations next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

DB Migrations compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
DB Migrations this skillkurealnum/dotfiles290—~820Automated safety check: PassNone
Migrationkortix-ai/suna20k—~1.2kAutomated safety check: PassCustom licence
Optimizing Ef Core Queriesdotnet/skills5.6k1 repos~2.7kAutomated safety check: PassMIT
Cursor BYOK Database Schemaleookun/cursor-byok3.2k—~1.3kAutomated safety check: PassMIT
Database FundamentalsDanielPodolsky/ownyourcode2901 repos~1.6kAutomated safety check: PassMIT
Archestra Dev Migrationsarchestra-ai/archestra4.4k—~804Automated safety check: PassCustom licence

Similar skills

  • Migration

    kortix-ai/suna

    How to change the database schema in this repo. An agent skill from kortix-ai/suna.

    20k GitHub stars~1.2k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Official

    Optimize and improve the performance of slow Entity Framework Core (EF Core) queries: make them generate less SQL, make fewer database round-trips, and return results faster.

    5.6k GitHub starsUsed in 1 repo~2.7k tokens
    DatabasesAuto-check passed
  • Cursor BYOK Database Schema

    leookun/cursor-byok

    Guides SQLite schema changes in the Cursor BYOK server, keeping SQLx migrations, the Rust store, API contracts and fixtures aligned.

    3.2k GitHub stars~1.3k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Database Fundamentals

    DanielPodolsky/ownyourcode

    Reviews schema design, SQL queries, ORM patterns. An agent skill from DanielPodolsky/ownyourcode.

    290 GitHub starsUsed in 1 repo~1.6k tokens
    DatabasesAuto-check passed
  • Archestra Dev Migrations

    archestra-ai/archestra

    A skill your agent uses when changing Drizzle schemas, generating migrations, editing migration SQL, creating data-only migrations, diagnosing drizzle-kit check failures, or resolving…

    4.4k GitHub stars~804 tokensUpdated yesterday
    DatabasesAuto-check passed
  • DB Context

    SilvioBaratto/optimizer

    Complete knowledge of the optimizer PostgreSQL database: 57 ingestion tables, schema, relationships, live row counts, query patterns, and conventions.

    176 GitHub stars~6.4k tokensUpdated yesterday
    DatabasesAuto-check: notes

More from kurealnum/dotfiles

All 13 skills in this repo
  • Continuous Learning V2

    kurealnum/dotfiles

    Instinct-based learning system that observes sessions via hooks, creates atomic instincts with confidence scoring, and evolves them into skills/commands/agents.

    290 GitHub starsUsed in 4 repos~3.1k tokens
    Auto-check passed
  • Frontend Patterns

    kurealnum/dotfiles

    Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.

    290 GitHub starsUsed in 19 repos~3.7k tokens
    Auto-check passed
  • Coding Standards

    kurealnum/dotfiles

    Universal coding standards, best practices, and patterns for TypeScript, JavaScript, React, and Node.js development.

    290 GitHub starsUsed in 17 repos~2.9k tokens
    Auto-check passed
  • Python Patterns

    kurealnum/dotfiles

    Pythonic idioms, PEP 8 standards, type hints, and best practices for building robust, efficient, and maintainable Python applications.

    290 GitHub starsUsed in 8 repos~4.1k tokens
    Auto-check passed
  • Twitter Algorithm Optimizer

    kurealnum/dotfiles

    Analyze and optimize tweets for maximum reach using Twitter's open-source algorithm insights.

    290 GitHub starsUsed in 8 repos~3.2k tokens
    Auto-check passed
  • Drizzle

    kurealnum/dotfiles

    Drizzle ORM schema and database guide. An agent skill from kurealnum/dotfiles.

    290 GitHub stars~1.3k tokensUpdated 5 mo ago
    Auto-check passed

Works with

Categories

Questions about DB Migrations

What does DB Migrations do?

A skill your agent uses when generating or regenerating Drizzle migration files, changing database schema tables or columns, resolving migration sequence conflicts after rebase, reviewing migration…. DB Migrations is an agent skill from kurealnum/dotfiles. Use when generating or regenerating Drizzle migration files, changing database schema tables or columns, resolving migration sequence conflicts after rebase, reviewing migration SQL for idempotent patterns, or renaming migration files.

When should I use DB Migrations?

DB Migrations fits situations like: regenerating Drizzle migration files; changing database schema tables; resolving migration sequence conflicts after rebase; reviewing migration SQL for idempotent patterns.

How do I install DB Migrations in Claude Code?

Run `npx skills add kurealnum/dotfiles --skill db-migrations -a claude-code`. Or copy the skill folder (.agents/skills/db-migrations in kurealnum/dotfiles) into .claude/skills/db-migrations in your project. Claude Code loads it when a task matches its description.

How do I install DB Migrations in Codex?

Run `npx skills add kurealnum/dotfiles --skill db-migrations -a codex`. Or copy the skill folder (.agents/skills/db-migrations in kurealnum/dotfiles) into .agents/skills/db-migrations in your project. Codex loads it when a task matches its description.

Can I use DB Migrations in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add kurealnum/dotfiles --skill db-migrations -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/db-migrations, .gemini/skills/db-migrations, .github/skills/db-migrations and .opencode/skills/db-migrations in your project.

What does DB Migrations need to run?

Going by SKILL.md and its folder, DB Migrations needs the command-line tools its instructions call (bun and bunx).

Does DB Migrations access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is DB Migrations safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does DB Migrations use?

No licence was found for DB Migrations or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does DB Migrations use?

About 820 tokens (SKILL.md is roughly 3.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to DB Migrations?

Skills that share tags, products or a category with DB Migrations: Migration (kortix-ai/suna, 20k stars), Optimizing Ef Core Queries (dotnet/skills, 5.6k stars), Cursor BYOK Database Schema (leookun/cursor-byok, 3.2k stars) and Database Fundamentals (DanielPodolsky/ownyourcode, 290 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains DB Migrations?

kurealnum (a GitHub user) maintains it in kurealnum/dotfiles, which has 290 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on April 13, 2026.

Source: kurealnum/dotfiles on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.