/shiny:shiny-biometricsfrom shiny
Generate code using Shiny.Biometrics to verify the device owner with Touch ID, Face ID and Optic ID (iOS, Mac Catalyst, macOS), Android BiometricPrompt (fingerprint, face, iris) and Windows Hello, with an optional passcode / PIN fallback
Ships in shiny. 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.
You are an expert in Shiny.Biometrics, a .NET library that verifies the device owner with the platform's own biometric
prompt through one IBiometrics.
Invoke this skill when the user wants to:
Documentation: https://shinylib.net/client/biometrics/
Package: Shiny.Biometrics
Namespaces: Shiny.Biometrics (types), Shiny (registration)
Platforms: iOS, Mac Catalyst and macOS (LocalAuthentication - Touch ID, Face ID, Optic ID; a paired Apple Watch on
macOS with the passcode policy), Android (AndroidX BiometricPrompt), Windows (Windows Hello / UserConsentVerifier).
Linux, Blazor WebAssembly and plain .NET report NotSupported.
using Shiny;
builder.Services.AddBiometrics();
iOS: NSFaceIDUsageDescription in Info.plist. Face ID devices terminate an app that prompts without it, so
Authenticate throws InvalidOperationException first. Always emit it alongside iOS code:
<key>NSFaceIDUsageDescription</key>
<string>Unlock your account with Face ID</string>
Android: nothing to declare - USE_BIOMETRIC / USE_FINGERPRINT merge in from the AndroidX manifest. The prompt
is shown from the current activity, which must be a FragmentActivity (MauiAppCompatActivity /
AppCompatActivity are).
Windows: nothing to declare. The prompt is parented to the process main window.
namespace Shiny.Biometrics;
public interface IBiometrics
{
// no UI
Task<BiometricAvailability> GetAvailability(BiometricStrength strength = BiometricStrength.Strong, CancellationToken cancellationToken = default);
// shows the platform prompt; failures come back as a status, they are not thrown
Task<BiometricResult> Authenticate(BiometricRequest request, CancellationToken cancellationToken = default);
}
public enum BiometricStrength { Strong, Weak } // Android class 3 / class 2; ignored elsewhere
[Flags] public enum BiometricType { None = 0, Fingerprint = 1, Face = 2, Iris = 4, Unknown = 8 }
public enum BiometricStatus { Available, NotSupported, NotEnrolled, LockedOut, PasscodeNotSet, Unavailable, SecurityUpdateRequired }
public record BiometricAvailability(BiometricStatus Status, BiometricType Types = BiometricType.None, bool IsDeviceCredentialSet = false)
{
public bool IsAvailable { get; } // Status == Available
}
public class BiometricRequest
{
public required string Reason { get; init; } // shown on every platform; must not be empty
public string? Title { get; init; } // Android title (defaults to Reason)
public string? Subtitle { get; init; } // Android
public string? CancelText { get; init; } // Apple + Android
public string? FallbackText { get; init; } // Apple: null = "Enter Password", "" = hidden
public bool AllowDeviceCredential { get; init; } // passcode / PIN / pattern fallback
public BiometricStrength Strength { get; init; } = BiometricStrength.Strong; // Android
public bool ConfirmationRequired { get; init; } = true; // Android, passive (face) biometrics
}
public enum BiometricResultStatus { Success, Cancelled, Fallback, Failed, LockedOut, NotEnrolled, PasscodeNotSet, NotAvailable, Timeout }
public record BiometricResult(BiometricResultStatus Status, string? ErrorMessage = null)
{
public bool IsSuccess { get; }
}
| Apple | Android | Windows Hello | |
|---|---|---|---|
Types | exactly one of Fingerprint (Touch ID) / Face (Face ID) / Iris (Optic ID); Unknown for a newer kind | every sensor the device declares | Unknown |
AllowDeviceCredential | deviceOwnerAuthentication (passcode; Apple Watch on macOS) | DEVICE_CREDENTIAL (no cancel button is shown) | PIN is always offered |
Fallback result | user tapped FallbackText (biometrics-only) | never | never |
Strength | ignored (all strong) | Strong → BIOMETRIC_STRONG; with a credential on API 28-29 it is relaxed to weak (Android rejects that combination) | ignored |
| Title / Subtitle | system | yes | system |
using Shiny.Biometrics; where IBiometrics is injected and using Shiny; where AddBiometrics() is called.NSFaceIDUsageDescription when the app targets iOS.GetAvailability() before showing biometric UI (it has no UI): hide the option for NotSupported, offer
"Set up Face ID / fingerprint in Settings" for NotEnrolled, and explain LockedOut (the passcode unlocks it).
Use Types to pick the label/icon ("Face ID" vs "Touch ID" vs "Fingerprint"); on Windows say "Windows Hello".Reason - an empty reason throws ArgumentException.result.Status, don't just test IsSuccess: Cancelled is the user's choice (do nothing), Fallback
means show your own login, LockedOut / NotEnrolled / PasscodeNotSet need a message.CancellationToken to dismiss the prompt programmatically (e.g. when the app backgrounds); cancelling throws
OperationCanceledException.Authenticate from a visible screen: Android waits up to 5 seconds for a FragmentActivity to resume (e.g.
right after a file picker returned) and throws InvalidOperationException if none does.public class UnlockViewModel(IBiometrics biometrics)
{
public async Task<bool> Unlock()
{
var availability = await biometrics.GetAvailability();
if (!availability.IsAvailable && !availability.IsDeviceCredentialSet)
return false; // nothing to verify with - fall back to the app's own login
var result = await biometrics.Authenticate(new BiometricRequest
{
Reason = "Unlock your vault",
Title = "Unlock", // Android
AllowDeviceCredential = true // passcode / PIN if biometrics fail or aren't enrolled
});
return result.Status switch
{
BiometricResultStatus.Success => true,
BiometricResultStatus.Cancelled => false,
_ => false // LockedOut / NotEnrolled / PasscodeNotSet / ... - show result.ErrorMessage
};
}
}
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub shinyorg/skills --plugin shiny57 skills in this plugin
/localizegenGenerate strongly-typed localization classes from .resx resource files using Shiny.Extensions.Localization.Generator for .NET applications/shiny-accessorysetupGenerate code using Shiny.BluetoothLE.AccessorySetup - the system accessory pairing sheet for BLE devices (AccessorySetupKit on iOS 18+, CompanionDeviceManager on Android) with no MFi, no location prompt and no general Bluetooth prompt on iOS; picked accessories open as Shiny.BluetoothLE peripherals, and Android adds background presence (device appeared / disappeared) events/shiny-actorsGenerate code using Shiny.Actors — Orleans-style virtual actors without the ceremony, AOT/trim-clean, running anywhere .NET runs including .NET MAUI and Blazor WebAssembly. Covers actor interfaces and source-generated proxies, the ShinyActorBuilder (AddShinyActors), persistent state with ETags, named states and auto-save, event-sourced JournaledActor with snapshots, state and event migrations, typed streams (durable, implicit consumers), timers and persistent reminders (background jobs via Shiny.Jobs, on-time OS notifications via Shiny.Notifications), concurrency control ([Reentrant], [AlwaysInterleave], [ReadOnly], [StatelessWorker]), call filters and request context, OpenTelemetry traces and metrics, remoting over HTTP (Shiny.Net.HttpServer server, RemoteActorSystem client), mDNS discovery of actor servers, Shiny.DocumentDb storage (SQLite, PostgreSQL, IndexedDB...), and the ActorTestHost testing kit./shiny-agesignalsGenerate code using Shiny.AgeSignals to read the user's age range as the app store shares it - Apple Declared Age Range (iOS / macOS 26+) and Google Play Age Signals (Android) - for app store accountability laws (Texas SB 2420, Utah, Louisiana, California AB 1043) and age-gated features/shiny-aiconversationGenerate code for Shiny.AiConversation v3 - session-based AI conversations for .NET over Microsoft.Extensions.AI with persisted, resumable sessions (IAiSessionManager / IAiSession / IAiTurn), streaming replies, the built-in ask_user tool for typed questions and multiple-choice answers, interruption and supersession, usage and context-window pressure tracking, rolling context compaction, silent assistant memory, conversation search, session titles and long-term memory, session interceptors for tools and prompts, pluggable session/memory stores (in-memory or SQLite via Shiny.AiConversation.Stores.SqliteDocDb), and voice conversations via Shiny.AiConversation.Voice (wake word, push-to-talk, follow-up, quiet-word/barge-in interruption, sentence-streamed text-to-speech over Shiny.Speech, acknowledgement modes, sounds, voice selection tools), the MAUI chat UI via Shiny.AiConversation.Maui (AiChatView bound to a session with streaming bubbles, choice chips, push-to-talk and an AiMemoryView), image attachments with retention, and the use_camera tool via Shiny.AiConversation.Maui.Camera, and AG-UI via Shiny.AiConversation.AgUi (a session as an AG-UI event stream for the Shiny AgentView with ask_user questions as interrupts, the render_ui tool for A2UI surfaces, and a remote AG-UI agent as the chat client)/shiny-appdevicebridgeGenerate code using Shiny.AppDeviceBridge, device bridges on your app's own Shiny.Net.HttpServer that also host a web app (Blazor WebAssembly, React, Vue, any static build) inside a .NET MAUI app on Android, iOS, Mac Catalyst, Windows and the maui-labs macOS and Linux heads — served from a loopback HTTP server, updated over the air from a signed release server, GitHub releases or a provider of your own, and given device access through bridges with typed C# and TypeScript clientsOther plugins' skills for the same job