Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component --json` shows complexity > 50 or lineCount > 300, when the user…
Dify Component Refactoring Skill Refactor high-complexity React components in the Dify frontend codebase with the patterns and workflow below. Complexity Threshold: Components with complexity > 50 (measured by pnpm analyze-component) should be refactored before testing. Quick Reference Commands (run from web/) Use paths relative to web/ (e.g., app/components/...). Use refactor-component for refactoring prompts and analyze-component for testing prompts and metrics. cd web # Generate refactoring prompt pnpm refactor-component <path>
don't have the plugin yet? install it then click "run inline in claude" again.