component-refactoring

Official

Reduce frontend cognitive complexity through refactoring.

Authorlanggenius
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Refactor high-complexity React components in the Dify frontend to improve maintainability, testability, and scalability. Triggered when static analysis reports complexity > 50 or large line counts, or when users request code-splitting or hook extraction.

Core Features & Use Cases

  • Complexity-driven refactoring: Extract hooks, split components, and restructure large files.
  • Workflow guidance: Provides a clear pattern library and steps to implement refactors.
  • Quality outcomes: Yields more maintainable code and easier future testing.

Quick Start

cd web pnpm refactor-component <path>

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 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/langgenius/dify/archive/main.zip#component-refactoring

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository