mcpField

component-refactoring

langgeniusDevelopment3.7k installs

About component-refactoring

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.

Install

Copy the command and run it in a terminal.

$npx skills add https://langgenius/dify --skill component-refactoring

After installing, type/component-refactoringin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
complexity-patterns.md
component-splitting.md
hook-extraction.md

Comments

Markdown supported