Agent skill

Migration Codegen

by AHS12 in AHS12/thoth-blueprint

Change Laravel, TypeORM, or Django migration generation and generated SQL parsing.

GPL-3.0Auto-check passedBackend & APIs

Install Migration Codegen

skills CLI
$ npx skills add AHS12/thoth-blueprint --skill migration-codegen -a claude-code

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

GitHub CLI
$ gh skill install AHS12/thoth-blueprint migration-codegen --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/AHS12/thoth-blueprint.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/migration-codegen .claude/skills/migration-codegen && 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-codegen
GitHub stars
626
Token cost
~425 tokens
SKILL.md length
188 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
GPL-3.0

At a glance

Change Laravel, TypeORM, or Django migration generation and generated SQL parsing.

  • Works in 5 steps: Keep framework conventions explicit:… → Validate identifier quoting,… → Do not assume generated SQL has one… → …
  • Modifying framework code generation
  • SKILL.md covers Read First, Change Rules and Verification
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Migration Codegen is an agent skill from AHS12/thoth-blueprint. Change Laravel, TypeORM, or Django migration generation and generated SQL parsing. Use when modifying framework code generation, foreign keys, indexes, naming, or migration artifacts.

Its SKILL.md is about 430 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 Backend & APIs, covering Backend development, Project scaffolding and SQL. It works with SQL, Django, Laravel and TypeORM. The repository describes itself as: Design databases the way you think. Create unlimited schemas, import existing designs, visualize relationships, export to multiple formats, and generate framework migrations… The licence is GPL-3.0.

When your agent uses it

  • Modifying framework code generation
  • Migration artifacts

Example prompts

  • “/migration-codegen”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Keep framework conventions explicit: Laravel timestamps and inferred foreign-key names, TypeORM's SQL parsing assumptions, and Django's…
  2. Validate identifier quoting, nullable/default/generated columns, indexes, composite foreign keys, on-delete/on-update behavior, and table…
  3. Do not assume generated SQL has one formatting shape. If a generator parses SQL, keep the parser tolerant of the SQL it emits and test…
  4. Preserve hyphenated IDs when resolving handles and columns. Never use split("-")[0] as a column-ID parser.
  5. Treat output as a candidate artifact. Do not claim a migration is executable without reviewing or executing it against the target…

What it can do on your machine

Read from SKILL.md and the folder at commit 075e0e3. 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.

    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 Codegen loads about 425 tokens when it runs. Until then it costs about 50 tokens; SKILL.md has 188 words of instructions outside code blocks.

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

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 AHS12/thoth-blueprint at commit 075e0e3, republished under its GPL-3.0 licence (© AHS12). 188 words, ~425 tokens.

