| name | ai-rollback |
| description | Rollback a bad release or revert a merged PR. Use when something broke after a merge or release. Also triggered by 'something broke', 'undo the last release', 'revert'. |
| argument-hint | [PR-number or commit-sha or --dry-run] |
Plan and apply a rollback using the standardized repo workflow: $ARGUMENTS
Primary flow:
- Run
uv run ai-tools repo rollback plan --json $ARGUMENTS.
- Present target, impact, and warnings (including migration/infrastructure notes if present).
- If this is a dry run, stop after the plan.
- For non-dry-run requests, get explicit user confirmation, then run
uv run ai-tools repo rollback apply --json $ARGUMENTS.
- Summarize results and continue with
/ai-monitor-pipeline.
Transitional fallback:
- If rollback commands are unavailable, state the tool gap and ask whether to switch to a manual revert workflow.