agentleFS
revizahoshii-norevizahoshii-no/agent-skill-project/skills/loading-experience/SKILL.md

loading-experience

Skill1 starsChanged 24 days agoMITView on GitHub

Design lightweight, contextual, informative, responsive, and accessible loading feedback for page, region, control, transfer, and background-task states.

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈26

    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:

    Do not use to hide a performance defect, force a brand intro after content is ready, or diagnose network and server performance without …

    line 17
  2. Distinctive:

    Use measured duration when available.

    line 45
  3. Distinctive:

    Keep the motion compact and local.

    line 85
  4. Distinctive:

    Do not create fake micro-stages only to appear busy.

    line 101
  5. Distinctive:

    Update a semantic progress bar.

    line 108
  6. Distinctive:

    Keep percentage and label synchronized with actual work.

    line 109
  7. Distinctive:

    Avoid rapid regressions or jumps without explanation.

    line 110
  8. Distinctive:

    Prefer transforms and opacity.

    line 129
  9. Distinctive:

    Keep cycles legible rather than frantic.

    line 131
  10. Distinctive:

    Use one main rhythm per loading state.

    line 132
  11. Distinctive:

    Avoid motion on large text blocks or the entire viewport.

    line 133
  12. Distinctive:

    Do not combine spin, bounce, shimmer, and scale in one component.

    line 134
  13. Distinctive:

    Stop or replace motion immediately when the state resolves.

    line 135
  14. Distinctive:

    Keep navigation, previous content, filters, and user input available when safe.

    line 139
  15. Distinctive:

    Keep the control label visible unless a replacement communicates the same action.

    line 142
  16. Distinctive:

    Do not cover the whole page for a local request.

    line 144
  17. Distinctive:

    Do not use a skeleton for content whose final geometry is unknown.

    line 145
  18. Distinctive:

    Keep status text in the document and update it only when meaning changes.

    line 193
  19. Distinctive:

    Use polite live updates for routine progress.

    line 194
  20. Distinctive:

    Do not announce every animation frame or percentage tick.

    line 195
  21. Distinctive:

    Keep focus stable during normal progress.

    line 197
  22. Distinctive:

    Treat decorative loader geometry as hidden from assistive technology when an equivalent text status exists.

    line 199
  23. Distinctive:

    keep status text, stage labels, and determinate values visible.

    line 206
  24. Distinctive:

    avoid replacing an informative animation with an unexplained blank space.

    line 208
  25. Distinctive:

    Use browser evidence at wide and narrow viewports.

    line 230
  26. Distinctive:

    no timeout or error recovery for a long wait.

    line 245

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Loading Experience

Use when

  • designing a loader, spinner, progress bar, skeleton, staged reveal, or startup sequence;
  • replacing generic loading feedback with product-specific but lightweight motion;
  • deciding whether a wait needs no UI, local feedback, determinate progress, staged status, or recovery controls;
  • implementing loading states for search, media, upload, export, fulfillment, document parsing, navigation, or data regions;
  • reviewing loading motion for accessibility, responsiveness, and performance.

Do not use to hide a performance defect, force a brand intro after content is ready, or diagnose network and server performance without measurement.

Core principle

Loading feedback exists to maintain trust during real work. Show the smallest truthful signal for the expected wait, keep the surrounding context stable, and reveal usable content as soon as it is ready.

Aesthetic motion is allowed only after scope, progress truth, status language, recovery, and reduced-motion behavior are defined.

Step 1: classify the wait

Record:

Task:
Scope: page, region, control, or background
Blocking or non-blocking:
Expected duration:
Maximum expected duration:
Progress model: none, staged, or determinate
Context retained during wait:
Result geometry known:
Cancelable:
Retryable:
Failure path:
Product motion language:
Reduced-motion state:

Use measured duration when available. Do not invent a percentage from elapsed time unless elapsed time is the real progress model.

Step 2: choose feedback by duration

Expected durationDefault feedbackNotes
under 100 msnoneavoid flashing a loader for immediate work
100 ms to 1 slocal pressed, pending, or subtle indicator statekeep labels and layout stable
1 s to 10 sskeleton, staged label, or measured progressshow what is happening and reveal partial results
over 10 sdeterminate or staged progress with expectation and recoverysupport cancel, retry, or background continuation where possible

Delay an indeterminate indicator briefly when a fast response is common, but never delay the real content to make the loader visible.

Step 3: choose a pattern family

The observed motion reference groups visual ideas into circle, dots, fading circles, ball, time, signal, and task-icon families. Translate those families into product semantics rather than copying a decorative grid.

PatternAppropriate useAvoid when
Orbital arclocal media, product preview, or compact processingdeterminate progress is available
Sequenced dotscomposing, searching, or conversational activitythe dots do not identify the active region
Radial pulsediscovery, scanning, or proximityrepeated pulsing could distract from readable content
Traveling beaddirectional transfer with unknown byte progressdirection has no meaning
Time sweepknown refresh or polling windowduration is unpredictable or very long
Signal ladderconnection negotiation or hardware discoverybars could be mistaken for real signal strength
Task icondocument parsing, delivery, export, search, mail, or downloadthe icon is decorative or unrelated to the task
Wordmark revealgenuinely blocking application startupcontent is already ready
Measured lineupload, export, install, or batch task with real progresspercentage is simulated
Staged tilescollection or board results arriving incrementallyfinal item count and geometry are unknown without fallback
Structural skeletonknown content geometryplaceholder shapes do not map to real content
Staged revealpage sections resolving independentlyit forces sequential delay on ready sections

