command-pattern-undo

Community

Implement reversible actions with undo/redo.

Authornlelouche
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a robust implementation of the Command Pattern, enabling operations to be easily undone and redone, crucial for user-facing actions in editors or games.

Core Features & Use Cases

  • Encapsulates Operations: Turns requests into objects, allowing for parameterization, queuing, and logging of operations.
  • Undo/Redo Functionality: Manages a history stack to revert or reapply executed commands.
  • Use Case: In a Unity Editor tool, a user can place or delete objects, and then use Ctrl+Z to undo the action, or Ctrl+Y to redo it, maintaining a seamless workflow.

Quick Start

Use the command-pattern-undo skill to generate a C# script for a 'PlaceBuildingCommand' that takes a grid, cell coordinates, and building type.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 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: command-pattern-undo
Download link: https://github.com/nlelouche/Unity-SkillForge/archive/main.zip#command-pattern-undo

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.