/tap-android-sdk:tap-android-tappingfrom tap-android-sdk
Decodes Tap tapcodes on Android (finger bitmask 1-31), maps finger combinations to app actions, and configures tap events for classic and framed protocols. Includes double-tap detection and haptic feedback guidance.
Ships in tap-android-sdk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Works on classic and framed protocols. Start from the tap-android-getting-started skill for connection. tapIdentifier comes from onTapConnected.
Current TapXR developer firmware includes taps in the full gesture set (together with swipes, pinches, and fist). TapBand uses the same BLE API and is coming soon: https://www.tapwithus.com/tapband-waitlist/
onTapInputReceived gives data, an int 1–31. Each bit is one finger:
| Bit | Value | Finger |
|---|---|---|
| 0 | 1 | thumb |
| 1 | 2 | index |
| 2 | 4 | middle |
| 3 | 8 | ring |
| 4 | 16 | pinky |
Examples: 1 thumb, 2 index, 3 thumb+index, 6 index+middle, 31 all five.
boolean[] fingers = TapSdk.toFingers(data); // [thumb, index, middle, ring, pinky]
static final int NEXT = 2; // index
static final int PREVIOUS = 4; // middle
static final int SELECT = 6; // index + middle
static final int QUIT = 31; // all five
Single-finger taps are the most reliable. Prefer them for frequent actions. Use 2-finger combos next. Use 3+ finger combos only for rare actions.
!sdk.isV2Tap(id)): Controller mode is the default after connect while the Activity is resumed.
startTextMode(id): the Tap types on the OS keyboard. The SDK gets no taps.startControllerMode(id): the SDK gets tap, mouse, and air-gesture events. No typing.startControllerWithMouseHIDMode(id): controller plus the system mouse cursor.startControllerWithFullHIDMode(id): controller plus keyboard HID.setDefaultMode(TapInputMode.controller(), true) sets the mode for new connections and, when the second argument is true, for Taps already connected.sdk.isV2Tap(id)): Controller mode enables MODEL_DETECTION and IMU_MOTION_DATA but does not select a vision model. For taps call startXRTappingState(id), which sets VisionSensorModel.TAPPING and VisionSensorOpMode.TRIGGER. The direct calls are setFeature, setVisionSensorModel, and setVisionSensorOpMode.pause() switches every connected Tap to Text mode. resume() restores the mode you set. Skipping those calls is the usual reason taps work once and then stop.
On classic firmware, repeatData is 1 (single), 2 (double), or 3 (triple). Use it.
On the framed protocol, repeatData is always 1. Detect double taps yourself:
private int lastCode;
private long lastNs;
void onTap(int data) {
long now = System.nanoTime();
if (data == lastCode && now - lastNs < 350_000_000L) {
handleDouble(data);
lastCode = 0;
return;
}
lastCode = data;
lastNs = now;
handleSingle(data);
}
If a single and a double must not both fire, delay the single action ~350 ms and cancel it when the second tap arrives. Use a main-thread Handler.
sdk.vibrate(tapIdentifier, new int[]{80});
sdk.vibrate(tapIdentifier, new int[]{100, 100, 100}); // on, pause, on
Values are on/off durations in milliseconds, clamped to 10–2500. Up to 18 values. The SDK scales them to 10 ms units on the wire. vibrate is safe to call from the callback thread.
onTapShiftSwitchReceived reports a separate bitmask. TapSdk.toShiftAndSwitch(data) returns {shift, switchState} where shift is 0 off, 1 on, 2 locked. This callback is not available on the framed protocol.
TapListener: tap-android-sdk skill, reference.mdapp/src/main/java/com/tapwithus/tapsdk/MainActivity.javaWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
tap-tapcodes, finger-combos, android-tap-sdk, tap-input, haptic-feedback
9 skills in this plugin
/tap-android-build-an-appBuild a complete Android app or interactive experience controlled by a Tap — games, presentations, media control, or creative tools. Use when the user asks to build, make, or create something with their Tap on Android. Start with tap-android-getting-started: TapSdkFactory.getDefault, registerTapListener, resume and pause. getDefault() alone delivers no taps./tap-android-dpadBuild a D-Pad style controller on Android with a Tap — swipes for directions, short pinches to select, pinch-hold that locks into rotate (twist) or drag (move), fist-hold to hide. Use for D-Pad, menu navigation, drag and drop, or game controls. Needs the framed BLE protocol (current TapXR developer firmware; TapBand uses the same API). Requires tap-android-getting-started order: getDefault, registerTapListener, resume and pause./tap-android-getting-startedFirst skill for any Tap Android app. The order is TapSdkFactory.getDefault(context), then registerTapListener, then resume() in onResume and pause() in onPause. getDefault() alone delivers no taps. There is no connect() or start() method. Use for the Gradle dependency, Bluetooth permissions, pairing, "connect to my Tap", setup, or no tap events./tap-android-imu-motionUse Tap hand motion on Android — ImuMotionPacket (dx, dy, roll, pitch, yaw) on the framed protocol and MousePacket on classic firmware — to move a cursor, steer, tilt, or rotate. Use for air mouse, pointer, cursor, tilt, euler angles, or motion-driven UI. Requires tap-android-getting-started order: getDefault, registerTapListener, resume and pause./tap-android-knobBuild a virtual knob on Android with a Tap — hold a pinch and twist the wrist to turn a value up or down (volume, brightness, zoom, scroll). Use for knob, dial, twist, rotate-to-adjust, or continuous value control. Needs the framed BLE protocol (current TapXR developer firmware; TapBand uses the same API). Requires tap-android-getting-started order: getDefault, registerTapListener, resume and pause./tap-android-raw-sensorsStream raw accelerometer and gyroscope samples from a Tap on Android (classic raw mode or framed RAW_IMU_DATA) and set sensitivity. Use for raw sensors, raw IMU, accelerometer, gyro, data logging, or custom gesture recognition. Requires tap-android-getting-started order: getDefault, registerTapListener, resume and pause.npx claudepluginhub tapwithus/tap-android-sdk --plugin tap-android-sdkOther plugins' skills for the same job