Download SKILL.mdSave it as .claude/skills/migration-codegen/SKILL.md (or your agent's skills folder).
name
migration-codegen
description
Change Laravel, TypeORM, or Django migration generation and generated SQL parsing. Use when modifying framework code generation, foreign keys, indexes, naming, or migration artifacts.

Migration Code Generation

Read First

  • src/lib/codegen/ and its Laravel, TypeORM, and Django generators.
  • src/lib/exporter/ for dialect-specific SQL generation.
  • src/lib/types.ts for columns, indexes, and edge metadata.
  • src/lib/utils.ts for IDs and relationship helpers.

Change Rules

  1. Keep framework conventions explicit: Laravel timestamps and inferred foreign-key names, TypeORM's SQL parsing assumptions, and Django's yourapp placeholder.
  2. Validate identifier quoting, nullable/default/generated columns, indexes, composite foreign keys, on-delete/on-update behavior, and table ordering.
  3. Do not assume generated SQL has one formatting shape. If a generator parses SQL, keep the parser tolerant of the SQL it emits and test alterations as well as creates.
  4. Preserve hyphenated IDs when resolving handles and columns. Never use split("-")[0] as a column-ID parser.
  5. Treat output as a candidate artifact. Do not claim a migration is executable without reviewing or executing it against the target framework/database.

Verification

  • Generate artifacts for empty, single-table, indexed, related, composite-key, and altered schemas.
  • Inspect generated files for valid syntax, deterministic naming, and correct foreign-key direction.
  • Exercise each supported database type where the generator accepts it.
  • Run type-check, lint, and build; manually review generated output because no generated SQL test runner is configured.

© AHS12, GPL-3.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 .agents/skills/migration-codegen of AHS12/thoth-blueprint.

Open the folder on GitHubat commit 075e0e3

Compare with similar skills

Migration Codegen 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 Codegen compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Migration Codegen this skillAHS12/thoth-blueprint626—~425Automated safety check: PassGPL-3.0
Arch Wikiahmedemad3/arch-wiki249—~5.1kAutomated safety check: PassNone
Geoflowyaojingang/GEOFlow3.8k—~722Automated safety check: PassAGPL-3.0
Debug Using Debugbarhexlet-volunteers/hexlet-sicp1141 repos~1.5kAutomated safety check: PassAGPL-3.0
Dsqlawslabs/agent-plugins912—~6.9kAutomated safety check: PassApache-2.0
Django Query Plan Readinghashgraph-online/awesome-codex-plugins1.2k—~660Automated safety check: PassMIT

Similar skills

  • Arch Wiki

    ahmedemad3/arch-wiki

    Scans any project codebase for new/changed modules, endpoints, middleware, infrastructure, Docker topologies, SQL queries, or permissions and updates docs/architecture/architecture.json.

    249 GitHub stars~5.1k tokensUpdated 18 days ago
    Backend & APIsAuto-check passed
  • Geoflow

    yaojingang/GEOFlow

    Operate/develop GEOFlow CLI/Laravel/admin/API, topics/专题 and topic tasks, theme libraries/replication, sites/leads/Agent, channel sync and legacy yao-geoflow-cli/design/template migration.

    3.8k GitHub stars~722 tokensUpdated 6 days ago
    Backend & APIsAuto-check passed
  • Debug Using Debugbar

    hexlet-volunteers/hexlet-sicp

    Inspect what a Laravel request actually did — queries, exceptions, timing, cache, auth, views — by reading the profiling data Laravel Debugbar already captured, via Artisan commands.

    114 GitHub starsUsed in 1 repo~1.5k tokens
    Backend & APIsAuto-check passed
  • Dsql

    awslabs/agent-plugins

    Official

    Build with Aurora DSQL — manage schemas, execute queries, handle migrations, diagnose query plans, diagnose cluster performance, load data, and develop applications with a serverless, distributed…

    912 GitHub stars~6.9k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Django Query Plan Reading

    hashgraph-online/awesome-codex-plugins

    Read and compare Django/PostgreSQL query execution plans using QuerySet.explain(), EXPLAIN, EXPLAIN ANALYZE, scan types, joins, estimates, actual timing, buffers, and row counts.

    1.2k GitHub stars~660 tokensUpdated today
    DatabasesAuto-check passed
  • Migrate

    softspark/ai-toolkit

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

    179 GitHub stars~1.3k tokensUpdated today
    DatabasesAuto-check: notes

More from AHS12/thoth-blueprint

  • AI Assistant

    AHS12/thoth-blueprint

    Safely change the schema AI assistant, cloud or local providers, credentials, context construction, streamed patches, retries, validation, or atomic diagram application.

    626 GitHub stars~534 tokensUpdated 1 mo ago
    Auto-check passed
  • Diagram Editor

    AHS12/thoth-blueprint

    Safely change the React Flow database diagram editor, including table, note, zone, relationship, selection, locking, layout, keyboard, and viewport behavior.

    626 GitHub stars~506 tokensUpdated 1 mo ago
    Auto-check passed
  • Import Export

    AHS12/thoth-blueprint

    Change SQL, SQLite worker, DBML, JSON, Mermaid, SVG, or database export/import flows while preserving diagram semantics and round trips.

    626 GitHub stars~499 tokensUpdated 1 mo ago
    Auto-check passed
  • Persistence

    AHS12/thoth-blueprint

    Safely change browser-local persistence, Dexie schemas, store synchronization, backups, trash, restore, or checkpoints.

    626 GitHub stars~463 tokensUpdated 1 mo ago
    Auto-check passed
  • Pwa Release

    AHS12/thoth-blueprint

    Safely change Vite, service-worker, offline fallback, cache, Docker, Vercel, or release-distribution behavior.

    626 GitHub stars~505 tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about Migration Codegen

What does Migration Codegen do?

Change Laravel, TypeORM, or Django migration generation and generated SQL parsing. Migration Codegen is an agent skill from AHS12/thoth-blueprint. Change Laravel, TypeORM, or Django migration generation and generated SQL parsing.

When should I use Migration Codegen?

Migration Codegen fits situations like: modifying framework code generation; migration artifacts.

How do I install Migration Codegen in Claude Code?

Run `npx skills add AHS12/thoth-blueprint --skill migration-codegen -a claude-code`. Or copy the skill folder (.agents/skills/migration-codegen in AHS12/thoth-blueprint) into .claude/skills/migration-codegen in your project. Claude Code loads it when a task matches its description.

How do I install Migration Codegen in Codex?

Run `npx skills add AHS12/thoth-blueprint --skill migration-codegen -a codex`. Or copy the skill folder (.agents/skills/migration-codegen in AHS12/thoth-blueprint) into .agents/skills/migration-codegen in your project. Codex loads it when a task matches its description.

Can I use Migration Codegen 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 AHS12/thoth-blueprint --skill migration-codegen -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-codegen, .gemini/skills/migration-codegen, .github/skills/migration-codegen and .opencode/skills/migration-codegen in your project.

What does Migration Codegen need to run?

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

Does Migration Codegen 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 Codegen 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 Codegen use?

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

How many tokens does Migration Codegen use?

About 425 tokens (SKILL.md is roughly 1.7k 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 Codegen?

Skills that share tags, products or a category with Migration Codegen: Arch Wiki (ahmedemad3/arch-wiki, 249 stars), Geoflow (yaojingang/GEOFlow, 3.8k stars), Debug Using Debugbar (hexlet-volunteers/hexlet-sicp, 114 stars) and Dsql (awslabs/agent-plugins, 912 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Migration Codegen?

AHS12 (a GitHub user) maintains it in AHS12/thoth-blueprint, which has 626 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on August 12, 2026.

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