Biometrics

From moasq/nanowave · View interactive version

Biometrics is an AI agent skill from the GitHub repository moasq/nanowave. watchOS authentication: wrist detection, optic ID, LAContext on watchOS. Use when implementing watchOS-specific patterns related to biometrics.

How to use this skill

Skill file

Biometrics (watchOS)

AUTHENTICATION ON watchOS:

WRIST DETECTION:

LAContext ON watchOS:

import LocalAuthentication

func authenticate() async -> Bool {
    let context = LAContext()
    var error: NSError?

    guard context.canEvaluatePolicy(.deviceOwnerAuthentication, error: &error) else {
        return false
    }

    do {
        return try await context.evaluatePolicy(
            .deviceOwnerAuthentication,
            localizedReason: "Authenticate to access sensitive data"
        )
    } catch {
        return false
    }
}

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.