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
⚠ Flagged1 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.
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:
alembic.ini→ Alembic (Python / SQLAlchemy)knexfile.js→ Knex (Node.js)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.
- Author: stbenjam
- Source: stbenjam/skillsaw
- License: Apache-2.0
- Homepage: https://skillsaw.org/
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.