AgentStack
SKILL unreviewed Apache-2.0 Self-run

Database Migrate

skill-stbenjam-skillsaw-database-migrate · by stbenjam

Generate and apply database migration scripts

No reviews yet
0 installs
11 views
0.0% view→install

Install

$ agentstack add skill-stbenjam-skillsaw-database-migrate

Open-source listing — not yet scanned by AgentStack. Follow the source repository for install instructions.

Security review

⚠ Flagged

1 finding(s); flagged for manual review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures
  • high Destructive filesystem operation.

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Database Migrate? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Database Migrate

Generate and apply database migration scripts from schema changes.

When to Use This Skill

Use when the user modifies database models and needs to create a migration, or when applying pending migrations to an environment.

Implementation Steps

Step 1: Detect Migration Tool

Check the project for migration tooling:

  1. alembic.ini → Alembic (Python / SQLAlchemy)
  2. knexfile.js → Knex (Node.js)
  3. dbconfig.yml → Goose (Go)

Step 2: Generate Migration

Create a new migration file from the current model diff:

  • Alembic: alembic revision --autogenerate -m "$DESCRIPTION"
  • Knex: npx knex migrate:make $DESCRIPTION
  • Goose: goose create $DESCRIPTION sql

Step 3: Review the Migration

Display the generated SQL and ask the user to confirm:

  • Check for destructive operations (DROP TABLE, DROP COLUMN)
  • Verify index additions won't lock large tables
  • Confirm data backfill steps are idempotent

Step 4: Apply

Run the migration against the target database:

  • Alembic: alembic upgrade head
  • Knex: npx knex migrate:latest
  • Goose: goose up

Report the migration version and any errors.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.