/saas-design-principles:authenticationfrom saas-design-principles
Guides implementation of login flows, magic links, SSO (SAML/OIDC), MFA, OTP, password reset, and session management. Covers MFA fatigue prevention, session expiry UX, and GDPR compliance.
Ships in saas-design-principles. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
10% of active SaaS users get stuck in password reset flows monthly, and 75% of those quit. That is a potential 7.5% monthly user base loss from authentication friction alone.
Support three methods, in order of preference:
The lowest-friction option. Airtable found 94% of enterprise users preferred them. Send a one-time link to the user's email — no password to remember.
Non-negotiable for enterprise customers and SOC 2 compliance. Integrate with identity providers like Okta, Azure AD, Google Workspace.
For high-security contexts or users who prefer passwords. Always pair with multi-factor authentication.
The implementation details matter enormously:
OTP input fields:
input type="text" inputmode="numeric" — NOT type="number" (which allows scroll-wheel changes and scientific notation)autocomplete="one-time-code" for iOS/macOS autofillPreventing MFA fatigue:
Never let the reset flow become a dead end:
For applications accessible to EU citizens:
Working implementations in examples/:
examples/otp-input.md — OTP digit input with correct HTML attributes, auto-advance, paste support, and auto-submit in React and Vueexamples/session-expiry-modal.md — Countdown warning modal with session extension and post-logout notificationWhen reviewing or building authentication:
type="text" inputmode="numeric", not type="number"autocomplete="one-time-code"What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
login-flows, sso, mfa, otp, session-management, gdpr-compliance
npx claudepluginhub oborchers/fractional-cto --plugin saas-design-principles13 skills in this plugin
/accessibilityThis skill should be used when the user is building or reviewing accessibility (a11y), WCAG 2.2 AA compliance, keyboard navigation, focus management, screen reader support, ARIA attributes, color contrast, or SPA accessibility. Covers legal requirements, accessible component primitives, and the unique focus challenges of single-page applications./data-tablesThis skill should be used when the user is building or reviewing data tables, pagination, column alignment, bulk actions, sorting, filtering, row selection, or table-to-card responsive patterns. Covers the pagination vs infinite scroll decision, DataTable vs IndexTable patterns, and column default strategy./design-tokensThis skill should be used when the user is building or reviewing theming systems, design tokens, dark mode implementation, CSS custom properties, color naming conventions, or theme switching architecture. Covers the three-tier token model (primitive/semantic/component), purpose-based naming, and the DTCG specification./error-handlingThis skill should be used when the user is building or reviewing error states, validation errors, permission errors (403), session expiry warnings, offline handling, concurrent edit conflicts, rate limiting, or server error (500) recovery flows. Covers the full taxonomy of SaaS failure modes and graceful degradation patterns./form-designThis skill should be used when the user is building or reviewing form validation, inline validation, auto-save vs explicit save patterns, form error messages, multi-step wizards, toggle switches, or input fields. Covers the "reward early, punish late" validation strategy and form UX best practices./notification-hierarchyThis skill should be used when the user is building or reviewing toast notifications, banners, modal dialogs, inline messages, snackbars, or alert systems. Covers the four-tier notification hierarchy, feedback patterns, success and error messaging, and alert fatigue prevention.Other plugins' skills for the same job