What problem does it solve? Agent-driven edits to ComfyUI workflows can corrupt or lose working state, leaving no way to roll back after a failed rewrite or debug step. This Skill freezes workflow state before high-value agent actions and records recoverable versions afterward. ## Core Features & Use Cases - Snapshot Saving: Persist workflow_data, optional workflow_data_ui, and attributes into a SQLite workflow_version table keyed by session_id. - Version Restore: Retrieve the latest snapshot for a session or a specific version by ID, with structured JSON output. - Hook Integration: Wired into PreToolUse hooks so checkpoints happen automatically before file edits and capability executions. - Use Case: Before an agent rewrites a workflow under projects/<id>/inputs/, a checkpoint is saved; if the rewrite breaks the graph, the repairing-workflows flow restores the prior version by session_id. ## Quick Start Ask the agent to save a checkpoint of the current ComfyUI workflow for your session, then restore the latest snapshot for that session after a failed edit.