Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add launch52-ai/flutter-template --skill local-authgit clone --depth 1 https://github.com/launch52-ai/flutter-templateWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/launch52-ai/flutter-template/local-auth)<a href="https://agentmods.dev/skills/launch52-ai/flutter-template/local-auth"><img src="https://agentmods.dev/badge/skills/launch52-ai/flutter-template/local-auth/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/launch52-ai/flutter-template/local-auth"><img src="https://agentmods.dev/badge/skills/launch52-ai/flutter-template/local-auth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00046 | $0.01575 |
| Opus 5.5 | $0.00018 | $0.00630 |
| Sonnet 5.5 | $0.00009 | $0.00315 |
| Haiku 4.5 | $0.00005 | $0.00158 |
Grade A, and why
local-auth scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 199 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Local Auth - Device Authentication
Local device authentication using biometrics (Face ID, Touch ID, fingerprint) and device credentials (PIN, pattern, password). Configurable security levels from basic to banking-grade.
When to Use This Skill
- Adding biometric/device unlock to an app
- Implementing app lock after background timeout
- Securing sensitive actions (payments, delete, view PII)
- User asks "biometric", "face id", "fingerprint", "app lock", "local auth"
When NOT to Use This Skill
- Remote authentication - Use
/auth,/social-login,/phone-auth - Session tokens - Handled by
/authand/data - Secure storage - Already in
/core(flutter_secure_storage)
Questions to Ask
Before generating code, ask these questions:
- Use case: App unlock after timeout OR sensitive action confirmation OR both?
- Security level: Trust device (simple) OR detect biometric changes (banking-grade)?
- Lock screen: Generate lock screen UI OR service only?
- Settings toggle: Generate enable/disable toggle widget?
- App PIN: Include app-level PIN for devices without lock screen?
- Timeout: How long in background before requiring re-auth? (0 = immediate)
- Failure behavior: Force full re-login OR let device handle lockout?
Quick Reference
Dependencies
dependencies:
local_auth: ^2.3.0
Security Levels
| Level | Biometric Change | Use Case |
|---|---|---|
| Simple | Trust any enrolled biometric | Social apps, low-risk |
| Banking | Detect changes, require re-login | Finance, health, PII |
Authentication Options
| Option | iOS | Android |
|---|---|---|
| Face ID / Face Unlock | Yes | Yes |
| Touch ID / Fingerprint | Yes | Yes |
| Passcode | Yes | Yes |
| PIN / Pattern | N/A | Yes |
Core Components
| Component | Purpose |
|---|---|
LocalAuthService |
Wraps local_auth, handles platform checks |
LocalAuthNotifier |
State management, timeout tracking |
LocalAuthSettings |
User preferences (enabled, timeout) |
LockScreen |
Optional full-screen auth prompt |
LocalAuthToggle |
Optional settings widget |
AppPinService |
Optional app-level PIN (no device lock) |
What ships with it
17 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- checklist.md 5.6 KB
- patterns-guide.md 13 KB
- reference/providers/local_auth_provider.dart 4.6 KB
- reference/providers/local_auth_settings.dart 2.9 KB
- reference/providers/local_auth_state.dart 1.3 KB
- reference/services/app_pin_service.dart 6.5 KB
- reference/services/local_auth_service.dart 5.5 KB
- reference/utils/app_lifecycle_observer.dart 3.1 KB
- reference/utils/biometric_state_tracker.dart 9.3 KB
- reference/widgets/local_auth_toggle.dart 4.9 KB
- reference/widgets/lock_screen.dart 5.7 KB
- scripts/check.dart 9.2 KB
- security-guide.md 7.3 KB
- setup-guide.md 4.6 KB
- templates/android_manifest_addition.xml 322 B
- templates/info_plist_addition.xml 229 B
- troubleshooting-guide.md 3.7 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 199 lines · 46 tokens per session scan A 866d1a347259
local-auth is a skill published in the GitHub repository launch52-ai/flutter-template (2 stars, last pushed 7mo ago), licensed MIT. It adds 46 tokens to every session and 1,575 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
merge-seed
Merge upstream React Starter Kit updates (the seed remote) into main, preserving this project's identity, scope, and behavior. Use when asked to sync, pull, or merge the seed / starter kit / upstream template.
firebase-messaging
Use when setting up Firebase Cloud Messaging, managing permissions and tokens, handling background/foreground notification taps, or dispatching messages server-side (HTTP v1).
generate-images-with-firebase-ai
Use when generating or editing images from Flutter/Dart with Firebase AI Logic and a Gemini image model (Nano Banana), making the first call work, choosing Gemini Developer API vs Vertex AI, hitting quota, billing or App Check failures, getting empty or image-only responses, sending a user photo as input, controlling…
firebase-database
Use when syncing real-time data, structuring JSON trees, reading/writing, creating listeners, enabling offline persistence, managing presence, sharding, or writing security rules.
flutter-app-architecture
Use when scaffolding a project, refactoring into layers, creating view models/repositories, configuring dependency injection, or implementing unidirectional data flow (MVVM).
riverpod
Use when setting up providers, combining requests, managing state disposal, passing arguments, performing side effects, or testing providers (Riverpod).