credential-holder
Implement digital credential holder (wallet) registration, presentation,
Install / Use
npx skills add android/skills --skill credential-holderInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of credential-holder
credential-holder scores 86/100 on our quality scale, 2233rd of 4,715 Development & Engineering skills we index (top 48%).
Its SKILL.md is 14 KB long, well organised into 9 sections and no code examples: a thorough specification that gives an agent plenty to work with.
With 7,514 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated about 2 months ago, so credential-holder is actively maintained.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
credential-holder compared with similar skills
All 4 of these similar skills score higher than credential-holder; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| credential-holder (this skill)by android | 86 | 7.5k | 2mo ago | SKILL.md |
| taste-skillby Leonxlnx | 100 | 121.5k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 114.7k | 1d ago | CLAUDE.md |
| hyperframesby heygen-com | 100 | 90.0k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 80.8k | today | CLAUDE.md |
Frequently asked questions
- How do I install credential-holder?
- Run
npx skills add android/skills --skill credential-holder. The install tabs above show the steps for each supported agent. - Which AI agents does credential-holder work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is credential-holder safe to use?
- It is Apache-2.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is credential-holder still maintained?
- The repository was last updated about 2 months ago, so credential-holder is actively maintained.
Skill content
View source on GitHubname: credential-holder description: Implement digital credential holder (wallet) registration, presentation, and issuance handling in an Android app using the Jetpack Credential Manager Registry API. Use this skill when building a digital wallet or holder app in an Android project, registering SD-JWT or mdoc credential metadata with RegistryManager and OpenId4VpRegistry, configuring inline issuance entries, registering OpenID4VCI creation options with RegisterCreationOptionsRequest, or handling GET_CREDENTIAL and CREATE_CREDENTIAL intents with PendingIntentHandler. Don't use for requesting credentials as a verifier, issuing credentials from an issuer app, passkeys, or carrier TS.43 phone number verification. license: Complete terms in LICENSE.txt metadata: author: Google LLC last-updated: '2026-11-20' keywords:
- Android
- identity
- digital credentials
- Credential Manager
- credential holder
- wallet app
- RegistryManager
- OpenId4VpRegistry
- PendingIntentHandler
- RegisterCreationOptionsRequest
- mdoc
- SD-JWT
- OpenID4VP
- OpenID4VCI
Build an Android digital wallet (holder) app that registers credential metadata
(SdJwtEntry and MdocEntry) with Credential Manager using RegistryManager
and OpenId4VpRegistry, registers OpenID4VCI creation options with
RegisterCreationOptionsRequest, and handles incoming GET_CREDENTIAL
presentation and CREATE_CREDENTIAL issuance requests with
PendingIntentHandler. When reviewing holder credential storage concepts,
presentation flows, or issuance handling, consult
About storing digital credentials, Present credentials, and
Handle credential issuance. When requesting credentials as a relying
party, suggest the credential-verifier skill; when provisioning credentials
from an issuer app, suggest the credential-issuer skill.
Prerequisites and setup
- Android version compatibility: The Holder API is supported on Android 6 (API level 23) and higher.
- Build config permission: Ask for user confirmation before modifying
settings.gradle.kts, rootbuild.gradle.kts, orgradle/libs.versions.toml, unless already requested by the user or running non-interactively. - Dependencies and package mapping: Add the Credential Manager and Registry artifacts to the app module build script (
app/build.gradle.ktsorapp/build.gradle; when checking full dependency declarations, consult Present credentials and Handle credential issuance):
| Artifact | Key classes, constructor signatures, and package |
|---|---|
| androidx.credentials:credentials:1.7.0-alpha03 (or 1.6.0+) | GetCredentialResponse, GetDigitalCredentialOption, DigitalCredential(credentialJson: String), CreateDigitalCredentialRequest, CreateDigitalCredentialResponse(responseJson: String), and ExperimentalDigitalCredentialApi in androidx.credentials; PendingIntentHandler, CallingAppInfo, ProviderGetCredentialRequest, and ProviderCreateCredentialRequest in androidx.credentials.provider; GetCredentialException and CreateCredentialException subtypes in androidx.credentials.exceptions |
| androidx.credentials.registry:registry-digitalcredentials-mdoc:1.0.0-alpha05 | MdocEntry(docType: String, fields: List<MdocField>, entryDisplayPropertySet: Set<EntryDisplayProperties>, id: String), MdocField(namespace: String, identifier: String, fieldValue: Any?, fieldDisplayPropertySet: Set<FieldDisplayProperties>), and MdocInlineIssuanceEntry in androidx.credentials.registry.digitalcredentials.mdoc |
| androidx.credentials.registry:registry-digitalcredentials-openid:1.0.0-alpha05 | OpenId4VpRegistry(credentialEntries: List<DigitalCredentialEntry>, id: String, intentAction: String = RegistryManager.ACTION_GET_CREDENTIAL, inlineIssuanceEntries: List<InlineIssuanceEntry> = emptyList(), supportedProtocols: List<String> = ...) in androidx.credentials.registry.digitalcredentials.openid4vp |
| androidx.credentials.registry:registry-digitalcredentials-sdjwtvc:1.0.0-alpha05 | SdJwtEntry(verifiableCredentialType: String, claims: List<SdJwtClaim>, entryDisplayPropertySet: Set<EntryDisplayProperties>, id: String), SdJwtClaim(path: List<String>, value: Any?, fieldDisplayPropertySet: Set<FieldDisplayProperties>, isSelectivelyDisclosable: Boolean = true), and SdJwtInlineIssuanceEntry in androidx.credentials.registry.digitalcredentials.sdjwt |
| androidx.credentials.registry:registry-provider:1.0.0-alpha05 | RegistryManager, RegisterCreationOptionsRequest(type: String, id: String, creationOptions: ByteArray, matcher: ByteArray, intentAction: String = RegistryManager.ACTION_CREATE_CREDENTIAL), ProviderGetCredentialRequest.selectedCredentialSet, ProviderGetCredentialRequest.selectedEntryId, and ProviderCreateCredentialRequest.selectedEntryId in androidx.credentials.registry.provider; DigitalCredentialEntry, EntryDisplayProperties, FieldDisplayProperties, InlineIssuanceEntry, InlineIssuanceEntry.InlineIssuanceDisplayProperties, VerificationEntryDisplayProperties(title: CharSequence, subtitle: CharSequence?, icon: Bitmap, ...) (icon is non-null android.graphics.Bitmap), and VerificationFieldDisplayProperties(displayName: CharSequence, displayValue: CharSequence?) in androidx.credentials.registry.provider.digitalcredentials |
| androidx.credentials.registry:registry-provider-play-services:1.0.0-alpha05 | Google Play services provider integration for Credential Manager Registry |
Expected inputs and file scope
- Required inputs: The credential formats stored by the wallet (
SdJwtEntryorMdocEntry), whether the wallet supports presentation (GET_CREDENTIAL), issuer-initiated issuance (CREATE_CREDENTIAL), or inline issuance, and the privileged browser allowlist JSON for caller verification. - Files to modify:
app/build.gradle.kts,app/src/main/AndroidManifest.xml(for exportedGET_CREDENTIALandCREATE_CREDENTIALactivities), wallet registry managers, presentation and issuanceActivityclasses, and UI screens (such asMainActivity.kt).
Codebase exploration
Before modifying files, inspect the Android project:
- Validate baseline build and inspect configuration: Run
./gradlew assembleDebugto confirm the project compiles before making changes, and checkapp/build.gradle.kts,gradle/libs.versions.toml, andapp/src/main/AndroidManifest.xmlfor existingandroidx.credentialsorandroidx.credentials.registrydependencies and exported holder activities. - Locate wallet storage and UI entry points: Identify where credentials are stored and locate the primary
Activityor Compose screen (such asMainActivity.ktorTasksScreen.kt) to wire credential registration and wallet UI state.
Critical implementation mandates
Follow the implementation steps and code snippets in About storing digital credentials, Present credentials, and Handle credential issuance, and apply these non-obvious rules:
- Opt in to experimental APIs: Annotate classes or functions referencing
GetDigitalCredentialOption,DigitalCredential,CreateDigitalCredentialRequest, orCreateDigitalCredentialResponsewith@OptIn(androidx.credentials.ExperimentalDigitalCredentialApi::class). - Use exact package names for registry artifacts:
registry-digitalcredentials-openidexposesOpenId4VpRegistryin packageandroidx.credentials.registry.digitalcredentials.openid4vp(not.openid).registry-digitalcredentials-sdjwtvcexposesSdJwtEntry,SdJwtClaim, andSdJwtInlineIssuanceEntryin packageandroidx.credentials.registry.digitalcredentials.sdjwt(not.sdjwtvc).registry-digitalcredentials-mdocexposesMdocEntry,MdocField, andMdocInlineIssuanceEntryin packageandroidx.credentials.registry.digitalcredentials.mdoc.registry-providerexposesDigitalCredentialEntry,EntryDisplayProperties,FieldDisplayProperties,InlineIssuanceEntry,VerificationEntryDisplayProperties, andVerificationFieldDisplayPropertiesin packageandroidx.credentials.registry.provider.digitalcredentials.
- Keep registry and entry
idstrings within 64 characters: Theidparameter onSdJwtEntry,MdocEntry,OpenId4VpRegistry, andRegisterCreationOptionsRequestmust be at most 64 characters (longer IDs throwIllegalArgumentException), andVerificationEntryDisplayPropertiesrequires a non-nullandroid.graphics.Bitmapicon. - Declare exported manifest activities for holder intents: Declare exported (
android:exported="true") presentation and issuance activities inapp/src/main/AndroidManifest.xmlwith<intent-filter>blocks containing categoryandroid.intent.category.DEFAULTand actionandroidx.credentials.registry.provider.action.GET_CREDENTIAL(for presentation and inline issuance) orandroidx.credentials.registry.provider.action.CREATE_CREDENTIAL(for issuer-initiated issuance). - Handle presentation and issuance intents safely:
- In the
GET_CREDENTIALactivity, inspectrequest.selectedCredentialSetandrequest.selectedEntryId(including checking whether the selected ID matches a registeredMdocInlineIssuanceEntryorSdJwtInlineIssuanceEntry), verify caller origin usingrequest.callingAppInfo.getOrigin(privilegedAppsJson)for browsers or"android:apk-key-hash:$certHash"(with a null or empty check onsigningCertificateHistory) for Android apps, and initializeval resultData = Intent()before callingPendingIntentHandler.setGetCredentialResponse(resultData, ...)orsetGetCredentialException(resultData, ...). - In the
CREATE_CREDENTIALactivity (used for issuer-initiated offers usingRegisterCreationOptionsRequestwith the wallet'screationOptionsbytes and issuance Wasmmatcherbytes), null-check the nullable result ofPendingIntentHandler.retrieveProviderCreateCredentialRequest(intent)before readingcallingRequestandselectedEntryId. Once a newly issued credential is stored, re-register the wallet's updated credential list withOpenId4VpRegistry(registryManager.registerCredentials) under the same registryidso the credential can be presented.
- In the
- Strip the leading sign byte from
BigInteger.toByteArray()in JWK coordinates:BigInteger.toByteArray()returns a two's-complement signed array that prepends a leading0x00sign byte when the most significant bit is set (producing 33 bytes instead of 32 bytes for P-256). Strip any leading0x00sign byte before Base64url-encoding JWKxandycoordinates so issuer key attestation verification doesn't fail.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| Experimental API compilation error | GetDigitalCredentialOption, DigitalCredential, CreateDigitalCredentialRequest, and CreateDigitalCredentialResponse require opt-in | Add @OptIn(androidx.credentials.ExperimentalDigitalCredentialApi::class) to the calling class or function. |
| Unresolved reference OpenId4VpRegistry or SdJwtEntry | Importing .openid or .sdjwtvc instead of the actual package names | Import OpenId4VpRegistry from androidx.credentials.registry.digitalcredentials.openid4vp
Truncated for display — read the full file on GitHub.
Related Skills
taste-skill
121.5kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
Agent-Reach
114.7kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
hyperframes
90.0kOpen-source AI video editor: edit your own footage, or create and remake any video with Claude Code, Codex or the free Studio app. Write HTML, render MP4. By HeyGen.
headroom
80.8kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
