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…
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- demo/AGENTS.mdAGENTS.md
- hub/AGENTS.mdAGENTS.md
- mcp-server/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- animationSkill
- audioSkill
- cinemachineSkill
- constraintsSkill
- input-simulationSkill
- inputsystemSkill
- lightingSkill
- memoryprofilerSkill
- navigationSkill
- particlesystemSkill
- shadergraphSkill
- splinesSkill
- spriteatlasSkill
- terrainSkill
- textureSkill
- tilemapSkill
- timelineSkill
- uiSkill
- vfxSkill
- unity-open-mcpSkill
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
- Very specific: line 25
All tools in this pack use unity_open_mcp_probuilder_*.
- Very specific: line 29
Every face-targeting tool (extrude, delete_faces, set_face_material) accepts either:
≈ “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.
Files
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.probuilderinstalled (the bridge sets theUNITY_OPEN_MCP_EXT_PROBUILDERdefine automatically). Its tool group is hidden fromListToolsuntil the connected session activates it.
Preconditions
- Unity Editor is open with the target project.
unity_open_mcp_pingreturnsconnected: true.- The project has
com.unity.probuilderinstalled. Ifcapabilitiesreports theprobuildergroup asavailable: false, install the package and let the bridge recompile. - The
probuildertool group is activated — callunity_open_mcp_manage_tools(action="activate", group="probuilder")before invoking anyprobuilder_*tool. Fresh sessions start with two default-on groups (coreandgate-and-verify); activate the other groups you need on demand. - The Unity project has
com.unity.probuilderavailable.
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 calledget_mesh_infoand know exactly which faces you want.face_direction: "Up"— semantic selection by face normal. One ofUp/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_directionfor the common cases (extrude the top, delete the bottom, paint the sides). Reach forface_indicesonly when you need surgical precision on a single face.
Canonical workflow: a shaped building block
- Create a shape —
unity_open_mcp_probuilder_create_shapewithshape_type: "Cube"(orCylinder,Sphere,Stair, …). Capture the returnedinstanceId— it is how you address the mesh in subsequent calls. - Inspect —
unity_open_mcp_probuilder_get_mesh_infoto confirm face / vertex counts and the face-direction summary (which indices face each axis). - Extrude —
unity_open_mcp_probuilder_extrudewithface_direction: "Up",distance: 1.0. New geometry is created along the face normal. - Paint —
unity_open_mcp_probuilder_set_face_materialwithface_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(returnscomponent_not_foundotherwise), - which indices map to which direction,
- the current face count (so you do not delete every face —
delete_facesrefuses 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
probuilder_create_shape→Cube,name: "Platform",scale: "4,0.5,4".probuilder_set_face_material→face_direction: "Up",material_path: "Assets/Materials/Grass.mat".
Hollow box (delete the top face)
probuilder_create_shape→Cube.probuilder_delete_faces→face_direction: "Up". Destructive —editor_undorecovers it if you overshoot.probuilder_get_mesh_infoconfirmsfaceCount: 5.
Two-tier ledge
probuilder_create_shape→Cube,scale: "1,1,1".probuilder_extrude→face_direction: "Up",distance: 1.0(raises the top).probuilder_extrude→face_direction: "Up",distance: 0.5again to add a second tier.
Error codes
| Code | Meaning |
paths_hint_required | Mutating tool called with no paths_hint. |
target_not_found | No GameObject resolved by instance_id / path / name. |
parent_not_found | create_shape parent_path did not resolve. |
component_not_found | Target has no ProBuilderMesh (or no MeshRenderer for set_face_material). |
invalid_shape_type / invalid_extrude_method / invalid_face_direction | Unknown enum value. |
missing_parameter | Missing face_indices AND face_direction, or empty material_path. |
conflicting_selection | Both face_indices AND face_direction passed. |
invalid_face_indices | Index out of range (response includes the valid range). |
no_faces_in_direction | No faces match the requested face_direction. |
cannot_delete_all_faces | delete_faces would remove every face — refused. |
material_not_found | No Material at material_path (as asset path or by name search). |
extrude_failed / delete_failed / creation_failed | ProBuilder API threw. |
Tool reference
| Tool | Mutating | Destructive | Lifecycle | Notes |
probuilder_create_shape | yes | no | editor_settle | Creates a new ProBuilderMesh GameObject. |
probuilder_get_mesh_info | no | no | none | Face / vertex / edge counts + direction summary. |
probuilder_extrude | yes | no | editor_settle | Extrudes faces by index or direction. |
probuilder_delete_faces | yes | yes | editor_settle | Deletes faces (refuses to delete all). |
probuilder_set_face_material | yes | no | editor_settle | Assigns 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.
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
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.

