snapshot

Create safe code snapshots with rollback commands for Git and non-Git projects.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/Rheinmir/skills-kit --skill snapshot-rheinmir
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: snapshot
Source: https://github.com/Rheinmir/skills-kit/tree/main/skills/snapshot
Command: npx skills add https://github.com/Rheinmir/skills-kit --skill snapshot-rheinmir

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Snapshot code tại thời điểm hiện tại — backup an toàn, rollback ngay nếu cần.

Core Features & Use Cases

  • Git-backed snapshot: detect dirty repo, stash or commit, and provide a rollback command.
  • Non-Git backup: rsync with hardlinks to minimize duplicate data, maintain a latest snapshot pointer, and generate snapshot stats.
  • Rollback ready: outputs a concrete ROLLBACK_CMD to restore to the previous state.

Quick Start

Run the snapshot script in your project directory to create a new backup snapshot and display the rollback command.

Frequently Asked Questions about snapshot

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

FAQPage Schema
How do I create a code snapshot for a non-Git project directory?▼

To create a code snapshot for a non-Git project, this Skill uses rsync with hardlinks to minimize duplicate data, maintains a latest snapshot pointer, and outputs snapshot stats for your directory backup.

Can I backup my code if my Git repository has a dirty worktree and untracked files?▼

Yes, you can backup code with a dirty worktree. The Git-backed snapshot detects dirty repositories, handles untracked files by stashing or committing, and provides a concrete rollback command for restoration.

What is the best way to rollback code to a previous state after making a backup?▼

The best way to rollback code is using the deterministic ROLLBACK_CMD output. This Skill produces a concrete rollback command and snapshot metadata during the backup process for instant project directory restoration.

Does this Bash snapshot tool support incremental backups for project directories?▼

Yes, this Bash snapshot tool supports incremental backups. It uses rsync with hardlinks to minimize duplicate data and maintains a latest-snapshot pointer to manage incremental project directory states efficiently.

Do I need Git installed to automate code backups and rollback points?▼

No, you do not need Git installed to automate code backups. This Skill supports both Git repositories and non-Git projects, using rsync for non-Git directories to create safe code snapshots and instant rollback points.