param087/saas-ui-skills/empty-and-loading-states
Claude Code and agent skill by param087/saas-ui-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when handling the non-happy UI states — skeleton loaders, empty states with a clear CTA, error states with retry, and optimistic updates. Covers the states agents forget that make an app feel broken or polished.
Install
npx vskill@latest install param087/saas-ui-skills/empty-and-loading-statesSKILL.md
The same SKILL.md was published earlier as param087/saas-ui-skills/empty-and-loading-states.
Empty & Loading States
Overview
The difference between a prototype and a product is the non-happy states. Every data view has at least four: loading, empty, error, and success. Agents ship the success state and leave the rest blank — which reads as broken. Design all four, every time.
When to use
- Any component that fetches data.
- A list/table/dashboard that can be empty.
- Mutations that should feel instant (optimistic UI).
The four states
Skeletons that match the layout
Mirror the real content's shape so the page doesn't jump when data arrives:
Prefer skeletons over spinners for content regions — they reduce perceived wait and layout shift. A spinner is fine for buttons and small inline actions.
Empty state = an opportunity
A blank screen should orient and prompt action — icon, one-line explanation, and a primary CTA:
Distinguish first-use empty ("Create your first…") from no-results empty ("No matches for 'foo' — clear filters").
Error state with retry
Optimistic updates
Apply the change immediately, roll back on failure so the UI feels instant:
Pitfalls
- Only the success state — blank loading/empty/error reads as broken.
- Full-page spinner for partial loads — skeleton the region instead.
- Layout shift when data replaces the loader — match skeleton dimensions.
- Generic empty state — first-use vs no-results need different copy/CTAs.
- Error with no retry — dead end; always offer a way forward.
- Optimistic update with no rollback — UI lies when the request fails.
Hand-off
The polish layer for data-tables, dashboard-layout, and any fetched view; failures surface through notifications-and-toasts.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/empty-and-loading-states/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/param087/saas-ui-skills/empty-and-loading-states)