Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Create database migration

Skill by TryGhost

Create database migration guides an AI assistant through changing the schema of Ghost's MySQL database. It covers adding or renaming tables and columns, adding settings, creating indexes and updating data.

  • Score 87
  • 56k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install Create database migration

Built from the published package, never by AI.

git clone --depth 1 https://github.com/TryGhost/Ghost /tmp/Ghost && mkdir -p ~/.claude/skills && cp -r /tmp/Ghost/.agents/skills/create-database-migration ~/.claude/skills/create-database-migration

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install Create database migration in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Create database migration is a skill from TryGhost that walks an assistant through changing the schema of Ghost's MySQL database. It applies to adding, removing or renaming tables and columns, adding settings, creating indexes and updating data. The skill points to the canonical guide at docs/practices/database-migrations.md and acts as an executable checklist alongside it.

The workflow starts with pnpm gx generate migration, which creates an empty TypeScript migration file. The assistant then writes the change, updates ghost/core/server/data/schema/schema.ts, and tests migrate and rollback with knex-migrator. It also runs the migration integration test, the schema-sync test and the exporter unit test when tables change. It is intended for developers working on Ghost core who need a schema change.

Written from the project's SKILL.md and checked against it.

What it can do

  • Create migration fileGenerates an empty TypeScript migration file with pnpm gx generate migration and a kebab-case slug.
  • Update schema definitionKeeps ghost/core/server/data/schema/schema.ts aligned with the latest migration changes.
  • Test migrate and rollbackRuns knex-migrator migrate and rollback to check up() and down() work.
  • Run migration testsRuns the migration integration test covering initialization, rollback, forward migration and idempotency.
  • Update exporter table listsUpdates the exporter table lists when a table is added or dropped.
  • Run schema and integrity testsRuns the schema-sync test and, when fixtures or defaults change, the database integrity test.

What you need

  • Ghost repository with pnpm
  • MySQL running, which pnpm dev starts

Try asking

  • Add a column to the posts table with a migration in Ghost
  • Create a migration that adds a new setting to Ghost
  • Roll back my latest Ghost migration and test down()

Good to know

  • Written for Ghost's MySQL database and its repository commands
  • Commands run from the repository root

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/create-database-migration/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md4 KB
  • examples.md852 B
  • rules.md2 KB

Alternatives to Create database migration

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

Create database migration: common questions

Does this skill work outside the Ghost repository?

The skill is written for Ghost's MySQL database. Its commands, such as pnpm gx generate migration, are run from the Ghost repository root.

Should the assistant create the migration file by hand?

No. The source says to always use pnpm gx generate migration to create the empty migration file.

Which tests does the skill ask the assistant to run?

It asks for the migration integration test, the schema-sync test, the exporter unit test when table lists change, and the Ghost core unit tests. The integrity test is run when fixtures, default settings or default routes change.

How do I install Create database migration?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is Create database migration free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Create database migration safe to use?

It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Create database migration?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

Create database migration Install

Add to stack

Loading.