swipe — Claude Code prompt: what it does, how to install
This Claude Code prompt describes swipes between two interface points. It covers page scrolling, carousel gestures, and how to read the action result.
Apache-2.0 ★ 9,488 updated 2026-11-16
.claude/commands/swipe.mdWhat swipe does
The prompt defines a swipe from one interface point to another, with each coordinate normalized to the 0–999 range. To move down a page, swipe upward from a higher y value to a lower one. Use the separate {{scroll}} action for ordinary scrolling.
A carousel uses a short horizontal swipe. A longer gesture on a list row can delete it, so inspect the result. The action reports done, small_change, no_effect, or place_changed; these states describe whether the interface changed, stayed the same, or moved elsewhere.
What it helps with
- scroll down a page with a swipe
- move through a carousel with a short sideways gesture
- check what changed after a swipe
Example prompts for the agent
- Scroll down the page by swiping from a higher y value to a lower one.
- Move the carousel with a short sideways swipe.
- Check what changed in the interface after swiping a list row.
How to install swipe
Manually: put the files in place
.claude/commands/swipe.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about swipe
How do I install swipe in Claude Code?
Add the file swipe.md at .claude/commands/swipe.md.
What does swipe do?
It describes swiping between two points using coordinates from 0 to 999. It also specifies gesture directions for scrolling and carousels, along with the result states.
How should swipe handle page scrolling and carousels?
To move down a page, swipe upward from a higher y value to a lower one. Use a short sideways gesture for a carousel; a long swipe on a list row can delete it.
Source text
swipe.md · Apache-2.0
Swipe between two normalized 0-999 points. To scroll a page down, swipe upward (from a larger y to a smaller y). For ordinary scrolling use {{scroll}}. For a carousel, use a short sideways swipe; a long sideways swipe on a list row may delete it, so inspect the result. The result's effect says what the action did to the interface: done (a clear change), small_change (only focus, a toggle or one or two elements changed, or it may still be loading: check it), no_effect (nothing in the interface changed: try another way instead of repeating) or place_changed (now somewhere else, given in effect.to).
© wangzan101 · Apache-2.0 · wangzan101/Mika