Back to Skills

database-migration

alekspetrov
Updated Today
18 views
47
3
47
View on GitHub
Metadata

About

This Claude Skill automatically generates database migration files with both schema changes and rollback SQL when developers mention tasks like creating migrations or modifying schemas. It produces timestamped files with validated SQL that follows conventions for tools like Knex, Prisma, and TypeORM. The skill handles the complete migration workflow including up/down scripts and syntax validation.

Quick Install

Claude Code

Recommended
Plugin CommandRecommended
/plugin add https://github.com/alekspetrov/navigator
Git CloneAlternative
git clone https://github.com/alekspetrov/navigator.git ~/.claude/skills/database-migration

Copy and paste this command in Claude Code to install this skill

Documentation

Database Migration Generator

Generate database migrations with rollback capability for schema changes.

When to Invoke

Auto-invoke when user mentions:

  • "Create migration"
  • "Add table"
  • "Modify schema"
  • "Change database"
  • "Database migration for [change]"

What This Does

  1. Generates migration file with timestamp
  2. Creates schema change SQL (up migration)
  3. Creates rollback SQL (down migration)
  4. Validates SQL syntax
  5. Follows migration tool conventions (Knex, Prisma, TypeORM)

Success Criteria

  • Migration file generated with unique timestamp
  • Up migration creates/modifies schema correctly
  • Down migration rolls back changes
  • SQL syntax is valid
  • Follows naming conventions

Auto-invoke when creating database schema changes 🗄️

GitHub Repository

alekspetrov/navigator
Path: skills/database-migration

Related Skills

llamaindex

Meta

LlamaIndex is a data framework for building RAG-powered LLM applications, specializing in document ingestion, indexing, and querying. It provides key features like vector indices, query engines, and agents, and supports over 300 data connectors. Use it for document Q&A, chatbots, and knowledge retrieval when building data-centric applications.

View skill

csv-data-summarizer

Meta

This skill automatically analyzes CSV files to generate comprehensive statistical summaries and visualizations using Python's pandas and matplotlib/seaborn. It should be triggered whenever a user uploads or references CSV data without prompting for analysis preferences. The tool provides immediate insights into data structure, quality, and patterns through automated analysis and visualization.

View skill

hybrid-cloud-networking

Meta

This skill configures secure hybrid cloud networking between on-premises infrastructure and cloud platforms like AWS, Azure, and GCP. Use it when connecting data centers to the cloud, building hybrid architectures, or implementing secure cross-premises connectivity. It supports key capabilities such as VPNs and dedicated connections like AWS Direct Connect for high-performance, reliable setups.

View skill

Excel Analysis

Meta

This skill enables developers to analyze Excel files and perform data operations using pandas. It can read spreadsheets, create pivot tables, generate charts, and conduct data analysis on .xlsx files and tabular data. Use it when working with Excel files, spreadsheets, or any structured tabular data within Claude Code.

View skill