DA

database-migration

Guides idempotent database migrations and schema evolution.

Install

mkdir -p .claude/skills/database-migration-berntpopp && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13266" && unzip -o skill.zip -d .claude/skills/database-migration-berntpopp && rm skill.zip

Installs to .claude/skills/database-migration-berntpopp

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Use when changing review re-RAG schema, repositories, migrations, or PostgreSQL integration behavior.
101 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Inspect existing database schemas and migrations
  • Make database migrations idempotent
  • Keep bootstrap schema and migrations consistent
  • Add or update unit tests for schema and mappers
  • Add PostgreSQL integration coverage
  • Run focused database tests

How it works

The skill guides the user through inspecting existing database components, ensuring migrations are idempotent and consistent, and adding tests for schema, mappers, and PostgreSQL integration.

Inputs & outputs

You give it
Proposed changes to review re-RAG schema, repositories, migrations, or PostgreSQL integration behavior
You get back
Validated database migrations and consistent schema logic

When to use database-migration

  • Applying schema changes
  • Writing database migrations
  • Integrating postgresql

About this skill

Database Migration

Follow AGENTS.md first.

Workflow

  1. Inspect pubtator_link/db/review_schema.sql, existing migrations, and repository tests before editing schema code.
  2. Make migrations idempotent and keep bootstrap schema and migrations consistent.
  3. Keep SQL mapping logic in repository/mappers, not API or MCP layers.
  4. Add or update unit tests for schema text, migration ordering, mapper behavior, and repository edge cases.
  5. Add PostgreSQL integration coverage when the behavior depends on database semantics that unit tests cannot prove.
  6. Run focused database tests, then make ci-local before handoff.

How it compares

This skill provides a specific workflow for database migrations, ensuring idempotency and consistency, unlike manual schema changes.

Compared to similar skills

database-migration side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
database-migration (this skill)03moNo flagsIntermediate
drizzle-orm322moNo flagsIntermediate
database-design66moReviewIntermediate
prisma-expert126moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry