unity-history

Inspect and control undo and redo operations on the Unity Editor native undo stack.

Updated Jun 21, 2026
One-click install
npx skills add https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications --skill unity-history-du-qwq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-history
Source: https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications/tree/main/.agents/skills/unity-skills/skills/history
Command: npx skills add https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications --skill unity-history-du-qwq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When working in the Unity Editor, it is easy to lose track of what changed or to need to step backward and forward through recorded operations. This Skill exposes the Unity native undo stack so you can inspect the current undo state and step through undo/redo operations programmatically. ## Core Features & Use Cases - Undo Operations: Revert one or more recorded operations with history_undo, specifying how many steps to roll back. - Redo Operations: Re-apply previously undone operations with history_redo, again with a configurable step count. - State Inspection: Query the current undo history state with history_get_current to audit what changed. - Use Case: After a batch of scene edits, ask the assistant to undo the last three operations, check the current undo group, then redo one step to confirm the intended state. ## Quick Start Ask the assistant to undo the last two operations in the Unity Editor and show the current undo history state.

Frequently Asked Questions about unity-history

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I undo multiple operations at once in Unity Editor?

Use the history_undo operation with the steps parameter set to the number of operations to revert, for example steps set to 3 undoes the last three recorded operations. The default is one step when the parameter is omitted.

How can I check the current undo history state in Unity?

Call history_get_current, which takes no parameters and returns the current undo history state from the Unity Editor native undo stack. This is useful for auditing what changed before deciding to undo or redo.

Can I clear the Unity undo history through an API?

No, the Unity undo history cannot be cleared via API, and no history_clear operation exists. The undo stack is managed automatically by the Unity Editor itself.

What is the difference between history_undo and workflow session undo?

history_undo steps through the Unity Editor native undo stack for editor operations, while the workflow module handles persistent task-level or conversation-level undo. Use history_undo for editor changes and workflow_session_undo for conversation-level rollback.

Does history_list or history_get exist for browsing past operations?

No, operations named history_list and history_get do not exist. To inspect the current undo group, use history_get_current, which is the only inspection operation provided by this module.