Rollback Migration
DevOps & Securityrollback-migrationRollback Migration is an Agent Skill for devops & security published in the c9s/bbgo repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Rollback the last applied database migration (rockhopper down)
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/c9s/bbgo/blob/HEAD/.claude/skills/rollback-migration/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/rollback-migration, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Rollback the last applied migration using rockhopper.
Steps
- If
$ARGUMENTSis provided, use it as the config file path. Otherwise, find allrockhopper_*.yamlconfig files and ask the user which one to use. - First show current status so the user sees what will be rolled back:
rockhopper --config <config_file> status - Confirm with the user before proceeding.
- Run:
rockhopper --config <config_file> down - Report the result.