component-refactoring by langgenius

Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component --json` shows complexity > 50 or lineCount > 300, when the user asks for code splitting, hook extraction, or complexity reduction, or when `pnpm analyze-component` warns to refactor before testing; avoid for simple/well-structured components, third-party wrappers, or when the user explicitly wants testing without refactoring.

Coding
125,900 Stars
19,604 Forks
0 Scripts
Updated Jan 14, 2026, 02:04 PM

Why Use This

This skill enables the systematic reduction of technical debt in the Dify frontend by refactoring React components that exceed complexity or line count thresholds. It ensures code maintainability by applying standardized patterns like hook extraction and component splitting.

Use Cases

  • Refactoring high-complexity React components when complexity scores exceed 50 or line counts exceed 300.
  • Extracting custom hooks for state management and business logic to simplify UI components.
  • Splitting monolithic JSX structures into focused sub-components and smaller directory-based modules.

Skill Snapshot

Auto scan of skill assets. Informational only.

Valid SKILL.md

Checks against SKILL.md specification

Source & Community

Skill Version
5bf4114
Community
125,900 19,604
Updated At Jan 14, 2026, 02:04 PM

Skill Stats

SKILL.md 484 Lines
Total Files 4
Total Size 45.4 KB
License NOASSERTION

Signals & Permissions

Type
Status
Detailed Findings
EXE Scripts
No scripts
-
Network Access
None detected
-
Allowed Tools
None
-