Paperfit Undo
Description
# /paperfit-undo — 回滚最近一次源码写入 **作用**: 恢复最近一次 PaperFit 自动写回前的备份版本,优先回滚主 `.tex`,必要时一并恢复 `data/state.json`。 **用户入口说明**: - 这是回滚入口,用户只需要表达“撤销上次自动修改”之类的意图。 - 不要要求用户手动定位备份文件再执行恢复命令。 - 回滚后的输出应解释恢复了什么、当前状态如何,而不是只给文件路径。 **防呆约束**: - 不要使用 `git reset --hard`、`git checkout --` 之类的破坏性命令 - 不要调用内部任务管理工具来“创建回滚任务” - 若 `data/backups/` 中没有匹配备份,应明确说明无法自动回滚,而不是猜测性覆盖文件 ## 工具调用约定 在论文项目根目录内: - 主源码备份通常位于 `data/backups/<main_tex文件名>.*.bak` - 状态备份通常位于 `data/backups/state_*.json` - 回滚后可执行 `paperfit run scripts/paperfit
Installation
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.
Full documentation available on GitHub
View Source RepositoryRelated Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11