什么是 code-refactoring?
代码重构指南,当用户要求重构组件或功能以及实施需要代码重构的计划时,使用此技能来指导您。 来源:rakaadi/agent-kit。
代码重构指南,当用户要求重构组件或功能以及实施需要代码重构的计划时,使用此技能来指导您。
通过命令行快速安装 code-refactoring AI 技能到你的开发环境
来源:rakaadi/agent-kit。
This skill specializes in refactoring React Native components within the Ecalyptus healthcare mobile application. It focuses on eliminating deeply nested conditionals, optimizing array operations and component re-renders, improving RTK Query usage patterns, and enhancing code readability while maintaining React Compiler compatibility and ESLint compliance.
User Request: "This component has nested ifs and the list re-renders too much when I update a single item's state"
I can see two issues here. First, the nested conditionals in your render logic make it hard to understand the component's states. We can refactor this using ts-pattern for clearer state matching. Second, your mapped list items maintain their own expanded state, which gets lost on parent re-renders. We should lift that state to the parent component.
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/rakaadi/agent-kit --skill code-refactoring代码重构指南,当用户要求重构组件或功能以及实施需要代码重构的计划时,使用此技能来指导您。 来源:rakaadi/agent-kit。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/rakaadi/agent-kit --skill code-refactoring 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/rakaadi/agent-kit