# Undo

> Rollback the last destructive operation using git or project backups

- Skill: `manastalukdar/undo` (Agent Skill)
- Install (CLI): `npx skillmds@latest add manastalukdar/undo`
- Raw SKILL.md: https://api.skillmd.com/api/skills/manastalukdar/undo/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: manastalukdar (https://skillmd.com/u/manastalukdar)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/manastalukdar/undo

---


# Undo Last Operation

I'll help you rollback the last destructive operation performed by AI DevStudio commands.

## Token Optimization

**Expected range**: 100–500 tokens (initial), 50 tokens (already clean)

**Caching**: Uses shared cache in `.claude/cache/` — no undo-specific cache.

**Early exit**: Returns immediately if the working tree is already clean with no stashes.

**Patterns used**: Grep-before-Read, early exit, Bash for system queries

