/saas-design-principles:speed-is-the-featurefrom saas-design-principles
Guides building loading states, optimistic UI, skeleton screens, code splitting, lazy loading, and performance budgets. Covers perceived speed, bundle size optimization, and INP targets.
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.
Speed is not an optimization — it is the product. Linear built a billion-dollar company on this insight. Every architectural decision should serve Nielsen's three perception thresholds.
| Threshold | Perception | Target For |
|---|---|---|
| 100ms | Instantaneous — feels caused by the user | Toggles, selections, navigating between loaded views |
| 1 second | Flow uninterrupted — user feels in control | Page transitions, data loads |
| 10 seconds | Attention limit — user wants to multitask | Show percent-done indicator or lose them |
The UI must respond before the server confirms. This does not require a local-first architecture — it requires separating the feedback loop from network latency.
Update the UI immediately on user action. Reconcile with the server in the background.
When to use optimistic updates:
Rules:
Skeleton screens beat spinners, but only when done correctly.
Research findings (Bill Chung):
When to use which loading indicator:
| Load Duration | Indicator |
|---|---|
| < 1.5 seconds | Nothing, or a subtle spinner |
| 1.5–10 seconds | Skeleton screen with shimmer |
| > 10 seconds | Percent-done progress bar |
Enforce concrete budgets, not aspirational goals.
Bundle budget: Total JavaScript under 200KB gzipped. Code-split by route. Lazy-load modals, charts, and non-critical UI.
Responsiveness budget: INP (Interaction to Next Paint) must stay at or below 200ms. This measures responsiveness across all interactions, not just page load. Keep main-thread tasks under 50ms. Break long operations with requestAnimationFrame or scheduler.yield().
Working implementations in examples/:
examples/optimistic-update.md — Toggle-favorite pattern with rollback in React, Vue, and Svelteexamples/skeleton-screen.md — Shimmer CSS and skeleton components matching content layoutexamples/code-splitting.md — Route-level splitting and lazy-loading in React, Vue, and SvelteKitWhen reviewing existing code for speed:
What SKILL.md sets; muted values are Claude Code's defaults
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./authenticationThis skill should be used when the user is building or reviewing login flows, magic links, SSO (SAML/OIDC), multi-factor authentication (MFA), OTP input fields, password reset, or session management. Covers the modern auth stack hierarchy, MFA fatigue prevention, session expiry UX, and GDPR compliance for authentication./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.Other plugins' skills for the same job