Oops — Development skill for Claude Code
Agent 的 Ctrl+Z:一键精准撤销/重做.
How to install Oops
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open lintsinghua/oops and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Oops does
Agent 的 Ctrl+Z:一键精准撤销/重做。Ctrl+Z for Agent: precise undo & redo in one step. Works inside Claude Code, Codex, Gemini CLI and Cursor CLI.
Alternatives in Development
- Understand Anything — Graphs that teach graphs that impress 80.7k ★
- Claude SEO — Multi-Platform Agent Instructions — For Cursor, Cursor Cloud Agents, Google Antigravity, and Gemini CLI 5k ★
- Haft — Engineering decisions engine that know when they're stale 1.4k ★
README
Agent 的 Ctrl+Z:一键精准撤销/重做
Claude Code、Codex、Gemini、Cursor 对文件做的任何改动都能撤销,rm -rf 也不例外。
English · 简体中文
**Agent 改乱了你的项目?一句 /oops,一键回到对话前。**
- 整轮撤回:Agent 一轮改了 30 个文件?一条命令,全部还原。
- 你的改动不丢:自动区分 Agent 与你的修改,只撤回 Agent 的部分。
- 随时反悔:撤回、重做都支持,完整时间线前后自由切换。
- 不碰 .git:独立快照,Git 历史一行不改。
- 在 Agent 里直接用:通过 hook 接入 Claude Code、Codex、Gemini CLI、Cursor CLI,无需切换工具,在对话中输入 /oops 即可撤回。
curl -fsSL https://raw.githubusercontent.com/lintsinghua/oops/main/install.sh | sh
oops init # 一次接好本机所有 Agent,之后就不用管了
为什么需要 oops
编程 Agent 已经可以自己执行 shell 命令了。有时候那条命令是 `rm -rf`、`git clean -fdx`,或者对四十个文件跑一遍 `sed -i`,而被改的文件从来没提交过。
Agent 自带的保护网在这些场景下并不够用:
- Codex 原本有
/undo,2026 年 4 月被移除(#8804、PR #19481)。要求恢复它的 openai/codex#9203“Please m
Related Skills
Promptline
A prompt library on a global hotkey: copy an error, press Ctrl+Alt+V, pick a prompt, and it pastes into Claude
Bookforge Skills
Agent skills distilled from non-fiction books. Works with Claude Code, Codex, Gemini CLI, Cursor, Copilot, and
Dsh Skillport
Every skill you already have — Claude Code, Codex, Cursor, Gemini CLI — works in DSH: Agent Skills SKILL.md di
Resume Forge
Agent skill that builds impact-first resumes for any field. Works with Claude Code, Codex, Gemini CLI, Cursor
Holochain Agent Skills
Agent skills for Holochain hApp development on Holochain 0.7. Agent Skills Open Standard, works in Claude Code
Codex Sidecar For VS Code
Watch Codex work, live, in a pane controlled by Claude Code, Cursor, Copilot or another coding agent, and step
Related Agents
Async Code
Use Claude Code or CodeX CLI to perform multiple tasks in parallel with a Codex-style UI, functioning as a per
Monk Installer
Install, upgrade, and troubleshoot monk-agent plus Monk CLI/daemon for Claude, Codex, and Cursor users.
Agent Of Empires
Claude Code, OpenCode, Mistral Vibe, Codex CLI, Gemini CLI Coding Agent Terminal Session manager via tmux and