什麼是 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