[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M757SCQ26HRP0ARKWEMJ617B":3,"skill-same:01M757SCQ26HRP0ARKWEMJ617B":53},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":34,"ownerHtmlUrl":35,"ownerBlogUrl":36,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M757SCQ26HRP0ARKWEMJ617B","onboarding-and-empty-states",null,"Reference-grade guide to designing every state a view can be in — ideal, empty (first-use vs cleared vs no-results), loading, partial, error, offline, success, blocked, and zero-results — plus first-run onboarding that drives activation to the aha moment through show-don't-tell, just-in-time guidance, seed data, progress checklists, and contextual permission priming.","jpoindexter\u002FVanta","jpoindexter","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2729617?v=4","01M72VRRYY1CP7RPF3B7GHH0CR","01M757GWDBT6RD147ZZ79N4MEX",4,"MIT","https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fdesign-system-skills\u002Fonboarding-and-empty-states\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: onboarding-and-empty-states\ndescription: Reference-grade guide to designing every state a view can be in — ideal, empty (first-use vs cleared vs no-results), loading, partial, error, offline, success, blocked, and zero-results — plus first-run onboarding that drives activation to the aha moment through show-don't-tell, just-in-time guidance, seed data, progress checklists, and contextual permission priming.\ntags: [design-systems, onboarding, empty-states, activation, states]\n---\n# Onboarding, Empty States & the Full State Set\n\nMost teams design exactly one state: the screen full of beautiful data. Then it ships and the first real user sees a blank rectangle, a spinner that never resolves, an error with no recovery, and a permission prompt on launch they instantly deny. The discipline that separates senior work is simple and unglamorous: **design every state a view can be in, not just the happy one.** A screen is not a picture; it is a state machine. This skill is the checklist of states you owe every view, and the craft of turning the emptiest, earliest, most fragile moments — first run and the blank slate — into the highest-leverage moments you have.\n\n## 1. The full state set — the discipline\n\nBefore a view is \"done,\" walk it through every state below. Each is a real screen a real user will hit. Skipping one doesn't delete the state; it ships it undesigned.\n\n| State | When it shows | The one job |\n|---|---|---|\n| **Ideal \u002F populated** | Real data, happy path | Show the content; this is the reward |\n| **Empty — first use** | New user, nothing created yet | Explain value + one next action |\n| **Empty — user-cleared** | User deleted\u002Fcompleted everything | Celebrate or reassure, offer re-entry |\n| **Empty — no results** | Filter\u002Fsearch returned nothing | Explain why + broaden\u002Fclear path |\n| **Loading** | Data in flight | Hold layout, show progress, no jank |\n| **Partial** | Some data loaded, some pending\u002Ffailed | Show what you have, flag what's missing |\n| **Error** | Request\u002Faction failed | What broke, why, how to recover, retry |\n| **Offline** | No connectivity | Name it, show cached data, queue actions |\n| **Success \u002F confirmation** | Action completed | Confirm, show result, offer next step |\n| **Permission \u002F blocked** | Capability denied or gated | Explain need, route to unblock |\n| **Zero-results search** | Query matched nothing | Suggest, broaden, never dead-end |\n\n**The three \"empty\" states are different states.** Conflating them is the single most common mistake in this whole area. \"You have no projects yet\" (first-use → onboard) is not \"You finished all your tasks\" (cleared → celebrate) is not \"No results for 'xqz'\" (no-results → broaden the query). Same blank canvas, three opposite messages and three different next actions.\n\n## 2. Empty states — first-use (the blank slate)\n\nThe first-use empty state is the most valuable screen in your product and the one most often left as a sad gray \"No data.\" It is the moment a user decides whether this thing is worth their time. Treat it as **onboarding, not absence.**\n\nA strong first-use empty state has four parts:\n\n1. **Value in one line.** What this view is *for*, in the user's words. \"Track every invoice and get paid faster\" — not \"No invoices.\"\n2. **The one next action.** A single, prominent primary button. One. Not three equal CTAs. \"Create your first invoice.\"\n3. **A glimpse of the payoff.** Show what a populated state looks like — a faded illustration, a sample row, a short example — so the user can picture the reward.\n4. **An escape hatch \u002F secondary path.** \"Import from CSV\" or \"See an example\" as a quiet secondary, for users who don't want to start from scratch.\n\n```html\n\u003C!-- First-use empty state: value + single action + glimpse -->\n\u003Csection class=\"empty\" role=\"status\">\n  \u003Cimg src=\"illustration.svg\" alt=\"\" aria-hidden=\"true\" \u002F>\n  \u003Ch2>Your invoices live here\u003C\u002Fh2>\n  \u003Cp>Create an invoice, send it in a click, and track it until it's paid.\u003C\u002Fp>\n  \u003Cbutton class=\"primary\">Create your first invoice\u003C\u002Fbutton>\n  \u003Cbutton class=\"link\">Import from CSV\u003C\u002Fbutton>\n\u003C\u002Fsection>\n```\n\n| Do | Don't |\n|---|---|\n| Explain the value of the feature | Show \"No data\" \u002F \"Nothing here\" |\n| One primary action, prominent | Five buttons of equal weight |\n| Seed with sample\u002Fexample data when safe | Leave a literally blank rectangle |\n| Match the illustration to the product's tone | Generic clip-art that says nothing |\n| Use it to teach the feature's mental model | Assume the user knows what this view does |\n\n**Seed \u002F sample data** is the strongest empty-state pattern that exists. A new Trello board with example cards, a notes app with a \"Welcome\" note you can edit, a dashboard pre-populated with demo metrics — these let the user *see the populated state immediately* and learn by editing rather than by reading. Make sample data obviously sample (a banner, a \"This is an example — delete it anytime\"), make it trivially removable, and never let it pollute real analytics or sync.\n\n## 3. Empty states — user-cleared and no-results\n\n**User-cleared** (inbox zero, all todos done, notifications all read) is a *success*, not a void. Acknowledge it: \"You're all caught up.\" A small celebration, an illustration, maybe a stat (\"You closed 12 tasks this week\"). Then offer a sensible next move — never leave them staring at nothing wondering if the app broke.\n\n**No-results** (a list filtered down to nothing) must explain *which* constraint emptied it and offer to relax it: \"No tasks match 'High priority' + 'Done'. Clear filters?\" The recovery action is the point. A no-results state without a way back to results is a dead-end.\n\n## 4. Loading states — never ship layout shift\n\nA view with no loading state flashes blank, then snaps content in, shoving the layout around (CLS). That jank reads as \"broken.\" Always design the in-between.\n\n| Pattern | Use when | Notes |\n|---|---|---|\n| **Skeleton screens** | Layout is known ahead of data | Gray placeholder shapes matching final layout. Feels fastest — perceived progress. Default for content views. |\n| **Spinner** | Short, indeterminate, small area | Fine for \u003C1s actions or buttons. Overused as a lazy default; on a full page it implies \"stuck.\" |\n| **Progress bar** | Determinate, multi-step, long | Show % when you know it. Upload, install, import. |\n| **Progressive \u002F streamed** | Data arrives in chunks | Render each piece as it lands (above-the-fold first). Best perceived performance. |\n| **Optimistic UI** | Action will almost certainly succeed | Apply the change instantly, reconcile\u002Frollback on failure. |\n\n- **Skeletons must match the real layout** — same number of rows, same column widths — so nothing jumps when data replaces them. A skeleton that resizes is worse than a spinner.\n- **Hold the space.** Reserve final dimensions (`min-height`, `aspect-ratio`, fixed image boxes) so content swap doesn't reflow neighbors.\n- **Delay tiny spinners ~150–300ms** so fast responses never flash a spinner (which itself reads as slowness).\n- **Announce to AT:** wrap loading regions in `aria-busy=\"true\"` and use `role=\"status\"` \u002F `aria-live=\"polite\"` for \"Loading…\" so screen-reader users aren't left in silence.\n\n## 5. Partial states\n\nReal systems are rarely all-or-nothing. A dashboard with six widgets where two endpoints failed should render four widgets and show two scoped error tiles — **not** blow away the whole page. Design the partial state explicitly: show what loaded, flag what didn't with a localized retry, and make the boundary clear (per-card error, not a global toast). Partial beats both \"spinner forever\" and \"one failure nukes everything.\"\n\n- **Render the known immediately, stream the rest.** Show the page shell, the user's name, the nav — anything you already have — then fill data regions as they resolve. The user sees structure in \u003C100ms instead of a blank wait.\n- **Scope failures to the smallest unit.** One failed chart = one error card with its own retry. Use error boundaries (React `\u003CErrorBoundary>`, route-level error UI) so a single component's crash can't take down siblings.\n- **Flag the gap honestly.** \"Couldn't load recent activity\" inside the activity panel — don't silently show an empty panel that reads as \"no activity.\"\n- **Pagination\u002Finfinite scroll are partial by design:** show what's loaded, indicate more is coming (a spinner row at the bottom), and never block scrolling the existing items.\n\n## 6. Error states — what, why, recover\n\nAn error state has a job beyond \"something went wrong.\" It must answer three questions and give one action:\n\n1. **What** happened, in plain language (\"We couldn't save your changes\").\n2. **Why** \u002F what it means (\"Your connection dropped\" — not a stack trace, not \"Error 0x8004\").\n3. **How to recover** — a concrete next step, almost always a **Retry** button, plus what's safe (\"Your draft is saved\").\n\n| Do | Don't |\n|---|---|\n| \"Couldn't load comments. **Try again**\" | \"An error occurred\" with no action |\n| Preserve the user's input on failure | Wipe the form and make them re-type |\n| Scope the error to the failed region | Replace the whole screen on one failed call |\n| Offer retry + alternative (support, status page) | Dead-end with an OK button that does nothing |\n| Log details for you, show plain text to them | Surface raw exceptions \u002F codes as the message |\n\n- **Inline > modal** for recoverable errors — keep context, show the error where it happened.\n- **Retry must actually retry** (re-fire the request), and where possible **auto-retry with backoff** before bothering the user.\n- Distinguish **user errors** (validation — fixable input) from **system errors** (server\u002Fnetwork — retry) from **empty** (not an error at all). They look and read differently.\n\n## 7. Offline & blocked states\n\n**Offline:** detect it (`navigator.onLine` + `online`\u002F`offline` events, or failed-request heuristics), name it (\"You're offline — showing your last synced data\"), keep cached content visible and read-only where sensible, and **queue** actions to replay on reconnect rather than silently dropping them. A persistent banner that auto-dismisses on reconnect beats a blocking modal. Mark stale data honestly (\"Last updated 9:42am\") so the user knows what they're looking at isn't live.\n\n| Do | Don't |\n|---|---|\n| Show cached content + an offline banner | Replace the whole app with \"No connection\" |\n| Queue writes, replay on reconnect | Silently drop the user's action |\n| Label stale data with last-sync time | Show old data as if it were live |\n| Disable only the controls that need the network | Disable the entire UI |\n\n**Permission \u002F blocked:** when a capability is denied (camera, location, notifications) or gated (paywall, role, plan), don't show a broken feature. Show a state that explains *what's needed and why*, with a button that routes to the fix:\n\n- **Denied at OS level** → explain + deep-link to settings (\"Enable camera in Settings to scan\").\n- **Gated by plan** → show the locked feature's value + an upgrade CTA, never a silent no-op.\n- **Gated by role** → \"You need admin access. Request it from [owner].\" — give a path, not a wall.\n\nNever leave a dead control that silently does nothing — that reads as a bug, not a boundary.\n\n## 8. Success & confirmation states\n\nDon't skip the payoff. After a meaningful action — payment, submission, first item created — confirm clearly: **what happened**, the **result\u002Freceipt**, and **the next logical step**. A success state that just says \"Done\" wastes the highest-intent moment in the flow.\n\n| Action | Weak | Strong (confirms + routes forward) |\n|---|---|---|\n| Sent invoice | \"Success\" toast, gone in 3s | \"Invoice #1042 sent to Acme. **Track it** \u002F Send another\" |\n| Created account | Redirect to empty dashboard | \"Welcome! **Invite your team** or create your first project\" |\n| Submitted form | Page reloads blank | \"Got it — we'll reply within 24h. Reference #8831.\" |\n| Async refund | \"Processing…\" then nothing | \"Refund started — you'll get an email when it lands\" |\n\n- **Match feedback weight to action weight.** A toast for a like; a full confirmation screen for a payment. Don't celebrate trivial actions or under-acknowledge important ones.\n- **Persist proof** for things people return to: order numbers, receipts, confirmation emails. A toast that vanishes is not a receipt.\n- For **async** work, the success state means \"we accepted it,\" not \"it's done\" — say which, and tell them how they'll learn it finished.\n\n## 9. First-run onboarding — activation, not a tour\n\nOnboarding's only real metric is **activation**: the user reaching the moment they first feel the product's value — the **aha moment** — and the **time-to-value (TTV)** it took to get there. Everything else is decoration. The entire job is to compress the path from sign-up to aha and remove every gram of friction in between.\n\n**Core principles:**\n\n- **Show, don't tell. Do it, don't explain it.** The best onboarding has the user *perform the core action* on real (or sample) data, not read about it. Slack has you send a message; Figma has you move a shape; Duolingo has you do a lesson before you even sign up. Doing creates a memory; a tour creates a dismissed overlay.\n- **Just-in-time over upfront.** Teach each feature *the moment it's first relevant*, in context, one tip at a time — not a 7-slide carousel before the user has done anything. Upfront tours are skipped, forgotten, and block the user from the thing they came to do.\n- **The empty state IS the onboarding.** For most products you don't need a separate tour — a well-designed first-use empty state (§2) that shows value and the one next action carries the whole load.\n- **Reduce TTV ruthlessly.** Remove setup steps, pre-fill with smart defaults, defer everything non-essential. Ask for the credit card \u002F team invite \u002F profile photo *after* the aha, not before it. Every screen between sign-up and value is a leak.\n\n### The cost of forced tours and coachmarks\n\nForced product tours, coachmark overlays (\"Click here! Now here!\"), and modal walkthroughs are **the most common onboarding anti-pattern.** Users dismiss them reflexively, retain almost nothing, and resent the wall between them and the app. If you must offer a tour, make it **skippable, short, and optional** — and assume most users skip it. Interactive (\"now you try\") beats passive (\"here's what this does\") every time. A coachmark is acceptable for *one* genuinely non-obvious control, shown once, dismissible forever.\n\n### Progressive onboarding mechanics that work\n\n| Pattern | Why it works | Watch out for |\n|---|---|---|\n| **Setup checklist** | Zeigarnik effect (open loops nag) + goal-gradient (motivation rises near the end) | Keep it short (3–5 items); don't fake-pad it |\n| **Endowed progress** | Pre-complete a step (\"1 of 4 done\" at start) — people finish things already begun | Must be honest (e.g. \"account created ✓\") |\n| **Sample \u002F seed data** | Instant populated state, learn by editing | Mark as example; don't pollute real data |\n| **Contextual tooltips (JIT)** | Teach at the point of need, one at a time | Never chain them into a forced tour |\n| **Personalization \u002F segmentation** | Ask role\u002Fgoal up front, tailor the next steps to it | Only if it materially changes the path; keep it 1–2 questions |\n| **Progress bar \u002F % complete** | Goal-gradient; visible momentum | Tie to real value, not vanity steps |\n\nA **setup checklist** (\"Complete your profile, Connect a repo, Invite a teammate, Create your first project\") is the workhorse of B2B onboarding precisely because of the **Zeigarnik effect** — incomplete tasks create mental tension that pulls users back — and the **goal-gradient effect** — effort accelerates as a goal nears. **Endowed progress** supercharges it: start the bar partway (\"✓ Account created — 1 of 4\") and completion rates jump because people are loath to abandon something already in motion.\n\n### Permission priming — never ask on launch\n\nAsking for notifications, location, camera, or contacts **on app launch** is the fastest way to a permanent \"Deny\" — and once denied, you must send the user to OS settings to recover. Instead, **prime in context with rationale:** a soft pre-prompt (your own UI, not the OS dialog) that appears *when the permission is actually relevant* and explains the benefit. Only fire the real OS prompt after the user accepts the soft one.\n\n```\nBad:  App opens → OS dialog: \"App wants to send notifications\" → Deny (forever)\nGood: User finishes setup → your screen: \"Want a ping when your build finishes?\"\n      → [Not now] [Notify me] → only \"Notify me\" triggers the OS prompt\n```\n\nThis protects your one shot at the OS dialog: you only spend it on users who've already said yes to the value.\n\n## 10. Re-onboarding & feature discovery\n\nOnboarding isn't a one-time gate — returning users need to learn what's new. Re-onboard for new features with **changelogs \u002F what's-new** modals (short, dismissible, shown once), **spotlight \u002F hotspot** indicators on new controls (a subtle dot, not a forced overlay), and contextual \"New\" badges. Surface a feature *when the user is in the relevant context*, not as a launch-blocking announcement. Respect the dismissal — never re-show a what's-new the user closed.\n\n## 11. Mobile vs desktop onboarding\n\n- **Mobile:** screen-by-screen sign-up, system permission timing is critical (prime first, §9), thumb-reachable primary actions, one decision per screen, and progress dots. Account for the OS-level permission model — you get one prompt.\n- **Desktop \u002F web:** more room for a persistent checklist sidebar, inline empty-state guidance, and richer sample data. Hover-triggered tooltips are available (not on touch). Multi-pane layouts can show \"here's the panel, here's what fills it\" simultaneously.\n- Both: defer account creation as late as the value model allows (try-before-signup lowers the activation barrier dramatically).\n\n## 12. Metrics\n\nYou cannot improve onboarding you don't measure. Track:\n\n- **Activation rate** — % of new users who reach the aha moment (define it explicitly per product: \"sent first message,\" \"created first board\").\n- **Time-to-value (TTV)** — median time from sign-up to that moment. Drive it down.\n- **Onboarding completion rate** — % who finish the checklist \u002F setup flow; find the step where people drop.\n- **Funnel drop-off per step** — which screen leaks; that's where to cut friction.\n- **Empty-state CTA click-through** — does the first-use action actually get clicked?\n- **Permission opt-in rate** — measure the lift from priming vs. raw prompts.\n\n## 13. State copy & voice — quick reference\n\nThe words carry most of the weight in these states. Calibrate tone to the moment: empty\u002Fonboarding is encouraging, errors are calm and helpful (never cute, never blaming the user), success is brief.\n\n| State | Voice | Template | Avoid |\n|---|---|---|---|\n| First-use empty | Inviting | \"[Value]. [Single action]\" | \"No data\" |\n| Cleared empty | Affirming | \"You're all caught up\" | A blank screen |\n| No results | Helpful | \"No matches for X. [Broaden \u002F clear]\" | \"Nothing found.\" (dead-end) |\n| Loading | Quiet | \"Loading…\" \u002F skeleton (often silent) | A spinner with no end |\n| Error | Calm, plain | \"Couldn't [X]. [Why]. **Try again**\" | \"Error\", codes, blame |\n| Offline | Matter-of-fact | \"You're offline — showing last synced data\" | A blocking modal |\n| Blocked | Directive | \"You need [X] to [Y]. [Get it]\" | A silent dead control |\n| Success | Brief, forward | \"[Done]. [Next step]\" | \"Done.\" alone |\n\nNever blame the user (\"You entered an invalid…\" → \"That email doesn't look right — check the format\"). Never use jargon or codes as the primary message. Never make empty states sad or error states cute.\n\n## 14. Common mistakes\n\n- **Designing only the happy path** — shipping the populated state and discovering empty\u002Floading\u002Ferror in production.\n- **A literally blank empty screen** — no value, no action, no glimpse; the user assumes it's broken.\n- **Conflating the three empty states** — showing \"no results\" copy to a first-time user, or \"get started\" to someone who just cleared their inbox.\n- **Forced upfront product tours** — multi-slide carousels users skip and forget; explaining instead of letting them *do*.\n- **Asking permissions on launch** — burning your one OS prompt before the user understands why, earning a permanent Deny.\n- **No error recovery** — \"An error occurred\" with an OK button and no retry, no cause, no next step.\n- **No loading state → layout shift** — blank flash then content snapping in, reading as jank\u002Fbroken.\n- **Onboarding that explains instead of does** — passive tooltips over hands-on first action.\n- **No zero-results help** — a dead-end empty search with no suggestion, broaden, or clear-filters path.\n- **Wiping user input on error** — making people re-type a whole form because one field or the network failed.\n- **Sample data that pollutes** — demo content that syncs, counts in analytics, or can't be removed.\n- **A success state that just says \"Done\"** — wasting the highest-intent moment instead of offering the next step.\n","# Onboarding, Empty States & the Full State Set\n\nMost teams design exactly one state: the screen full of beautiful data. Then it ships and the first real user sees a blank rectangle, a spinner that never resolves, an error with no recovery, and a permission prompt on launch they instantly deny. The discipline that separates senior work is simple and unglamorous: **design every state a view can be in, not just the happy one.** A screen is not a picture; it is a state machine. This skill is the checklist of states you owe every view, and the craft of turning the emptiest, earliest, most fragile moments — first run and the blank slate — into the highest-leverage moments you have.\n\n## 1. The full state set — the discipline\n\nBefore a view is \"done,\" walk it through every state below. Each is a real screen a real user will hit. Skipping one doesn't delete the state; it ships it undesigned.\n\n| State | When it shows | The one job |\n|---|---|---|\n| **Ideal \u002F populated** | Real data, happy path | Show the content; this is the reward |\n| **Empty — first use** | New user, nothing created yet | Explain value + one next action |\n| **Empty — user-cleared** | User deleted\u002Fcompleted everything | Celebrate or reassure, offer re-entry |\n| **Empty — no results** | Filter\u002Fsearch returned nothing | Explain why + broaden\u002Fclear path |\n| **Loading** | Data in flight | Hold layout, show progress, no jank |\n| **Partial** | Some data loaded, some pending\u002Ffailed | Show what you have, flag what's missing |\n| **Error** | Request\u002Faction failed | What broke, why, how to recover, retry |\n| **Offline** | No connectivity | Name it, show cached data, queue actions |\n| **Success \u002F confirmation** | Action completed | Confirm, show result, offer next step |\n| **Permission \u002F blocked** | Capability denied or gated | Explain need, route to unblock |\n| **Zero-results search** | Query matched nothing | Suggest, broaden, never dead-end |\n\n**The three \"empty\" states are different states.** Conflating them is the single most common mistake in this whole area. \"You have no projects yet\" (first-use → onboard) is not \"You finished all your tasks\" (cleared → celebrate) is not \"No results for 'xqz'\" (no-results → broaden the query). Same blank canvas, three opposite messages and three different next actions.\n\n## 2. Empty states — first-use (the blank slate)\n\nThe first-use empty state is the most valuable screen in your product and the one most often left as a sad gray \"No data.\" It is the moment a user decides whether this thing is worth their time. Treat it as **onboarding, not absence.**\n\nA strong first-use empty state has four parts:\n\n1. **Value in one line.** What this view is *for*, in the user's words. \"Track every invoice and get paid faster\" — not \"No invoices.\"\n2. **The one next action.** A single, prominent primary button. One. Not three equal CTAs. \"Create your first invoice.\"\n3. **A glimpse of the payoff.** Show what a populated state looks like — a faded illustration, a sample row, a short example — so the user can picture the reward.\n4. **An escape hatch \u002F secondary path.** \"Import from CSV\" or \"See an example\" as a quiet secondary, for users who don't want to start from scratch.\n\n```html\n\u003C!-- First-use empty state: value + single action + glimpse -->\n\u003Csection class=\"empty\" role=\"status\">\n  \u003Cimg src=\"illustration.svg\" alt=\"\" aria-hidden=\"true\" \u002F>\n  \u003Ch2>Your invoices live here\u003C\u002Fh2>\n  \u003Cp>Create an invoice, send it in a click, and track it until it's paid.\u003C\u002Fp>\n  \u003Cbutton class=\"primary\">Create your first invoice\u003C\u002Fbutton>\n  \u003Cbutton class=\"link\">Import from CSV\u003C\u002Fbutton>\n\u003C\u002Fsection>\n```\n\n| Do | Don't |\n|---|---|\n| Explain the value of the feature | Show \"No data\" \u002F \"Nothing here\" |\n| One primary action, prominent | Five buttons of equal weight |\n| Seed with sample\u002Fexample data when safe | Leave a literally blank rectangle |\n| Match the illustration to the product's tone | Generic clip-art that says nothing |\n| Use it to teach the feature's mental model | Assume the user knows what this view does |\n\n**Seed \u002F sample data** is the strongest empty-state pattern that exists. A new Trello board with example cards, a notes app with a \"Welcome\" note you can edit, a dashboard pre-populated with demo metrics — these let the user *see the populated state immediately* and learn by editing rather than by reading. Make sample data obviously sample (a banner, a \"This is an example — delete it anytime\"), make it trivially removable, and never let it pollute real analytics or sync.\n\n## 3. Empty states — user-cleared and no-results\n\n**User-cleared** (inbox zero, all todos done, notifications all read) is a *success*, not a void. Acknowledge it: \"You're all caught up.\" A small celebration, an illustration, maybe a stat (\"You closed 12 tasks this week\"). Then offer a sensible next move — never leave them staring at nothing wondering if the app broke.\n\n**No-results** (a list filtered down to nothing) must explain *which* constraint emptied it and offer to relax it: \"No tasks match 'High priority' + 'Done'. Clear filters?\" The recovery action is the point. A no-results state without a way back to results is a dead-end.\n\n## 4. Loading states — never ship layout shift\n\nA view with no loading state flashes blank, then snaps content in, shoving the layout around (CLS). That jank reads as \"broken.\" Always design the in-between.\n\n| Pattern | Use when | Notes |\n|---|---|---|\n| **Skeleton screens** | Layout is known ahead of data | Gray placeholder shapes matching final layout. Feels fastest — perceived progress. Default for content views. |\n| **Spinner** | Short, indeterminate, small area | Fine for \u003C1s actions or buttons. Overused as a lazy default; on a full page it implies \"stuck.\" |\n| **Progress bar** | Determinate, multi-step, long | Show % when you know it. Upload, install, import. |\n| **Progressive \u002F streamed** | Data arrives in chunks | Render each piece as it lands (above-the-fold first). Best perceived performance. |\n| **Optimistic UI** | Action will almost certainly succeed | Apply the change instantly, reconcile\u002Frollback on failure. |\n\n- **Skeletons must match the real layout** — same number of rows, same column widths — so nothing jumps when data replaces them. A skeleton that resizes is worse than a spinner.\n- **Hold the space.** Reserve final dimensions (`min-height`, `aspect-ratio`, fixed image boxes) so content swap doesn't reflow neighbors.\n- **Delay tiny spinners ~150–300ms** so fast responses never flash a spinner (which itself reads as slowness).\n- **Announce to AT:** wrap loading regions in `aria-busy=\"true\"` and use `role=\"status\"` \u002F `aria-live=\"polite\"` for \"Loading…\" so screen-reader users aren't left in silence.\n\n## 5. Partial states\n\nReal systems are rarely all-or-nothing. A dashboard with six widgets where two endpoints failed should render four widgets and show two scoped error tiles — **not** blow away the whole page. Design the partial state explicitly: show what loaded, flag what didn't with a localized retry, and make the boundary clear (per-card error, not a global toast). Partial beats both \"spinner forever\" and \"one failure nukes everything.\"\n\n- **Render the known immediately, stream the rest.** Show the page shell, the user's name, the nav — anything you already have — then fill data regions as they resolve. The user sees structure in \u003C100ms instead of a blank wait.\n- **Scope failures to the smallest unit.** One failed chart = one error card with its own retry. Use error boundaries (React `\u003CErrorBoundary>`, route-level error UI) so a single component's crash can't take down siblings.\n- **Flag the gap honestly.** \"Couldn't load recent activity\" inside the activity panel — don't silently show an empty panel that reads as \"no activity.\"\n- **Pagination\u002Finfinite scroll are partial by design:** show what's loaded, indicate more is coming (a spinner row at the bottom), and never block scrolling the existing items.\n\n## 6. Error states — what, why, recover\n\nAn error state has a job beyond \"something went wrong.\" It must answer three questions and give one action:\n\n1. **What** happened, in plain language (\"We couldn't save your changes\").\n2. **Why** \u002F what it means (\"Your connection dropped\" — not a stack trace, not \"Error 0x8004\").\n3. **How to recover** — a concrete next step, almost always a **Retry** button, plus what's safe (\"Your draft is saved\").\n\n| Do | Don't |\n|---|---|\n| \"Couldn't load comments. **Try again**\" | \"An error occurred\" with no action |\n| Preserve the user's input on failure | Wipe the form and make them re-type |\n| Scope the error to the failed region | Replace the whole screen on one failed call |\n| Offer retry + alternative (support, status page) | Dead-end with an OK button that does nothing |\n| Log details for you, show plain text to them | Surface raw exceptions \u002F codes as the message |\n\n- **Inline > modal** for recoverable errors — keep context, show the error where it happened.\n- **Retry must actually retry** (re-fire the request), and where possible **auto-retry with backoff** before bothering the user.\n- Distinguish **user errors** (validation — fixable input) from **system errors** (server\u002Fnetwork — retry) from **empty** (not an error at all). They look and read differently.\n\n## 7. Offline & blocked states\n\n**Offline:** detect it (`navigator.onLine` + `online`\u002F`offline` events, or failed-request heuristics), name it (\"You're offline — showing your last synced data\"), keep cached content visible and read-only where sensible, and **queue** actions to replay on reconnect rather than silently dropping them. A persistent banner that auto-dismisses on reconnect beats a blocking modal. Mark stale data honestly (\"Last updated 9:42am\") so the user knows what they're looking at isn't live.\n\n| Do | Don't |\n|---|---|\n| Show cached content + an offline banner | Replace the whole app with \"No connection\" |\n| Queue writes, replay on reconnect | Silently drop the user's action |\n| Label stale data with last-sync time | Show old data as if it were live |\n| Disable only the controls that need the network | Disable the entire UI |\n\n**Permission \u002F blocked:** when a capability is denied (camera, location, notifications) or gated (paywall, role, plan), don't show a broken feature. Show a state that explains *what's needed and why*, with a button that routes to the fix:\n\n- **Denied at OS level** → explain + deep-link to settings (\"Enable camera in Settings to scan\").\n- **Gated by plan** → show the locked feature's value + an upgrade CTA, never a silent no-op.\n- **Gated by role** → \"You need admin access. Request it from [owner].\" — give a path, not a wall.\n\nNever leave a dead control that silently does nothing — that reads as a bug, not a boundary.\n\n## 8. Success & confirmation states\n\nDon't skip the payoff. After a meaningful action — payment, submission, first item created — confirm clearly: **what happened**, the **result\u002Freceipt**, and **the next logical step**. A success state that just says \"Done\" wastes the highest-intent moment in the flow.\n\n| Action | Weak | Strong (confirms + routes forward) |\n|---|---|---|\n| Sent invoice | \"Success\" toast, gone in 3s | \"Invoice #1042 sent to Acme. **Track it** \u002F Send another\" |\n| Created account | Redirect to empty dashboard | \"Welcome! **Invite your team** or create your first project\" |\n| Submitted form | Page reloads blank | \"Got it — we'll reply within 24h. Reference #8831.\" |\n| Async refund | \"Processing…\" then nothing | \"Refund started — you'll get an email when it lands\" |\n\n- **Match feedback weight to action weight.** A toast for a like; a full confirmation screen for a payment. Don't celebrate trivial actions or under-acknowledge important ones.\n- **Persist proof** for things people return to: order numbers, receipts, confirmation emails. A toast that vanishes is not a receipt.\n- For **async** work, the success state means \"we accepted it,\" not \"it's done\" — say which, and tell them how they'll learn it finished.\n\n## 9. First-run onboarding — activation, not a tour\n\nOnboarding's only real metric is **activation**: the user reaching the moment they first feel the product's value — the **aha moment** — and the **time-to-value (TTV)** it took to get there. Everything else is decoration. The entire job is to compress the path from sign-up to aha and remove every gram of friction in between.\n\n**Core principles:**\n\n- **Show, don't tell. Do it, don't explain it.** The best onboarding has the user *perform the core action* on real (or sample) data, not read about it. Slack has you send a message; Figma has you move a shape; Duolingo has you do a lesson before you even sign up. Doing creates a memory; a tour creates a dismissed overlay.\n- **Just-in-time over upfront.** Teach each feature *the moment it's first relevant*, in context, one tip at a time — not a 7-slide carousel before the user has done anything. Upfront tours are skipped, forgotten, and block the user from the thing they came to do.\n- **The empty state IS the onboarding.** For most products you don't need a separate tour — a well-designed first-use empty state (§2) that shows value and the one next action carries the whole load.\n- **Reduce TTV ruthlessly.** Remove setup steps, pre-fill with smart defaults, defer everything non-essential. Ask for the credit card \u002F team invite \u002F profile photo *after* the aha, not before it. Every screen between sign-up and value is a leak.\n\n### The cost of forced tours and coachmarks\n\nForced product tours, coachmark overlays (\"Click here! Now here!\"), and modal walkthroughs are **the most common onboarding anti-pattern.** Users dismiss them reflexively, retain almost nothing, and resent the wall between them and the app. If you must offer a tour, make it **skippable, short, and optional** — and assume most users skip it. Interactive (\"now you try\") beats passive (\"here's what this does\") every time. A coachmark is acceptable for *one* genuinely non-obvious control, shown once, dismissible forever.\n\n### Progressive onboarding mechanics that work\n\n| Pattern | Why it works | Watch out for |\n|---|---|---|\n| **Setup checklist** | Zeigarnik effect (open loops nag) + goal-gradient (motivation rises near the end) | Keep it short (3–5 items); don't fake-pad it |\n| **Endowed progress** | Pre-complete a step (\"1 of 4 done\" at start) — people finish things already begun | Must be honest (e.g. \"account created ✓\") |\n| **Sample \u002F seed data** | Instant populated state, learn by editing | Mark as example; don't pollute real data |\n| **Contextual tooltips (JIT)** | Teach at the point of need, one at a time | Never chain them into a forced tour |\n| **Personalization \u002F segmentation** | Ask role\u002Fgoal up front, tailor the next steps to it | Only if it materially changes the path; keep it 1–2 questions |\n| **Progress bar \u002F % complete** | Goal-gradient; visible momentum | Tie to real value, not vanity steps |\n\nA **setup checklist** (\"Complete your profile, Connect a repo, Invite a teammate, Create your first project\") is the workhorse of B2B onboarding precisely because of the **Zeigarnik effect** — incomplete tasks create mental tension that pulls users back — and the **goal-gradient effect** — effort accelerates as a goal nears. **Endowed progress** supercharges it: start the bar partway (\"✓ Account created — 1 of 4\") and completion rates jump because people are loath to abandon something already in motion.\n\n### Permission priming — never ask on launch\n\nAsking for notifications, location, camera, or contacts **on app launch** is the fastest way to a permanent \"Deny\" — and once denied, you must send the user to OS settings to recover. Instead, **prime in context with rationale:** a soft pre-prompt (your own UI, not the OS dialog) that appears *when the permission is actually relevant* and explains the benefit. Only fire the real OS prompt after the user accepts the soft one.\n\n```\nBad:  App opens → OS dialog: \"App wants to send notifications\" → Deny (forever)\nGood: User finishes setup → your screen: \"Want a ping when your build finishes?\"\n      → [Not now] [Notify me] → only \"Notify me\" triggers the OS prompt\n```\n\nThis protects your one shot at the OS dialog: you only spend it on users who've already said yes to the value.\n\n## 10. Re-onboarding & feature discovery\n\nOnboarding isn't a one-time gate — returning users need to learn what's new. Re-onboard for new features with **changelogs \u002F what's-new** modals (short, dismissible, shown once), **spotlight \u002F hotspot** indicators on new controls (a subtle dot, not a forced overlay), and contextual \"New\" badges. Surface a feature *when the user is in the relevant context*, not as a launch-blocking announcement. Respect the dismissal — never re-show a what's-new the user closed.\n\n## 11. Mobile vs desktop onboarding\n\n- **Mobile:** screen-by-screen sign-up, system permission timing is critical (prime first, §9), thumb-reachable primary actions, one decision per screen, and progress dots. Account for the OS-level permission model — you get one prompt.\n- **Desktop \u002F web:** more room for a persistent checklist sidebar, inline empty-state guidance, and richer sample data. Hover-triggered tooltips are available (not on touch). Multi-pane layouts can show \"here's the panel, here's what fills it\" simultaneously.\n- Both: defer account creation as late as the value model allows (try-before-signup lowers the activation barrier dramatically).\n\n## 12. Metrics\n\nYou cannot improve onboarding you don't measure. Track:\n\n- **Activation rate** — % of new users who reach the aha moment (define it explicitly per product: \"sent first message,\" \"created first board\").\n- **Time-to-value (TTV)** — median time from sign-up to that moment. Drive it down.\n- **Onboarding completion rate** — % who finish the checklist \u002F setup flow; find the step where people drop.\n- **Funnel drop-off per step** — which screen leaks; that's where to cut friction.\n- **Empty-state CTA click-through** — does the first-use action actually get clicked?\n- **Permission opt-in rate** — measure the lift from priming vs. raw prompts.\n\n## 13. State copy & voice — quick reference\n\nThe words carry most of the weight in these states. Calibrate tone to the moment: empty\u002Fonboarding is encouraging, errors are calm and helpful (never cute, never blaming the user), success is brief.\n\n| State | Voice | Template | Avoid |\n|---|---|---|---|\n| First-use empty | Inviting | \"[Value]. [Single action]\" | \"No data\" |\n| Cleared empty | Affirming | \"You're all caught up\" | A blank screen |\n| No results | Helpful | \"No matches for X. [Broaden \u002F clear]\" | \"Nothing found.\" (dead-end) |\n| Loading | Quiet | \"Loading…\" \u002F skeleton (often silent) | A spinner with no end |\n| Error | Calm, plain | \"Couldn't [X]. [Why]. **Try again**\" | \"Error\", codes, blame |\n| Offline | Matter-of-fact | \"You're offline — showing last synced data\" | A blocking modal |\n| Blocked | Directive | \"You need [X] to [Y]. [Get it]\" | A silent dead control |\n| Success | Brief, forward | \"[Done]. [Next step]\" | \"Done.\" alone |\n\nNever blame the user (\"You entered an invalid…\" → \"That email doesn't look right — check the format\"). Never use jargon or codes as the primary message. Never make empty states sad or error states cute.\n\n## 14. Common mistakes\n\n- **Designing only the happy path** — shipping the populated state and discovering empty\u002Floading\u002Ferror in production.\n- **A literally blank empty screen** — no value, no action, no glimpse; the user assumes it's broken.\n- **Conflating the three empty states** — showing \"no results\" copy to a first-time user, or \"get started\" to someone who just cleared their inbox.\n- **Forced upfront product tours** — multi-slide carousels users skip and forget; explaining instead of letting them *do*.\n- **Asking permissions on launch** — burning your one OS prompt before the user understands why, earning a permanent Deny.\n- **No error recovery** — \"An error occurred\" with an OK button and no retry, no cause, no next step.\n- **No loading state → layout shift** — blank flash then content snapping in, reading as jank\u002Fbroken.\n- **Onboarding that explains instead of does** — passive tooltips over hands-on first action.\n- **No zero-results help** — a dead-end empty search with no suggestion, broaden, or clear-filters path.\n- **Wiping user input on error** — making people re-type a whole form because one field or the network failed.\n- **Sample data that pollutes** — demo content that syncs, counts in analytics, or can't be removed.\n- **A success state that just says \"Done\"** — wasting the highest-intent moment instead of offering the next step.\n",{"name":5,"tags":23,"description":7},[24,25,26,27,28],"design-systems","onboarding","empty-states","activation","states","main","4911ae44bbb35beef4511ba298475ba5a82b7e1c","design-system-skills\u002Fonboarding-and-empty-states",0,"https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta","https:\u002F\u002Fdocs.vanta.theft.studio","https:\u002F\u002Fgithub.com\u002Fjpoindexter","jason.theft.studio","Just some guy trying to build stuff","2026-11-12 17:11:35",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add jpoindexter\u002FVanta --skill onboarding-and-empty-states",{"tool":45,"command":46},"bunx","bunx skills add jpoindexter\u002FVanta --skill onboarding-and-empty-states",{"tool":48,"command":49},"pnpm","pnpm dlx skills add jpoindexter\u002FVanta --skill onboarding-and-empty-states","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fdesign-system-skills\u002Fonboarding-and-empty-states\u002FSKILL.md",true,[],[54,61,68,75,82,88],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M7582PEM7XM8B98VFRDV0C0J","write-changelog","Turn a range of commits into a user-facing changelog","https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fvanta-ts\u002Fsrc\u002Fmigrate\u002F__fixtures__\u002Fopenclaw\u002Fskills\u002Fwrite-changelog\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7582KTQJMP5Y7GS83MS1C7Z","debug-flaky-test","Reproduce and isolate a flaky test before fixing it","https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fvanta-ts\u002Fsrc\u002Fmigrate\u002F__fixtures__\u002Fopenclaw\u002Fskills\u002Fdebug-flaky-test\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M7582HG7XFM4Z5NGG1YFECT8","triage-incident","First 10 minutes of an incident — stabilize, then diagnose","https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fvanta-ts\u002Fsrc\u002Fmigrate\u002F__fixtures__\u002Fhermes\u002Fskills\u002Ftriage-incident\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M7582DQABK7A96XHMB770KQZ","writing-plans","Write implementation plans: bite-sized tasks, paths, code.","https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fvanta-ts\u002Fskills-library\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7582BBK8H0HGSXKK08FCXJ1","vanta-port-adapter","https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fvanta-ts\u002Fskills-library\u002Fvanta-port-adapter\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M75828P8PX5XSBMJ2BVVDA9Y","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fvanta-ts\u002Fskills-library\u002Ftest-driven-development\u002FSKILL.md",[],[]]