database-migration-helper

database-migration-helper is a skill for Claude Code, Codex from khalilbenaz/claude-skills-collection. It costs 81 tokens per session (1,897 once invoked), scanned A, original, MIT.

A guide to changing a database structure and updating existing data safely. It explains migrations, which are versioned database changes, including zero-downtime and rollback strategies.

In plain words
What is it for?
Use it to plan expand-contract changes, backfill existing rows in batches, add indexes online, and coordinate database changes with application deployments.
Why use it?
It reduces service interruptions and protects data when adding, renaming, changing, or removing columns, tables, and indexes.

Skill for Claude CodeCodex

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

Good fit Use it to plan expand-contract changes, backfill existing rows in batches, add indexes online, and coordinate database changes with application deployments.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/khalilbenaz/claude-skills-collection/database-migration-helper"><img src="https://agentmods.dev/badge/skills/khalilbenaz/claude-skills-collection/database-migration-helper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,897 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 pass 7 Sept 2026
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.00081 $0.01897
Opus 5.5 $0.00032 $0.00759
Sonnet 5.5 $0.00016 $0.00379
Haiku 4.5 $0.00008 $0.00190

Measured 2mo ago against content hash b69e40622407, 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-helper 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 2mo 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.

dev-skills/database-migration-helper/SKILL.md · 222 lines

How it starts

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

Database Migration Helper

1. Qualifier le changement

Avant tout, caractériser l'opération :

Type Risque Stratégie recommandée
Ajout colonne nullable Faible Migration directe
Ajout colonne NOT NULL sans default Élevé Expand-contract obligatoire
Renommage colonne/table Élevé Alias + expand-contract
Suppression colonne/table Élevé Phase contract après code nettoyé
Changement de type Élevé Colonne intermédiaire + backfill
Ajout index (grande table) Moyen Index CONCURRENTLY / online
Data migration (backfill) Variable Batches, jamais full-table en une passe

2. Choisir la stratégie

Expand-Contract (zero-downtime, recommandé pour prod)

Trois phases déployées séparément :

  1. Expand — ajouter la nouvelle colonne/table, sans toucher à l'ancienne.
  2. Migrate — double-écriture dans le code, backfill des données existantes.
  3. Contract — supprimer l'ancienne colonne/table une fois le code nettoyé déployé.

Migration avec fenêtre de maintenance

Acceptable uniquement si : trafic < 100 rps OU table < 100k lignes OU downtime explicitement accepté par le métier.

Blue-Green

Maintenir deux environnements avec bascule DNS/load-balancer. Adapté aux changements majeurs de schéma impossibles à rendre backward-compatible.


3. Écrire la migration selon l'outil

EF Core (C#)

dotnet ef migrations add AddUserEmailIndex --project src/Infrastructure
dotnet ef database update --connection "Server=...;Database=...;"
# Rollback vers migration précédente
dotnet ef database update NomMigrationPrecedente
// Migration générée — toujours vérifier le SQL produit
protected override void Up(MigrationBuilder mb)
{
    mb.AddColumn<string>("email_verified", "users", nullable: true);
    mb.CreateIndex("IX_users_email", "users", "email", unique: true);
}
protected override void Down(MigrationBuilder mb)
{
    mb.DropIndex("IX_users_email", "users");
    mb.DropColumn("email_verified", "users");
}

Read the full file on GitHub · 222 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. 2mo ago First seen · 222 lines · 81 tokens per session scan A b69e40622407

Subscribe to this mod's changes

database-migration-helper is a skill published in the GitHub repository khalilbenaz/claude-skills-collection (27 stars, last pushed 3mo ago), licensed MIT. It adds 81 tokens to every session and 1,897 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-09-03.

Related

database-migration-helper compared with skills from other repositories

database-migration-helper next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
database-migration-helperkhalilbenaz/claude-skills-collectionSkill273mo agoMITA81Claude Code, Codex
database-patternssoftspark/ai-toolkitSkill18013d agoApache-2.0A55Claude Code
migration-patternssoftspark/ai-toolkitSkill18013d agoApache-2.0A41Claude Code
migratesoftspark/ai-toolkitSkill18013d agoApache-2.0A38Claude Code
tageszeitungellmos-ai/skillsSkill10todayMITA112Claude Code, Codex
mysql-migrationjohnqtcg/awesome-skillsSkill311mo agoMITA132Claude Code, Codex
oracle-migrationjohnqtcg/awesome-skillsSkill311mo agoMITA141Claude Code, Codex