From promptrail
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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/promptrail:rollbackThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Undo a specific prompt's file changes using exact string-matching reversal.
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.
npx claudepluginhub thisalihassan/promptrail --plugin promptrailAutomatically tracks Claude's file edits and conversations. Rewind code changes, chat history, or both via /rewind or Esc+Esc. Summarizes sessions to manage context and recover from errors.
Reverts git changes by logical work unit — full track, specific phase, or individual task — with pre-flight checks and guided selection.