database-migration-assistant
БесплатноЗапускает вложенные скриптыНе проверенPostgreSQL migration assistant that plans, applies, and rolls back schema changes with drift detection for safe AI-agent execution.
от jiayaoqijia★ 81 звезда на GitHubОб этом скилле
Database Migration Assistant with Rollback
A PostgreSQL migration assistant that makes schema changes safe and repeatable.
It provides plan/apply/rollback workflows with drift detection, and exposes stable CLI tools for AI agents to call.
Designed for production safety: preview first, confirm, then execute.
Quick Start
from spoon_ai.agents import SpoonReactSkill
agent = SpoonReactSkill(
name="db_migration_agent",
skill_paths=["./ai-productivity"],
scripts_enabled=True
)
result = await agent.run("Plan database migrations for this project")
print(result)
Scripts
| Script | Purpose |
|---|---|
| plan_migrations.py | Build a migration plan and detect drift |
| apply_migrations.py | Apply pending up migrations (supports dry-run) |
| rollback_migrations.py | Roll back the latest migration or to a target version |
| generate_migration.py | Generate a new migration SQL template |
Environment Variables
| Variable | Required | Description |
|---|---|---|
DB_URL |
Yes | PostgreSQL connection string, e.g. postgresql://user:pass@host:5432/db |
Best Practices
- Always run
planand review the output beforeapply. - In production, require explicit confirmation and a recent backup.
- Treat migration files as append-only; never edit applied migrations.
Установить database-migration-assistant в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл database-migration-assistant?
PostgreSQL migration assistant that plans, applies, and rolls back schema changes with drift detection for safe AI-agent execution.
Как установить скилл database-migration-assistant?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл database-migration-assistant запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic