rewind

Restore the Git working directory to a previous checkpoint without altering HEAD.

191|29|Updated Sep 2, 2025
One-click install
npx skills add https://github.com/juanandresgs/claude-ctrl --skill rewind-juanandresgs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rewind
Source: https://github.com/juanandresgs/claude-ctrl/tree/main/skills/rewind
Command: npx skills add https://github.com/juanandresgs/claude-ctrl --skill rewind-juanandresgs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill allows you to revert the agent's actions to a previous, stable state when it has gone off track, preventing further errors and wasted effort.

Core Features & Use Cases

  • Checkpoint Restoration: Revert the working directory to a previously saved snapshot.
  • State Recovery: Safely undo unintended changes or incorrect agent decisions.
  • Use Case: If the agent makes a series of incorrect code modifications, you can use this Skill to rewind to a point before those changes were introduced, allowing you to continue development from a known good state.

Quick Start

Use the rewind skill to restore the session to checkpoint number 3.

Frequently Asked Questions about rewind

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I revert a Git working directory to a previous checkpoint state?

To restore a Git working directory to a checkpoint, this Skill reverts file modifications and removes newly created untracked files. It restores the session to a previously saved snapshot, allowing you to recover from unintended changes and continue from a known good state.

Can I undo agent code modifications without moving my current Git branch pointer?

Yes, you can undo agent code modifications without altering the HEAD or branch pointer. This Skill specifically reverts the working directory to a previous named checkpoint state while keeping your branch pointer completely intact.

How do I remove untracked files created by an agent error in my repository?

To remove untracked files created by an agent error, you can restore the working directory to a previous checkpoint. This process safely reverts unintended file modifications and removes newly created untracked files introduced by the agent.

Do I need Git command-line tools to restore a session from a named checkpoint?

Yes, you need Git command-line tools to restore a session from a checkpoint. The restoration process also requires a session context managed by shell hooks to successfully revert the working directory to the saved state.

What is the best way to recover from incorrect agent decisions in version control?

The best way to recover from incorrect agent decisions in version control is to rewind to a point before those changes were introduced. This state recovery approach prevents further errors by reverting file modifications and removing untracked files from a named checkpoint.