Agent skill

Migration

by JaguarJack in JaguarJack/catch-admin

Generate database migration file for CatchAdmin module. An agent skill from JaguarJack/catch-admin.

Apache-2.0Auto-check passedDatabases

Install Migration

skills CLI
$ npx skills add JaguarJack/catch-admin --skill migration -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install JaguarJack/catch-admin migration --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/JaguarJack/catch-admin.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/02-migration .claude/skills/migration && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
migration
GitHub stars
935
Token cost
~474 tokens
SKILL.md length
51 words
Files
1
Skills in repo
10
Repo updated
First seen
Licence
Apache-2.0

At a glance

Generate database migration file for CatchAdmin module. An agent skill from JaguarJack/catch-admin.

  • Tasks that involve Database migrations
  • SKILL.md covers File Location, Template, Field Type Mapping and Important
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Migration is an agent skill from JaguarJack/catch-admin. Generate database migration file for CatchAdmin module.

Its SKILL.md is about 470 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Databases, covering Database migrations. It works with Vue.js and Laravel. The repository describes itself as: CatchAdmin 是一个功能强大、易于扩展的现代化 PHP 后台管理系统。它采用前后端分离架构,CatchAdmin 集成了 Token 鉴权、权限管理、动态路由、动态表格、分页封装、资源权限、上传下载、代码生成器支持一键导出导入,数据回收站,附件管理的等等一系列实用的开发功能的模块化框架。官网地址:. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Database migrations

Example prompts

  • “/migration”

What it can do on your machine

Read from SKILL.md and the folder at commit e83d5aa. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are php).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Migration loads about 474 tokens when it runs. Until then it costs about 16 tokens; SKILL.md has 51 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~16
When it runs · the whole SKILL.md, loaded when a task matches
~474

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from JaguarJack/catch-admin at commit e83d5aa, republished under its Apache-2.0 licence (© JaguarJack). 51 words, ~474 tokens.

