agentleFS
parhambparhamb/design-skills/ux-network/SKILL.md

ux-network

Skill21 starsChanged 5 months agoMITView on GitHub

Network and connectivity UX: offline mode, slow connection resilience, connection error states, background sync, caching strategy, and graceful degradation. Use when designing or reviewing how an app behaves under poor or absent network conditions.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Optimistic UI: Update the UI immediately to show the expected outcome, then sync in the background.

    line 32
  2. Distinctive:

    When applying this checklist to a screen, flow, or codebase:

    line 83

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Network and Connectivity UX

Network conditions are unpredictable. An app that only works on fast Wi-Fi is not a reliable product. Design for the worst connection and fast connections will take care of themselves.


Checklist

ItemGuidance
Performance on slow connectionsCritical content loads first. Images lazy-load. API payloads are compressed.
No internet errorInline message with a retry button. Never an empty screen with no explanation.
Network switch resilienceApp does not crash or disconnect when switching from Wi-Fi to mobile data.
Offline modeCached content is displayed. Writes are queued and flushed when connection returns.
Background data syncData syncs in background on Wi-Fi by default. User can enable sync over mobile data.

Offline-First Architecture

Optimistic UI: Update the UI immediately to show the expected outcome, then sync in the background. If the sync fails, show an undo option. This approach makes the app feel fast regardless of network speed.

Cache strategies:

  • Stale-while-revalidate: Show cached content immediately, refresh in the background.
  • Cache-first: Always show the cache, refresh only on explicit pull-to-refresh.
  • Network-first: Try the network first, fall back to cache on failure.

Sync queue: Store pending writes locally and flush them when connectivity returns. Show a clear sync status indicator so users know their changes are queued and will be saved.


Error State Patterns

ScenarioUI Pattern
No internet at launchFull-screen message with an illustration and a Retry button
Lost internet mid-useTop banner: "No connection — working offline"
Slow connectionSkeleton screens instead of spinners
Server error (5xx)"Something went wrong on our end." with a Retry button
Request timeout"Taking longer than usual." with Keep waiting and Cancel options
Partial failureLoad what worked, show an inline error for what failed

Performance Targets

Web (Core Web Vitals)

MetricTarget
Largest Contentful Paint (LCP)Under 2.5 seconds
Interaction to Next Paint (INP)Under 200ms
Cumulative Layout Shift (CLS)Under 0.1

Mobile app

MetricTarget
Cold start to interactiveUnder 2 seconds
API response (P95)Under 500ms
Offline cache hitUnder 100ms
ScrollingNo dropped frames at the display's refresh rate

How to Review

When applying this checklist to a screen, flow, or codebase:

  1. Go through every checklist item and mark it Pass, Fail, or N/A — never skip items silently.
  2. Cite specific evidence for each finding: the screen, component, file, or line it applies to.
  3. Tag each failure with a severity: Blocker (breaks the experience), Major (hurts usability), or Minor (polish).
  4. End the review with the top 3 recommended fixes, ranked by user impact.

Related Skills

  • ux-error-handling — error message writing and retry patterns
  • ux-help-onboarding — loading indicators and skeleton screens

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.