frontend-refactor
CommunityRefactor frontend code for quality.
Authordonchrillo
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses common frontend code smells and security vulnerabilities, leading to more maintainable, performant, and secure web applications.
Core Features & Use Cases
- Identify & Fix Code Smells: Detects and provides solutions for issues like large functions, XSS vulnerabilities, magic strings, and global state.
- Enhance Security: Offers patterns for preventing XSS, CSRF, and implementing Content Security Policies.
- Improve CSS Practices: Guides on eliminating CSS duplication, using variables, and consolidating media queries.
- PWA Patterns: Demonstrates service worker strategies for offline support and performance.
- Use Case: A developer notices their React component functions are becoming too long and difficult to test. They use this Skill to learn how to break them down into smaller, more manageable units and apply best practices for state management.
Quick Start
Use the frontend-refactor skill to refactor a large monolithic function by extracting logical blocks into smaller, focused functions.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: frontend-refactor Download link: https://github.com/donchrillo/temu/archive/main.zip#frontend-refactor Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.