Download SKILL.mdSave it as .claude/skills/migration/SKILL.md (or your agent's skills folder).
name
migration
description
Generate database migration file for CatchAdmin module.

Step 2: Generate Migration

创建数据库迁移文件。

File Location

modules/{Module}/database/migrations/{timestamp}_create_{table}_table.php

Template

php
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    public function up(): void
    {
        Schema::create('{table}', function (Blueprint $table) {
            $table->id();
            
            // Business fields (generated from definition)
            
            // CatchAdmin standard fields
            $table->unsignedInteger('creator_id')->default(0);
            $table->unsignedInteger('created_at')->default(0);
            $table->unsignedInteger('updated_at')->default(0);
            $table->unsignedInteger('deleted_at')->default(0);
            
            // Indexes
            $table->index(['status', 'deleted_at']);
        });
    }

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

Field Type Mapping

TypeMigration Code
string(n)$table->string('name', n)
text$table->text('description')->nullable()
integer$table->unsignedInteger('count')->default(0)
decimal(m,n)$table->decimal('price', m, n)
tinyint$table->tinyInteger('status')->default(1)
foreign_key$table->unsignedBigInteger('category_id')->default(0)->index()
date$table->date('birth_date')->nullable()
datetime$table->dateTime('published_at')->nullable()
json$table->json('options')->nullable()

Important

  • CatchAdmin 使用 unsigned integer 作为时间戳,不使用 Laravel 默认的 timestamps()
  • 软删除使用 deleted_at unsigned integer,不使用 softDeletes()
  • 外键字段需要添加 index()

© JaguarJack, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/02-migration of JaguarJack/catch-admin.

Open the folder on GitHubat commit e83d5aa

Compare with similar skills

Migration next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Migration compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Migration this skillJaguarJack/catch-admin935—~474Automated safety check: PassApache-2.0
Migratesoftspark/ai-toolkit179—~1.3kAutomated safety check: NotesApache-2.0
V5 MigrationOpenLitterMap/openlittermap-web134—~1.7kAutomated safety check: PassGPL-3.0
Livewire Developmentcoollabsio/coolify63k—~964Automated safety check: PassMIT
Livewire Developmentyungifez/skuul4091 repos~1.9kAutomated safety check: PassMIT
Medialibrary Developmentgdarko/laravel-vue-starter1453 repos~880Automated safety check: PassMIT

Similar skills

  • Migrate

    softspark/ai-toolkit

    Run/create DB migrations (Alembic, Prisma, Laravel, Django, Flyway, Drizzle); checks backup.

    179 GitHub stars~1.3k tokensUpdated yesterday
    DatabasesAuto-check: notes
  • V5 Migration

    OpenLitterMap/openlittermap-web

    The olm:v5 migration script, UpdateTagsService, batch processing, migratedat, ClassifyTagsService deprecated mappings, and data migration from v4 category tables.

    134 GitHub stars~1.7k tokensUpdated 23 days ago
    DatabasesAuto-check passed
  • Livewire Development

    coollabsio/coolify

    A skill your agent uses for any task or question involving Livewire.

    63k GitHub stars~964 tokensUpdated today
    Backend & APIsAuto-check passed
  • Livewire Development

    yungifez/skuul

    A skill your agent uses for any task or question involving Livewire.

    409 GitHub starsUsed in 1 repo~1.9k tokens
    Backend & APIsAuto-check passed
  • Medialibrary Development

    gdarko/laravel-vue-starter

    Build and work with spatie/laravel-medialibrary features including associating files with Eloquent models, defining media collections and conversions, generating responsive images, and retrieving…

    145 GitHub starsUsed in 3 repos~880 tokens
    Backend & APIsAuto-check passed
  • Wayfinder Development

    slimani-dev/muraqib

    A skill your agent uses for Laravel Wayfinder which auto-generates typed functions for Laravel controllers and routes.

    128 GitHub starsUsed in 1 repo~622 tokens
    Backend & APIsAuto-check passed

More from JaguarJack/catch-admin

All 10 skills in this repo
  • Curd

    JaguarJack/catch-admin

    Generates complete CRUD module from database table definition.

    935 GitHub stars~3.3k tokensUpdated 22 days ago
    Auto-check passed
  • Controller

    JaguarJack/catch-admin

    Generate CRUD controller for CatchAdmin module. An agent skill from JaguarJack/catch-admin.

    935 GitHub stars~523 tokensUpdated 22 days ago
    Auto-check passed
  • Model

    JaguarJack/catch-admin

    Generate Eloquent model for CatchAdmin module with full CatchModel features.

    935 GitHub stars~1.7k tokensUpdated 22 days ago
    Auto-check passed
  • Parse Table

    JaguarJack/catch-admin

    Parse table definition to extract module name, model name, table name, and field definitions.

    935 GitHub stars~520 tokensUpdated 22 days ago
    Auto-check passed
  • Vue Pages

    JaguarJack/catch-admin

    Generate Vue frontend pages using catch-table for CatchAdmin module with full component features.

    935 GitHub stars~2.6k tokensUpdated 22 days ago
    Auto-check passed
  • Export

    JaguarJack/catch-admin

    Generate Excel export class for CatchAdmin module. An agent skill from JaguarJack/catch-admin.

    935 GitHub stars~321 tokensUpdated 22 days ago
    Auto-check passed

Works with

Categories

Questions about Migration

What does Migration do?

Generate database migration file for CatchAdmin module. An agent skill from JaguarJack/catch-admin. Migration is an agent skill from JaguarJack/catch-admin. Generate database migration file for CatchAdmin module.

When should I use Migration?

Migration fits situations like: tasks that involve Database migrations.

How do I install Migration in Claude Code?

Run `npx skills add JaguarJack/catch-admin --skill migration -a claude-code`. Or copy the skill folder (.claude/skills/02-migration in JaguarJack/catch-admin) into .claude/skills/migration in your project. Claude Code loads it when a task matches its description.

How do I install Migration in Codex?

Run `npx skills add JaguarJack/catch-admin --skill migration -a codex`. Or copy the skill folder (.claude/skills/02-migration in JaguarJack/catch-admin) into .agents/skills/migration in your project. Codex loads it when a task matches its description.

Can I use Migration in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add JaguarJack/catch-admin --skill migration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/migration, .gemini/skills/migration, .github/skills/migration and .opencode/skills/migration in your project.

What does Migration need to run?

SKILL.md names no scripts, command-line tools or credentials: Migration is instructions for the agent only.

Does Migration access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Migration safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Migration use?

Migration is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Migration use?

About 474 tokens (SKILL.md is roughly 1.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Migration?

Skills that share tags, products or a category with Migration: Migrate (softspark/ai-toolkit, 179 stars), V5 Migration (OpenLitterMap/openlittermap-web, 134 stars), Livewire Development (coollabsio/coolify, 63k stars) and Livewire Development (yungifez/skuul, 409 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Migration?

JaguarJack (a GitHub user) maintains it in JaguarJack/catch-admin, which has 935 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on September 16, 2026.

Source: JaguarJack/catch-admin on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.