flux-migrate

flux-migrate is a skill for Claude Code from tonone-ai/tonone. It costs 51 tokens per session (1,676 once invoked), scanned A, original, MIT.

A database migration builder that creates SQL for changing a database, SQL to undo the change, and an order for deploying it without stopping the application. It checks the project's database tools and current schema first.

In plain words
What is it for?
Use it to add or rename columns and tables, remove fields, preserve or transform existing data, and plan safe schema deployments.
Why use it?
It reduces the risk of losing data or breaking running code when adding, changing, or removing database structures. The rollback steps provide a defined way to reverse the change.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the TodoWrite tool; mentions Claude Code.

Part of the engineering-team plugin — 87 skills, 2 hooks shipped together

Good fit Use it to add or rename columns and tables, remove fields, preserve or transform existing data, and plan safe schema deployments.

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

Made for: Claude Code.

Or install engineering-team, the plugin that ships this one along with the rest of its 87 skills, 2 hooks.

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 flux-migrate

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tonone-ai/tonone/flux-migrate"><img src="https://agentmods.dev/badge/skills/tonone-ai/tonone/flux-migrate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,676 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.00051 $0.01676
Opus 5.5 $0.00020 $0.00670
Sonnet 5.5 $0.00010 $0.00335
Haiku 4.5 $0.00005 $0.00168

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

Security

Grade A, and why

flux-migrate 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 20d 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.

bundle/engineering-team/skills/flux-migrate/SKILL.md · 179 lines

How it starts

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

Build Zero-Downtime Migration

You are Flux — the data engineer on the Engineering Team. Produce a complete migration: executable SQL for the forward change, executable SQL for the rollback, and a clear deployment sequence. Not a list of things to consider — actual files.

Follow the output format defined in docs/output-kit.md — 40-line CLI max, box-drawing skeleton, unified severity indicators, compressed prose.

Steps

Step 0: Detect the Stack

Check for the project's migration tooling:

  • ORM configs: prisma/schema.prisma, alembic.ini, drizzle.config.ts, ormconfig.ts, knexfile.js
  • Migration directories: prisma/migrations/, alembic/versions/, migrations/, db/migrate/
  • Connection strings to confirm the database engine
  • Check the naming and numbering convention of existing migrations

If no tooling is detectable, default to raw SQL migration files.

Step 1: Understand the Change

Read the current schema. Establish:

  • What is being added, removed, or modified?
  • Does existing data need to be preserved or transformed?
  • What application code depends on the current schema? (Check models, queries, ORM definitions)
  • Can migrations run before the application deploys, or must they be coordinated?
  • Is this table empty, small, or carrying live production traffic? This determines the safety requirements.

Step 2: Classify the Operation

Determine whether this is a safe or risky operation:

Operation Risk Strategy
Add nullable column Safe Single migration
Add NOT NULL column with default Safe Single migration with DEFAULT
Add NOT NULL column without default Risky Expand/contract — 3 steps
Add index Risky (locks on naive CREATE INDEX) CREATE INDEX CONCURRENTLY
Drop column Risky Remove code references first, drop in separate deploy
Rename column Risky Expand/contract — add new, backfill, update code, drop old
Change column type Risky Expand/contract — add new column, backfill with cast, update code, drop old
Add NOT NULL constraint to existing column Risky ADD CONSTRAINT ... NOT VALID, then VALIDATE CONSTRAINT separately
Drop table Risky Remove all references first, drop in separate deploy
Large backfill Risky Batched update with row-rate limiting

Read the full file on GitHub · 179 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. 20d ago Changed · +2 lines e6b89b130404
  2. 2mo ago First seen · 177 lines · 51 tokens per session scan A 67d12334b603

Subscribe to this mod's changes

flux-migrate is a skill published in the GitHub repository tonone-ai/tonone (84 stars, last pushed 2d ago), licensed MIT. It adds 51 tokens to every session and 1,676 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-09-27.

Related

flux-migrate compared with skills from other repositories

flux-migrate next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
flux-migratetonone-ai/tononeSkill842d agoMITA51Claude Code
data-tier-cutoverlukasrepublic/agentic-foundrySkill023d agoMITA233Claude Code
cqrs-implementationwshobson/agentsSkill43k5d agoMITA35Claude Code
erd-diagramclosedloop-ai/claude-pluginsSkill1223d agoApache-2.0A131Claude Code
doctrine-fetch-modesdev-toolings/superpowers-symfonySkill23519d agoMITA31Claude Code
doctrine-eventsdev-toolings/superpowers-symfonySkill23519d agoMITA32Claude Code
data-lake-platformvasilyu1983/AI-Agents-publicSkill1011mo agoMITA41Claude Code, Codex