What problem does it solve? Frontend code often introduces XSS vulnerabilities, leaks sensitive data to the client, and mishandles navigation or third-party integrations. This Skill provides concrete security rules and review heuristics for Next.js App Router codebases so dynamic content, forms, redirects, and session UI are built safely. ## Core Features & Use Cases - XSS Prevention: Enforces output sanitization, restricts dangerouslySetInnerHTML, and promotes allowlist-based rendering of rich content. - Data Exposure Control: Prevents PII, tokens, and secrets from reaching client components, props, logs, or markup. - Secure Navigation & Integrations: Validates redirect targets, external link attributes, third-party scripts, and CSP coordination with backend. - Use Case: When reviewing a pull request that renders user-generated content in a Next.js page, apply this Skill to detect unsanitized HTML, unnecessary use client components with sensitive props, and unvalidated query-param redirects. ## Quick Start Review this Next.js component for XSS risks, sensitive data exposure, and unsafe redirects using the frontend security rules.