db-migration

db-migration is a skill for Claude Code from a-pavithraa/springboot-skills-marketplace. It costs 64 tokens per session (355 once invoked), scanned A, original, MIT.

A guide for writing Flyway database migrations, which are versioned scripts that change a database schema or data over time. It applies team rules for naming, editing, renaming, and checking those scripts.

In plain words
What is it for?
It helps add tables, columns, indexes, and data fixes, and checks the result with Maven verification and, where available, integration tests against a real database.
Why use it?
It prevents developers from changing an already-applied migration, which can make shared databases invalid, and reduces naming conflicts when several branches add changes. It also encourages safer multi-step changes such as renaming a column without breaking running code.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the springboot-architecture plugin — 7 skills, 3 hooks shipped together

Good fit It helps add tables, columns, indexes, and data fixes, and checks the result with Maven verification and, where available, integration tests against a real database.

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

Made for: Claude Code.

Or install springboot-architecture, the plugin that ships this one along with the rest of its 7 skills, 3 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 db-migration

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/a-pavithraa/springboot-skills-marketplace/db-migration"><img src="https://agentmods.dev/badge/skills/a-pavithraa/springboot-skills-marketplace/db-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 355 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.00064 $0.00355
Opus 5.5 $0.00026 $0.00142
Sonnet 5.5 $0.00013 $0.00071
Haiku 4.5 $0.00006 $0.00036

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

Security

Grade A, and why

db-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 today.

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.

plugins/springboot-architecture/skills/spring-boot-team-harness/assets/project-skills/db-migration/SKILL.md · 16 lines

What it actually says

Write a database migration

Migrations live in src/main/resources/db/migration.

  1. Follow the naming the folder already uses. In a folder with no migrations yet, use V<yyyyMMddHHmm>__<what_it_does>.sql in UTC: unlike V7, V8, timestamps don't collide when two developers add a migration on different branches. With numbered names, take the next number after the highest one on the main branch, and renumber yours if someone merges first.
  2. Never edit a migration that is on the main branch. It may already have run on a shared database, and Flyway fails validation when the checksum changes. Write a new migration instead.
  3. Make destructive changes in two releases. To rename or drop a column, first add the new column and write to both, and drop the old one in a later migration once no running version reads it.
  4. Keep each migration to one purpose. Put data fixes in their own file, and make them safe to run on a database where the fix is already done.
  5. Don't let Hibernate create the schema: spring.jpa.hibernate.ddl-auto stays validate or none.
  6. Run ./mvnw verify. If the project has Testcontainers integration tests, they apply every migration to a real database; if it has none, say that the migration is untested.
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. today First seen · 16 lines · 64 tokens per session scan A fb0a3b5e380d

Subscribe to this mod's changes

db-migration is a skill published in the GitHub repository a-pavithraa/springboot-skills-marketplace (80 stars, last pushed today), licensed MIT. It adds 64 tokens to every session and 355 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-10-24.

Related

Other skills, from other repositories

technical-debt-audit

Use when the user says 'clean up my wordpress', 'what is bloating my wordpress', 'find orphaned shortcodes', or 'scan for unused plugins'. Audits orphaned shortcodes from deleted plugins, unused plugins, database bloat, unused media, and leftover data from inactive builders.

respira-press/agent-skills-wordpress · 66 tokens

database-migrations

Database migration best practices for schema changes, data migrations, rollbacks, and zero-downtime deployments across PostgreSQL, MySQL, and common ORMs (Prisma, Drizzle, Kysely, Django, TypeORM, golang-migrate).

datit309/supergraph · 56 tokens

backend-specialist

A guide for designing and building backend services, the parts of an application that handle data, business rules, and requests. It covers APIs, databases, authentication, and service performance.

huangwb8/skills · 62 tokens

powersync

Best practices for building and maintaining applications with PowerSync: Cloud and self-hosted setup, sync configuration, client SDK usage, backend integration (Supabase, custom Postgres, MongoDB, Azure DocumentDB, MySQL, MSSQL), schema changes, watch and reactive queries (useQuery), attachments, the upload queue, and…

powersync-ja/agent-skills · 203 tokens

postgresql

PostgreSQL database documentation - SQL queries, database design, administration, performance tuning, and advanced features. Use when working with PostgreSQL databases, writing SQL, or managing database systems.

aiskillstore/marketplace · 40 tokens

mirrord-db-branching

Helps users configure mirrord.json for database branching, enabling isolated database copies for safe development and testing. Use when the user wants to set up MySQL, MariaDB, PostgreSQL, MSSQL, MongoDB, Redis, DynamoDB, ClickHouse, Google Spanner, Amazon S3, or generic branches, configure copy modes, connection…

aiskillstore/marketplace · 91 tokens