undo-module
OfficialRobust undo/redo with mergeable commands.
Authorpunkfuncgames
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Undo/redo systems are essential for complex interactions, but implementing reliable, mergeable undo stacks across diverse actions is error-prone and time-consuming.
Core Features & Use Cases
- Implements an UndoRedoService that exposes deterministic undo/redo stacks, reactive state (e.g., CanUndo, CanRedo), and event-driven notifications.
- Supports mergeable commands via IMergeableCommand to condense consecutive actions and optimize history.
- Includes built-in commands (CompositeCommand, MoveTransformCommand, SetSettingCommand<T>, SetVolumeCommand) and a ready-to-use installer to wire the service in projects.
- Event types include CommandExecutedEvent, UndoPerformedEvent, RedoPerformedEvent, and UndoStackClearedEvent for UI and analytics.
Quick Start
Install and wire up the UndoRedoService, implement a custom IUndoableCommand, and attach it to your action triggers via ExecuteAsync to enable undo/redo.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: undo-module Download link: https://github.com/punkfuncgames/tetris-clone/archive/main.zip#undo-module Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.