This handles the messy work of breaking down overgrown React components in the Dify frontend. It kicks in when complexity scores hit 50+ or line counts exceed 300, using metrics from their analyze-component tooling. The patterns are practical: extract custom hooks for state management, split UI into focused sub-components, flatten nested conditionals with lookup tables, and pull modal management into dedicated hooks. It's opinionated about Dify's conventions, like where hooks live and how to use their existing form infrastructure. The refactor-component command generates structured prompts based on actual code analysis. If you're staring at a 500-line component wondering where to start cutting, this gives you a methodical approach that fits how Dify's codebase is already organized.
npx -y skills add langgenius/dify --skill component-refactoring --agent claude-codeInstalls into .claude/skills of the current project.
Select a file.
mindrally/skills
giuseppe-trisciuoglio/developer-kit
syncfusion/react-ui-components-skills
supercent-io/skills-template
binjuhor/shadcn-lar