Haptics

From moasq/nanowave · View interactive version

Haptics is an AI agent skill from the GitHub repository moasq/nanowave. watchOS haptic feedback: WKInterfaceDevice preset haptic types for wrist-based feedback. Use when implementing watchOS-specific patterns related to haptics.

How to use this skill

Skill file

Haptics (watchOS)

HAPTIC FEEDBACK (watchOS):

PRESET HAPTIC TYPES:

| Type | Use Case |

|------|----------|

| .click | General tap confirmation, button press |

| .directionUp | Value increasing, scrolling up |

| .directionDown | Value decreasing, scrolling down |

| .success | Task completed, action confirmed |

| .failure | Error, invalid input |

| .retry | Retry prompt, try again |

| .start | Activity/timer started |

| .stop | Activity/timer stopped |

| .notification | Alert, incoming notification |

USAGE:

import WatchKit

// Simple tap feedback
WKInterfaceDevice.current().play(.click)

// Outcome feedback
func completeTask() {
    // ... perform action
    WKInterfaceDevice.current().play(.success)
}

// Error feedback
func handleError() {
    WKInterfaceDevice.current().play(.failure)
}

// Digital Crown value change
.digitalCrownRotation($value)
.onChange(of: value) {
    WKInterfaceDevice.current().play(.click)
}

RULES:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.