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

live-editor

Control and verify a running Unity Editor with the low-token hera-agent-unity CLI.

不碰外部(只输出文字)无严重或高危命中hashgraph-online/awesome-codex-plugins

它会碰到什么

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

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

技能内容

Hera Unity live editor

Use hera-agent-unity whenever work depends on the real Unity Editor state. Prefer dedicated commands over arbitrary C# execution.

Bootstrap

Run these commands in order when first connecting:

hera-agent-unity doctor --json
hera-agent-unity status
hera-agent-unity list --compact

Report the project, port, Unity version, state, and tool count. If more than one Editor is open, bind later calls with the full normalized --project path. If Unity is unreachable, ask the user to open the project with the connector installed.

Working loop

  1. Read only the state needed for the task.
  2. Apply the scene, Inspector, asset, or code change.
  3. Compile or re-read the changed state.
  4. Check recent console errors.
  5. Run focused tests or Play Mode checks when behavior changed.

Useful commands:

hera-agent-unity scene info
hera-agent-unity console --type error --lines 20
hera-agent-unity editor refresh --compile
hera-agent-unity editor play --wait
hera-agent-unity test --mode PlayMode
hera-agent-unity screenshot --view game

Efficiency and safety

  • Use list --compact, bounded console reads, and shallow exec --depth 1 responses.
  • Prefer scene, console, editor, test, describe_type, and other dedicated commands over exec.
  • Batch related side effects into one exec; return null or omit the return.
  • Never return a UnityEngine.Object directly. Return only the fields needed.
  • Prefer call <tool> --json ... when a dynamic tool needs strict live-schema validation.
  • Branch on structured error code, not message text; refresh discovery after CATALOG_STALE.
  • Throw or use --strict when a logical failure must produce a non-zero exit.
  • Treat input commands as Unity EventSystem QA, not proof of a physical OS click.

The complete command and agent guide is at <https://github.com/NotNull92/hera-agent-unity/blob/main/AGENTS.md>.

想直接用这个技能?

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

同名技能的其他版本

有 2 个不同仓库或目录里都有叫 live-editor 的技能。它们内容并不相同,别混用: