rewind

GitHub

用于将工作区和对话状态回退到指定步骤,支持通过哈希值恢复,自动备份以防误操作,适用于从错误中恢复或探索替代方案。

.claude/skills/rewind/SKILL.md regent-vcs/re_gent

触发场景

需要撤销之前的修改以恢复到历史状态 在探索不同执行路径后希望回到特定节点

安装

npx skills add regent-vcs/re_gent --skill rewind -g -y
更多选项

非标准路径

npx skills add https://github.com/regent-vcs/re_gent/tree/main/.claude/skills/rewind -g -y

不安装直接使用

npx skills use regent-vcs/re_gent@rewind

指定 Agent (Claude Code)

npx skills add regent-vcs/re_gent --skill rewind -a claude-code -g -y

安装 repo 全部 skill

npx skills add regent-vcs/re_gent --all -g -y

预览 repo 内 skill

npx skills add regent-vcs/re_gent --list

SKILL.md

Frontmatter
{
    "name": "rewind",
    "description": "Rewind workspace and conversation to a previous re_gent step. Non-destructive with automatic backup. Use when recovering from mistakes or exploring alternative paths.",
    "allowed-tools": "Bash(rgt rewind *)",
    "argument-hint": "<step-hash>",
    "disable-model-invocation": true
}

⚠️ Warning: This will restore files and conversation state to the specified step.

Automatic backup is created at .regent/backups/ before rewinding.

Rewind to a step:

rgt rewind $ARGUMENTS

The step hash can be shortened (first 7+ characters).

After rewinding, the current conversation transcript will be saved and the workspace files will match the target step's state.

版本历史

  • 359b264 当前 2026-07-24 11:31

同 Skill 集合

.agents/skills/log/SKILL.md
.claude/skills/log/SKILL.md
demo/.claude/skills/log/SKILL.md
.agents/skills/blame/SKILL.md
.agents/skills/show/SKILL.md
.claude/skills/blame/SKILL.md
.claude/skills/show/SKILL.md
demo/.claude/skills/blame/SKILL.md
demo/.claude/skills/show/SKILL.md

元信息

文件数
0
版本
359b264
Hash
b68f15c5
收录时间
2026-07-24 11:31

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-07 05:43
浙ICP备14020137号-1 $访客地图$