agentleFS
AlexeyPerovAlexeyPerov/Unity-Open-MCP/skills/unity-open-mcp/SKILL.md

unity-open-mcp

Skill15 starsChanged 5 months agoMITView on GitHub

Inspect, modify, validate, and test Unity projects through Unity Open MCP, including live Editor recovery and offline asset work.

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 6 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use exact schemas, scoped mutations, and gate evidence to work on the selected Unity project.

    line 7
  2. Very specific:

    Prefer typed tools. Use canonical asset_path, game_object_path, component_type, and property_path from the exact schema.

    line 14
  3. Distinctive:

    Never launch a second Unity instance for the same project.

    line 19
  4. Very specific:

    Never silently discard dirty scenes or bypass lifecycle guards.

    line 20
  5. Very specific:

    Run one test request at a time.

    line 22
  6. Distinctive:

    Before browsing or activating unfamiliar tools: Discovery and groups.

    line 27
  7. Very specific:

    Before scene switches, play transitions, snippets, or choosing live/batch/offline routes: Routing and lifecycle.

    line 29
  8. Distinctive:

    Before batching, interpreting a failed gate, or applying fixes: Batch and gates.

    line 30
  9. Distinctive:

    Before file-level repair, YAML edits, or offline asset investigation: YAML and offline work.

    line 31
  10. Distinctive:

    Before screenshots, event capture, or test runs: Senses and tests.

    line 32
  11. Very specific:

    Use the always-visible unity_open_mcp_jobs for explicitly supported asynchronous operations.

    line 51
  12. Very specific:

    After start, call status; a queued acknowledgement is not completion.

    line 59
  13. Very specific:

    Keep the job id and the same project/port/agent identity for status, wait, cancel and list.

    line 61
  14. Very specific:

    Wait on error.job.jobId via jobs (owner only), use typed reads meanwhile, retry once.

    line 68

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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 Open MCP

Use exact schemas, scoped mutations, and gate evidence to work on the selected Unity project.

Core workflow

  1. Discover a tool with unity_open_mcp_capabilities(tool_name: "unity_open_mcp_component_modify"), or browse with query and page_size. Exact lookup returns one complete schema and example. Never request the full unpaged catalog.
  2. Activate the needed tools with unity_open_mcp_manage_tools(action: "activate_for", intent: "…"). If list refresh is unavailable, use its invoke action with tool_name and arguments.
  3. Confirm the target project and live state with ping / bridge_status; use the instance lock’s port, never a hardcoded port. Offline reads and read_compile_errors do not require a live bridge.
  4. Prefer typed tools. Use canonical asset_path, game_object_path, component_type, and property_path from the exact schema. Start compact and page reads; expand only the relevant slice.
  5. Scope mutations with nonempty paths_hint, then inspect gate.delta and agentNextSteps. Mutation success does not prove project safety. Validate and test the affected scope.

Non-negotiable safety

  • Never launch a second Unity instance for the same project. A live PID with an unavailable bridge requires recovery, not another launch.
  • Never silently discard dirty scenes or bypass lifecycle guards. Pure read_only snippets must not write, refresh, compile, switch scenes, or change play state; this flag is an assertion, not a sandbox.
  • While the Editor is reachable, prefer typed live edits. Never directly edit an open/dirty scene or asset YAML. Explicitly identify necessary file repair as the offline-file route; preserve GUID/fileID links, check the intended scene, then reimport/reserialize and run scoped validation.
  • Run one test request at a time. run_id names the started run, not a poll handle. Do not retry an unresolved run or put server-polled tests/recovery tools in a live batch.
  • Batch arguments are validated before step zero. All-read batches need no mutation scope; mixed batches require aggregate scope. A failed mutation with a skipped gate has not passed validation.

Load only the reference needed now

  • Before browsing or activating unfamiliar tools: Discovery and groups.
  • On compile errors, reloads, Safe Mode, or a live PID with no bridge: Compile and Safe Mode.
  • Before scene switches, play transitions, snippets, or choosing live/batch/offline routes: Routing and lifecycle.
  • Before batching, interpreting a failed gate, or applying fixes: Batch and gates.
  • Before file-level repair, YAML edits, or offline asset investigation: YAML and offline work.
  • Before screenshots, event capture, or test runs: Senses and tests.

Project-owned commands

Use unity_open_mcp_project_commands(action="list", query="…", limit=20) to find project commands; page using nextOffset. Always describe an exact catalog id with action="describe", id="project.owner.command" for its schema, safety metadata and availability diagnostics. This tool stays visible regardless of active groups and reads fresh metadata after recompilation. Invoke with action="invoke", command_id="project.owner.command", args={...}. The server revalidates a fresh schema; optionally pin schema_version from describe. Supply paths_hint for mutations without declared paths; gate and dirty-scene options stay outside args. Check mutation.output.result and the normal gate / lifecycle envelope. After timeout or reload, inspect post-state before retrying. For an async command, use jobs with its exact id and the invocation envelope in job args. Do not bypass unavailable commands with reflection or nest project commands in batch_execute.

Asynchronous job observation

Use the always-visible unity_open_mcp_jobs for explicitly supported asynchronous operations. start requires tool_or_command, adapter args, and an idempotency_key. Supported targets are unity_senses_run_tests (ordinary test filters, no caller run_id, cancellation unsupported) and available async project commands (args: {args: {...}, gate, paths_hint}). Read terminal project-job gate results even on failure/cancellation. An unsupported target must not be retried as an arbitrary background tool.

After start, call status; a queued acknowledgement is not completion. Use bounded wait calls until terminal, then inspect the retained result and gate. Keep the job id and the same project/port/agent identity for status, wait, cancel and list. A wait timeout leaves execution running. Reuse the same key and arguments after a start response is lost. Cancellation is cooperative and may be unsupported. Treat orphaned as an unknown outcome; inspect operation evidence before retrying. Records and keys expire 30 minutes after completion and are lost on server restart. job_busy means a project job owns the Editor: mutations, Editor-state writes, test starts and every execute_csharp (even read_only: true) are refused. Wait on error.job.jobId via jobs (owner only), use typed reads meanwhile, retry once; never loop-retry. See Routing and lifecycle.

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.