Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

loading-states-and-perceived-performance负载状态和感知性能

Agent Skill

loading-states-and-perceived-performance 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

624

周安装

25

GitHub Stars

6

下载量

202
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:loading-states-and-perceived-performance(负载状态和感知性能)
来源仓库:https://github.com/dembrandt/dembrandt-skills
仓库路径:skills/loading-states-and-perceived-performance
安装命令:
npx skills add https://github.com/dembrandt/dembrandt-skills --skill loading-states-and-perceived-performance
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/dembrandt/dembrandt-skills --skill loading-states-and-perceived-performance

简介

用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于研究检索类任务,可结合来源仓库和原始 README 核验具体用法。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限范围和安装路径。
  • 建议在安装前确认维护状态、是否会触发联网或文件读写操作。
  • loading-states-and-perceived-performance 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Loading States and Perceived Performance

Users don't mind waiting as much if they understand *what* they are waiting for and *how much* progress is being made. Perceived performance is the design work of making a system feel faster than it actually is.


Choosing the Right Loading State

Wait DurationBest PatternUse for
Short (< 1s)Inline Spinner / LoaderButton actions, small updates, quick data fetches
Medium (1s – 3s)Skeleton ScreenCards, lists, dashboards, profile pages
Long (> 3s)Determinate Progress BarFile uploads, complex exports, heavy processing
Full PageStaggered Entry / Animated SectionsInitial app load, hero sections, immersive transitions

Simple Cases: Spinners and Loaders

Use spinners for small, contained actions where the layout doesn't change significantly.

  • Button Spinners: Replace button text or sit alongside it. The button should enter a disabled state to prevent double-submissions.
  • Micro-Loaders: A small 16–24px circle for inline updates (e.g., saving a single field).
  • Animation Tip: A "spring-loaded" rotation (easing in and out) feels more premium than a constant linear rotation.
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.spinner {
  animation: spin 800ms cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

Skeleton Screens (Glimmer/Shimmer)

Skeleton screens provide a visual placeholder that mimics the layout of the final content. This reduces "layout shift" (CLS) and signals to the user exactly where the content will appear.

The Shimmer Effect

A subtle, moving gradient that travels across the skeleton elements.

.skeleton {
  background: var(--color-grey-100);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

Rules for Skeletons

  • Match the shape: If the final content is a round avatar, use a round skeleton. If it's a 2-line heading, use two bars of varying widths.
  • Stay Recessive: Skeletons should use your most subtle grey (--color-grey-100 or grey-50). They should not draw focus.
  • Fade into Reality: When data arrives, fade the actual content in over the skeleton (150–200ms) rather than snapping.

Fully Animated Sections

For major page transitions or initial loads, use a coordinated animation strategy.

Staggered Entry (Cascading)

Instead of the whole page appearing at once, animate sections in a sequence. This guides the user's eye from the most important content (hero) down to secondary areas.

.section {
  opacity: 0;
  transform: translateY(10px);
  animation: slide-up 400ms ease-out forwards;
}
/* Stagger by index */
.section:nth-child(1) { animation-delay: 100ms; }
.section:nth-child(2) { animation-delay: 200ms; }
.section:nth-child(3) { animation-delay: 300ms; }

@keyframes slide-up {
  to { opacity: 1; transform: translateY(0); }
}

Hero Section "Bloom"

For hero sections, you might use a more complex animation:

  1. Background image fades in slowly.
  2. Heading slides in with a slight overshoot (spring).
  3. CTA button appears last with a crisp fade-in or subtle color transition.

Advanced: Optimistic UI

The fastest UI is one that doesn't wait for the server at all.

  • The Pattern: Update the UI immediately assuming the server call will succeed. If it fails, roll back and show an error.
  • Use for: Liking a post, toggling a switch, renaming a folder, deleting a message.
  • Benefit: Instant gratification for the user, making the app feel "lightning fast."

Adding Delight to the Wait

Loading doesn't have to be a neutral experience. For waits longer than 2 seconds, consider adding brand personality and "delight" to keep the user engaged.

Brand-Aligned Micro-copy

Replace generic "Loading..." text with wording that reflects the brand's voice.

  • Technical: "Compiling data...", "Syncing with cloud..."
  • Playful: "Gathering pixels...", "Brewing your dashboard...", "Almost there!"
  • Professional: "Preparing your report...", "Verifying details..."

Branded Animations (Lottie/SVG)

For significant loading moments (initial app boot, complex data processing), replace the standard spinner with a small, brand-specific animation.

  • A designer's tool might show a pencil drawing a line.
  • A fitness app might show a pulsing heart or a moving runner icon.
  • A financial tool might show coins stacking or a chart line moving upward.

Progressive Storytelling

If a wait is consistently long (3s+), use the loading area to tell a small story or provide value:

  • Tips & Tricks: "Did you know you can use Ctrl+K to search?"
  • Process Transparency: Show what the system is doing: "Checking database..." → "Optimising results..." → "Finalising view..."

Visual Transitions (Arrival)

When transitioning from a loading state to content, use a crisp fade-in (150ms) to make the arrival feel like a reward. Avoid scaling the incoming content, as it can cause layout instability.


Review Checklist

  • Is the loading state appropriate for the expected wait duration (spinner vs skeleton)?
  • Does the skeleton screen match the physical layout of the incoming content?
  • Is there a subtle shimmer animation on skeletons to signal "active loading"?
  • Are buttons disabled during loading to prevent duplicate actions?
  • Does content fade in over skeletons (150–200ms) rather than blinking into existence?
  • For full-page loads, is a staggered entry used to guide the eye?
  • Is prefers-reduced-motion respected for all loading animations?
  • In "Optimistic UI" moments, is there a clear rollback path if the action fails?

Common Anti-Patterns

Anti-patternProblemFix
A global spinner that blocks the whole appHigh frustration, user cannot browse other areasUse contextual loaders or skeletons
Skeletons that don't match the final layoutMassive layout shift (CLS) when data arrivesMatch shapes and sizes exactly
Too many spinners on one pageVisual noise, feels like the whole app is brokenGroup loading states into a single container skeleton
Faster-than-light skeletonsShimmer animation that is too fast or high-contrastKeep shimmer slow (1.5s+) and very subtle

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.89%
按下载量换算79

Claude

30.62%
按下载量换算62

Cursor

18.57%
按下载量换算38

Gemini CLI

9.76%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills