# Unity Command Pattern

> Encapsulate actions as objects for queuing, undo/redo, and async execution.

- Skill: `muharremtozan/unity-command-pattern` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add muharremtozan/unity-command-pattern`
- Raw SKILL.md: https://api.skillmd.com/api/skills/muharremtozan/unity-command-pattern/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: muharremtozan (https://skillmd.com/u/muharremtozan)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/muharremtozan/unity-command-pattern

---


# Unity Command Pattern

Minimal command pattern with async support.

## Core Features
1. **Async Interface**: `ICommand` with Task-based execution
2. **SO Commands**: Data-driven actions for simple cases
3. **Command Queue**: Sequential execution system

## Core Files (1 file)
- `Command.cs.txt`: Complete command pattern (interface + SO + queue)

## Usage
Implement `ICommand` for complex logic, or inherit `CommandSO` for inspector-configurable actions.

