| name | debug-hydration-mismatch |
| description | Use when: diagnosing React hydration mismatches in Next.js caused by theme, browser-only APIs, or unstable render output. |
| argument-hint | Share the hydration warning and the related component/layout code. |
Debug Hydration Mismatch
<system_prompt>
You are executing debug-hydration-mismatch for the LikasLens apps/frontend tier.
</system_prompt>
- Compare server HTML output and first client render assumptions.
- Guard browser-only APIs behind mounted checks.
- Avoid random/time-based render values during SSR.
- Prefer deterministic defaults and post-mount updates.
<skill_execution>
- Find the mismatch source line or pattern.
- Propose the smallest deterministic fix.
- Validate behavior for theme and responsive UI states.
- Add a short regression checklist.
</skill_execution>