smithery.ai

migration-generate

Generate database migrations from schema changes

First seen Mar 21, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Declared agents claude-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 966 B
  • docs SUMMARY.md 74 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Database Migration Generator

I'll analyze schema changes and generate safe, reversible database migrations automatically.

Arguments: $ARGUMENTS - model changes, schema files, or migration description

Migration Philosophy

  • Safety First: Always reversible migrations
  • Zero Downtime: Production-safe strategies
  • Data Preservation: Never lose user data
  • Incremental Changes: Small, testable migrations

Token Optimization

Expected range: 800–2,000 tokens (initial), 200 tokens (no changes)

Caching: Caches database type detection in .claude/cache/db/db-type.json for 7 days. Invalidated when schema files change.

Early exit: Returns immediately if no schema changes are detected since the last migration.

Patterns used: Grep-before-Read, early exit, template-based generation, caching