agentleFS
batihandevbatihandev/unity-mcp-skills/skills/scene/SKILL.md

unity-scene

Skill7 starsChanged 7 months agoMITView on GitHub

Use when users want to create, load, save scenes, or get scene hierarchy.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create a new scene.

    line 45
  2. Distinctive:

    Search GameObjects by name pattern, tag, or component type.

    line 113
  3. Distinctive:

    Always save before loading a new scene

    line 130
  4. Distinctive:

    Use additive loading for UI overlays

    line 131
  5. Distinctive:

    Keep scene hierarchy organized with empty parent objects

    line 132
  6. Very specific:

    Use scene_get_info to verify scene state

    line 133

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Unity Scene Skills

Overview

Control Unity scenes - the containers that hold all your GameObjects.

Common Mistakes

DO NOT (common hallucinations):

  • scene_delete / scene_rename do not exist → delete scene files via asset_delete, rename via asset_move
  • scene_list does not exist → use scene_get_loaded (loaded scenes) or asset_find with t:Scene (all scene assets)
  • scene_find_objects is a simple name/tag/component filter; for regex/layer/path search use gameobject_find (Full-Auto)

Routing:

  • For detailed hierarchy tree → use perception module's hierarchy_describe
  • For scene statistics → use perception module's scene_summarize
  • For screenshot → scene_screenshot (this module) uses the Scene View; for a Game Camera capture use the native Unity_Camera_Capture tool

Skills Overview

SkillDescription
scene_createCreate a new scene
scene_loadLoad a scene
scene_saveSave current scene
scene_get_infoGet scene information
scene_get_hierarchyGet hierarchy tree
scene_screenshotCapture screenshot
scene_get_loadedGet all loaded scenes
scene_unloadUnload an additive scene
scene_set_activeSet active scene
scene_find_objectsSearch objects by name/tag/component

Skills

scene_create

Create a new scene.

ParameterTypeRequiredDescription
scenePathstringYesPath for new scene (e.g., "Assets/Scenes/MyScene.unity")

scene_load

Load a scene.

ParameterTypeRequiredDefaultDescription
scenePathstringYes-Scene asset path
additiveboolNofalseLoad additively (keep current scene)

scene_save

Save the current scene.

ParameterTypeRequiredDescription
scenePathstringNoSave path (null = save current)

scene_get_info

Get current scene information.

No parameters.

Returns: {success, name, path, isDirty, rootObjectCount, rootObjects: [name]}

scene_get_hierarchy

Get full scene hierarchy tree.

ParameterTypeRequiredDefaultDescription
maxDepthintNo10Maximum hierarchy depth

Returns: {success, hierarchy: [{name, instanceId, children: [...]}]}

scene_screenshot

Capture a screenshot.

ParameterTypeRequiredDefaultDescription
filenamestringNo"screenshot.png"Output filename
widthintNo1920Image width
heightintNo1080Image height

scene_get_loaded

Get list of all currently loaded scenes.

No parameters.

Returns: {success, scenes: [{name, path, isActive, isDirty}]}

scene_unload

Unload a loaded scene (additive).

ParameterTypeRequiredDescription
sceneNamestringYesScene name to unload

scene_set_active

Set the active scene (for multi-scene editing).

ParameterTypeRequiredDescription
sceneNamestringYesScene name to set active

scene_find_objects

Search GameObjects by name pattern, tag, or component type. For advanced search (regex, layer, path) use gameobject_find.

ParameterTypeRequiredDefaultDescription
namePatternstringNo-Name substring to match (case-insensitive)
tagstringNo-Filter by tag
componentTypestringNo-Filter by component type name
limitintNo50Max results to return

Returns: {success, count, objects: [{name, path, instanceId, active, tag}]}


Recipe path rule: ../../recipes/scene/<command>.md

Best Practices

  1. Always save before loading a new scene
  2. Use additive loading for UI overlays
  3. Keep scene hierarchy organized with empty parent objects
  4. Use scene_get_info to verify scene state
  5. Screenshots are saved to project root by default

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.