Step 4: define progress truth

Use one model:

Indeterminate

The system knows that work is active but cannot estimate completion.

  • Keep the motion compact and local.
  • Provide a specific status such as Searching saved reports rather than Please wait.
  • Escalate to timeout or recovery instead of looping forever.

Staged

The task has named phases but no reliable percentage.

Preparing files
Compressing archive
Verifying package
Ready to download
  • Announce meaningful stage changes.
  • Do not create fake micro-stages only to appear busy.
  • Preserve completed stage evidence when useful.

Determinate

The system has a real numerator and denominator or an equivalent measured value.

  • Update a semantic progress bar.
  • Keep percentage and label synchronized with actual work.
  • Avoid rapid regressions or jumps without explanation.
  • Switch to completion promptly at 100 percent.

Step 5: design the motion signature

Choose one signature that belongs to the product:

geometry: circle, line, tile, letter, or contextual icon
energy: quiet, measured, playful, technical, or cinematic
direction: clockwise, forward, upward, expanding, or staged
cycle duration:
easing:
color roles:
static reduced-motion state:

Motion rules:

  • Prefer transforms and opacity.
  • Animate a small visual region.
  • Keep cycles legible rather than frantic.
  • Use one main rhythm per loading state.
  • Avoid motion on large text blocks or the entire viewport.
  • Do not combine spin, bounce, shimmer, and scale in one component.
  • Stop or replace motion immediately when the state resolves.

Step 6: preserve context and layout

  • Keep navigation, previous content, filters, and user input available when safe.
  • Show local loading inside the region that will change.
  • Reserve final geometry to avoid layout shift.
  • Keep the control label visible unless a replacement communicates the same action.
  • Replace skeleton pieces progressively when their real content arrives.
  • Do not cover the whole page for a local request.
  • Do not use a skeleton for content whose final geometry is unknown.

Step 7: write status and recovery

Status should name real work:

Searching 148 saved reports
Uploading 3 of 8 files
Preparing the print-ready archive
Reconnecting to the studio speaker
Indexing chapter 4 of 12

Avoid:

Loading...
Working on magic...
Almost there...
Please be patient...

For waits that may fail, define:

  • timeout threshold;
  • visible error state;
  • retry action;
  • cancel action when cancellation is safe;
  • preserved user input;
  • background continuation or notification when supported.

Step 8: implement semantics

For indeterminate status:

<p role="status" aria-live="polite">Searching saved reports</p>

For determinate progress:

<div role="progressbar" aria-label="Uploading files" aria-valuemin="0" aria-valuemax="100" aria-valuenow="62"></div>

Implementation rules:

  • Keep status text in the document and update it only when meaning changes.
  • Use polite live updates for routine progress.
  • Do not announce every animation frame or percentage tick.
  • Label retry and cancel controls by action.
  • Keep focus stable during normal progress.
  • Move focus only when an error or completion flow requires it.
  • Treat decorative loader geometry as hidden from assistive technology when an equivalent text status exists.

Step 9: support reduced motion

Under prefers-reduced-motion: reduce:

  • replace continuous rotation, bounce, pulse, and shimmer with a static indicator or a single short state change;
  • keep status text, stage labels, and determinate values visible;
  • preserve the same layout and completion behavior;
  • avoid replacing an informative animation with an unexplained blank space.

A pause control is useful for a demonstration library, but product loading should normally end with the task rather than rely on the user to stop it.

Step 10: verify performance and behavior

Check:

no loader appears after content is ready
no forced minimum display duration
no horizontal overflow near 400 CSS pixels
no layout shift when content replaces the placeholder
no animation-driven layout thrashing
no hidden focus or trapped controls
no infinite loop after timeout
status copy matches the active task
progress value reflects real work
reduced-motion state remains understandable
error, retry, cancel, and completion states work

Use browser evidence at wide and narrow viewports. Where possible, test a fast path, slow path, error path, retry, and reduced-motion emulation.

Failure patterns

Reject or revise:

  • a full-page spinner for a local card update;
  • a generic spinner added to every asynchronous action;
  • a branded intro that delays ready content;
  • fake percentages that climb to 99 and wait;
  • shimmer across unrelated empty areas;
  • loading text that does not describe the task;
  • motion that continues behind completed content;
  • a skeleton that changes the eventual reading order;
  • animation of width, height, top, or left when a transform can express the same motion;
  • no timeout or error recovery for a long wait;
  • reduced motion that removes all feedback;
  • status announcements on every visual frame.

Output contract

Return:

Task and scope:
Expected and maximum duration:
Blocking posture:
Progress model:
Selected pattern and reason:
Visible status language:
Context preserved:
Geometry reserved:
Animation properties:
Reduced-motion state:
Timeout:
Error and retry:
Cancel or background behavior:
Semantic markup:
Performance evidence:
Wide and narrow browser evidence:
Remaining uncertainty:

Completion check

  • The loader corresponds to real work and the correct region.
  • The progress model is truthful.
  • Status copy names the active task.
  • Ready content is never delayed for animation.
  • Layout remains stable while content resolves.
  • Motion uses a small budget and stops on completion.
  • Reduced motion preserves meaning.
  • Timeout, error, retry, cancel, and preserved input are defined where relevant.
  • Determinate values and semantic attributes stay synchronized.
  • Wide and narrow browser behavior is verified.

Human documentation: ../../docs/guides/loading-experience.md.

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.