What problem does it solve? Web applications often ship with security vulnerabilities, deprecated APIs, and compatibility issues that fail Lighthouse audits and expose users to attacks like XSS, clickjacking, and supply-chain compromises. This Skill provides a structured checklist and concrete code patterns to audit and fix these issues. ## Core Features & Use Cases - Security Hardening: Enforce HTTPS, configure CSP headers with nonces, deploy Trusted Types against DOM-XSS, pin third-party scripts with Subresource Integrity, and set secure cookies and headers (HSTS, X-Content-Type-Options, Referrer-Policy). - Compatibility & Deprecation Cleanup: Replace deprecated APIs like document.write, synchronous XHR, and Application Cache with modern alternatives such as fetch, dynamic script loading, and Service Workers. - Code Quality & Performance: Apply semantic HTML, passive event listeners, event delegation, memory cleanup with AbortController, and safe source map configuration. - Use Case: Before launching a site, ask the AI to audit your HTML and JavaScript against the security and compatibility checklist to catch mixed content, vulnerable dependencies, and missing CSP headers. ## Quick Start Audit my website's HTML and JavaScript files for security vulnerabilities and deprecated APIs using the best practices checklist.