input-mapper

input-mapper is a skill for Claude Code, Codex from valkor-ai/loom. It costs 54 tokens per session (785 once invoked), scanned A, original, Apache-2.0.

A Godot project helper for defining input actions, such as movement or jumping, and their keyboard, mouse, or gamepad bindings. Godot is a tool for making games.

In plain words
What is it for?
Use it when adding mechanics, changing controls, setting up a new game genre, or checking that every referenced input action is configured.
Why use it?
It keeps the controls declared in the project settings and helps ensure that actions used by the game actually exist and have the intended bindings.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/valkor-ai/loom/input-mapper
Any agent
npx skills add valkor-ai/loom --skill input-mapper
Clone the repo
git clone --depth 1 https://github.com/valkor-ai/loom

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for input-mapper

README.md
[![agentmods](https://agentmods.dev/badge/skills/valkor-ai/loom/input-mapper.svg)](https://agentmods.dev/skills/valkor-ai/loom/input-mapper)
Your own site
<a href="https://agentmods.dev/skills/valkor-ai/loom/input-mapper"><img src="https://agentmods.dev/badge/skills/valkor-ai/loom/input-mapper.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 785 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00054 $0.00785
Opus 5 $0.00027 $0.00392
Sonnet 5 $0.00011 $0.00157
Haiku 4.5 $0.00005 $0.00078

Measured 4d ago against content hash 8639e5073141, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

input-mapper scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/shared/loom/skills/godot/input-mapper/SKILL.md · 88 lines

How it starts

The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Input Mapper

$ARGUMENTS

Read the GDD or user request, determine which input actions are needed, and write the correct [input] section entries into project.godot.

Step 1 — Extract Required Actions

Source actions from one of:

  1. GDD Mechanics table — each mechanic implies input actions (e.g., "Player can jump" → jump action).
  2. Genre preset — use a preset from Step 3 as a starting point.
  3. Explicit request — user or dispatching role specifies exact actions.

For each action, determine: action name (snake_case), bound keys/buttons.

Step 2 — Write to project.godot [input] Section

For Object() serialization format, templates (keyboard, mouse, gamepad button, gamepad axis), and key code table, read references/serialization.md.

Step 3 — Genre Presets

Use these as starting points. Add gamepad bindings if the GDD mentions controller support.

Platformer

Action Keys
move_left A, Left Arrow
move_right D, Right Arrow
jump Space, W, Up Arrow

Top-down

Action Keys
move_up W, Up Arrow
move_down S, Down Arrow
move_left A, Left Arrow
move_right D, Right Arrow

Shooter (top-down or twin-stick)

Action Keys / Buttons
move_up W, Up Arrow
move_down S, Down Arrow
move_left A, Left Arrow
move_right D, Right Arrow
shoot LMB (mouse button 1)
reload R

UI (add to all genres)

Action Keys
pause Escape

Note: ui_accept, ui_cancel, ui_left, ui_right, ui_up, ui_down are built-in Godot actions — do NOT redefine them in [input] unless overriding defaults.

Step 4 — Validation

Check that every Input.is_action_*("action_name") and event.is_action("action_name") call in .gd files has a matching entry in project.godot [input] or is a built-in Godot action (prefixed with ui_).

To validate:

  1. Grep all .gd files for is_action\w*\("([^"]+)"\) — extract action names.
  2. Parse project.godot [input] section for defined actions.
  3. Built-in actions (do not need definition): ui_accept, ui_cancel, ui_select, ui_left, ui_right, ui_up, ui_down, ui_focus_next, ui_focus_prev, ui_page_up, ui_page_down, ui_home, ui_end, ui_text_*, ui_filedialog_*, ui_graph_*, ui_copy, ui_cut, ui_paste, ui_undo, ui_redo.
  4. Report any action referenced in code but missing from project.godot.

Read the full file on GitHub · 88 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 88 lines · 54 tokens per session scan A 8639e5073141

Subscribe to this mod's changes

input-mapper is a skill published in the GitHub repository valkor-ai/loom (931 stars, last pushed 17d ago), licensed Apache-2.0. It adds 54 tokens to every session and 785 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.