hydration-guardian

Installation
SKILL.md

Hydration Guardian

Overview

Ensures zero-mismatch integrity between server-rendered HTML and client-side React trees. Covers hydration error diagnosis, selective hydration via Suspense boundaries, deterministic data bridges with the React 19 use() hook, 'use cache' for eliminating data drift, two-pass rendering for client-only content, React 19's single-diff hydration error reporting for pinpointing exact mismatches, and automated validation of rendered DOM state.

When to use: Debugging hydration mismatch errors, fixing text content mismatches, handling browser extension DOM pollution, implementing deterministic data bridges, optimizing SSR/client hydration performance, setting up error monitoring with onRecoverableError.

When NOT to use: Client-only React applications without SSR, static sites without hydration, API-only backends.

Quick Reference

Pattern Approach Key Points
Selective hydration <Suspense fallback={...}> boundary Hydrates independently; prioritizes user interaction
Deterministic bridge use(serverPromise) instead of useEffect Direct server-to-client data transition (React 19)
Cache directive 'use cache' in data fetchers Share exact server result with client during hydration
Two-pass rendering useState + useEffect for client-only First render matches server; second adds client content
Client-only skip next/dynamic with ssr: false Exclude component from server render entirely
Related skills
Installs
59
GitHub Stars
11
First Seen
Feb 20, 2026