swiftship/internal/skills/data/watchos/haptics/SKILL.md
watchOS haptic feedback: WKInterfaceDevice preset haptic types for wrist-based feedback. Use when implementing watchOS-specific patterns related to haptics.
npx skillsauth add abdullah4ai/apple-developer-toolkit hapticsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
HAPTIC FEEDBACK (watchOS):
WKInterfaceDevice.current().play(_:) for all haptic feedbackPRESET 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:
.click with Digital Crown detents and button taps.success/.failure with operation outcomes.start/.stop with timer or workout transitionstesting
Use for 3D games: racing, 3D sports, board games, marble maze, tower defense, bowling. SceneKit + SceneView architecture, 3D scene hierarchy, physics, game loop, primitives, materials, cameras, particles, audio.
documentation
Game UI patterns: SwiftUI HUD overlays on SpriteKit, menus (main/pause/game-over), virtual joystick/d-pad, score displays, health bars, tutorial onboarding.
tools
Download free game sprites/textures/3D models and generate procedural assets. Covers nw_download_asset tool, texture factories, sprite atlas organization, 3D model loading, and programmatic asset creation.
testing
Use for 2D games: arcade, puzzle, sports, ping pong, platformer, shooter, 2D racing. SpriteKit + SpriteView architecture, scene hierarchy, physics, game loop, audio, particles, game feel.