跳到主要内容
知仓学习社ZHICANG

unity-history

Manage undo/redo history over the native undo stack

不碰外部(只输出文字)无严重或高危命中Besty0728/Unity-Skills

它会碰到什么

扫了多少1 个文本文件,2 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

> 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.

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

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 group
  • history_clear does not exist → Unity undo history cannot be cleared via API
  • history_save does not exist → undo history is managed by Unity automatically

Routing:

  • For simple undo/redo → history_undo / history_redo (this module) or editor_undo / editor_redo
  • For persistent task-level undo → use workflow module
  • For conversation-level undo → use workflow module's workflow_session_undo

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 }

Exact Signatures

Exact names, parameters, defaults, and returns are defined by GET /skills/schema or unity_skills.get_skill_schema(), not by this file.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 1,753
本站分层T1
该仓技能数83
原文件路径SkillsForUnity/unity-skills~/skills/history/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 83 个技能