component-refactoring
CommunityRefactor complex React components
AuthorCloudDevCrusader
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the challenge of maintaining and improving the quality of complex React components within the Dify frontend, ensuring code maintainability, testability, and performance.
Core Features & Use Cases
- Complexity Reduction: Identifies and refactors components exceeding complexity or line count thresholds.
- Pattern Application: Applies established patterns like custom hook extraction, sub-component splitting, and conditional logic simplification.
- Use Case: A developer encounters a React component that is over 300 lines long and has a high complexity score. They use this Skill to guide the refactoring process, breaking it down into smaller, manageable pieces and improving its overall structure.
Quick Start
Use the component-refactoring skill to refactor the component located at 'web/app/components/app/index.tsx'.
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: component-refactoring Download link: https://github.com/CloudDevCrusader/riddle-rush-mono-repo/archive/main.zip#component-refactoring 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.