Angular ssr hydration review

From VincentChuWaiChow/vanguard-frontier-agentic · View interactive version

Angular ssr hydration review is an AI agent skill from the GitHub repository VincentChuWaiChow/vanguard-frontier-agentic. Statically review Angular SSR bootstrap configuration and component templates for hydration-mismatch risk (NG0500-class errors), unjustified ngSkipHydration usage, and direct-DOM-manipulation patterns that bypass Angular's template-owned DOM model, grounded in Angular's own hydration guide and error

How to use this skill

Skill file

Angular SSR & Hydration Review

Purpose

Review Angular server-side-rendered bootstrap configuration and component templates for hydration-mismatch risk without re-litigating Signals/change-detection architecture, RxJS-only legacy code, or a full zoneless-migration plan in every response. This skill exists so hydration correctness — whether the DOM Angular produces on the client actually matches the DOM the server sent, per Angular's own reconciliation model — stays a focused, verifiable review instead of a vague "SSR looks fine" pass.

When to use

Use this skill when the user asks to:

Do not use this skill for:

Source priority (official Angular skills first)

Consult sources in this fixed order, and label findings by which layer they draw from:

  1. The official Angular team's angular-developer skill (github.com/angular/skills) is the AUTHORITATIVE primary source for idiomatic Angular SSR/hydration — provideClientHydration(), withI18nSupport(), withEventReplay(), incremental hydration, and template-driven (Angular-owned) DOM. Prefer its idioms over memory.
  2. Context7 angular_dev docs (/websites/angular_dev, or the version-pinned /websites/v20_angular_dev) confirm hydration-feature availability and the NG0500 mechanism against the repo's pinned @angular/core major (read package.json first) — hydration support landed and matured incrementally, so the official skill states the modern shape and the versioned docs confirm it applies to THIS repo's major.
  3. This skill's static-review judgment (hydration-mismatch detection, SSR-path-vs-browser-guarded classification, ngSkipHydration tech-debt rules, sanitization-bypass detection, pre-hydration accessibility checks) is the review layer applied ON TOP of 1 and 2.

Where guidance conflicts: the official Angular angular-developer skill + version-matched angular_dev docs WIN on "what is idiomatic Angular" (correct hydration setup and the recommended fix shape). THIS skill governs "what to flag in review" (which DOM-mutation, ngSkipHydration, i18n, or sanitization patterns rise to a HIGH/MEDIUM finding and why). Never let this skill's flagging override an idiom the official skill and pinned docs endorse; conversely, an idiom being official does not exempt a concrete hydration-mismatch or sanitization-bypass defect from being flagged.

Context7 Documentation Protocol

Lean operating rules

References

Load these only when needed:

Response minimum

Return, at minimum:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.