database-migrator

database-migrator is a skill for Claude Code from OneWave-AI/claude-skills. It costs 76 tokens per session (1,104 once invoked), scanned A, original, MIT.

A database-migration workflow for moving schemas, data, and database logic between providers such as PostgreSQL, MySQL, Supabase, PlanetScale, and MongoDB.

In plain words
What is it for?
Use it to inspect a source database, generate conversion scripts, translate types and database logic, validate row counts and checksums, and plan rollback or downtime.
Why use it?
It handles differences between database systems and provides checks to catch missing or changed data during the move.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to inspect a source database, generate conversion scripts, translate types and database logic, validate row counts and checksums, and plan rollback or downtime.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/onewave-ai/claude-skills/database-migrator"><img src="https://agentmods.dev/badge/skills/onewave-ai/claude-skills/database-migrator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,104 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.00076 $0.01104
Opus 5 $0.00038 $0.00552
Sonnet 5 $0.00015 $0.00221
Haiku 4.5 $0.00008 $0.00110

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

Security

Grade A, and why

database-migrator 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 6d 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.

database-migrator/SKILL.md · 69 lines

How it starts

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

Database Migrator

Move schemas, data, and logic between database providers. This is a cross-provider migration engine, not a schema designer: it handles data type incompatibilities, provider-specific SQL dialects, foreign key ordering, sequence and auto-increment translation, trigger rewrites, and stored procedure conversion. It validates with row counts and checksums and produces an auditable migration-plan.md.

Contents

  • references/schema-discovery.md -- Extraction queries for relational, MongoDB, Supabase, and PlanetScale sources.
  • references/type-mapping.md -- Data type maps (PG/MySQL/Mongo) and SQL function translation.
  • references/script-generation.md -- DDL, sequence, trigger, procedure, and view translation.
  • references/data-migration.md -- Export, transform, and import commands per provider.
  • references/validation.md -- Row count, checksum, FK integrity, index, and spot-check queries.
  • references/rollback-and-downtime.md -- Rollback scripts, backup/restore, downtime estimation.
  • references/migration-plan-template.md -- Full migration-plan.md output template.
  • references/edge-cases.md -- Large tables, lossy mappings, document flattening, multi-schema, quality checklist.

Supported Paths and Complexity

Supported source/target pairs: PostgreSQL, MySQL, Supabase (Postgres), PlanetScale (MySQL), and MongoDB, in any direction.

  • Low: Same underlying engine (e.g., Postgres to Supabase). Mostly connection and permission changes.
  • Medium: Same paradigm, different dialect (e.g., Postgres to MySQL). Requires type mapping and dialect translation.
  • Medium-High: Different dialect plus provider constraints (e.g., PlanetScale has no database-level foreign keys).
  • High: Paradigm shift (e.g., relational to document). Requires schema redesign, not just translation.

When to Use

  • Moving a production database from one provider to another.
  • Migrating between self-hosted and managed services.
  • Replicating a schema across providers for multi-cloud or disaster recovery.
  • Consolidating multiple databases into a single provider.
  • Translating a complete data model between relational and MongoDB.
  • Producing a validated, auditable migration plan before executing in production.

Read the full file on GitHub · 69 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 69 lines · 76 tokens per session scan A cb6ffddea8e9

Subscribe to this mod's changes

database-migrator is a skill published in the GitHub repository OneWave-AI/claude-skills (288 stars, last pushed 29d ago), licensed MIT. It adds 76 tokens to every session and 1,104 once invoked, about $0.0004 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-03.

Related

Other skills, from other repositories

database-expert

Advanced database design and administration for PostgreSQL, MongoDB, and Redis. Use when designing schemas, optimizing queries, managing database performance, or implementing data patterns.

travisjneuman/.claude · 36 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

using-document-databases

Document database implementation for flexible schema applications. Use when building content management, user profiles, catalogs, or event logging. Covers MongoDB (primary), DynamoDB, Firestore, schema design patterns, indexing strategies, and aggregation pipelines.

ancoleman/ai-design-components · 52 tokens

using-relational-databases

Relational database implementation across Python, Rust, Go, and TypeScript. Use when building CRUD applications, transactional systems, or structured data storage. Covers PostgreSQL (primary), MySQL, SQLite, ORMs (SQLAlchemy, Prisma, SeaORM, GORM), query builders (Drizzle, sqlc, SQLx), migrations, connection pooling…

ancoleman/ai-design-components · 92 tokens

sql-optimization

A guide to improving SQL queries, the commands used to read and change data in databases. It covers examining how MySQL and PostgreSQL execute queries and designing indexes that help them find data faster.

chaterm/terminal-skills · 10 tokens

mongodb

A guide for managing MongoDB, a database that stores records in flexible document collections. It covers local, remote, and replica-set connections, database and collection administration, data operations, and indexes.

chaterm/terminal-skills · 7 tokens