agentleFS
UwayxtUwayxt/agent-skills/.agents/skills/touch-gesture-interaction/SKILL.md

touch-gesture-interaction

Skill4 starsChanged 2 months agoMITView on GitHub

Define touch targets, gestures, and thumb-zone layout for touch interfaces. Use when designing for mobile, touch targets, gesture patterns, swipe, pull-to-refresh, or thumb reachability.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every interactive element must meet minimum 44×44pt (iOS HIG) / 48×48dp (Material Design).

    line 9
  2. Distinctive:

    Place primary actions (CTA, submit, nav) in the Green zone.

    line 16
  3. Distinctive:

    All interactive elements verified ≥ 44×44pt

    line 35
  4. Distinctive:

    All gestures defined with trigger, feedback, and conflict check

    line 37

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

A finger is not a cursor. Touch interaction has no hover state, no precision, and no right-click. Design for the thumb first, then add everything else.

1. Enforce minimum tap target sizes

Every interactive element must meet minimum 44×44pt (iOS HIG) / 48×48dp (Material Design). This is not a suggestion — elements smaller than this produce miss-taps. Audit every button, link, icon-button, toggle, and form input.

2. Map the thumb zones

Using the thumb-zone model (Green = easy reach, Yellow = stretch, Red = difficult):

  • Green zone: bottom 40% of screen, centered horizontally
  • Yellow zone: middle 40%
  • Red zone: top 20%, far edges Place primary actions (CTA, submit, nav) in the Green zone. Secondary actions can be Yellow. Destructive or rare actions can be Red (friction is intentional).

3. Define gesture patterns

For each gesture used in the product, specify:

  • Gesture type: tap, double-tap, long-press, swipe (direction), pinch, pull-to-refresh
  • What it triggers: action, reveal, navigation, dismiss
  • Feedback: what visual/haptic response confirms the gesture was recognized
  • Conflict check: does this gesture conflict with system-level gestures (back swipe, pull-down notification)?

4. Handle safe-area insets

For devices with notches, home indicators, and rounded corners: use env(safe-area-inset-*) CSS or platform equivalent. Navigation bars, bottom CTAs, and fixed elements must respect these insets.

5. Define touch-state variants

Pressed state (visual depression/highlight), long-press state, swipe-in-progress state. Coordinate with component-style-guide for the full state matrix.

6. Document no-hover fallbacks

For every interaction that uses hover on desktop (tooltip on hover, action revealed on hover, underline on hover), define the touch equivalent: tap to reveal, always visible, swipe-to-reveal, or eliminated.

Completion Criteria

  • All interactive elements verified ≥ 44×44pt
  • Thumb zone map documented for each primary screen
  • All gestures defined with trigger, feedback, and conflict check
  • Safe-area insets handled for all fixed/sticky elements
  • No-hover fallbacks documented for every hover interaction

Output

Tap target audit report + thumb zone map + gesture inventory + safe-area spec.

Anti-patterns

  • Icon buttons without a label AND without an adequate tap target padding
  • Placing primary CTA at the top of the screen (hardest to reach one-handed)
  • Implementing custom gestures that conflict with system navigation (swipe-left-to-go-back)
  • Relying on hover states to reveal critical information on touch devices
  • Forgetting that long-press has no visual affordance — users will not discover it unless told

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.