add-migration

Generate migration stubs in database/migrations for Bespoke packages.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/bespoke-uk/bespoke-mono --skill add-migration
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: add-migration
Source: https://github.com/bespoke-uk/bespoke-mono/tree/main/.claude/skills/add-migration
Command: npx skills add https://github.com/bespoke-uk/bespoke-mono --skill add-migration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creating database migrations for Bespoke packages is error-prone and tedious when following strict naming conventions. This Skill automatically generates properly named migration stubs based on a package path and a description, ensuring consistency across the codebase.

Core Features & Use Cases

  • Generates migration stubs in database/migrations based on the migration description (e.g., create, add, remove, or index) and package path.
  • Maps human-readable descriptions to the correct file names like create_{table}table.php.stub or add{column}to{table}_table.php.stub.
  • Outputs ready-to-publish migration skeletons with consistent structure and naming to streamline package scaffolding and publishing.

Quick Start

Execute /add-migration crm/contact "add status column to contacts" to generate database/migrations/add_status_to_contacts_table.php.stub

Frequently Asked Questions about add-migration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I auto-create database migration stubs with correct naming conventions?▼

Auto-creating database migration stubs with correct naming conventions requires specifying a package path and description to generate files like create_{table}_table.php.stub or add_{column}_to_{table}_table.php.stub.

What is the file naming pattern for adding a column to an existing database table?▼

The file naming pattern for adding a column is add_{column}_to_{table}_table.php.stub, ensuring consistent migration scaffolding across the codebase by mapping human-readable descriptions to structured file names.

Can I generate different types of migration files based on a natural language description?▼

Yes, you can generate different migration types by providing a description. The Skill maps actions like create, add, remove, or index from your description to the correct migration stub file name.

How do I scaffold a Bespoke package migration for creating a new table?▼

To scaffold a Bespoke package migration for a new table, execute the command with the package path and description to output a ready-to-publish create_{table}_table.php.stub skeleton in the database/migrations directory.

Does this database migration scaffolding tool work without external dependencies?▼

Yes, this database migration scaffolding tool works without external dependencies, automatically applying documented migration rules to generate stub files directly within your Bespoke package structure.