undo-work

undo-work is a skill for Claude Code from joris887/exosuit. It costs 18 tokens per session (1,016 once invoked), scanned A, original, MIT.

A guarded rollback workflow for undoing a failed implementation attempt. It first checks the working tree, recent commits, and saved Git changes, then asks which rollback scope to use.

In plain words
What is it for?
Reviewing the current state and then stashing, discarding, or reverting changes at the requested level: uncommitted work, recent commits, or an entire story's implementation.
Why use it?
It helps restore a clean state while showing which files and commits may be affected. The soft option saves uncommitted work in Git's stash for possible recovery.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the exosuit plugin — 46 skills, 1 command, 9 agents, 10 hooks shipped together

Good fit Reviewing the current state and then stashing, discarding, or reverting changes at the requested level: uncommitted work, recent commits, or an entire story's implementation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/joris887/exosuit/undo-work
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add joris887/exosuit --skill undo-work
Clone the repo
git clone --depth 1 https://github.com/joris887/exosuit

Made for: Claude Code.

Or install exosuit, the plugin that ships this one along with the rest of its 46 skills, 1 command, 9 agents, 10 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for undo-work

README.md
[![agentmods](https://agentmods.dev/badge/skills/joris887/exosuit/undo-work/github.svg)](https://agentmods.dev/skills/joris887/exosuit/undo-work)
Your own site
<a href="https://agentmods.dev/skills/joris887/exosuit/undo-work"><img src="https://agentmods.dev/badge/skills/joris887/exosuit/undo-work/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for undo-work

Your own site · 80×15
<a href="https://agentmods.dev/skills/joris887/exosuit/undo-work"><img src="https://agentmods.dev/badge/skills/joris887/exosuit/undo-work.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,016 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.01016
Opus 5.5 $0.00007 $0.00406
Sonnet 5.5 $0.00004 $0.00203
Haiku 4.5 $0.00002 $0.00102

Measured 3mo ago against content hash 1410dbfad559, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

undo-work scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/undo-work/SKILL.md · 135 lines

How it starts

The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.


undo-work

Safely undo work when an implementation attempt has gone wrong. Provides structured rollback with safeguards against accidental data loss.

Arguments: $ARGUMENTS

1. Assess Current State

git status
git log --oneline -10
git stash list

Determine the situation:

  • Uncommitted changes only → Soft or hard reset options
  • One or more commits on feature branch → Revert commits or reset branch
  • Mid-story-cycle → Full story rollback

Present findings to the user before proceeding.

2. Confirm Scope with User

Show the user:

  • Files that will be affected (list modified/added/deleted files)
  • Commits that will be reverted (if any)
  • Whether there's uncommitted work at risk

Ask the user to confirm one of these rollback levels:

Level What it does When to use
Soft Stash uncommitted changes (recoverable via git stash pop) "Let me save this aside and try a different approach"
Hard Discard all uncommitted changes "This attempt is wrong, start fresh from last commit"
Story Reset branch to before the story's commits "The whole story implementation needs to restart"

3. Execute Rollback

Soft (stash)

git stash push -m "undo-work: <user-provided reason or auto-description>"

Report: "Changes stashed. Use git stash pop to recover if needed."

Hard (discard uncommitted)

git diff --stat          # Show what will be lost — confirm with user
git stash push --include-untracked -m "undo-work: <user-provided reason>"
git stash drop           # Discard the stash (changes intentionally discarded)

This captures both tracked changes AND untracked files into a stash, achieving a clean working directory. If the user changes their mind before the drop, git stash pop recovers everything.

Read the full file on GitHub · 135 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 135 lines · 18 tokens per session scan A 1410dbfad559

Subscribe to this mod's changes

undo-work is a skill published in the GitHub repository joris887/exosuit (12 stars, last pushed 28d ago), licensed MIT. It adds 18 tokens to every session and 1,016 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

undo-work compared with skills from other repositories

undo-work next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
undo-workjoris887/exosuitSkill1228d agoMITA18Claude Code
land-and-deployFlorianBruniaux/claude-code-ultimate-guideSkill7.6kyesterdayCC-BY-SA-4.0A41Claude Code
pr-triageFlorianBruniaux/claude-code-ultimate-guideSkill7.6kyesterdayCC-BY-SA-4.0A73Claude Code
git-worktree-cleanFlorianBruniaux/claude-code-ultimate-guideSkill7.6kyesterdayCC-BY-SA-4.0A19Claude Code
review-prFlorianBruniaux/claude-code-ultimate-guideSkill7.6kyesterdayCC-BY-SA-4.0A45Claude Code
release-notes-generatorFlorianBruniaux/claude-code-ultimate-guideSkill7.6kyesterdayCC-BY-SA-4.0A59Claude Code
release-notesFlorianBruniaux/claude-code-ultimate-guideSkill7.6kyesterdayCC-BY-SA-4.0A13Claude Code