agentleFS
AlexeyPerovAlexeyPerov/Unity-Open-MCP/skills/extensions/probuilder/SKILL.md

probuilder

Skill15 starsChanged 5 months agoMITView on GitHub

Skill for AI agents driving Unity ProBuilder in a project through the unity-open-mcp MCP server. This domain is embedded in the bridge and opt-in. Its tools compile in only when the project has com.unity.probuilder installed (the bridge sets the UNITY_OPEN_MCP_EXT_PROBUILDER define automatically). Its tool group is hidden from ListTools until the connected session activates it. - Unity Editor is open with the target project. - unity_open_mcp_ping returns connected: true. - The project has com.unity.probuilder installed. If capabilities reports the probuilder…

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All tools in this pack use unity_open_mcp_probuilder_*.

    line 25
  2. Very specific:

    Every face-targeting tool (extrude, delete_faces, set_face_material) accepts either:

    line 29

≈ “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 — ProBuilder Extension

Skill for AI agents driving Unity ProBuilder in a project through the unity-open-mcp MCP server.

This domain is embedded in the bridge and opt-in. Its tools compile in only when the project has com.unity.probuilder installed (the bridge sets the UNITY_OPEN_MCP_EXT_PROBUILDER define automatically). Its tool group is hidden from ListTools until the connected session activates it.

Preconditions

  • Unity Editor is open with the target project.
  • unity_open_mcp_ping returns connected: true.
  • The project has com.unity.probuilder installed. If capabilities reports the probuilder group as available: false, install the package and let the bridge recompile.
  • The probuilder tool group is activated — call unity_open_mcp_manage_tools(action="activate", group="probuilder") before invoking any probuilder_* tool. Fresh sessions start with two default-on groups (core and gate-and-verify); activate the other groups you need on demand.
  • The Unity project has com.unity.probuilder available.

Tool prefix

All tools in this pack use unity_open_mcp_probuilder_*. Mutating tools target a scene GameObject — every mutator runs the full gate path with paths_hint scoped to the host's scene path; the read-only tool (probuilder_get_mesh_info) is gate-free.

Face selection: indices vs direction

Every face-targeting tool (extrude, delete_faces, set_face_material) accepts either:

  • face_indices: [0, 2, 4] — explicit indices. Pass them if you have called get_mesh_info and know exactly which faces you want.
  • face_direction: "Up" — semantic selection by face normal. One of Up / Down / Left / Right / Forward / Back.

Passing both returns conflicting_selection. Passing neither returns missing_parameter. Out-of-range indices return invalid_face_indices (with the offending values and the valid range). Direction selection uses a ~45° tolerance — faces whose normal is close to the axis are included; faces that match no axis are bucketed under other in get_mesh_info.

Prefer face_direction for the common cases (extrude the top, delete the bottom, paint the sides). Reach for face_indices only when you need surgical precision on a single face.

Canonical workflow: a shaped building block

  1. Create a shape — unity_open_mcp_probuilder_create_shape with shape_type: "Cube" (or Cylinder, Sphere, Stair, …). Capture the returned instanceId — it is how you address the mesh in subsequent calls.
  2. Inspect — unity_open_mcp_probuilder_get_mesh_info to confirm face / vertex counts and the face-direction summary (which indices face each axis).
  3. Extrude — unity_open_mcp_probuilder_extrude with face_direction: "Up", distance: 1.0. New geometry is created along the face normal.
  4. Paint — unity_open_mcp_probuilder_set_face_material with face_direction: "Up", material_path: "Assets/Materials/Roof.mat". The material is added to the renderer's material array if it is not already present.

Always inspect before mutating

get_mesh_info is cheap (gate-free, read-only). Call it first when you are unsure about:

  • whether the target actually has a ProBuilderMesh (returns component_not_found otherwise),
  • which indices map to which direction,
  • the current face count (so you do not delete every face — delete_faces refuses if you try).

Shape types

create_shape accepts these ShapeType values (case-insensitive):

Cube, Sphere, Prism, Cylinder, Plane, Pipe, Cone, Tetrahedron, Quad, Door, Stair, Arch, Sprite, Torus.

Common recipes

A platform with a painted top

  1. probuilder_create_shape → Cube, name: "Platform", scale: "4,0.5,4".
  2. probuilder_set_face_material → face_direction: "Up", material_path: "Assets/Materials/Grass.mat".

Hollow box (delete the top face)

  1. probuilder_create_shape → Cube.
  2. probuilder_delete_faces → face_direction: "Up". Destructive — editor_undo recovers it if you overshoot.
  3. probuilder_get_mesh_info confirms faceCount: 5.

Two-tier ledge

  1. probuilder_create_shape → Cube, scale: "1,1,1".
  2. probuilder_extrude → face_direction: "Up", distance: 1.0 (raises the top).
  3. probuilder_extrude → face_direction: "Up", distance: 0.5 again to add a second tier.

Error codes

CodeMeaning
paths_hint_requiredMutating tool called with no paths_hint.
target_not_foundNo GameObject resolved by instance_id / path / name.
parent_not_foundcreate_shape parent_path did not resolve.
component_not_foundTarget has no ProBuilderMesh (or no MeshRenderer for set_face_material).
invalid_shape_type / invalid_extrude_method / invalid_face_directionUnknown enum value.
missing_parameterMissing face_indices AND face_direction, or empty material_path.
conflicting_selectionBoth face_indices AND face_direction passed.
invalid_face_indicesIndex out of range (response includes the valid range).
no_faces_in_directionNo faces match the requested face_direction.
cannot_delete_all_facesdelete_faces would remove every face — refused.
material_not_foundNo Material at material_path (as asset path or by name search).
extrude_failed / delete_failed / creation_failedProBuilder API threw.

Tool reference

ToolMutatingDestructiveLifecycleNotes
probuilder_create_shapeyesnoeditor_settleCreates a new ProBuilderMesh GameObject.
probuilder_get_mesh_infononononeFace / vertex / edge counts + direction summary.
probuilder_extrudeyesnoeditor_settleExtrudes faces by index or direction.
probuilder_delete_facesyesyeseditor_settleDeletes faces (refuses to delete all).
probuilder_set_face_materialyesnoeditor_settleAssigns a Material to faces.

Address every target by instance_id > path > name (same model as gameobject_* / component_*). Every mutating tool requires a non-empty paths_hint scoped to the host's scene path — the gate has no whole-project fallback.

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.