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

splines

Skill15 starsChanged 5 months agoMITView on GitHub

Skill for AI agents driving the Unity Splines package (com.unity.splines) in a Unity 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.splines installed (the bridge sets the UNITY_OPEN_MCP_EXT_SPLINES define automatically — no manual scripting-define write). 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…

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_splines_*.

    line 26
  2. Very specific:

    When a typed mutator does not cover a serialized SplineContainer field, use unity_open_mcp_splines_modify:

    line 72

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

Skill for AI agents driving the Unity Splines package (com.unity.splines) in a Unity 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.splines installed (the bridge sets the UNITY_OPEN_MCP_EXT_SPLINES define automatically — no manual scripting-define write). 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.splines installed. If capabilities reports the splines group as available: false, install the package and let the bridge recompile.
  • The splines tool group is activated — call unity_open_mcp_manage_tools(action="activate", group="splines") before invoking any splines_* tool. Fresh sessions start with two default-on groups (core and gate-and-verify); activate the other groups you need on demand.

Tool prefix

All tools in this pack use unity_open_mcp_splines_*. Mutating tools accept the standard paths_hint (the host's scene path) and run the full gate path; read-only tools (splines_evaluate, splines_get_knots) are gate-free.

Vocabulary

A SplineContainer is a MonoBehaviour component that holds one or more Spline objects. Each spline is an ordered list of BezierKnots — every knot has a Position, Rotation, TangentIn, TangentOut, and a TangentMode that controls how the tangents are computed:

  • AutoSmooth — tangents auto-computed for a smooth curve through the knot (the most common choice).
  • BezierSmooth — smooth, with adjustable tangent length.
  • Broken — the two tangents are independent.
  • Mirrored — the two tangents mirror each other across the knot.
  • Linear — sharp corners (straight segments).

Canonical workflow: a path through points

  1. Create a container — unity_open_mcp_splines_container_create adds a new GameObject with a SplineContainer to the active scene. It is initialized with one empty primary spline (spline_index 0). Returns the new GameObject's instanceId + path — use the instanceId to address it next.
  2. Add knots — unity_open_mcp_splines_add_knot appends a BezierKnot. position ("x,y,z") is required; tangent_mode is optional ("AutoSmooth" is the friendliest default). Each call returns the new knot index. A path needs at least two knots to be evaluable.
  3. Inspect — unity_open_mcp_splines_get_knots lists every knot's position, rotation, tangents, and tangent mode. Use it to discover valid knot_index values before calling set_knot / set_tangent_mode.
  4. Sample — unity_open_mcp_splines_evaluate at t (0..1) returns the world-space position, normalized tangent (direction), and up vector — pair it with gameobject_create / execute_csharp to place objects along the path.

Configuring the curve shape

  • unity_open_mcp_splines_set_knot replaces a knot (by knot_index). Omitted fields keep the current knot's value — call it to move a knot, change its rotation, or hand-set its tangents.
  • unity_open_mcp_splines_set_tangent_mode sets the mode for one knot (knot_index) or the whole spline (knot_index: -1). For a closed loop, set closed: true at container_create time.

Reflective mutation (niche container fields)

When a typed mutator does not cover a serialized SplineContainer field, use unity_open_mcp_splines_modify:

{
  "instance_id": 12345,
  "fields_json": "[{\"field\":\"someField\",\"value\":true,\"type\":\"bool\"}]",
  "paths_hint": ["Assets/Scenes/Game.unity"]
}

Each entry is { field, value, type? } where type is int | float | bool | string | vector (default inferred from the field's current type). Per-field errors are accumulated — a single bad entry does not abort the batch. Do not use modify for knot fields — use set_knot / set_tangent_mode instead; modify targets the container component, not the spline knot collection.

Common recipes

A smooth camera path

  1. splines_container_create with name: "CameraPath". Note the instanceId.
  2. splines_add_knot four times with positions and tangent_mode: "AutoSmooth".
  3. splines_get_knots to confirm the knot order.
  4. Loop splines_evaluate at t = 0, 0.25, 0.5, 0.75, 1.0 to place keyframed camera positions, or drive a dolly at runtime by sampling t over time.

Close a loop

  1. splines_container_create with closed: true, then add ≥3 knots.
  2. The spline connects the last knot back to the first automatically.

Agent-sense pairing

  • unity_senses_screenshot (view: "scene") visually confirms the spline shape — the editor renders splines as a colored curve with knot gizmos.
  • unity_senses_spatial_query can supply candidate world positions to feed into splines_add_knot.

Tool reference

ToolMutatingLifecycleNotes
splines_container_createyeseditor_settleNew GameObject + SplineContainer.
splines_add_knotyeseditor_settleAppend a BezierKnot; position required.
splines_set_knotyeseditor_settleReplace a knot by knot_index.
splines_set_tangent_modeyeseditor_settleOne knot (knot_index) or whole spline (-1).
splines_evaluatenononePosition + tangent + up at ratio t.
splines_get_knotsnononeList every knot's full detail.
splines_modifyyeseditor_settleReflective field setter for container fields.

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.