/cc-arsenal:db-migrate [create|status|validate] [--name migration_name] [--dry-run]from cc-arsenal
Creates, checks status of, and validates database migrations by auto-detecting the project's migration framework (Alembic, Prisma, Knex, Django, Rails, Flyway, Atlas, TypeORM, Sequelize, SQLx, golang-migrate, Liquibase) from marker files, then driving that framework's own CLI.
Ships in cc-arsenal. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Create, check the status of, and validate database migrations across any framework. Auto-detects the migration tool from project marker files and drives its native CLI: this skill never invents a migration command.
DROP TABLE, DROP COLUMN, TRUNCATE, DELETE FROM get a warning and require the user's explicit go-ahead: this skill reports, it does not silently rewrite or apply a migration containing one.ls/cat/the framework CLI's own output, never guessed or reconstructed from memory.ls alembic.ini prisma/schema.prisma knexfile.* flyway.conf flyway.toml \
db/migrate/ manage.py atlas.hcl typeorm.config.* ormconfig.* \
liquibase.properties 2>/dev/null
Also check package.json (knex, db-migrate, sequelize, typeorm), pyproject.toml/requirements.txt (alembic, sqlalchemy), and Gemfile (activerecord) for framework dependencies when no marker file is conclusive.
If multiple frameworks are detected (e.g. a monorepo with both a Python and a Node service), ask the user which one they mean. If none is detected, ask the user to name it: don't guess a command for a framework you can't confirm.
Full detection table and per-framework commands: references/framework-commands.md, load it once the framework is identified, before running any create/status/rollback command.
Determine the operation from $ARGUMENTS or the user's phrasing:
create (default if unspecified): make a new migration filestatus: show pending vs. applied migrationsvalidate: check rollback coverage, naming convention, index coverage, destructive opsIf --name <name> is given, use it. Otherwise ask for a short, descriptive name before creating the file: don't invent one.
--dry-run shows what would be created/run without executing it.
Production guard. Before running any command that connects to a database (status, autogenerate/schema-diff create, shadow-database commands like prisma migrate dev, or anything that applies or rolls back), check where it points: the environment name (APP_ENV, RAILS_ENV, NODE_ENV, DJANGO_SETTINGS_MODULE), the DATABASE_URL or framework config host, and the target named in --env/profile flags. If any of it looks like production (prod, production, a non-local managed-cloud host), stop and ask the user to confirm before running. Commands that only write a file offline need no check.
Glob migrations/, db/migrate/) and match the project's pattern.--autogenerate / schema-diff mode where the framework supports it, e.g. Alembic, Prisma).validate checks below on the new file, then fix what is fixable in place: add a missing down/reverse, add a CREATE INDEX for an unindexed foreign key, rename a file that breaks the naming pattern. Re-validate after each fix. Stop after 3 rounds, or sooner once clean, and report what still fails.Run the framework's status command and show applied migrations (with timestamps), pending migrations, and the current schema version, copied from that command's real output.
Also runs automatically on a new file at the end of create. Check the target migration file(s) for:
up/forward change has a matching down/reverse (warn if missing).grep -iE "REFERENCES|foreign_key|FK_" and confirm a corresponding CREATE INDEX exists.grep -iE "DROP TABLE|DROP COLUMN|TRUNCATE|DELETE FROM", flag every hit by line.Summarize using only what Phases 1–3 actually produced:
1. Create, framework auto-detected (Alembic)
$ ls alembic.ini → found
Framework: Alembic
$ alembic revision --autogenerate -m "add_users_email_index"
Generating migrations/versions/a1b2c3_add_users_email_index.py ... done
Created: migrations/versions/a1b2c3_add_users_email_index.py
upgrade(): op.create_index('ix_users_email', 'users', ['email'])
downgrade(): op.drop_index('ix_users_email', table_name='users')
Validated (round 1 of 3): rollback present, no destructive ops, no foreign keys.
Next: `alembic upgrade head` to apply, `alembic downgrade -1` to roll back.
2. Status check (Prisma)
$ npx prisma migrate status
3 migrations found, 1 pending: 20260710120000_add_orders_table
Applied: 20260601090000_init, 20260615140000_add_users_table
Pending: 20260710120000_add_orders_table
Next: `npx prisma migrate deploy` to apply the pending migration.
3. Validate, destructive op found (Knex)
$ grep -iE "DROP TABLE|DROP COLUMN|TRUNCATE|DELETE FROM" migrations/20260716_cleanup.js
12: knex.schema.dropTable('legacy_sessions')
WARNING: destructive operation at line 12 (dropTable).
Rollback (down()) is present but only recreates an empty table — dropped data is not recoverable from this migration alone.
This needs your explicit confirmation before it's treated as ready to apply.
4. No framework detected
$ ls alembic.ini prisma/schema.prisma knexfile.* ... → none found
$ grep -l "knex\|sequelize\|typeorm" package.json → no match
I couldn't detect a migration framework from marker files or dependencies.
Which one are you using, or is this a brand-new project without one yet?
5. Two frameworks detected in a monorepo
$ ls alembic.ini → found (api/)
$ ls prisma/schema.prisma → found (web/)
Both api/alembic.ini (Alembic) and web/prisma/schema.prisma (Prisma) are present.
Which service's migration do you want — api (Alembic) or web (Prisma)?
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
SQL, Prisma, Django, TypeORM, SQLAlchemy
52 skills in this plugin
/agent-browserHeadless browser automation CLI optimized for AI agents: drives a real browser via accessibility-tree snapshots and @e1-style refs for ~93% less context than raw DOM tools. Use whenever a task needs to interact with a live web page: click, fill forms, log in, extract text or data, take screenshots, test a running web app, or scrape a site. Triggers on 'automate the browser', 'fill this form', 'click the button', 'take a screenshot of the page', 'log into', 'scrape this site', 'test my web app', 'headless browser'. Not for Playwright test-suite authoring or CDP/service-worker work needing the full JS API: use Playwright directly. Not for driving the user's own already-open, logged-in Chrome tab: use claude-in-chrome for that./anything-to-skillTurns a docs site, local folder, PDF or book, YouTube video, playlist or channel, or a topic into a source-grounded, token-efficient agent skill (hub SKILL.md, sectioned references, INDEX, evals), and can compact it into a lean expert skill. Use for "make a skill from these docs", "turn this channel into a skill". Not for a skill from your own description (use create-skill), improving one (use improve-skill) or finding third-party skills (use find-skills)./ci-generateGenerate a production-ready CI/CD pipeline config (GitHub Actions, GitLab CI, CircleCI, or Jenkins) by discovering the project's actual stack, test/build commands, and dependencies. Use when setting up CI for a new project, adding a missing workflow file, or asked to create/generate a pipeline, workflow, or `.gitlab-ci.yml`/`Jenkinsfile`. Not for writing a Dockerfile itself (see docker-init), this only wires CI stages around one. Not for running existing CI checks locally (use ci-local), this skill only authors the pipeline file itself.npx claudepluginhub mgiovani/ai-arsenal --plugin cc-arsenal