new-migration

new-migration is a skill for Claude Code from RaNDoM6913/claude-code-superkit. It costs 20 tokens per session (940 once invoked), scanned A, original, MIT.

A helper that creates the two files needed for a database migration: one to apply a database change and one to undo it. It detects common migration tools and follows their numbering and naming conventions.

In plain words
What is it for?
Use it when adding tables, columns, indexes, or other database changes in projects using tools such as Rails, Alembic, Prisma, Drizzle, Knex, or golang-migrate.
Why use it?
It removes the manual work of finding the right migration folder, next sequence number, and file format. The paired undo file makes changes easier to reverse.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions AGENTS.md.

Good fit Use it when adding tables, columns, indexes, or other database changes in projects using tools such as Rails, Alembic, Prisma, Drizzle, Knex, or golang-migrate.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/random6913/claude-code-superkit/new-migration
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 RaNDoM6913/claude-code-superkit --skill new-migration
Clone the repo
git clone --depth 1 https://github.com/RaNDoM6913/claude-code-superkit

Made for: Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/random6913/claude-code-superkit/new-migration"><img src="https://agentmods.dev/badge/skills/random6913/claude-code-superkit/new-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 940 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.00020 $0.00940
Opus 5.5 $0.00008 $0.00376
Sonnet 5.5 $0.00004 $0.00188
Haiku 4.5 $0.00002 $0.00094

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

Security

Grade A, and why

new-migration 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 yesterday.

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.

packages/codex/skills/new-migration/SKILL.md · 60 lines

How it starts

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

New Migration

Create migration files following the project's actual conventions. Scaffolding authorizes file creation within the requested scope; it does not authorize applying migrations, resetting a database, starting services, or installing tools.

Context from User

Parse the user's request for the description and SQL/schema requirements. Read applicable AGENTS.md instructions and discover available file/command tools. Resolve the intended component and migration directory before writing. Preserve existing migrations and unrelated schema edits.

Step 1 — Detect Migration System

Inspect configured dependencies, scripts, migration configuration and representative existing migrations. Directory names are hints, not sufficient proof of the tool or format:

Evidence Tool Typical format
Configured migrate command and .up.sql / .down.sql pairs golang-migrate Sequential or timestamped file pair
dbmate configuration and -- migrate:up / -- migrate:down sections dbmate One timestamped SQL file with both sections
db/migrate/*.rb and Rails configuration Rails Timestamped Ruby migration
alembic.ini and revision scripts Alembic Python revision linked to down_revision
Prisma dependency/schema and migration history Prisma Tool-generated migration directory and metadata
Drizzle config and migration journal Drizzle Tool-generated SQL plus journal/snapshot metadata

Confirm the database dialect and installed tool version. Use local installed binaries or existing package-manager scripts; do not let a launcher download a missing tool. If multiple migration systems exist, select the one owning the requested schema or clarify.

Step 2 — Choose the Identifier

For a sequential SQL-pair convention, parse existing identifiers numerically, retain padding, and select the next unused number. For timestamps use the project's format and check collisions. For revision graphs or metadata-managed tools, use the verified generator and its supported ordering; do not impose a numeric sequence or invent a revision parent. Check branch heads where relevant. Never overwrite an existing identifier/file.

Read the full file on GitHub · 60 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. yesterday Changed · -43 lines · -6 tokens per session c4aba01defc8
  2. 1mo ago First seen · 103 lines · 26 tokens per session scan A 495d389f91f4

Subscribe to this mod's changes

new-migration is a skill published in the GitHub repository RaNDoM6913/claude-code-superkit (3 stars, last pushed yesterday), licensed MIT. It adds 20 tokens to every session and 940 once invoked, about $0.0001 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

Other skills, from other repositories

migration-preview

Use when reviewing or writing a database migration, schema change, or data backfill — anything that alters durable data shape.

pmikutel/directed-memory-bank · 26 tokens

Supabase Expert

Database and backend knowledge for business operators — table design, auth setup, row-level security, storage, and edge functions explained in plain English. Not a developer guide — domain expertise for building your backend on Supabase.

yuchenbigpen1/normies · 47 tokens

cqrs-implementation

Implement Command Query Responsibility Segregation for scalable architectures. Use when separating read and write models, optimizing query performance, or building event-sourced systems.

wshobson/agents · 35 tokens

nav-skill-creator

Analyze codebase patterns and create custom skills for repetitive workflows. Use when project needs automation or pattern enforcement. Auto-invoke when user says "create a skill for...", "automate this workflow", or "we keep doing X manually".

qf-studio/navigator · 53 tokens

neo4j-aura-agent-skill

Manages Neo4j Aura Agents via the v2beta1 REST API — create, list, get, update, delete, and invoke Aura agents backed by an AuraDB instance. Use when configuring Aura Agent tools (CypherTemplate, SimilaritySearch, Text2Cypher), setting system prompts, deploying agents to REST or MCP endpoints, invoking agents with…

neo4j-contrib/neo4j-skills · 158 tokens

software-database-design

Designs database schemas, migrations, and data models for PostgreSQL, MySQL, MongoDB, and Redis. Use when planning tables, relationships, indexes, or ORM-backed schema changes.

vasilyu1983/AI-Agents-public · 43 tokens