Skip to content
Back to skills

Migrate

ASecurity

Run database or schema migrations — up, down, rollback, status, or create a new migration. Reads claude/build.md for migration commands.

  • 11 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
ai-agentsdatabase

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add brain-bootstrap/claude-code-brain-bootstrap --skill migrate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Migrate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Migrate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/brain-bootstrap-migrate/badge)](https://www.skillsdirectory.com/skills/brain-bootstrap-migrate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: migrate
description: Run database or schema migrations — up, down, rollback, status, or create a new migration. Reads claude/build.md for migration commands.
---

# Migrate Skill

Run database/schema migrations in non-interactive mode.

## Usage

```
/migrate up             # Run pending migrations
/migrate down           # Roll back last migration
/migrate rollback       # Same as down
/migrate status         # Show migration status
/migrate create name    # Create a new migration file
```

## Instructions

Read `claude/build.md` for the actual migration commands configured for this project.

### Determine action from $ARGUMENTS:

| Argument | Action |
|----------|--------|
| `up` or `migrate` | `{{MIGRATE_UP_CMD}}` |
| `down` or `rollback` | `{{MIGRATE_DOWN_CMD}}` |
| `status` | `{{MIGRATE_STATUS_CMD}}` |
| `create <name>` | `{{MIGRATE_CREATE_CMD}} <name>` |

### ⚠️ Migration Safety Rules:
- NEVER mix DDL and DML in the same migration
- Test rollback after every new migration: run `up` → verify → run `down` → run `up` again
- Column names: `snake_case`, scoped by table, no redundant prefixes
- For irreversible migrations (column drop, type change): require explicit user confirmation
- NEVER run migrations directly on production without a backup confirmation

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.