db-migrate
Apply all pending Supabase migrations and verify schema
When & Why to Use This Skill
This Claude skill automates the Supabase database migration workflow, enabling agents to programmatically apply pending migrations and verify schema integrity. It ensures that database structures remain consistent across different environments, reducing manual errors and streamlining backend development processes.
Use Cases
- Automated Deployment: Seamlessly apply pending SQL migrations to Supabase production or staging environments as part of a deployment pipeline.
- Schema Consistency Checks: Verify that the database schema correctly reflects the latest migration files to prevent drift and ensure application stability.
- Environment Synchronization: Quickly synchronize local development databases with the latest remote schema changes to maintain a unified development environment.
- CI/CD Integration: Incorporate database versioning and migration verification into automated workflows for continuous integration and delivery.
| name | db-migrate |
|---|---|
| description | Apply all pending Supabase migrations and verify schema |
db-migrate
Overview
Apply all pending Supabase migrations and verify schema
This skill was converted from a bash script to follow Anthropic's Agent Skills best practices.
Usage
db-migrate <command> [options]
Commands
TODO: Extract and document commands from the script
Run db-migrate --help to see available commands.
When to Use
TODO: Add specific use cases
Scripts
scripts/main.sh- Main functionality (converted from original db-migrate)
Claude can execute this script directly without loading it into context.
Additional Resources
For detailed information, see:
- reference/migration-notes.md - Conversion notes and TODOs
- reference/examples.md - Usage examples (TODO)
Progressive Disclosure
Consider adding these reference files:
reference/api-reference.md- Detailed command documentationreference/troubleshooting.md- Common issues and solutions