migration

Generate Laravel-compatible database migration files for CatchAdmin modules.

928|137|Updated Jan 6, 2020
One-click install
npx skills add https://github.com/JaguarJack/catch-admin --skill migration-jaguarjack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migration
Source: https://github.com/JaguarJack/catch-admin/tree/main/.claude/skills/02-migration
Command: npx skills add https://github.com/JaguarJack/catch-admin --skill migration-jaguarjack

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of Laravel-compatible migration files for CatchAdmin modules, reducing boilerplate and ensuring consistency across modules.

Core Features & Use Cases

  • Standardized Template: Generates the canonical migration skeleton with CatchAdmin conventions (timestamps, indexing, and soft-delete fields).
  • Field Mapping Guidance: Provides templates and examples to map business requirements into migration definitions for tables and relations.
  • Use Case: When adding a new module or updating an existing one, generate a migration file at modules/{Module}/database/migrations/{timestamp}create{table}_table.php.

Quick Start

Use the migration skill to generate a new migration file for creating the products table in a CatchAdmin module.

Frequently Asked Questions about migration

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

FAQPage Schema
How do I generate database migrations for a CatchAdmin module?

Generate migrations using this Skill to automatically create Laravel-compatible migration files in your CatchAdmin module's database/migrations directory. It applies standardized conventions for timestamps, indexing, and soft-delete fields, ensuring consistency across all modules.

What does a CatchAdmin migration template include?

A CatchAdmin migration template includes the canonical skeleton with timestamps, indexing configuration, soft-delete fields, and field type mappings. This enforces CatchAdmin conventions and reduces boilerplate when defining tables and relations.

Can I use this to add fields to an existing CatchAdmin table?

Yes. Use this Skill to generate migrations for updating existing schemas, including adding fields, configuring indexes, and defining new relations within your CatchAdmin module structure.

How do I map business requirements into CatchAdmin migration definitions?

This Skill provides field mapping guidance and templates to translate business requirements into migration code. It shows how to define tables, relations, and field types following CatchAdmin conventions for predictable, maintainable migrations.

What's the correct file path for a new CatchAdmin migration?

New migrations follow the path modules/{Module}/database/migrations/{timestamp}_create_{table}_table.php. This Skill generates files in this location automatically with the proper naming convention.

Do I need Laravel knowledge to use this migration generator?

Familiarity with Laravel migrations is helpful but not required. This Skill enforces CatchAdmin conventions through templates and field mappings, so the generated migrations follow best practices automatically.