What problem does it solve?
It reduces security weaknesses, compatibility issues, and code-quality gaps by providing concrete, actionable checks aligned with modern web and Lighthouse best practices.
Core Features & Use Cases
- Security hardening: Enforces HTTPS, recommends HSTS, and specifies Content Security Policy (CSP) patterns including nonces, plus protective security headers to mitigate common web attacks.
- Safe code patterns: Prevents XSS via correct handling of user input (prefer textContent, sanitize HTML), avoids vulnerable JavaScript patterns (e.g., prototype pollution-prone merges), and uses secure cookie attributes.
- Compatibility and reliability: Ensures valid HTML structure, correct doctype/encoding/viewport, uses feature detection with fallbacks, avoids deprecated APIs, and promotes robust error handling without console noise.
- Performance and quality: Recommends non-blocking loading patterns, event delegation, memory cleanup, source map hygiene, and semantic HTML for maintainability.
Quick Start
Review your current frontend codebase and apply the checklist from this skill to address security headers, CSP, HTTPS, input sanitization, deprecated API usage, and performance/quality issues.