AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL unreviewed MIT Self-run

Migrate Db

skill-ao92265-claude-code-playbook-migrate-db · by ao92265

>

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

Install

$ agentstack add skill-ao92265-claude-code-playbook-migrate-db

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.

View the full security report →

Reliability & compatibility

Not yet reviewed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Migrate Db? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Safe Database Migration

Execute database schema migrations with safety checks at every step.

Steps

  1. Pre-flight checks:
  • Verify database connection: test credentials and connectivity
  • Confirm target database and environment (dev/staging/prod)
  • Check for pending migrations: list unapplied migrations
  • Verify no other migrations are currently running
  • ASK the user to confirm the target environment before proceeding
  1. Review the migration:
  • Read the migration file(s) to understand what changes will be made
  • Identify destructive operations: DROP TABLE, DROP COLUMN, ALTER TYPE
  • Flag any operations that will lock tables for extended periods
  • Check for data migrations vs. schema-only changes
  • Estimate impact: how many rows affected, expected duration
  1. Backup verification:
  • Confirm a recent backup exists (ask the user)
  • For production: require explicit confirmation that backup was taken within the last hour
  • For dev/staging: note that backup is recommended but not blocking
  • Record the current schema state: pg_dump --schema-only or equivalent
  1. Dry run (if supported):
  • Run migration with --dry-run or --pretend flag if available
  • For SQL migrations: wrap in a transaction and ROLLBACK
  • Review the dry-run output for unexpected changes
  • Confirm output matches expected behavior
  1. Execute the migration:
  • Run the migration command
  • Monitor output for errors
  • If migration fails partway: DO NOT retry automatically — report the state and ask the user
  1. Post-migration verification:
  • Run schema diff to confirm changes match expectations
  • Execute smoke test queries to verify data integrity
  • Check that the application can connect and basic operations work
  • Run the application's test suite against the migrated database
  1. Document the rollback plan:
  • Write the exact commands needed to reverse the migration
  • If migration is irreversible (data deletion), document what was lost
  • Save rollback steps to a file for reference

Important

  • NEVER run migrations on production without explicit user confirmation.
  • NEVER auto-retry failed migrations. Partial migrations leave the database in an inconsistent state.
  • Always verify the target environment. A migration meant for dev running on prod is catastrophic.
  • Destructive operations get extra scrutiny. DROP and DELETE are irreversible even with backups.
  • If in doubt, stop and ask. A delayed migration is better than a broken database.

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.