phone_gesture — Claude Code prompt for screen gestures
The phone_gesture Claude Code prompt describes touch gestures on a virtual display. It activates when an action needs a path from one or two fingers.
Apache-2.0 ★ 9,488 updated 2026-11-16
.claude/commands/phone_gesture.mdWhat phone_gesture does
The prompt represents a finger movement as a sequence of [x,y] points on the task’s virtual display. Coordinates use a normalized 0–999 range. Two paths can run at once to pinch or spread.
When accessibility refs or a regular scroll or swipe can express the action, the prompt prefers those methods over a drawn path. The Claude Code command is stored at .claude/commands/phone_gesture.md.
What it helps with
- trace a single-finger movement on a virtual display
- pinch with two simultaneous paths
- spread two fingers across the display
Example prompts for the agent
- Trace a single finger from the top edge to the bottom of the virtual display.
- Use two simultaneous paths to pinch the display.
- Spread two fingers on the virtual display.
How to install phone_gesture
Manually: put the files in place
.claude/commands/phone_gesture.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about phone_gesture
How do I install phone_gesture in Claude Code?
Add the command at .claude/commands/phone_gesture.md.
What does phone_gesture do?
It describes one or two finger paths on a virtual display. Two paths can pinch or spread.
How does phone_gesture represent coordinates?
Each path is a sequence of [x,y] points using normalized coordinates from 0 to 999.
Source text
phone_gesture.md · Apache-2.0
Draw a one-finger path or two simultaneous paths on the task's virtual display. Each path is a sequence of normalized [x,y] points (0-999); two paths can pinch or spread. Prefer accessibility refs or ordinary scroll/swipe when they can express the action.
© wangzan101 · Apache-2.0 · wangzan101/Mika