Logo de Gesture Correction

Gesture Correction

Comunidade
cccat6
gesture-correction

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

Visão geral

Publicado porcccat6
Repositórioiphone-agent-harness
Nome da habilidadegesture-correction
Estrelas
41
Forks
1
Arquivos incluídos
1
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    Habilidades de IA são Markdown simples, não código específico de um provedor, por isso funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • 1 arquivos incluídos

    Scripts, modelos de documentos e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente leitura e nunca são executados.

  • Código aberto

    Publicada por cccat6 no GitHub. Leia o conteúdo-fonte antes de instalar.

Instalação

Instale a habilidade de IA Gesture Correction no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL da pasta da habilidade exibida abaixo e confirme.
    https://github.com/cccat6/iphone-agent-harness/tree/main/apps/web/skills/gesture-correction
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Nova habilidade → Via URL GitHub, depois cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Gesture Correction em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Gesture Correction automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Gesture Correction não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

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.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Gesture Correction faz?

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

Por que usar Gesture Correction no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Gesture Correction é escrito em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. O TypingMind usa suas próprias chaves de API, então o pagamento é feito diretamente aos provedores, em vez de uma assinatura por licença de usuário, e suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Gesture Correction no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/cccat6/iphone-agent-harness/tree/main/apps/web/skills/gesture-correction. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Gesture Correction?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Gesture Correction?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Gesture Correction com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Gesture Correction é gratuita?

Sim. A habilidade é publicada no GitHub por cccat6 sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, modelos de documento ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas para chamar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA fornece conhecimento e um processo ao modelo: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