Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

phone-number-verification

БесплатноБез исполняемых скриптовНе проверен

Verify user phone numbers without SMS in an Android app using the Credential Manager DigitalCredential API, OpenID4VP, and carrier-issued TS.43 tokens. Use…

androidот android★ 10 827 звёзд на GitHub

Об этом скилле

Implement phishing-resistant, SMS-free phone number verification in an Android app using Credential Manager's DigitalCredential API to request an encrypted, carrier-issued TS.43 token over OpenID4VP and exchange it with an aggregator or mobile carrier backend for the verified phone number. When reviewing TS.43 architecture and security standards, consult About verifying phone numbers. When implementing client and server code snippets, consult Implement phone number verification. When verifying general mso_mdoc or dc+sd-jwt wallet credentials, suggest the credential-verifier skill.

Prerequisites and setup

  • Android version compatibility: Runtime support for the Phone Number Verification API requires Android 10 (API level 29) or higher (while the androidx.credentials library compiles with minSdk 23 or higher).
  • Aggregator account: Requires an account with a mobile carrier or cellular aggregator endpoint that supplies DCQL parameters and exchanges TS.43 tokens.
  • Manifest permission for carrier precheck: Declare <uses-permission android:name="android.permission.READ_PHONE_STATE" /> in app/src/main/AndroidManifest.xml to query TelephonyManager.getSimCarrierId() before invoking Credential Manager.
  • Build config permission: Ask for user confirmation before modifying settings.gradle.kts, root build.gradle.kts, or gradle/libs.versions.toml, unless already requested by the user or running non-interactively.
  • Dependencies and package mapping: Add the Credential Manager artifacts to the app module build script (app/build.gradle.kts or app/build.gradle; when checking the latest version declarations, consult Implement phone number verification):
Artifact Key classes, constructor signatures, and package
androidx.credentials:credentials:1.7.0-alpha03 (or 1.6.0+) CredentialManager, GetCredentialRequest, GetCredentialResponse, GetDigitalCredentialOption(requestJson: String), DigitalCredential, and ExperimentalDigitalCredentialApi in androidx.credentials; GetCredentialException, GetCredentialCancellationException, GetCredentialInterruptedException, GetCredentialUnsupportedException, and NoCredentialException in androidx.credentials.exceptions
androidx.credentials:credentials-play-services-auth:1.7.0-alpha03 (or 1.6.0+) Play services provider integration for Credential Manager

Expected inputs and file scope

  • Required inputs: Whether the app is retrieving the device phone number (number-verification/device-phone-number/ts43) or verifying an existing user-entered phone number (number-verification/verify/ts43), whether dual SIM (subscription_hint) or biometric/screen-lock verification (user_verification_hint) is needed, and the fallback verification flow when the carrier or device is unsupported.
  • Files to modify: app/build.gradle.kts, app/src/main/AndroidManifest.xml (for READ_PHONE_STATE), phone number verification client or repository classes, ViewModels, and UI screens or Activity classes (such as MainActivity.kt).
  • Forbidden substitutions: Don't use TelephonyManager.getLine1Number(), READ_PHONE_NUMBERS, SmsRetriever, or SMS OTP APIs as a substitute for the Credential Manager DigitalCredential TS.43 verification flow (only use TelephonyManager.getSimCarrierId() for the carrier support precheck, and fall back to SMS only when the carrier or device is unsupported).

Codebase exploration

Search the Android project before modifying files:

  1. Validate baseline build and inspect configuration: Run ./gradlew assembleDebug to confirm the project compiles before making changes, check app/build.gradle.kts and gradle/libs.versions.toml for minSdk and androidx.credentials dependencies, and check app/src/main/AndroidManifest.xml for READ_PHONE_STATE.
  2. Locate UI entry points: Identify the Activity or Compose screen (such as MainActivity.kt or TasksScreen.kt) where phone number verification is triggered so you pass an Activity Context to credentialManager.getCredential().

Critical implementation mandates

Follow the end-to-end steps and code snippets in Implement phone number verification and apply these rules:

  • Opt in to experimental APIs: Annotate classes or functions referencing GetDigitalCredentialOption and DigitalCredential with @OptIn(androidx.credentials.ExperimentalDigitalCredentialApi::class) (omitted from the Kotlin snippet in [Implement phone number verification](references/android/identity/digital-credentials/implement-phone-number-ver
Полный SKILL.md на GitHub

Установить phone-number-verification в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/android/identity/digital-credentials/credential-verifier/about-verifying-phone-numbers.mdreferences/android/identity/digital-credentials/implement-phone-number-verification.md

FAQ

Что делает скилл phone-number-verification?

Verify user phone numbers without SMS in an Android app using the Credential Manager DigitalCredential API, OpenID4VP, and carrier-issued TS.43 tokens. Use this skill whenever the user asks to verify phone numbers without SMS, implement carrier-based phone number verification in an Android project, perform a TelephonyManager.getSimCarrierId carrier precheck, or request a TS.43 Digital Credential using CredentialManager, GetDigitalCredentialOption, GetCredentialRequest, DigitalCredential, and dc-authorization+sd-jwt DCQL queries. Produces Android client-side carrier precheck and Credential Manager TS.43 token request code alongside backend OpenID4VP and DCQL request construction and token exchange logic. Don't use for SMS OTP, TelephonyManager.getLine1Number reads, digital wallet holder registration, or issuing credentials to wallets.

Как установить скилл phone-number-verification?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл phone-number-verification запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить phone-number-verification с