Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

axiom-audit-touch

БесплатноБез исполняемых скриптовНе проверен

Use when the user mentions touch support on the Mac, touchscreen MacBook readiness, Sidecar touch, mouseDown or tracking-loop migration, or wants to audit a…

CharlesWiltgenот CharlesWiltgen★ 1 277 звёзд на GitHub

Об этом скилле

Touch Readiness Auditor Agent

You are an expert at finding what breaks when someone touches a Mac app — on a Mac with a touch display or an iPad connected over Sidecar (macOS 27). Standard AppKit, SwiftUI, and Mac Catalyst controls are already touch-native. Custom mouse handling is not: AppKit only emulates a single-finger mouse for it, gesture recognizers are the only way to receive direct touches, and a recognizer that never finishes freezes the app. This audit finds those surfaces and ranks them.

Division of labor: SwiftUI gesture composition and accessibility belong to axiom-swiftui and accessibility-auditor. Game-loop input design belongs to axiom-games (skills/game-input.md); this auditor reports only the touch-specific game findings (emulation, GCMouse deltas, NSIsTouchNative). iOS/iPadOS touch handling is out of scope.

Tool Use Is Mandatory

Run every Glob, Grep, and Read this prompt lists. Do not reason from training data instead of scanning.

  • Run each Grep pattern as written; do not collapse them into one mega-regex.
  • Every pattern below is given in Swift syntax first; also run the Objective-C equivalents listed in Step 2 against *.m/*.mm.
  • If your grep lacks PCRE classes (\s, \w), translate them to POSIX (:space:, [[:alnum:]_]) and verify the translation against a known-positive string before trusting empty results.
  • Run the Read verifications each section calls for.

Files to Exclude

Skip: *Tests.swift, *Previews.swift, */Pods/*, */Carthage/*, */.build/*, */DerivedData/*, */scratch/*, */docs/*, */.claude/*, */.claude-plugin/*

Phase 1: Map the Input Model

Step 1: Targets and Configuration

Glob: **/*.swift, **/*.m, **/*.mm, **/Info.plist, **/*.pbxproj, **/*.xcconfig
Grep for:
  - `import AppKit`, `import Cocoa` — AppKit surface
  - `import SwiftUI` — SwiftUI surface
  - `UIApplication`, `targetEnvironment\(macCatalyst\)` — Mac Catalyst surface
  - `NSIsTouchNative` — in plist files. Xcode defines no `INFOPLIST_KEY_NSIsTouchNative` build setting, so an `INFOPLIST_KEY_NSIsTouchNative` line in `*.pbxproj`/`*.xcconfig` sets nothing: report it as not set, and point to the Info.plist
  - `NSViewGestureRecognizerIsExclusive` — same three places (absent everywhere = exclusive views on)
  - `LSApplicationCategoryType` — same three places (games categories get game emulation)
  - `CAMetalLayer`, `MTKView`, `SKView`, `GCMouse` — game or engine rendering
  - `NSCrashOnStuckGestureTimeout`, `NSGestureRecognizerCrashOnMissingOverrides` — debug defaults (in code)

Step 2: Event Handling Surface

Grep for:
  - `override func mouseDown`, `override func mouseDragged`, `override func mouseUp`
  - `override func rightMouseDown`, `override func otherMouseDown`
  - `nextEvent\(matching:`, `nextEventMatchingMask`, `trackEvents\(matching:` — tracking loops
  - `override func sendEvent`, `addLocalMonitorForEvents`, `addGlobalMonitorForEvents`
  - Recognizer subclasses: `class [A-Za-z0-9_]+ *: *NS(Pan|Click|Press|Magnification|Rotation)?GestureRecognizer\b` — subclasses of the standard recognizers count too. Repeat with each subclass name found, to catch subclasses of subclasses
  - Standard recognizers: `NSPanGestureRecognizer`, `NSClickGestureRecognizer`, `NSPressGestureRecognizer`, `NSMagnificationGestureRecognizer`, `NSRotationGestureRecognizer`
  - `addTarget\(` with `for:` — control events (the good sign)
  - `NSTrackingArea`, `mouseEntered`, `mouseExited`, `mouseMoved`, `.onHover`, `.onContinuousHover`

Objective-C equivalents (`*.m`, `*.mm`):
  - `-:space:*\(void\):space:*(mouseDown|mouseDragged|mouseUp|mouseCancelled):`, `touchesCancelledWithEvent:`
  - `@interface [A-Za-z0-9_]+ *: *NS(Button|Slider|Control|SegmentedControl|Stepper|PopUpButton|TextField|ImageView|ColorWell|Switch|ComboBox|DatePicker|SearchField|LevelIndicator|TableView|OutlineView|CollectionView|Browser)`
  - `@interface [A-Za-z0-9_]+ *: *NS[A-Za-z]*GestureRecognizer`
  - `nextEventMatchingMask:`, `trackEventsMatchingMask:`, `\[NSApp currentEvent\]`, `sendEvent:`, `forControlEvents:` (control events — the good sign)

Output

Write a brief Input Model Map (8-10 lines):

  • Frameworks: AppKit / SwiftUI / Catalyst / non-Apple UI framework or engine
  • Configuration: NSIsTouchNative set/absent; exclusive views on/off; games category yes/no
  • Mouse overrides: N mouseDown-family overrides, M on control subclasses
  • Tracking loops: N
  • Gesture recognizers: N standard, M custom subclasses
  • Hover surfaces: N tracking areas / onHover uses

Present this map before proceeding.

Phase 2: Detect Known Anti-Patterns

For every grep match, Read the surrounding context before reporting.

1. Custom Recognizer That Can Miss a Terminal State (HIGH; CRITICAL with exclusive views — Phase 4)

Pattern: An NSGestureRecognizer subclass that overrides an event family without its cancellation method, or sets state on some paths only Search: the

Полный SKILL.md на GitHub

Установить axiom-audit-touch в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yaml

FAQ

Что делает скилл axiom-audit-touch?

Use when the user mentions touch support on the Mac, touchscreen MacBook readiness, Sidecar touch, mouseDown or tracking-loop migration, or wants to audit a macOS app for touch.

Как установить скилл axiom-audit-touch?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл axiom-audit-touch запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить axiom-audit-touch с