claude-plugin/skills/rollback/SKILL.md
Rollback (undo) the file changes from a specific AI prompt. Use when the user wants to undo, revert, or rollback changes from a specific prompt. IMPORTANT - this is destructive, always confirm with the user first.
npx skillsauth add thisalihassan/promptrail claude-plugin/skills/rollbackInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Undo a specific prompt's file changes using exact string-matching reversal.
IMPORTANT: This is a destructive operation. Always confirm with the user before executing.
The user will provide either a prompt number or search text as $ARGUMENTS.
Before rolling back:
promptrail diff $ARGUMENTSpromptrail rollback $ARGUMENTS
Selector format:
promptrail rollback 5 — rollback prompt #5promptrail rollback "add auth" — rollback prompt matching textClaude Code rollback works by finding the exact old_string/new_string pairs from the JSONL tool_use blocks and reversing them. If a later prompt modified the same strings, conflicts are reported per-file.
File creations (Write tool) are deleted if the content hasn't changed since. If later prompts modified the created file, a conflict is reported.
tools
Show the timeline of all AI prompts in this project with file change counts. Use when the user asks to see what the AI has done, list prompts, show history, or view the agent timeline.
tools
List all Claude Code sessions for this project. Use when the user asks about sessions, wants to see which sessions exist, or asks about session history.
tools
Search across all AI prompts and responses using full-text search. Use when the user wants to find a previous conversation, check if they already asked something, or search for a specific topic across sessions.
tools
View the AI's full response for a specific prompt. Use when the user wants to see what the AI replied, review a previous answer, or check tool calls from a specific prompt.