360 Secure SkillHub
360 安全技能中心

local-authentication

该 Skill 是 iOS/iPadOS Local Authentication 的知识路由层:按可用性与生物识别类型检测、策略评估、原因字符串与 Info.plist、错误处理、LAContext 生命周期、Keychain 生物识别绑定、回退体验等主题,加载最小必要的知识契约,不猜测;v1 不含 macOS/watchOS 专属行为与通用 Keychain 存储。

caglarbaranbora
热度 0.00
最近更新 2026-10-18 16:48:06
分类:知识依赖:纯提示词应用场景:API 集成 / 概念解释

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add caglarbaranbora/apple-agent-kit/local-authentication
Metadata
name
local-authentication
description
Route Face ID/Touch ID/device-passcode implementation tasks to the correct Knowledge Contracts -- availability and biometry-type detection, policy evaluation, reason strings and Info.plist, error handling, LAContext lifecycle, Keychain-biometric binding, and fallback UX. Use when checking biometric availability, calling evaluatePolicy, writing an NSFaceIDUsageDescription string, handling an LAError, managing LAContext lifetime, binding a Keychain item to biometrics via SecAccessControl, or deciding on a passcode fallback. v1 is iOS/iPadOS LocalAuthentication framework API only -- no macOS/watchOS-specific behavior, no general Keychain storage (SecItemAdd/Copy/Update for non-biometric-bound items). Triggers on Face ID, Touch ID, LAContext, LABiometryType, canEvaluatePolicy, evaluatePolicy, deviceOwnerAuthentication, deviceOwnerAuthenticationWithBiometrics, LAPolicy, LAError, biometryNotEnrolled, biometryLockout, NSFaceIDUsageDescription, localizedReason, localizedFallbackTitle, SecAccessControl, biometryCurrentSet, biometryAny, biometric Keychain, Enter Passcode fallback, biometric authentication.
id
skill.local-authentication.foundations
title
Local Authentication — Foundations
version
1.0.0
status
Approved
artifact_type
skill
domain
Local Authentication
routes
["knowledge.local-authentication.availability-and-biometry-type","knowledge.local-authentication.policy-evaluation","knowledge.local-authentication.reason-strings-and-info-plist","knowledge.local-authentication.error-handling","knowledge.local-authentication.context-lifecycle","knowledge.local-authentication.keychain-biometric-binding","knowledge.local-authentication.fallback-ux-and-passcode"]
related
[]
last_updated
"2026-08-08T00:00:00.000Z"

Local Authentication — Foundations Skill

Purpose

Route Face ID/Touch ID/device-passcode implementation tasks to the minimum required Local Authentication Knowledge Contracts. v1 scope is the iOS/iPadOS LocalAuthentication framework API plus the Keychain-biometric binding seam — no macOS/watchOS-specific behavior, no general Keychain storage.

Routing

Load only the contracts relevant to the task. All paths relative to knowledge/local-authentication/.

  • Checking availability or biometry type -> availability-and-biometry-type.md
  • Calling evaluatePolicy / choosing a policy -> policy-evaluation.md
  • Writing localizedReason or NSFaceIDUsageDescription -> reason-strings-and-info-plist.md
  • Handling an LAError -> error-handling.md
  • Managing LAContext lifetime or re-enrollment detection -> context-lifecycle.md
  • Binding a Keychain item to biometrics -> keychain-biometric-binding.md
  • Deciding on or configuring a passcode fallback -> fallback-ux-and-passcode.md

Never load more than the contracts relevant to the specific question.

Stop Conditions

Stop and report if the requested topic has no matching Knowledge Contract in knowledge/local-authentication/ — do not guess or fall back to general knowledge.

  • macOS/watchOS-specific LocalAuthentication behavior — Deferred
  • General Keychain storage (SecItemAdd/SecItemCopyMatching/ SecItemUpdate for non-biometric-bound items) — owned by security