Keep your coding agent up to date with the latest web best practices
Release v0.0.143
github-actions[bot]832f09fb82e3
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex 9cf7406..2168d7b 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -8,7 +8,7 @@"name": "modern-web-guidance","source": "./","description": "Keep your coding agent up to date with the latest web best practices",- "version": "0.0.142"+ "version": "0.0.143"}]}diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex a211e22..0ac4ef0 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "modern-web-guidance","description": "Keep your coding agent up to date with the latest web best practices",- "version": "0.0.142",+ "version": "0.0.143","author": {"name": "Google Chrome"}diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.jsonindex a211e22..0ac4ef0 100644--- a/.cursor-plugin/plugin.json+++ b/.cursor-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "modern-web-guidance","description": "Keep your coding agent up to date with the latest web best practices",- "version": "0.0.142",+ "version": "0.0.143","author": {"name": "Google Chrome"}diff --git a/README.md b/README.mdindex 4c3150f..4f9a481 100644--- a/README.md+++ b/README.md@@ -36,7 +36,7 @@ Here's a tiny sampling of the **122 use-case-centric guides**:* **Accessibility & Security**: accessible error announcements, keyboard focus management.* **Built-in AI**: Leveraging local, on-device client models (native Language Detection, Summarization, and Translation APIs).-#### Full Skill Coverage (v0.0.142)+#### Full Skill Coverage (v0.0.143)<details><summary>Includes expert guidance across <strong>97 modern web features</strong></summary>diff --git a/gemini-extension.json b/gemini-extension.jsonindex a211e22..0ac4ef0 100644--- a/gemini-extension.json+++ b/gemini-extension.json@@ -1,7 +1,7 @@{"name": "modern-web-guidance","description": "Keep your coding agent up to date with the latest web best practices",- "version": "0.0.142",+ "version": "0.0.143","author": {"name": "Google Chrome"}diff --git a/package.json b/package.jsonindex e0ec9e9..0b2f205 100644--- a/package.json+++ b/package.json@@ -3,7 +3,7 @@"displayName": "Modern Web Guidance","description": "Keep your agent up to date on the latest web best practices.","license": "Apache-2.0",- "version": "0.0.142",+ "version": "0.0.143","publisher": "GoogleChrome","engines": {"vscode": "^1.90.0",diff --git a/skills/modern-web-guidance/guides/passkeys/passkeys.md b/skills/modern-web-guidance/guides/passkeys/passkeys.mdnew file mode 100644index 0000000..b997f19--- /dev/null+++ b/skills/modern-web-guidance/guides/passkeys/passkeys.md@@ -0,0 +1,38 @@+# Passkeys Orientation Guide++This guide provides high-density, action-oriented orientation for implementing secure, framework-agnostic passkey authentication and credential management in modern web applications.++## 1. Core Prerequisites for Passkeys++Passkeys rely on the Web Authentication API (WebAuthn), which imposes strict cross-cutting security constraints that must be satisfied before any implementation attempt:+* **Secure Contexts**: WebAuthn methods (`navigator.credentials.create` and `navigator.credentials.get`) are strictly gated behind Secure Contexts. Applications MUST run on `https://` in production, or `http://localhost` for local development.+* **Relying Party (RP) ID**: Every credential is tied to an RP ID (essentially the domain name of the application). The RP ID passed in the server-side options MUST match or be a valid suffix of the current origin's domain name (e.g., `example.com` is valid for `login.example.com`). Mismatches result in `SecurityError` exceptions on the client side.++## 2. The AAGUID UX Caveat++The Authenticator Attestation Globally Unique Identifier (AAGUID) is a 128-bit identifier returned in the registration attestation data that represents the model/provider of the authenticator (e.g., Google Password Manager, iCloud Keychain, 1Password).+* **UX Hinting Only**: Relying Parties MUST use the AAGUID exclusively for UX hints (such as rendering the passkey provider name and icon in a management list to help the user).+* **No Security Dependencies**: applications MUST NOT use AAGUID for cryptographic security or access decisions. Platform passkeys do not currently provide cryptographic attestation for their AAGUIDs, meaning it can be altered or simulated by user agents.++## 3. Decoupled Library Recommendations++For backend FIDO2/WebAuthn options generation and signature verification, developers MUST rely on vetted open source libraries per language instead of hand-rolling cryptography:+* **JavaScript/TypeScript**: SimpleWebAuthn (github.com/MasterKale/SimpleWebAuthn)+* **Python**: py_webauthn (github.com/duo-labs/py_webauthn)+* **Java**: Java WebAuthn Server (github.com/Yubico/java-webauthn-server), WebAuthn4J (github.com/webauthn4j/webauthn4j)+* **.NET**: .NET library for FIDO2 (github.com/abergs/fido2-net-lib)+* **Go**: WebAuthn Go Library (github.com/go-webauthn/webauthn)+* **Ruby**: WebAuthn Ruby (github.com/cedarcode/webauthn-ruby)+* **PHP**: WebAuthn Framework (github.com/web-auth/webauthn-framework)++## 4. Use Case Reference Matrix++Identify the matching use case below and retrieve its full implementation guide. Every use case has critical APIs (`PublicKeyCredential.parseCreationOptionsFromJSON`, `parseRequestOptionsFromJSON`, `signalAllAcceptedCredentials`, `signalCurrentUserDetails`, `signalUnknownCredential`, conditional mediation, AAGUID handling, etc.) that are documented only in the per-use-case guide. Do NOT skip this retrieval step, and do NOT substitute third-party library wrappers (such as SimpleWebAuthn's `startAuthentication`/`startRegistration`) on the client — call the native WebAuthn browser APIs directly. Library recommendations in Section 3 apply to the **server-side** (backend FIDO2 verification) only.++Specific passkey and WebAuthn implementation details are mapped to the following guides:+* **Passkey Registration**: `passkey-registration` (via `npx -y modern-web-guidance@latest retrieve "passkey-registration"`) — Offering new passkey registration and promotions.+* **Passkey Conditional Create**: `passkey-conditional-create` (via `npx -y modern-web-guidance@latest retrieve "passkey-conditional-create"`) — Silently registering passkeys immediately after successful password login.+* **Passkey Authentication**: `passkey-authentication` (via `npx -y modern-web-guidance@latest retrieve "passkey-authentication"`) — Discoverable-autofill and button sign-ins.+* **Passkey Management**: `passkey-management` (via `npx -y modern-web-guidance@latest retrieve "passkey-management"`) — Syncing lists, renames, and deletions with password managers.+* **Passkey Reauthentication**: `passkey-reauthentication` (via `npx -y modern-web-guidance@latest retrieve "passkey-reauthentication"`) — Re-verifying returning signed-in users for sensitive steps.+