What problem does it solve? In collaborative writing sessions, a global undo stack causes one author's Ctrl+Z to revert another co-author's live edits, and there is no clean way to reject AI-generated suggestions without destroying surrounding human text. This Skill implements distributed undo/redo so each writer only reverts their own edits or selectively rolls back AI-inserted blocks. ## Core Features & Use Cases - Per-Client Undo Stacks: Each client maintains its own local transaction log keyed by character IDs and vector clocks, so Ctrl+Z never touches other collaborators' concurrent edits. - Counter-Operation Generation: Undo produces explicit CRDT delete/re-insert operations targeting exact character IDs, propagated as normal network changes. - Selective AI Rollback: Transactions tagged as AI-generated can be reverted independently while preserving concurrent human edits. - Use Case: A writer accepts an AI copilot suggestion mid-paragraph, keeps typing, then clicks "Reject AI Suggestion" — only the AI text disappears, leaving the human sentences intact. ## Quick Start Ask the assistant to implement per-client distributed undo/redo with selective AI-block rollback in the Yjs-based collaborative editor following this skill's step-by-step process.