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

- Skill name: `rollback-migration`
- Category: [DevOps & Security](https://www.openparable.com/skill/devops-security/1)
- Source: https://github.com/c9s/bbgo/blob/HEAD/.claude/skills/rollback-migration/SKILL.md
- Repository: c9s/bbgo (1,662 GitHub stars when collected)

## SKILL.md

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:
   ```bash
   rockhopper --config <config_file> status
   ```
3. Confirm with the user before proceeding.
4. Run:
   ```bash
   rockhopper --config <config_file> down
   ```
5. Report the result.

---

Source: https://www.openparable.com/skill/devops-security/rollback-migration (OpenParable). Cite the canonical URL above.
