hira1010/2nd-brain/uloop-simulate-keyboard

Claude Code and agent skill by hira1010/2nd-brain

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Simulate keyboard input in PlayMode through Unity Input System. Use for key presses, holds, releases, and game controls such as WASD or Space.

Install

npx vskill@latest install hira1010/2nd-brain/uloop-simulate-keyboard

SKILL.md

The same SKILL.md was published earlier as styly-dev/styly-netsync/uloop-simulate-keyboard.

Task

Simulate keyboard input on Unity PlayMode: $ARGUMENTS

Workflow

  1. Ensure Unity is in PlayMode (use npx --yes uloop-cli@2.2.0 control-play-mode --action Play if not)
  2. Execute the appropriate npx --yes uloop-cli@2.2.0 simulate-keyboard command
  3. Take a screenshot to verify the result: npx --yes uloop-cli@2.2.0 screenshot --capture-mode rendering
  4. Report what happened

Tool Reference

bash
npx --yes uloop-cli@2.2.0 simulate-keyboard --action <action> --key <key> [options]
Parameters
ParameterTypeDefaultDescription
--actionenumPressPress, KeyDown, KeyUp
--keystring(required)Key name matching Input System Key enum (e.g. W, Space, LeftShift, A, Enter). Case-insensitive.
--durationnumber0Hold duration in seconds for Press action (0 = one-shot tap). Ignored by KeyDown/KeyUp.
Actions
ActionBehaviorUse Case
PressKeyDown → wait → KeyUpOne-shot tap (jump, use item)
KeyDownKeyDown only (held until KeyUp)Start continuous movement, hold sprint
KeyUpKeyUp only (release held key)Stop movement, release sprint
KeyDown/KeyUp Rules
  • KeyDown fails if the key is already held
  • KeyUp fails if the key is not currently held
  • Multiple keys can be held simultaneously (e.g. W + LeftShift for sprint)
  • All held keys are automatically released when PlayMode exits
  • To hold a key for a fixed duration, prefer --action Press --duration <seconds> (one-shot, blocks until release). For multi-key holds (e.g. Shift+W), issue separate KeyDown calls, then sleep <seconds> between them and the KeyUp calls.
Global Options
OptionDescription
--project-path <path>Optional. Use only when the target Unity project is not the current directory.

Examples

bash
# One-shot key press (tap W once)
npx --yes uloop-cli@2.2.0 simulate-keyboard --action Press --key W
# Jump (tap Space)
npx --yes uloop-cli@2.2.0 simulate-keyboard --action Press --key Space
# Hold W for 2 seconds (move forward)
npx --yes uloop-cli@2.2.0 simulate-keyboard --action Press --key W --duration 2.0
# Sprint forward (hold Shift + W, then release)
npx --yes uloop-cli@2.2.0 simulate-keyboard --action KeyDown --key LeftShift
npx --yes uloop-cli@2.2.0 simulate-keyboard --action KeyDown --key W
npx --yes uloop-cli@2.2.0 screenshot --capture-mode rendering
npx --yes uloop-cli@2.2.0 simulate-keyboard --action KeyUp --key W
npx --yes uloop-cli@2.2.0 simulate-keyboard --action KeyUp --key LeftShift

Output

Returns JSON with:

  • Success (boolean): Whether the action succeeded (e.g. KeyDown on a not-yet-held key, KeyUp on a currently-held key, or Press round-trip)
  • Message (string): Description of what happened or why it failed
  • Action (string): The --action value that was applied (Press, KeyDown, or KeyUp)
  • KeyName (string, nullable): The key that was acted on; may be null when the action could not resolve a key

Prerequisites

  • Unity must be in PlayMode
  • Input System package must be installed (com.unity.inputsystem)
  • Use this only when the project already uses the New Input System.
  • Game code must read input via Input System API (e.g. Keyboard.current[Key.W].isPressed), not legacy Input.GetKey()

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
Repository forks
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/hira1010/2nd-brain/uloop-simulate-keyboard/badge)](https://verified-skill.com/skills/hira1010/2nd-brain/uloop-simulate-keyboard)

Something wrong with this skill or its page? Tell us.