Paperfit Undo — Development skill for Claude Code
/paperfit-undo — 回滚最近一次源码写入.
How to install Paperfit Undo
Installs to ~/.claude/commands/openraiser-paperfit-paperfit-undo.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/OpenRaiser/PaperFit/HEAD/.claude/commands/paperfit-undo.md -o ~/.claude/commands/openraiser-paperfit-paperfit-undo.md Restart Claude Code, or start a new session, for it to be picked up.
What Paperfit Undo does
/paperfit-undo — 回滚最近一次源码写入
**作用**: 恢复最近一次 PaperFit 自动写回前的备份版本,优先回滚主 `.tex`,必要时一并恢复 `data/state.json`。
**用户入口说明**:
- 这是回滚入口,用户只需要表达“撤销上次自动修改”之类的意图。
- 不要要求用户手动定位备份文件再执行恢复命令。
- 回滚后的输出应解释恢复了什么、当前状态如何,而不是只给文件路径。
**防呆约束**:
- 不要使用
git reset --hard、git checkout --之类的破坏性命令 - 不要调用内部任务管理工具来“创建回滚任务”
- 若
data/backups/中没有匹配备份,应明确说明无法自动回滚,而不是猜测性覆盖文件
工具调用约定
在论文项目根目录内:
- 主源码备份通常位于
data/backups/.*.bak - 状态备份通常位于
data/backups/state_*.json - 回滚后可执行 `paperfit run scripts/paperfit
Alternatives in Development
- Ccundo — Integrates seamlessly with Claude Code to provide granular undo functionality by reading directly from Claude 1.4k ★
- Skill Rollback — Roll back a skill to a previous version (self-improving skills AMEND layer — undo) 6 ★
- Ccundo — ccundo seamlessly integrates with Claude Code to provide granular undo functionality 3 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Paperfit Priority
/paperfit-priority — 调整当前修复优先级
Paperfit
/paperfit — PaperFit 统一自然语言入口
Lesson Review
Review recent lessons and optionally undo a lesson outcome — /lesson-review
Claude Keep Undo
Review every change Claude Code makes to your files and Keep or Undo them hunk by hunk.
Nms Build Import
Claude skill: copy another player's No Man's Sky base or corvette build into your own save - verified backup,
Counterstep
A rehearsed undo ledger for developers running coding agents with write access
Related Agents
Workspace Sync
Use this agent when the user wants to save work, sync repos, undo changes, check history, or manage branches.
Apply
Apply category changes to a WordPress site with full logging. Every change is recorded for undo.
Settings Usability QA
Deep usability review of Tulip's Settings page — whether an operator can find a control, understand what it do