Files
leo-claude-mktplace/plugins/ops-release-manager/commands/release-rollback.md
lmiranda 2d51df7a42 feat(marketplace): command consolidation + 8 new plugins (v8.1.0 → v9.0.0) [BREAKING]
Phase 1b: Rename all ~94 commands across 12 plugins to /<noun> <action>
sub-command pattern. Git-flow consolidated from 8→5 commands (commit
variants absorbed into --push/--merge/--sync flags). Dispatch files,
name: frontmatter, and cross-reference updates for all plugins.

Phase 2: Design documents for 8 new plugins in docs/designs/.

Phase 3: Scaffold 8 new plugins — saas-api-platform, saas-db-migrate,
saas-react-platform, saas-test-pilot, data-seed, ops-release-manager,
ops-deploy-pipeline, debug-mcp. Each with plugin.json, commands, agents,
skills, README, and claude-md-integration. Marketplace grows from 12→20.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 14:52:11 -05:00

80 lines
2.1 KiB
Markdown

---
name: release rollback
description: Revert a release — remove git tag, revert version bump commit, restore previous state
---
# /release rollback
Revert a release by removing the git tag and reverting version bump changes.
## Visual Output
```
+----------------------------------------------------------------------+
| RELEASE-MANAGER - Rollback Release |
+----------------------------------------------------------------------+
```
## Usage
```
/release rollback [<version>] [--tag-only] [--force]
```
**Version:** Version to rollback (defaults to latest tag)
**--tag-only:** Only remove the tag, keep version changes
**--force:** Skip confirmation prompts
## Skills to Load
- skills/release-workflow.md
## Process
1. **Identify Release to Rollback**
- If version specified: find matching tag
- If not specified: use most recent tag
- Show the release details for confirmation
2. **Safety Checks**
- Warn if tag has been pushed to remote
- Warn if other branches have been based on this release
- Warn if CI pipeline has already deployed
- Require explicit confirmation (unless --force)
3. **Remove Git Tag**
- Delete local tag: `git tag -d vX.Y.Z`
- If tag was pushed: `git push origin :refs/tags/vX.Y.Z`
- Confirm tag removal
4. **Revert Version Changes** (unless --tag-only)
- Find the version bump commit
- Create a revert commit: `git revert <commit> --no-edit`
- This restores CHANGELOG.md, version files to previous state
5. **Cleanup**
- If release branch exists: offer to delete it
- Update any tracking references
- Show final state
## Output Format
```
## Rollback: v2.4.0
### Actions Taken
- [x] Deleted local tag v2.4.0
- [x] Deleted remote tag v2.4.0
- [x] Reverted commit abc1234 (chore(release): prepare v2.4.0)
- [x] Deleted branch release/2.4.0
### Current State
- Version: 2.3.1 (restored)
- Latest tag: v2.3.1
- CHANGELOG.md: [Unreleased] section restored
### Warnings
- If any deployments were triggered, manual rollback may be needed
- Notify team members of the release revert
```