Agent skill
undo-redo
Use the undo_redo tool to rewind or reapply buffered file changes or inspect diffs without UI navigation. Use when you need to adjust or verify changes in the current session history.
Install this agent skill to your Project
npx add-skill https://github.com/Dwsy/agent/tree/main/extensions.disabled/undo-redo/skills/undo-redo
SKILL.md
Undo/Redo (LLM Tool)
When to use
- You need to roll back or reapply buffered filesystem changes without asking the user to navigate the session tree.
- You need a diff for a specific file across conversation leaves.
- You need a list of all buffered diffs.
Tool actions
undo_redo supports the following actions:
undo: move to the previous leaf and restore files.redo: move to the next leaf and restore files.list_diffs: list all buffered diffs across leaves.diff: show a diff for a specific file.pathis required.leafIdis optional (defaults to the current leaf).
Examples
{"action":"undo"}
{"action":"redo"}
{"action":"list_diffs"}
{"action":"diff","path":"src/index.ts"}
{"action":"diff","leafId":"abcd1234","path":"README.md"}
Important behavior difference vs commands
The tool does not trigger UI navigation and does not rebuild the current turn context. This keeps the current KV cache intact and avoids editor/tree updates. The new leaf and restored files will be applied for the next user prompt when pi rebuilds context. If the user wants immediate UI navigation and context replay, instruct them to use /undo or /redo instead.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
exa
使用 Exa.ai API 进行高质量的互联网搜索。需要 EXA_API_KEY 环境变量。
backend-unit-test
后端单元测试技能。触发场景: - 用户要求运行/创建单元测试 - 用户要求验证数据 - 用户要求用 Maven 运行测试 - 关键词:test, maven test, junit, springboot test, 单元测试, 测试验证 核心:不改 pom,用 reactor 模式运行。
mermaid-flow-image
将流程需求整理为可渲染的 Mermaid(简化版/详细版),并通过 Kroki 生成可发送的高分辨率 PNG 图片。适用于“把架构流程画出来并直接发图”的场景。
web-browser
Allows to interact with web pages by performing actions such as clicking buttons, filling out forms, and navigating links. It works by remote controlling Google Chrome or Chromium browsers using the Chrome DevTools Protocol (CDP). When Claude needs to browse the web, it can use this skill to do so.
ralph-loop-gen
任务管理系统模板生成器 - 根据用户输入或JSON配置生成完整的任务管理结构(模板生成器,非直接执行器)
tmux
Remote control tmux sessions for interactive CLIs, background tasks, and services.
Didn't find tool you were looking for?