Skill / SKILL.md

Component Refactoring

Charlie85270/Dorothy

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.
2 views 359 repository stars 0 commentsUpdated Nov 28, 2026
Overview

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.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/Charlie85270/Dorothy' skill-source

Use the complete skill-source/.agents/skills/component-refactoring directory with your client’s skill installer.

  • .agents/skills/component-refactoring

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory .agents/skills/component-refactoring

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
b9d5f563d1b3ce922bec777336d43c50209891d1f66afb4efadc05b10bb8ffb5
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills