checkpoint

Create, list, restore, and clear Git stashes prefixed with 'claude-checkpoint'.

77|4|Updated Jun 20, 2022
One-click install
npx skills add https://github.com/htlin222/dotfiles --skill checkpoint-htlin222
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: checkpoint
Source: https://github.com/htlin222/dotfiles/tree/main/claude.symlink/skills/checkpoint
Command: npx skills add https://github.com/htlin222/dotfiles --skill checkpoint-htlin222

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a robust system for managing Git checkpoints, allowing users to safely save their work before making risky changes or to easily restore previous states.

Core Features & Use Cases

  • Create Checkpoints: Save current work without committing, with optional naming.
  • List Checkpoints: View all saved checkpoints with details.
  • Restore Checkpoints: Revert to a specific saved state.
  • Pop Checkpoints: Quickly restore the most recent checkpoint.
  • Clear Checkpoints: Remove saved checkpoints.
  • Use Case: Before starting a major refactor of the authentication module, create a checkpoint named "pre-auth-refactor". If the refactor introduces critical bugs, you can easily restore to this checkpoint.

Quick Start

Create a new git checkpoint named "before risky changes".

Frequently Asked Questions about checkpoint

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

FAQPage Schema
How do I stash uncommitted changes in Git before risky code changes?

To stash uncommitted changes safely, you can create a Git checkpoint that saves your work with a specific name. This captures both tracked modifications and untracked files into a recoverable save point prefixed with 'claude-checkpoint'.

What is the best way to save my code exploration state without making a commit?

A Git checkpoint allows you to save your current work without creating a formal commit. It manages your uncommitted changes and untracked files in a dedicated stash, enabling safe code exploration and reliable recovery.

Can I restore a previous Git stash if my code refactor introduces bugs?

Yes, you can restore a previous Git checkpoint to revert your repository to a specific saved state. The Skill allows you to pop the most recent checkpoint or select a specific named checkpoint to recover your code.

Does this Git checkpoint management work with untracked files?

Yes, Git checkpoint management handles both uncommitted changes and untracked files. It ensures all current work is reliably captured in the stash save point, providing a safe state for code recovery.

How do I list and clear saved Git stashes filtered by a specific prefix?

You can list all saved checkpoints to view their details or clear them to remove saved states. The Skill specifically filters and manages stashes prefixed with 'claude-checkpoint' to keep your version control workflow organized.