database-migration-skill

database-migration-skill is a skill for Claude Code, Codex from darellchua2/opencode-config-template. It costs 33 tokens per session (2,325 once invoked), scanned A, original, Apache-2.0.

A guide to changing database schemas over time with Prisma, Alembic, and Django migrations. A migration is a recorded change that updates a database structure in a repeatable way.

In plain words
What is it for?
Use it to create and test migrations, manage seed data, plan rollbacks, and prepare production-safe or zero-downtime changes.
Why use it?
It helps reduce risks such as failed deployments, lost data, difficult rollbacks, and downtime during schema changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions OpenCode.

Good fit Use it to create and test migrations, manage seed data, plan rollbacks, and prepare production-safe or zero-downtime changes.

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

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-skill

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/database-migration-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/database-migration-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,325 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 6 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 106
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 107
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 108
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 109
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 110
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 111
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00033 $0.02325
Opus 5.5 $0.00013 $0.00930
Sonnet 5.5 $0.00007 $0.00465
Haiku 4.5 $0.00003 $0.00232

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

Security

Grade A, and why

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

skills/database-migration-skill/SKILL.md · 356 lines

How it starts

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

What I do

I help you manage database schema changes safely and repeatably:

  1. Schema Evolution: Design schemas that change safely over time
  2. Prisma Migrations: TypeScript/Node.js migration workflow
  3. Alembic Migrations: Python/SQLAlchemy migration workflow
  4. Django Migrations: Django ORM migration workflow
  5. Rollback Strategies: Safe rollback planning and execution
  6. Zero-Downtime Migrations: Techniques for production-safe schema changes
  7. Seed Data: Manage test and development seed data
  8. Migration Testing: Verify migrations work correctly before production

When to use me

Use this skill when:

  • Creating or modifying database schema
  • Setting up a migration system for a new project
  • Writing reversible migrations
  • Planning zero-downtime production migrations
  • Managing seed data for development/testing
  • Debugging failed migrations
  • Setting up migration CI checks
  • Converting between migration tools
  • performance-optimization-skill: Handles runtime query profiling and optimization. This skill handles schema lifecycle. Index optimization can overlap — this skill handles index creation in migrations, performance skill handles query analysis.
  • python-backend-skill: FastAPI/Django/Flask project patterns that use these migration tools.
  • docker-containerization-skill: Database containers in compose configurations.

Step 1: Migration Principles

Rules for Safe Migrations

  1. Never modify an existing migration that has been applied
  2. Always make migrations reversible (with rare exceptions)
  3. Test migrations against production-like data before deploying
  4. Use separate migrations for additive and destructive changes
  5. Prefer additive changes — add new columns/tables before removing old ones

Migration Categories

Type Risk Reversibility Example
Additive (create table, add column) Low Easy Add phone column to users
Add constraint Medium Moderate Add NOT NULL, foreign key
Add index Low Easy Add index on users.email
Rename column/table Medium Hard Rename name to full_name
Remove column/table High Hard (data loss) Drop legacy_field
Change column type High Hard Change int to bigint
Data migration Medium Moderate Backfill new column from old data

Read the full file on GitHub · 356 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 · 356 lines · 33 tokens per session scan A 3085b7410ccb

Subscribe to this mod's changes

database-migration-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 33 tokens to every session and 2,325 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-09-03.

Related

database-migration-skill compared with skills from other repositories

database-migration-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
database-migration-skilldarellchua2/opencode-config-templateSkill62mo agoApache-2.0A33Claude Code, Codex
create-prprisma/ormSkill48kyesterdayApache-2.0A47Claude Code, Codex
schema-explorationlangchain-ai/deepagentsSkill32ktodayMITA57Claude Code, Codex
atlas-mssqlariga/atlasSkill8.9k4d agoApache-2.0A163Claude Code
ha-data-storesshiwenwen/hope-agentSkill1.9kyesterdayMITA115Claude Code, Codex
bex-keyvaluebex-co/bexSkill1.6ktodayApache-2.0A117Claude Code, Codex
pentesting-mysqlxalgorix/xalgorixSkill1.6kyesterdayApache-2.0A65Claude Code, Codex