OpenParable
Skip to content
← Back to skills

Rollback Migration

DevOps & Security
rollback-migration

Rollback 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)

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. 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

  1. If $ARGUMENTS is provided, use it as the config file path. Otherwise, find all rockhopper_*.yaml config files and ask the user which one to use.
  2. First show current status so the user sees what will be rolled back:
    rockhopper --config <config_file> status
    
  3. Confirm with the user before proceeding.
  4. Run:
    rockhopper --config <config_file> down
    
  5. Report the result.