unity-history
GitHub管理Unity编辑器撤销/重做历史,提供执行撤销、重做及查询当前状态的功能,防止幻觉调用不存在的API。
Trigger Scenarios
Install
npx skills add Besty0728/Unity-Skills --skill unity-history -g -y
SKILL.md
Frontmatter
{
"name": "unity-history",
"description": "Manage undo\/redo history over the native undo stack. 管理原生撤销栈上的撤销\/重做历史。"
}
Triggers
- Reviewing or navigating undo history
- Stepping undo/redo
- Auditing what changed
- 查看或浏览撤销历史、逐步撤销/重做、审查改动
History Skills
Manage Unity Editor undo/redo history.
Operating Mode
本模块 history_get_current(纯读)标 SkillMode.SemiAuto,三档下均可直接执行;history_undo / history_redo 会改变场景状态,为默认 SkillMode.FullAuto(Operation=Execute),Approval 模式下需 grant。不含 NeverInSemi 高危 skill。
DO NOT (common hallucinations):
history_list/history_getdo not exist → usehistory_get_currentfor current undo grouphistory_cleardoes not exist → Unity undo history cannot be cleared via APIhistory_savedoes not exist → undo history is managed by Unity automatically
Routing:
- For simple undo/redo →
history_undo/history_redo(this module) oreditor_undo/editor_redo - For persistent task-level undo → use
workflowmodule - For conversation-level undo → use
workflowmodule'sworkflow_session_undo
Skills
history_undo
Undo the last operation. Parameters:
steps(int, optional, default 1): Number of operations to undo.
history_redo
Redo the last undone operation. Parameters:
steps(int, optional, default 1): Number of operations to redo.
history_get_current
Get current undo history state. Parameters: None.
Exact Signatures
Exact names, parameters, defaults, and returns are defined by GET /skills/schema or unity_skills.get_skill_schema(), not by this file.
Version History
-
25d511e
Current 2026-08-13 09:14
压缩description至约5KB,将路由说明移至Triggers部分
-
14e175d
2026-07-19 18:06
将模块内所有技能(SemiAuto)的默认执行模式调整为更严格的控制:history_get_current保留为SemiAuto,而history_undo和history_redo因改变场景状态,现默认为FullAuto模式,需在Approval模式下授权执行。
- ec9f870 2026-07-05 14:39


