unity-history

Manage Unity Editor undo and redo operations over the native undo stack.

Updated Aug 18, 2026
One-click install
npx skills add https://github.com/ethanJPope/Our-Main-Hackathon-Game --skill unity-history-ethanjpope
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-history
Source: https://github.com/ethanJPope/Our-Main-Hackathon-Game/tree/main/.agents/skills/unity-skills/skills/history
Command: npx skills add https://github.com/ethanJPope/Our-Main-Hackathon-Game --skill unity-history-ethanjpope

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It gives AI agents and developers programmatic control over the Unity Editor's native undo/redo stack, letting them step backward or forward through scene changes and inspect the current undo group without manual editor interaction. ## Core Features & Use Cases - Undo Operations: Perform one or multiple undo steps via history_undo with a configurable step count. - Redo Operations: Replay undone operations via history_redo with a configurable step count. - History Inspection: Query the current undo group name and index with history_get_current for auditing what changed. - Use Case: After an automated scene modification produces unexpected results, call history_undo with steps: 3 to revert the last three operations, then use history_get_current to confirm the restored state. ## Quick Start Ask the agent to undo the last two operations in the Unity Editor and then report the current undo group name.

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 in Unity Editor programmatically?

Call history_undo with the steps parameter set to the number of operations to revert; it defaults to 1. The call returns the count of undone steps, and history_redo works the same way for redoing.

How to check the current undo group in Unity Editor?

Use history_get_current, which takes no parameters and returns the current undo group name and group index. This is a read-only operation safe to run in any approval mode.

Can I clear the Unity undo history via API?

No, Unity's undo history cannot be cleared through the API, and no history_clear skill exists. The undo stack is managed automatically by the Unity Editor itself.

What is the difference between history_undo and workflow undo in Unity skills?

history_undo replays Unity's native undo stack for simple scene changes, while the workflow module provides persistent task-level and conversation-level undo. Use workflow undo for structured task snapshots rather than raw editor operations.

Why does history_undo require approval in some modes?

history_undo and history_redo modify scene state, so they run as FullAuto execute operations that need a grant in Approval mode. history_get_current is read-only and runs directly in all modes.