gestures
Skill by emilkowalski
Guides an AI assistant to build and fix drag, swipe, fling, sheet and hold gestures that follow the finger and stay interruptible. Written for developers building gesture-driven UI on the web.
Install gestures
Built from the published package, never by AI.
git clone --depth 1 https://github.com/emilkowalski/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/gestures ~/.claude/skills/gesturesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/emilkowalski/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/gestures ~/.gemini/antigravity-cli/skills/gesturesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The gestures skill gives an AI assistant guidance for building and fixing gesture interactions in user interfaces. It covers drawers, sheets, swipe-to-dismiss toasts and cards, drag-to-reorder, pull-to-refresh and hold-to-confirm. It separates a track phase, where the element follows the pointer 1:1, from a release phase, where a spring seeded with the gesture's velocity finishes the motion.
The source recommends Base UI's Drawer for bottom sheets unless the project already uses another library such as Vaul. It also covers Motion drag props, linked overlay values, interruptibility, touch-action, 44px hit targets and reduced motion. It is aimed at developers building or debugging gesture-driven interfaces.
Written from the project's SKILL.md and checked against it.
What it can do
- Drawer library guidanceRecommends Base UI's Drawer for bottom sheets and explains when to build a gesture by hand.
- Track and release phasesExplains 1:1 tracking while the pointer is down and spring physics after release.
- Motion drag propsShows drag, dragElastic, dragMomentum and onDragEnd with distance and velocity dismissal.
- Interruptible animationsExplains why springs and transitions can be caught mid-flight while keyframes cannot.
- Linked valuesDerives overlay opacity from drag progress so the backdrop always matches the drawer.
- Sheet timingGives an iOS-style cubic-bezier curve over 500ms and a 200ms override for floating drawers.
- Hold gesture timingUses linear timing during a hold and a fast ease-out when the hold is released early.
- Touch checklistCovers touch-action, 44px hit targets and gating hover effects to fine pointers.
- Reduced motion handlingKeeps tracking but removes flings, bounce and decorative motion under reduced motion.
Try asking
- Make this bottom sheet dismiss on a fast swipe down, not only past half its height.
- My drag feels laggy in a long list. What should I change?
- Add hold-to-delete to this row with linear timing and a fast cancel.
Good to know
- Base UI's Drawer is unstyled, so the motion and styling are left to the developer.
- The source advises testing on a real phone because trackpad simulation does not match touch.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/gestures/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB
Alternatives to gestures
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
gestures: common questions
Should I build a drawer gesture myself or use a library?
The source says to default to Base UI's Drawer for bottom sheets because swipe-to-dismiss, snap points and focus trapping are hard to hand-roll. It says to keep Vaul or another drawer library if the project already uses one.
Why does my gesture jump when I let go?
The source says the release should be a spring seeded with the gesture's velocity, not a fixed-duration ease. It also says CSS keyframes restart from zero and cannot be caught mid-animation.
Does this guidance work with Motion or Vaul?
The source includes Motion drag props with onDragEnd examples. It also names the Vaul attribute data-vaul-no-drag and the Base UI attribute data-base-ui-swipe-ignore for interactive children.
How do I install gestures?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is gestures free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is gestures safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to gestures?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
