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

inputsystem

Skill15 starsChanged 5 months agoMITView on GitHub

Skill for AI agents driving the Unity Input System 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.inputsystem installed (the bridge sets the UNITY_OPEN_MCP_EXT_INPUTSYSTEM 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.inputsystem installed. If capabilities reports…

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 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.

  • 3

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

    line 26
  2. Very specific:

    Add a Gamepad control scheme, then add bindings with groups: "Gamepad" alongside the keyboard bindings.

    line 92
  3. Very specific:

    Every mutating tool requires a non-empty paths_hint scoped to the .inputactions asset path — the gate has no whole-project fallback.

    line 118

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

Skill for AI agents driving the Unity Input System 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.inputsystem installed (the bridge sets the UNITY_OPEN_MCP_EXT_INPUTSYSTEM 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.inputsystem installed. If capabilities reports the input-system group as available: false, install the package and let the bridge recompile.
  • The input-system tool group is activated — call unity_open_mcp_manage_tools(action="activate", group="input-system") before invoking any inputsystem_* 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.inputsystem available.
  • ProjectSettings/ProjectSettings.asset has activeInputHandler set to a valid value: 0 (Old Input Manager), 1 (Input System only), or 2 (Both). A value of -1 (Unity's "not configured" sentinel) makes the Input System throw ArgumentException: Invalid value of 'activeInputHandler' setting: -1 in its static constructor on every editor update, which blocks the bridge from loading. If you see that exception in read_compile_errors / the console, set activeInputHandler: 2 directly in the asset file (or use settings_set_player with activeInputHandling: "both" once the bridge is up).

Tool prefix

All tools in this pack use unity_open_mcp_inputsystem_*. Mutating tools target a .inputactions asset path — every mutator runs the full gate path with paths_hint scoped to that asset; the read-only tool (inputsystem_get) is gate-free.

What is an InputActionAsset?

A .inputactions file is a JSON graph with four nested layers:

InputActionAsset
├── ActionMap[]           (group of related actions, e.g. 'Player', 'UI')
│   ├── Action[]          (a single input intent, e.g. 'Jump', 'Move')
│   │   └── InputBinding[]  (control paths, e.g. '<Keyboard>/space')
│   └── ...
└── InputControlScheme[]  (device sets, e.g. 'KeyboardMouse', 'Gamepad')

A binding's groups field ties it to one or more control schemes by name.

Canonical workflow: a Player action map

  1. Discover — unity_open_mcp_inputsystem_get on an existing .inputactions asset to read its maps / actions / bindings before mutating.
  2. Create the asset — unity_open_mcp_inputsystem_asset_create with an asset_path ending in .inputactions. Pass initial_action_map: "Player" to seed the first map in one call. Create intermediate folders first with assets_create_folder.
  3. Add a control scheme — unity_open_mcp_inputsystem_controlscheme_add with scheme_name: "KeyboardMouse" and required_devices: ["<Keyboard>", "<Mouse>"]. Bindings that should only fire under this scheme set groups: "KeyboardMouse".
  4. Add actions — unity_open_mcp_inputsystem_action_add per action. Pick action_type:
    • Button — edge-triggered (jump, fire).
    • Value — continuous analog (move, look). Set expected_control_type: "Vector2".
    • PassThrough — raw state passthrough (rare).
  5. Add bindings — unity_open_mcp_inputsystem_binding_add for a single key/button, OR unity_open_mcp_inputsystem_binding_composite_add for a multi-key composite (WASD).
  6. Verify — unity_open_mcp_inputsystem_get reflects the resulting structure.

Composite bindings (WASD move)

A 2DVector composite synthesizes a Vector2 from four part bindings:

{
  "composite": "2DVector",
  "parts_json": "[{\"name\":\"up\",\"path\":\"<Keyboard>/w\"},{\"name\":\"down\",\"path\":\"<Keyboard>/s\"},{\"name\":\"left\",\"path\":\"<Keyboard>/a\"},{\"name\":\"right\",\"path\":\"<Keyboard>/d\"}]"
}

Composite types and their parts:

CompositeParts
2DVectorup, down, left, right
1DAxisnegative, positive
Dpadup, down, left, right
Axisnegative, positive

Each part is one entry in parts_json with name, path, and optional groups.

Common recipes

Keyboard + mouse player controller

  1. inputsystem_asset_create → Assets/Input/Player.inputactions with initial_action_map: "Player".
  2. inputsystem_controlscheme_add → KeyboardMouse with required_devices: ["<Keyboard>", "<Mouse>"].
  3. inputsystem_action_add → Move (Value, expected_control_type: "Vector2").
  4. inputsystem_binding_composite_add → 2DVector WASD on Move.
  5. inputsystem_action_add → Look (Value, expected_control_type: "Vector2").
  6. inputsystem_binding_add → <Mouse>/delta on Look with groups: "KeyboardMouse".
  7. inputsystem_action_add → Fire (Button).
  8. inputsystem_binding_add → <Mouse>/leftButton on Fire.

Gamepad + keyboard dual-bind

Add a Gamepad control scheme, then add bindings with groups: "Gamepad" alongside the keyboard bindings. A binding with no groups fires under every scheme.

Error codes

CodeMeaning
paths_hint_requiredMutating tool called with no paths_hint.
invalid_asset_pathasset_path is not Assets/-rooted or does not end in .inputactions.
asset_already_existsinputsystem_asset_create over an existing path.
asset_not_foundNo .inputactions asset at the path (or path invalid).
actionmap_not_found / action_not_foundMap or action name does not exist in the asset.
actionmap_already_exists / action_already_exists / controlscheme_already_existsDuplicate name.
missing_parameterA required parameter was empty.

Tool reference

ToolMutatingLifecycleNotes
inputsystem_asset_createyeseditor_settleCreates a new .inputactions asset.
inputsystem_actionmap_addyeseditor_settleAdds an ActionMap.
inputsystem_action_addyeseditor_settleAdds an Action + optional initial binding.
inputsystem_binding_addyeseditor_settleAdds a simple binding.
inputsystem_binding_composite_addyeseditor_settleAdds a composite binding (2DVector / 1DAxis / …).
inputsystem_controlscheme_addyeseditor_settleAdds a control scheme + device requirements.
inputsystem_getnononeReads the full asset structure.

Every mutating tool requires a non-empty paths_hint scoped to the .inputactions asset 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.