unity-history
Manage undo/redo history over the native undo stack
How do I install this agent skill?
npx skills add https://github.com/besty0728/unity-skills --skill unity-historyIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill provides safe and documented utility functions for managing the native undo and redo history within the Unity Editor environment. It includes explicit mentions of approval requirements for state-modifying actions.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
1 file scanned · No issues
What does this agent skill do?
History Skills
Undo, redo and inspect the current undo group of the Unity Editor's native undo stack. Parameters come from the schema (GET /skills/schema?names=<skill>&wire=v2); execution and dryRun rules: root SKILL.md.
The skills are defined in WorkflowSkills.cs (category Workflow) and documented here as well as in the workflow module.
When to use
- Reviewing or navigating undo history
- Stepping undo and redo
- Auditing what changed
Rules
history_get_currentis read-only and runs under Approval.history_undoandhistory_redochange scene state and need a grant under Approval.history_undoandhistory_redoreplay Unity's own native undo stack. Its entries cannot be classified by write category the way workflow task snapshots can, so they carry no payload-levelSURFACE_EXCLUDEDcheck. workflow undo (workflow_undo_task,workflow_session_undo) does carry that check.- For persistent task-level or conversation-level undo, use the workflow module. For simple undo and redo, the editor skills
editor_undoandeditor_redoare the alternative.
Pitfalls
history_listandhistory_getdo not exist: usehistory_get_currentfor the current undo group.history_cleardoes not exist, and no skill clears the undo history. Unity exposesUndo.ClearAll()(this repository's prefab tests call it,Tests/Editor/Core/PrefabAssetEditingTests.cs:32), but no skill wraps it.history_savedoes not exist: Unity manages the undo history automatically.
Skills
history_undo
Undo the last operation (or multiple steps).
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| steps | int | No | 1 | Number of undo steps to perform |
Returns: { success, undoneSteps }
history_redo
Redo the last undone operation (or multiple steps).
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| steps | int | No | 1 | Number of redo steps to perform |
Returns: { success, redoneSteps }
history_get_current
Get the name of the current undo group.
No parameters.
Returns: { success, currentGroup, groupIndex }
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/besty0728/unity-skills/unity-history">View unity-history on skillZs</a>