Skip to content
Agentmart
Submit a tool

rollback

Safely revert the last commit or staging push.

Skill by krone9

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/krone9-rollback

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Safely revert the last commit or staging push. Use when the user types /rollback or asks to undo the last commit or deployment. Always requires explicit confirmation before executing.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/rollback

Tools it pre-approves 6

From allowed-tools in SKILL.md: the agent may use these without asking you each time.

  • Bash(git
  • log:*),
  • revert:*),
  • reset:*),
  • status:*),
  • Write

What's inside

Skill name
rollback
Description
Safely revert the last commit or staging push. Use when the user types /rollback or asks to undo the last commit or deployment. Always requires explicit confirmation before executing.
License
MIT
Allowed tools
Bash(git, log:*),, Bash(git, revert:*),, Bash(git, reset:*),, Bash(git, status:*),, Write
Instructions
56 lines in SKILL.md · view on GitHub

Before installing

  • Pre-approves some shell commands

Files (1)

  • SKILL.md

SKILL.md (first lines)

## Task: Rollback last commit or staging push

This command ALWAYS requires explicit user confirmation before making any changes.

---

### Step 1: Show what will be reverted
Run `git log -1 --stat` to display:
- Commit hash
- Commit message
- Files affected
- Author and timestamp

Output this clearly so the user knows exactly what will be undone.

---

### Step 2: Ask for confirmation
Output:
```
⚠️  About to revert the above commit. This cannot be automatically undone.

Type YES to confirm rollback, or anything else to cancel.
```

Wait for the user's explicit confirmation. If they do not type YES (case-insensitive), abort and report "Rollback cancelled."

---

### Step 3: Execute rollback (only if confirmed)
Use `git revert HEAD --no-edit` to create a new revert commit (safe, preserves history).

Do NOT use `git reset --hard` unless the user explicitly requests a hard reset and confirms they understand history will be rewritten.

---

### Step 4: Log the rollback
Append an entry to `claude/changes.md`:
```
## [YYYY-MM-DD HH:MM] Rollback

Reverted commit: [hash] — [message]
Reason: User-initiated rollback via /rollback
```

---

### Step 5: Report
```
✅ Rollback complete.
Reverted: [hash] — [message]
New commit: [revert hash]
Logged to claude/changes.md
```

From krone9/pi-superpowers, MIT.

More from krone9/pi-superpowers

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
May 5, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from krone9

Cite this page

rollback skill. Agent Mart. https://agentmart.dev/skills/krone9-rollback (last updated 2026-10-24)