component-refactoring
langgenius · Development
重构Dify前端高复杂度React组件。当`pnpm analyze-component --json`显示复杂度>50或行数>300,或用户要求代码拆分、钩子提取、复杂度降低,或`pnpm analyze-component`警告需重构后再测试时使用;避免用于简单/结构良好的组件、第三方封装或用户明确要求测试而不重构的情况。
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.
npx skills add https://github.com/langgenius/dify --skill component-refactoring
星标 144995 · 安装量 3607