migration-create

migration-create is a skill for Claude Code, Codex from vindm/dotclaude. It costs 78 tokens per session (1,146 once invoked), scanned A, original, MIT.

A workflow for creating safe database schema migrations, which are controlled changes to the structure of stored data. It separates changes, checks their risk, asks for confirmation before destructive operations, applies access policies, regenerates derived files, and runs a smoke test.

In plain words
What is it for?
Use it when adding, changing, or removing database tables, columns, access policies, or other schema objects. It first discovers the project's database and migration tools instead of assuming them.
Why use it?
It reduces the chance of exposing a new table, drifting generated types, blocking a large table, or deleting or renaming data without explicit approval. It also keeps each change easier to review and roll back.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding, changing, or removing database tables, columns, access policies, or other schema objects. It first discovers the project's database and migration tools instead of assuming them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vindm/dotclaude/migration-create
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 vindm/dotclaude --skill migration-create
Clone the repo
git clone --depth 1 https://github.com/vindm/dotclaude

Made for: Claude Code, Codex.

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 migration-create

README.md
[![agentmods](https://agentmods.dev/badge/skills/vindm/dotclaude/migration-create/github.svg)](https://agentmods.dev/skills/vindm/dotclaude/migration-create)
Your own site
<a href="https://agentmods.dev/skills/vindm/dotclaude/migration-create"><img src="https://agentmods.dev/badge/skills/vindm/dotclaude/migration-create/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 migration-create

Your own site · 80×15
<a href="https://agentmods.dev/skills/vindm/dotclaude/migration-create"><img src="https://agentmods.dev/badge/skills/vindm/dotclaude/migration-create.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,146 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.00078 $0.01146
Opus 5.5 $0.00031 $0.00458
Sonnet 5.5 $0.00016 $0.00229
Haiku 4.5 $0.00008 $0.00115

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

Security

Grade A, and why

migration-create 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.

deferred/skills/migration-create/SKILL.md · 52 lines

How it starts

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

Migration create

Schema migrations fail in ways code review and tests don't catch: a new table ships wide open because its access policy was forgotten, generated types drift because nobody regenerated them, a destructive drop or rename goes in without anyone opting into the loss, or a blocking DDL statement takes a large table offline. Catch these before the migration applies, when the cost is one conversation rather than a rollback.

One migration is one atomic change. Don't bundle an additive column, a backfill, and a policy change into a single file; each is its own migration so each can be reasoned about and rolled back independently. Never edit a historical migration file — old migrations are frozen artifacts; corrections go through a new migration, never by retroactively rewriting an applied one.

Step 0 — Discover the project's migration mechanism

Do not assume the tool, the command, or the database. Find them at runtime before composing anything:

  • The migration mechanism. Look for a migrations directory, an ORM or migration CLI in the dependency manifest, or a database-tooling config. That tells you how migrations are authored and applied here.
  • The conventions. Read two or three existing migrations. Mirror exactly what's there: identifier casing, table singular-vs-plural, foreign-key and timestamp naming, the timestamp type, numeric-type choices, and whether constraints are inline or named separately. Convention drift compounds — one off-style migration nudges the next one further off.
  • The access-control mechanism. Row-level security policies, a permissions layer, application-level access control — each shapes the policy step differently.
  • The regeneration command. Whatever turns the live schema back into typed artifacts (generated types, query bindings, an ORM client). Find the actual command this project uses.
  • The cross-cutting concerns this project tracks. Telemetry on new write paths, audit logging, backup wiring, cache invalidation — read the project's own conventions so the closing reminders match reality.

Read the full file on GitHub · 52 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. 3mo ago First seen · 52 lines · 78 tokens per session scan A 49d4ada14559

Subscribe to this mod's changes

migration-create is a skill published in the GitHub repository vindm/dotclaude (1 stars, last pushed 2mo ago), licensed MIT. It adds 78 tokens to every session and 1,146 once invoked, about $0.0003 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-31.

Related

migration-create compared with skills from other repositories

migration-create next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
migration-createvindm/dotclaudeSkill12mo agoMITA78Claude Code, Codex
rag-qdrantdavila7/claude-code-templatesSkill35ktodayMITA45Claude Code, Codex
rag-pineconedavila7/claude-code-templatesSkill35ktodayMITA65Claude Code, Codex
moai-platform-database-cloudmodu-ai/moai-adkSkill1.3ktodayApache-2.0A51Claude Code
onboardwesammustafa/Claude-Code-Everything-You-Need-to-KnowSkill3.7k2d agononeA56Claude Code
code-revieweralirezarezvani/claude-code-tresorSkill79020d agoMITA54Claude Code
git-commit-helperalirezarezvani/claude-code-tresorSkill79020d agoMITA55Claude Code