database-migration

database-migration is a skill for Claude Code, Codex from lfyxhappy/lfcode. It costs 56 tokens per session (349 once invoked), scanned A, original, MIT.

A guided process for changing a database’s structure or stored data safely. It covers schema changes, data backfills, index changes, and migration checks.

In plain words
What is it for?
Use it to design, review, or execute migrations, backfills, index changes, and schema updates. It also helps verify data, application behavior, and migration status afterward.
Why use it?
Database changes can lock tables, break old and new application versions, or make recovery difficult. This process helps plan compatibility, testing, rollback, and authorization before affecting real data.

Skill for Claude CodeCodex

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

Good fit Use it to design, review, or execute migrations, backfills, index changes, and schema updates. It also helps verify data, application behavior, and migration status afterward.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/lfyxhappy/lfcode/database-migration"><img src="https://agentmods.dev/badge/skills/lfyxhappy/lfcode/database-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 349 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.00056 $0.00349
Opus 5 $0.00028 $0.00175
Sonnet 5 $0.00011 $0.00070
Haiku 4.5 $0.00006 $0.00035

Measured 3d ago against content hash 32503f66f0d0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

database-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 3d 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.

packages/lfcode/src/skill/lfcode/.bundle/database-migration/SKILL.md · 28 lines

What it actually says

Database Migration

Treat schema and data changes as a rollout with compatibility and recovery requirements.

Workflow

  1. Identify the database, schema source, migration runner, environment, current version, affected tables, indexes, constraints, and data volume.
  2. Check repository instructions and worktree changes. Read neighboring migrations and the code paths that read and write the affected fields.
  3. Design an additive or otherwise compatible sequence where possible. Consider nullability, defaults, backfills, locking, transaction size, retries, idempotency, and concurrent old/new binaries.
  4. Define preflight checks, backup or restore evidence, failure detection, rollback or roll-forward recovery, and ownership before execution.
  5. Implement only the requested migration and required code compatibility changes. Use a dry run, disposable database, or staging target before a real target when available.
  6. Verify schema metadata, representative data invariants, application reads and writes, migration status, and performance after the change.

Boundaries

  • Do not drop data, rewrite large tables, or run against production from an ambiguous request.
  • Do not put credentials or complete data dumps in migrations, logs, tests, or the final report.
  • Treat a migration file being accepted by the runner as insufficient proof that data and old clients remain safe.

Completion check

Report the preflight, rollout order, recovery path, verification evidence, and any environment or backup check that remains outstanding.

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. 3d ago First seen · 28 lines · 56 tokens per session scan A 32503f66f0d0

Subscribe to this mod's changes

database-migration is a skill published in the GitHub repository lfyxhappy/lfcode (2 stars, last pushed 6d ago), licensed MIT. It adds 56 tokens to every session and 349 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-09-05.

Related

Other skills, from other repositories

gonavi-cli

Operate databases through the GoNavi headless CLI — the gonavi executable shipped in verified GitHub Release archives. Covers listing/adding/importing saved connections, running SQL queries against saved connections or ad-hoc connection files, exporting result sets to csv/json/md/html/xlsx, batch-executing SQL files…

Syngnat/GoNavi · 144 tokens

feishu-bitable

A skill for managing Feishu Bitable, a database-like spreadsheet for organising structured records. It supports tables, fields, views, filters, and bulk changes.

op7418/CodePilot · 159 tokens

supabase

Complete guide for the Supabase plugin — Management API access for running SQL queries, listing projects, managing edge functions, secrets, migrations, and inspecting project health.

mereyabdenbekuly-ctrl/clodex-ide · 35 tokens

backend-architect

Becomes a senior backend architect who designs scalable, resilient server-side systems with clear API contracts, sound data models, and documented trade-offs. Use when the user needs system design, database architecture, API contract definition, caching strategy, or backend technology selection. Do NOT use when…

FerroxLabs/wayland · 80 tokens

mysql

Query the connected MySQL/MariaDB database with the mysql client. Use when the user asks about their database, tables, rows, schema, or to run SQL against MySQL.

intentic/intentic · 39 tokens

postgres

Query the connected PostgreSQL database with psql. Use when the user asks about their database, tables, rows, schema, or to run SQL against Postgres.

intentic/intentic · 35 tokens