performance-security

Audit React applications for performance, accessibility, and security issues.

278|29|Updated Nov 4, 2025
One-click install
npx skills add https://github.com/MadAppGang/claude-code --skill performance-security
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-security
Source: https://github.com/MadAppGang/claude-code/tree/main/plugins/frontend/skills/performance-security
Command: npx skills add https://github.com/MadAppGang/claude-code --skill performance-security

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires rollup-plugin-visualizer, dompurify.

What problem does it solve?

Ensuring React applications are performant, accessible, and secure requires adherence to many best practices across different domains. This Skill consolidates critical guidelines for production-ready apps.

Core Features & Use Cases

  • Performance Optimization: Implement code-splitting, image optimization (WebP, lazy loading), and leverage the React Compiler for speed.
  • Accessibility (a11y): Ensure WCAG AA compliance with semantic HTML, ARIA attributes, keyboard navigation, and color contrast.
  • Security Hardening: Prevent XSS, protect secrets, validate all untrusted data, and implement Content Security Policy.
  • Use Case: Audit an existing React application for common security vulnerabilities, identify areas for performance improvement (e.g., large bundle sizes), and ensure all interactive elements are keyboard accessible.

Quick Start

Use the performance-security skill to audit the current project for common security vulnerabilities.

Frequently Asked Questions about performance-security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent XSS vulnerabilities in React applications?

XSS prevention in React requires validating all untrusted data, sanitizing HTML with libraries like DOMPurify, and implementing Content Security Policy headers. React's default escaping protects against most attacks, but user-generated content and third-party scripts need explicit hardening.

What's the best way to reduce React bundle size and improve performance?

Implement code-splitting with route-based lazy loading, optimize images with WebP and lazy loading, and leverage the React Compiler for speed. Visualize your bundle using rollup-plugin-visualizer to identify and eliminate large dependencies.

How do I ensure my React app meets WCAG AA accessibility standards?

Use semantic HTML, add ARIA attributes where needed, ensure keyboard navigation on all interactive elements, and maintain sufficient color contrast. Test with assistive technologies and manual review to confirm full compliance.

Can I audit an existing React application for security and performance issues?

Yes. Audit for common vulnerabilities like XSS and unvalidated inputs, analyze bundle size with visualization tools, check for lazy-loaded routes and code-splitting opportunities, and validate keyboard accessibility across all interactive components.

Does React Compiler support code-splitting and lazy loading patterns?

The React Compiler works with compiler-friendly code and pure components. Combine it with route-based lazy loading and serializable props to maximize performance gains alongside code-splitting strategies.

Why do image optimization and lazy loading matter for React performance?

Unoptimized images bloat bundle size and slow page load. WebP format and lazy loading defer off-screen images, reducing initial payload and improving Core Web Vitals—critical for user experience and SEO.