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 ★
- Free My Tv — A fast, ad-free home screen for Google TV 770 ★
- Grapys — Build GraphAI workflows in a browser GUI — drag nodes and edges, configure loops, undo/redo, then run the grap 11 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Paperfit Priority
/paperfit-priority — 调整当前修复优先级
Paperfit
/paperfit — PaperFit 统一自然语言入口
Skill Rollback
Roll back a skill to a previous version (self-improving skills AMEND layer — undo)
Oops
Agent 的 Ctrl+Z:一键精准撤销/重做。Ctrl+Z for Agent: precise undo & redo in one step. Works inside Claude Code, Codex, G
Ccundo
ccundo seamlessly integrates with Claude Code to provide granular undo functionality. It reads directly from C
Lesson Review
Review recent lessons and optionally undo a lesson outcome — /lesson-review
Related Agents
Paper Verifier
Compares the Rust implementation in outl-core against the pseudocode in Kleppmann et al. 2022 ("A highly-avail
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.