AI Prompt Rollback
Reverts specific AI-generated code changes by prompt index or search text to restore previous file states.
AI Prompt Rollback provides prompt-level version control for Claude Code, allowing developers to undo specific sets of changes by referencing a prompt number or intent-based search terms. It utilizes exact string-matching reversal and handles file creations, while intelligently detecting conflicts if subsequent prompts have modified the same lines. This skill ensures a safe, reversible workflow when experimenting with AI-driven refactoring, feature development, or debugging by allowing users to preview changes via a diff before finalizing the destructive operation.
Key Features
01Undo specific prompt changes using exact string-matching reversal
02Conflict detection for overlapping edits from later prompts
033 GitHub stars
04Pre-execution diff visualization to preview affected files
05Automatic deletion of AI-created files if they remain unmodified
06Search-based rollback targeting prompt intent or descriptions
Use Cases
01Reverting an AI-driven refactor that introduced unexpected side effects
02Undoing a specific feature implementation while keeping subsequent unrelated edits
03Recovering original file states after an experimental prompt fails to meet requirements