# Go back

> Go back is an open-source agent skill for developer tools. Rewinds a git project to an earlier save point, keeping a rescue copy first. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/drbojlergyula/BuildWithAI/tree/main/.claude/skills/go-back
- **Repository:** https://github.com/drbojlergyula/buildwithai
- **GitHub stars:** 7
- **License:** MIT
- **Skill name:** go-back
- **Collection:** https://github.com/drbojlergyula/BuildWithAI
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill lets an agent roll a git project back to one of its recent commits. It lists the latest save points in plain language with how long ago each was made, so the user can pick one by description rather than by hash.

Before anything is changed, the skill checks for uncommitted edits and offers to save them first. It then creates a rescue branch pointing at the current state, so the rewind itself can be reversed later. Only after that backup exists and the user confirms the target does it restore the working tree, and it finishes by reporting where the project now sits and how to get back.

It expects a git repository with commit history and is written for Claude Code, where it is invoked by the user rather than triggered automatically. If the project has already been pushed and the rewind would rewrite shared history, the skill flags that and asks for approval first.

## When your agent uses it

> Return the project to an earlier save point — safely. Shows recent save points in plain English, keeps a rescue copy of the current state, then restores the chosen one. Use when something went wrong and the user wants to rewind.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/drbojlergyula/BuildWithAI/tree/HEAD/.claude/skills/go-back)
- [Asks for: Bash(git log:*), Bash(git status:*), Bash(git branch:*), Bash(git add:*), Bash(git commit:*), Bash(git reset:*), Bash(echo:*)](https://github.com/drbojlergyula/BuildWithAI/blob/HEAD/.claude/skills/go-back/SKILL.md)
- [License: MIT](https://github.com/drbojlergyula/BuildWithAI/tree/HEAD/.claude/skills/go-back)

## Features

- **Plain-language save points:** Shows recent commits as a numbered list with descriptions and relative dates.
- **Automatic rescue branch:** Preserves the current state on a rescue branch before any rewind happens.
- **Uncommitted work check:** Detects unsaved changes and offers to save them before proceeding.
- **Confirmed restore step:** Restores the chosen commit only after the user explicitly confirms the target.
- **Shared history warning:** Warns and requires approval when a rewind would rewrite already pushed history.
- **Reversible rewind:** Gives a path back to the rescue copy if the rewind turns out to be a mistake.

## Good for

- Undo a change that broke the project and return to the previous working state
- Go back to the save point from before a specific edit, such as a payment change
- Return the repo to an earlier commit while keeping the abandoned work on a branch
- Recover from a bad refactor without losing the work done since

## Install

### Claude Code

This skill ships in the `buildwithai-team` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add drbojlergyula/BuildWithAI
/plugin install buildwithai-team@buildwithai
```

Or copy only this skill to `~/.claude/skills/go-back`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/drbojlergyula/BuildWithAI.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/go-back &&
cp -R "$tmp/.claude/skills/go-back" ~/.claude/skills/go-back &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/go-back` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/go-back` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/drbojlergyula/BuildWithAI.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/go-back &&
cp -R "$tmp/.claude/skills/go-back" ~/.agents/skills/go-back &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/go-back` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/go-back` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/drbojlergyula/BuildWithAI.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/go-back &&
cp -R "$tmp/.claude/skills/go-back" ~/.cursor/skills/go-back &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/go-back` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/drbojlergyula/BuildWithAI.git --path .claude/skills/go-back
```

Or copy the folder to `~/.gemini/skills/go-back` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/go-back`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/drbojlergyula/BuildWithAI.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/go-back &&
cp -R "$tmp/.claude/skills/go-back" ~/.copilot/skills/go-back &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/go-back` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/drbojlergyula/BuildWithAI.git
```

Then copy `BuildWithAI/.claude/skills/go-back` into your agent's skills folder as `go-back`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Go back delete my current work?

No. Before rewinding, it creates a rescue branch on the current commit, so the state can be restored later. It also offers to commit uncommitted changes first.

### When does Go back run?

Only when the user invokes it. The skill is marked so the agent never triggers it on its own initiative.

### Which git commands can Go back use?

Its allowed tools cover git log, status, branch, add, commit and reset, plus echo. It has no scripts or additional files.

### How do I install Go back in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/go-back to use it in all your projects, or to .claude/skills/go-back in one project. Or install the buildwithai-team plugin, which includes it: /plugin marketplace add drbojlergyula/BuildWithAI, then /plugin install buildwithai-team@buildwithai.

### Does Go back run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Go back?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Go back?

The closest alternatives to Go back are Take over resume, Save point, Conductor:revert, Dispatched bash agent git checkout clobbers uncommitted edit and Concurrent session checkout clobbers shared worktree.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Take over resume](https://ai-powered.com/skills/take-over-resume): Take over resume is an open-source agent skill for developer tools.
- [Save point](https://ai-powered.com/skills/save-point): Save point is an open-source agent skill for developer tools.
- [Conductor:revert](https://ai-powered.com/skills/conductor-revert): Conductor:revert is an open-source agent skill for developer tools.
- [Dispatched bash agent git checkout clobbers uncommitted edit](https://ai-powered.com/skills/dispatched-bash-agent-git-checkout-clobbers-uncommitted-edit): Dispatched bash agent git checkout clobbers uncommitted edit is an open-source agent skill for developer tools.
- [Concurrent session checkout clobbers shared worktree](https://ai-powered.com/skills/concurrent-session-checkout-clobbers-shared-worktree): Concurrent session checkout clobbers shared worktree is an open-source agent skill for developer tools.
- [Git workflow](https://ai-powered.com/skills/git-workflow-aws-solutions): Git workflow is an open-source agent skill for developer tools.
- [Recall](https://ai-powered.com/skills/recall-michael-denyer): Recall is an open-source agent skill for developer tools.
- [Make PR easy to review](https://ai-powered.com/skills/make-pr-easy-to-review): Make PR easy to review is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/go-back
