unity-editor
Installation
SKILL.md
Unity Editor Skills
Observe and control the Unity Editor without parsing scene YAML: play mode, selection, undo and redo, change tracking, state and menu items. Parameters come from the schema (GET /skills/schema?category=Editor&wire=v2), never from a skill's name. Execution and dryRun rules: root SKILL.md.
When to use
- Reading persistent scene or file changes
- Driving play mode
- Inspecting runtime state
- Executing menu items
Rules
- Play-mode skills are NeverInSemi:
editor_play,editor_play_capture,editor_stop,editor_pauseandeditor_run_scenario(MayEnterPlayMode).editor_execute_menuis also NeverInSemi because reload-triggering items (Assets/Refresh,Assets/Reimport All) reload the domain. Under Approval and Auto they returnMODE_FORBIDDEN, and the grant flow does not apply. - Resume or file watching: when changes are reported, or the AI resumes after the user edited Unity, call
editor_get_changesbefore reading.unityYAML.dropped=truemeanssinceis older than the 500-entry window (retention); rebuild context withscene_contextorscene_diff. - Check
editor_get_statebefore play-mode work. Changes made during Play Mode are lost on exit. editor_play,editor_play_capture,editor_playmode_stepandeditor_run_scenarioreturn jobs; polljob_status. Neverjob_waiton a job that depends onEditorApplication.updateticks: it blocks the main thread those ticks need.editor_selectandeditor_playmode_inspecttake one ofname,entityId,instanceIdorpath; preferentityId.editor_get_contextreturns entityIds for batch work.editor_undoandeditor_redomake experiments reversible.- Pause on error belongs to the console module:
console_set_pause_on_error(console). - Routing: compilation check to
debug_check_compilation(debug); console errors todebug_get_errors; scene save toscene_save(scene).