About unity-command-pattern
A compact Unity command-pattern skill for developers who need asynchronous, data-driven actions and sequential execution. It includes an ICommand interface, ScriptableObject commands, and a command queue in one file.
Key features
- 01Task-based ICommand interface
- 02ScriptableObject-based commands
- 03Sequential command queue
- 04Single-file implementation
Use cases
- 01Run asynchronous game actions
- 02Configure simple actions in the Inspector
- 03Queue commands for sequential execution
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ muharremtozan/ unity-agent-skills --skill unity-command-patternAfter installing, type/unity-command-patternin Claude Code to confirm it loaded.
Bundled filesassets/code/Command.cs.txtreferences/guide.md
Details
From the project READMEUnity Command Pattern
Minimal command pattern with async support.
Core Features
- Async Interface:
ICommandwith Task-based execution - SO Commands: Data-driven actions for simple cases
- 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.
Comments
Markdown supported