air_mouse
Skill37 starsChanged 33 days agoMITView on GitHub
Use this skill when the user asks to start an air mouse, IMU mouse, or pointer control from device motion. The script reads BMI270 samples through imu, runs quaternion pose mapping, and sends relative mouse reports through ble_hid. On the LCD, the screen is split horizontally: - Top half press/hold → mouse right button down until release - Bottom half press/hold → mouse left button down until release - Mid strip (divider) → scroll wheel: swipe left = wheel up,…
In this repository24 other files it gives its agents.
- bilibili_up_fansSkill
- china_a_share_quoteSkill
- cloudmusicSkill
- current_ip_infoSkill
- current_weatherSkill
- dfrobot_matrix_lidar_8x8_i2cSkill
- dfrobot_stcc4_i2cSkill
- example_skillSkill
- flashbackSkill
- gimbal_color_detectSkill
- gimbal_motion_detectSkill
- github_repo_starSkill
- movement_detectionSkill
- network_radioSkill
- servo_dogSkill
- stock_quotes_displaySkill
- token_usageSkill
- unihiker_buttonSkill
- unihiker_expansion_batterySkill
- unihiker_expansion_irSkill
- unihiker_expansion_motor_controlSkill
- unihiker_expansion_servo_controlSkill
- unihiker_expansion_WS2812Skill
- weather_clockSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Use this skill when the user asks to start an air mouse, IMU mouse, or pointer control from device motion.
- Distinctive: line 34
Prefer async so the loop keeps running until cancelled:
- Very specific: line 40
Use lua_run_script_async (or router run_script with "async": true).
- Distinctive: line 93
Start the script async with the schema above.
- Very specific: line 95
After connected, tilt/point the device to move the cursor.
- Very specific: line 98
Stop with lua_stop_job using job name air_mouse when finished.
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 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
Airmouse
Use this skill when the user asks to start an air mouse, IMU mouse, or pointer
control from device motion. The script reads BMI270 samples through imu,
runs quaternion pose mapping, and sends relative mouse reports through ble_hid.
On the LCD, the screen is split horizontally:
- Top half press/hold → mouse right button down until release
- Bottom half press/hold → mouse left button down until release
- Mid strip (divider) → scroll wheel: swipe left = wheel up, swipe right = wheel down
Quick double-taps on left/right zones are timed for host double-click (HID down/up before UI redraw).
A trackball-style icon (from the provided SVG) is drawn near the center; LEFT/RIGHT labels sit on the left side of the screen (rotated 90° CCW).
Start Airmouse (async, long-running)
Prefer async so the loop keeps running until cancelled:
{"path":"{CUR_SKILL_DIR}/scripts/start_air_mouse.lua","args":{"name":"esp-claw-airmouse"},"timeout_ms":0,"name":"air_mouse","exclusive":"display","replace":false}Use lua_run_script_async (or router run_script with "async": true).
timeout_ms: 0 means run until cancelled.
Script Args Schema
{
"type": "object",
"properties": {
"name": {
"type": "string",
"default": "esp-claw-airmouse",
"description": "BLE HID advertised name (max 29 bytes)"
},
"interval_ms": {
"type": "integer",
"default": 10,
"minimum": 1,
"description": "IMU poll period in milliseconds"
},
"gain": {
"type": "number",
"default": 20,
"description": "Cursor sensitivity gain applied to UV deltas"
},
"dead_x": {
"type": "number",
"default": 0.05,
"description": "UV deadzone on X"
},
"dead_y": {
"type": "number",
"default": 0.05,
"description": "UV deadzone on Y"
},
"max_dx": {
"type": "integer",
"default": 20,
"minimum": 1,
"maximum": 127
},
"max_dy": {
"type": "integer",
"default": 20,
"minimum": 1,
"maximum": 127
}
}
}Recommended Flow
- Start the script async with the schema above.
- Pair the host with the advertised BLE HID name.
- After
connected, tilt/point the device to move the cursor. - Short-tap LCD top/bottom for right/left click (double-tap supported); hold/drag for press-and-hold. Swipe on the mid divider: left = scroll up, right = scroll down.
- Stop with
lua_stop_jobusing job nameair_mousewhen finished.
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.

