Gesture Correction logo

Gesture Correction

Community
cccat6
gesture-correction

Learn from observed pointer misses, scrolling overshoot and picker response, then refine gestures or use direct entry.

Overview

Publishercccat6
Repositoryiphone-agent-harness
Skill namegesture-correction
Stars
41
Forks
1
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by cccat6 on GitHub. Read the source before you install it.

Installation

Install the Gesture Correction AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/cccat6/iphone-agent-harness/tree/main/apps/web/skills/gesture-correction
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cccat6/iphone-agent-harness.git /tmp/iphone-agent-harness
mkdir -p .claude/skills
cp -r /tmp/iphone-agent-harness/apps/web/skills/gesture-correction .claude/skills/gesture-correction
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Gesture Correction in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Gesture Correction on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Gesture Correction is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Gesture correction

This is guidance for the existing fixed phone tools, not executable code or an input permission. Use only the current verified target, frame identity, orientation epoch and declared capabilities. Coordinates are 0..10000 across the complete screenshot, not Safari CSS pixels. A HID receipt confirms submission and release, not that the intended UI changed.

Observe, predict, measure, correct

  1. Before acting, locate a safe interior target or scrollable component from a fresh full-display frame. Read the runtime interaction notes for this same target and orientation. State the expected visible effect, not a hidden implementation assumption.
  2. Start with one conservative measurement, then size later corrections from the observed response and remaining distance. A distant picker value should not require one tiny correction per model round. For precise list/picker adjustment prefer a short drag with a modest endpoint hold, so release happens after slowing/stopping. Reserve swipe for desired inertia; release velocity and path length affect travel. Keep the entire path away from screen edges, editor dismissal handles, Cancel/Save buttons and neighbouring wheel columns.
  3. After confirmed release use a component-appropriate settleMs. Defaults are tap 250, key 150, Home 450, drag/pointer 350, swipe 700 ms. A picker may need 1200–2000 ms or more; the supported override is 0..3000 ms. Request a small later frame group if values still move. Use actual timestamps/content; neither JPEG ready time nor a sleep proves a fresh or stable screen.
  4. Compare the actual screen with the expected effect. Identify a persistent anchor or selected value. For scrolling, estimate content displacement relative to the gesture length/time, direction and release style. After overshoot reduce distance and velocity, use a held endpoint and reassess. After a miss re-localize the actual target from the new screenshot; do not apply a guessed universal x/y offset.
  5. Preserve useful observed findings with phone_remember_interaction({component,finding,evidenceFrameIds}). Record the app/control, concrete parameter change, actual response and next improvement. Examples: “minute wheel moved 8 values with a short held drag; final correction should use a smaller drag, not another inertial swipe” or “single tap exposed a keyboard; use digits instead of wheel”. Include real frame IDs from this run. The tool replaces the component note rather than growing an unlimited transcript, and scopes it to this target/orientation. Evidence from one control is not a global calibration.
  6. Reuse the current Skill instructions and recorded findings instead of reloading them each correction. Continue while each attempt yields useful evidence or progress; use measured larger travel for large error and small held drags near the goal. There is no fixed two-correction/step budget. Change the approach after repeated mismatch. When the same action still fails with unchanged evidence, an external prerequisite is missing, or delivery remains unknown, explain the real blocker and ask for the specific help needed. Never replay an uncertain Save/Add/Delete sequence under a new ID. User Stop always stops; sharing loss pauses.

Choose the component's actual input method

  • Ordinary buttons: short tap at the visible interior, wait, verify destination. If a wrong app opened, return through a reviewed transition and re-observe before the next attempt.
  • Editable text/numbers: establish focus and inspect the caret/keyboard before typing. Use text-entry. Do not select-all/delete blindly.
  • Time/date wheel: use clock-and-time. A tap, or a reviewed double-tap probe, may expose direct digit entry. Double taps use settleMs:0 for the first tap and a normal wait for the second. Network-separated taps are not guaranteed to form a native double tap; inspect the UI before typing. If editing is unsupported, measure small held drags one column at a time, including wrap direction, then verify exact selected values before Save.
  • Slider: locate track/thumb and move inside the track with a held drag; compare displayed value. Do not substitute inertial list scrolling.
  • Scrolling list: use content anchors, progressively smaller travel near the target, and two later frames if inertia is unclear. Recompute coordinates after each visible motion.
  • Drag and drop: use drag-and-drop; distinguish pickup/long-press, movement, final hold and release. A dismissal or edge gesture is an unintended navigation: re-observe and restore the intended view before any dependent input.

When a submitted gesture is followed by a screenshot timeout, observe the current result before another gesture; retrying a screenshot does not authorize replaying input. Budget the gesture, settling, transport and review together, rather than repeatedly using a too-short plan deadline.

Do not write device offsets or sensitivity settings based on these notes. They are evidence-grounded planning guidance, not measured hardware calibration constants. Do not store unrelated private content in a shared Skill.

Motion and release reference

These are starting ranges for a first probe, not a fixed rhythm or a calibration shared by all apps. Express the whole down/move/up sequence in one plan so the ESP32 schedules its reports without a network round trip between points.

IntentInitial approachRelease and evidence
Turn a Home pageHorizontal travel of roughly half the display width over about 180–350 ms, inside the icon areaUse a moving release (swipe); verify a complete page snap and the page indicator
Reveal Home SearchPrefer its visible button; otherwise a moderate downward movement starting in Home content, below the status barInspect the resulting search field; an edge-origin gesture may reveal a different system surface
Scroll a content listKeep the path inside the content viewport; begin with moderate travel and speedMoving release for inertia; stop-and-hold release for a controlled displacement
Fine wheel or slider adjustmentUse the actual column/track bounds and a smaller held drag; start around 100–200 ms of endpoint holdRead the selected value after settling; prefer verified direct numeric entry when available

Release velocity depends on the final part of the path, not only total duration. A fast initial movement followed by a slow approach or endpoint dwell is not a fling. For inertia, continue moving through release and omit any final hold. For controlled placement, arrive, keep the button held while motion stops, then release. HID button-up is the lift; do not send another held report at the same endpoint first.

After a fast fling, a snapping page or a wheel change, distinguish a submitted release from a settled control. Choose a wait based on the observed speed and control: faster releases can need longer decay; a slow wheel may still animate for more than a second. Use a small time-separated frame group when settling is uncertain, comparing the same content anchors or selected row in the last two frames. If they still move, wait and observe again before computing the next coordinate or declaring an exact value. Store full frames; the control's visible bounds determine what to compare. Animated clocks, cursors and unrelated video are not motion of the target control.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Gesture Correction AI skill do?

Learn from observed pointer misses, scrolling overshoot and picker response, then refine gestures or use direct entry.

Why use Gesture Correction on TypingMind?

Because you install it once and use it with any model. Gesture Correction is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Gesture Correction in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/cccat6/iphone-agent-harness/tree/main/apps/web/skills/gesture-correction. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Gesture Correction?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Gesture Correction?

As many as you like. As long as a model supports skills, you can use Gesture Correction with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Gesture Correction AI skill free?

Yes. It is published on GitHub by cccat6 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