用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Besty0728/Unity-Skills --skill unity-history命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Automate the Unity Editor through a local REST API — create and edit scripts, build scenes and prefabs, manage assets/materials/lighting, run tests, and drive hundreds of Editor operations across modules. Use when the user wants to actually operate the Unity Editor from chat — create or modify GameObjects/scripts/scenes/assets, batch-edit, or run Editor automation — in any language. Not needed for conceptual Unity Q&A that touches no Editor state — read the matching advisory doc under skills/ instead. 当用户要从对话里实际操作 Unity 编辑器(创建/修改/批量编辑/运行测试)时使用,任何语言均可触发;纯概念问答无需本协议。
Unified batch and async-job orchestration
Index of all Unity Skills modules with per-module mode labels (SA/FA/Mixed). Use to find which module covers a task before loading its doc.
| name | unity-history |
| description | Manage undo/redo history over the native undo stack |
Before calling any skill in this module: if you are about to call a skill with parameters guessed from its name or description, STOP — read this file (or fetch its schema via
GET /skills/recommend?includeSchema=true) first. If you already have the parameter definitions from recommend/schema, you may proceed straight to dryRun.
Manage Unity Editor undo/redo history.
本模块 history_get_current(纯读)标 SkillMode.SemiAuto,三档下均可直接执行;history_undo / history_redo 会改变场景状态,为默认 SkillMode.FullAuto(Operation=Execute),Approval 模式下需 grant。不含 NeverInSemi 高危 skill。
history_undo / history_redo replay Unity's own native Undo/Redo stack, whose contents cannot be classified by write category the way workflow module's task snapshots can, so unlike workflow_undo_task / workflow_session_undo they carry no payload-level SURFACE_EXCLUDED check.
DO NOT (common hallucinations):
history_list / history_get do not exist → use history_get_current for current undo grouphistory_clear does not exist → Unity undo history cannot be cleared via APIhistory_save does not exist → undo history is managed by Unity automaticallyRouting:
history_undo / history_redo (this module) or editor_undo / editor_redoworkflow moduleworkflow module's workflow_session_undohistory_undoUndo 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_redoRedo 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_currentGet the name of the current undo group.
No parameters.
Returns: { success, currentGroup, groupIndex }
Exact names, parameters, defaults, and returns are defined by GET /skills/schema or unity_skills.get_skill_schema(), not by this file.