erichowens avatar

Reactive Dashboard Performance

This is for when your dashboard feels sluggish or your integration tests keep timing out. It teaches Linear and Vercel-style performance patterns: skeleton-first loading, aggressive React Query caching (5min stale, 30min cache), and code splitting strategies. The real value is in the testing guidance. It walks through the async testing footguns that cause timeouts (using getBy instead of findBy, missing mocks, wrong query selectors) and gives you a diagnostic protocol starting with screen.debug(). The performance budget is concrete: skeleton in 16ms, first data under 100ms, full interactive under 200ms. Good for teams building data-heavy React dashboards who need both speed and reliable tests.

skills.sh installs
132
GitHub stars
113
last updated
Jun 3, 2026

Install

$ npx -y skills add erichowens/some_claude_skills --skill reactive-dashboard-performance --agent claude-code

Installs into .claude/skills of the current project.

Files

Reactive Dashboard Performance

Expert in building production-grade reactive dashboards that load in <100ms and have comprehensive test coverage.

Core Expertise

Performance Patterns (Linear, Vercel, Notion-grade)

  1. Skeleton-First Loading

    • Render skeleton immediately (0ms perceived load)
    • Stream in data progressively
    • Never show spinners for <200ms loads
  2. Aggressive Caching

    • React Query with staleTime: 5min, cacheTime: 30min
    • Optimistic updates for mutations
    • Prefetch on hover/mount
  3. Code Splitting

    • Route-based splitting (Next.js automatic)
    • Component-level lazy() for heavy widgets
    • Preload critical paths
  4. Memoization Strategy

    • useMemo for expensive computations
    • React.memo for pure components
    • useCallback for stable references

Testing Reactive Dashboards

  1. Mock Strategy

    • Mock at service boundary (React Query, analytics)
    • Never mock UI components (test real DOM)
    • Use MSW for API mocking when possible
  2. Async Handling

    // WRONG - races with React
    render(<Dashboard />);
    const element = screen.getByText('Welcome');
    

Sponsors

Details

Repository
github.com/erichowens/some_claude_skills
Category
Debugging
First seen
Jun 3, 2026

More from erichowens/some_claude_skills

All 73

Recommended

More Debugging
1brianlovin avatarfix-sentry-issuesbrianlovin/claude-configfix sentry issues122skills.sh installs
2erichowens avatarreact-performance-optimizererichowens/some_claude_skillsreact performance optimizer118skills.sh installs
3agentworkforce avatardebugging-websocket-issuesagentworkforce/relayIf you've ever seen "RSV1 must be clear" or "Invalid frame header" errors and wondered why your WebSocket is receiving HTTP garbage,...0skills.sh installs
4butterbase-ai avatardebug-rlsbutterbase-ai/butterbase-skillsWhen your frontend users complain they can't see their data or they're seeing everyone else's data, this is the protocol to follow.0skills.sh installs
5cclank avatarseedance-debuggercclank/lanshu-awesome-ai-video-kit诊断 Seedance 2.0 生成视频时出现的常见问题(人物 ID 漂移/双胞胎/字幕/Logo/风格漂移/延长跳变/画质劣化/特效不对/中文发音/音色不准/结尾噪音 等 12 类),定位根因并给出修复后的提示词。用于"我的提示词生成出来不对"、"视频里出现奇怪的字幕"、"人脸不像参考图"、"出现两个一样的人物"、"0skills.sh installs
6davila7 avatarError Resolverdavila7/claude-code-templatesSystematic error diagnosis and resolution using first-principle analysis. Use when encountering any error message, stack trace, or unexpected behavior. Supports0skills.sh installs