laravel-migration

laravel-migration is an agent for Claude Code from elmochilyas/laraskills. It costs 27 tokens per session (590 once invoked), scanned A, original, MIT.

A database design assistant for Laravel 13, a PHP web framework. It creates the code that defines tables, sample data seeders, and model factories for tests and development.

In plain words
What is it for?
Use it to design schemas, write Laravel migrations, create seeders, and build model factories. It is intended for Laravel 13 projects.
Why use it?
It helps keep Laravel database changes, test data, and application models consistent. This avoids having to design each related file manually.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to design schemas, write Laravel migrations, create seeders, and build model factories. It is intended for Laravel 13 projects.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/elmochilyas/laraskills/laravel-migration
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/elmochilyas/laraskills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for laravel-migration

README.md
[![agentmods](https://agentmods.dev/badge/agents/elmochilyas/laraskills/laravel-migration/github.svg)](https://agentmods.dev/agents/elmochilyas/laraskills/laravel-migration)
Your own site
<a href="https://agentmods.dev/agents/elmochilyas/laraskills/laravel-migration"><img src="https://agentmods.dev/badge/agents/elmochilyas/laraskills/laravel-migration/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for laravel-migration

Your own site · 80×15
<a href="https://agentmods.dev/agents/elmochilyas/laraskills/laravel-migration"><img src="https://agentmods.dev/badge/agents/elmochilyas/laraskills/laravel-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 590 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.00590
Opus 5.5 $0.00011 $0.00236
Sonnet 5.5 $0.00005 $0.00118
Haiku 4.5 $0.00003 $0.00059

Measured 3mo ago against content hash a46739c84e84, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

laravel-migration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/laravel-migration.md · 104 lines

How it starts

The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Laravel Migration Agent

Purpose

Design database schemas, create migrations, seeders, and model factories for Laravel 13 applications.

Key Patterns

Migration

return new class extends Migration
{
    public function up(): void
    {
        Schema::create('products', function (Blueprint $table) {
            $table->id();
            $table->string('name', 200);
            $table->text('description')->nullable();
            $table->decimal('price', 10, 2);
            $table->foreignId('category_id')->constrained()->cascadeOnDelete();
            $table->softDeletes();
            $table->timestamps();

            $table->index('name');
            $table->fullText(['name', 'description']);
        });
    }

    public function down(): void
    {
        Schema::dropIfExists('products');
    }
};

Seeder

class ProductSeeder extends Seeder
{
    public function run(): void
    {
        Product::factory()->count(50)->create();
    }
}

Factory

class ProductFactory extends Factory
{
    public function definition(): array
    {
        return [
            'name' => fake()->unique()->words(3, true),
            'description' => fake()->paragraph(),
            'price' => fake()->randomFloat(2, 1, 1000),
            'category_id' => Category::factory(),
        ];
    }

    public function expensive(): static
    {
        return $this->state(fn (array $_) => ['price' => fake()->randomFloat(2, 500, 5000)]);
    }
}

Foreign Key Conventions

$table->foreignId('user_id')->constrained()->cascadeOnDelete();
$table->foreignIdFor(User::class)->constrained();

Index Best Practices

$table->index('status');                        // Single column
$table->index(['status', 'created_at']);       // Composite
$table->fullText(['title', 'body']);            // Full text search

Reference

  • See skill: laravel-tdd for testing with factories
  • See skill: laravel-database for advanced PostgreSQL features, partitioning, JSONB, materialized views, and migration strategies
  • See rules/laravel/patterns.md for project conventions
  • See rule: rules/laravel/database.md for enforced database engineering rules

Read the full file on GitHub · 104 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 104 lines · 27 tokens per session scan A a46739c84e84

Subscribe to this mod's changes

laravel-migration is an agent published in the GitHub repository elmochilyas/laraskills (10 stars, last pushed 5mo ago), licensed MIT. It adds 27 tokens to every session and 590 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

laravel-migration compared with agents from other repositories

laravel-migration next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
laravel-migrationelmochilyas/laraskillsAgent105mo agoMITA27Claude Code
MS-SQL Database Administratorgithub/awesome-copilotAgent42ktodayMITA18Claude Code
core-data-auditorCharlesWiltgen/AxiomAgent1.3ktodayMITA28Claude Code
lensjeremylongshore/tons-of-skills-marketplaceAgent3.0ktodayMITA53Claude Code
ecto-schema-designeroliver-kriska/claude-elixir-phoenixAgent579yesterdayMITA30Claude Code
django-migrations-specialistAratKruglik/claude-sdlcAgent57todayMITA85Claude Code
database-architectaayushostwal/nexusAgent1912d agoMITA96Claude Code