agent-creator
Use when creating expert agents. Generates agent.md with frontmatter, hooks, required sections, and skill references.
Use when designing a database schema or managing Laravel 13 migrations — Schema Builder, columns, indexes, foreign keys, or seeders.
$ npx -y skills add fusengine/agents --skill laravel-migrations --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/laravel-migrationsContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when designing a database schema or managing Laravel 13 migrations — Schema Builder, columns, indexes, foreign keys, or seeders.
name: laravel-migrations description: Use when designing a database schema or managing Laravel 13 migrations — Schema Builder, columns, indexes, foreign keys, or seeders. versions: laravel: "13.0" php: "8.3" user-invocable: true references: references/schema.md, references/columns.md, references/indexes.md, references/foreign-keys.md, references/commands.md, references/seeding.md, references/testing.md, references/production.md, references/troubleshooting.md, references/templates/CreateTableMigration.php.md, references/templates/ModifyTableMigration.php.md, references/templates/PivotTableMigration.php.md, references/templates/Seeder.php.md, references/templates/MigrationTest.php.md related-skills: laravel-eloquent, laravel-testing, laravel-architecture
<objective> Covers Laravel 13 database migrations: the Schema Builder API for creating/modifying/dropping tables, the 50+ column types and modifiers, index types (primary, unique, fulltext, spatial), foreign key constraints with cascade options, Artisan migration commands, seeders, testing migrations, safe production rollout, troubleshooting, and enabling pgvector via Schema::ensureVectorExtensionExists() for vector columns (see laravel-vector-search for querying them). </objective>
Before ANY implementation, spawn 3 agents in parallel, one `Agent` call each with a `name`:
1. **fuse-ai-pilot:explore-codebase** - Check existing migrations 2. **fuse-ai-pilot:research-expert** - Verify Laravel 13 patterns via Context7 3. **mcp__context7__query-docs** - Check specific Schema Builder features
After implementation, run **fuse-ai-pilot:sniper** for validation.
---
| Feature | Description | |---------|-------------| | **Schema Builder** | Create, modify, drop tables | | **Columns** | 50+ column types with modifiers | | **Indexes** | Primary, unique, fulltext, spatial | | **Foreign Keys** | Constraints with cascade options | | **Seeders** | Populate tables with data |
---
1. **Always define down()** - Reversible migrations 2. **Use foreignId()->constrained()** - Not raw unsignedBigInteger 3. **Add indexes on foreign keys** - Performance critical 4. **Test rollback before deploy** - Validate down() works 5. **Never modify deployed migrations** - Create new ones
---
Need schema change? ├── New table → make:migration create_X_table ├── Add column → make:migration add_X_to_Y_table ├── Modify column → make:migration modify_X_in_Y_table ├── Add index → make:migration add_index_to_Y_table └── Seed data → make:seeder XSeeder
| Use Case | Type | Example | |----------|------|---------| | Primary Key | `id()` | Auto-increment BIGINT | | Foreign Key | `foreignId()->constrained()` | References parent | | UUID Primary | `uuid()->primary()` | UUIDs | | Boolean | `boolean()` | is_active | | Enum | `enum('status', [...])` | order_status | | JSON | `json()` | preferences | | Money | `decimal('price', 10, 2)` | 99999999.99 | | Timestamps | `timestamps()` | created_at, updated_at | | Soft Delete | `softDeletes()` | deleted_at |
| Scenario | onDelete | Use Case | |----------|----------|----------| | Strict integrity | `restrictOnDelete()` | Financial records | | Auto-cleanup | `cascadeOnDelete()` | Post → Comments | | Preserve with null | `nullOnDelete()` | Optional relations | | No action | `noActionOnDelete()` | Audit logs |
---
| Topic | Reference | When to Consult | |-------|-----------|-----------------| | **Schema** | [schema.md](references/schema.md) | Table operations | | **Columns** | [columns.md](references/columns.md) | Column types | | **Indexes** | [indexes.md](references/indexes.md) | Performance indexes | | **Foreign Keys** | [foreign-keys.md](references/foreign-keys.md) | Constraints | | **Commands** | [commands.md](references/commands.md) | Artisan commands | | **Seeding** | [seeding.md](references/seeding.md) | Populate data |
| Topic | Reference | When to Consult | |-------|-----------|-----------------| | **Testing** | [testing.md](references/testing.md) | Test migrations | | **Production** | [production.md](references/production.md) | Deploy safely | | **Troubleshooting** | [troubleshooting.md](references/troubleshooting.md) | Fix errors |
| Template | When to Use | |----------|-------------| | [CreateTableMigration.php.md](references/templates/CreateTableMigration.php.md) | New table | | [ModifyTableMigration.php.md](references/templates/ModifyTableMigration.php.md) | Alter table | | [PivotTableMigration.php.md](references/templates/PivotTableMigration.php.md) | Many-to-many | | [Seeder.php.md](references/templates/Seeder.php.md) | Seed patterns | | [MigrationTest.php.md](references/templates/MigrationTest.php.md) | Test migrations |
---
Schema::create('posts', function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')->constrained()->cascadeOnDelete();
$table->string('title');
$table->text('content');
$table->enum('status', ['draft', 'published'])->default('draft');
$table->timestamps();
$table->softDeletes();
$table->index(['user_id', 'status']);
});Schema::table('posts', function (Blueprint $table) {
$table->string('slug')->after('title')->unique();
$table->boolean('featured')->default(false);
});php artisan make:migration create_posts_table php artisan migrate php artisan migrate:rollback --step=1 php artisan migrate:fresh --seed
---
A plugin ecosystem that turns Claude Code into a supervised, multi-agent development environment.
Repo: fusengine/agents
Use when creating expert agents. Generates agent.md with frontmatter, hooks, required sections, and skill references.
Use when starting ANY development task -- feature, bug fix, refactor, hotfix (triggers: implement, create, build, fix, add feature, refactor, develop).
Use when creating a feature/component or adding functionality. Fires BEFORE APEX Analyze to refine requirements via structured questioning.
Use before a root-cause, done/verified claim, irreversible action, or 2nd-time fix reaches the owner (APEX or plain conversation); also fires at every…
Use when validating code quality after modifications -- SOLID compliance, DRY duplication, linter errors, architecture violations. Do NOT use for functional…
Use when an expert agent self-reviews and self-corrects code after the Execute phase, before sniper validation (BMAD-METHOD elicitation techniques).