一键导入
dev-helper-writer
Rephrase and polish developer-facing help texts, integration guides, and checklists to be clear, professional, and structurally sound.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Rephrase and polish developer-facing help texts, integration guides, and checklists to be clear, professional, and structurally sound.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | dev-helper-writer |
| description | Rephrase and polish developer-facing help texts, integration guides, and checklists to be clear, professional, and structurally sound. |
This skill provides guidelines and patterns for rewriting, rephrasing, and polishing developer-facing documentation, integration guides, API explainers, and technical checklists in the codebase. It ensures technical concepts are explained clearly, accurately, and in accordance with modern web standards documentation.
mediation: 'conditional', navigator.credentials.get(), autocomplete="username webauthn").(web.dev), (Google Developers), (W3C)).How to integrate passkey form autofill
Use WebAuthn to build a passkey experience.
You can enable passkey form autofill by appending
mediation: "conditional"to thenavigator.credentials.get()call to an ordinary passkey authentication invocation. Also, theinputelement must containwebauthnwithin itsautocompleteattribute.There are a lot of tricks you can perform to make the passkey authentication experience better. Here's a checklist:
- Allow users to sign in with a passkey through form autofill.
- Signal when a passkey's matching credential is not found on the backend with
PublicKeyCredential.signalUnknownCredential().- Prompt users to manually create a passkey if the user hasn't created one after a sign-in.
Learning resources
Integrating passkey form autofill
To build a seamless sign-in experience, you can integrate passkey form autofill (also known as Conditional UI) using the WebAuthn API.
You can enable this by passing
mediation: 'conditional'as an option to thenavigator.credentials.get()call when initiating passkey authentication. Additionally, the corresponding username/password<input>element must includewebauthnin itsautocompleteattribute (e.g.,autocomplete="username webauthn").Best practices & advanced UX checklist
To deliver a top-tier passkey experience, consider implementing these advanced patterns and API integrations:
- Seamless Sign-In: Enable users to sign in with a passkey directly via form autofill to reduce friction.
- Orphaned Credential Cleanup: Use the WebAuthn Signal API's
PublicKeyCredential.signalUnknownCredential()to notify the browser when a passkey's matching public key is not found on the server, allowing the browser to delete the invalid credential.- Proactive Passkey Creation: Prompt users to create a passkey immediately after they successfully sign in using a traditional password.
Developer resources
- Guide: Sign in with a passkey through form autofill (web.dev)
- Guide: Server-side passkey authentication (Google Developers)