·code-refactoring
</>

code-refactoring

代码重构指南,当用户要求重构组件或功能以及实施需要代码重构的计划时,使用此技能来指导您。

5安装·0热度·@rakaadi

安装

$npx skills add https://github.com/rakaadi/agent-kit --skill code-refactoring

如何安装 code-refactoring

通过命令行快速安装 code-refactoring AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/rakaadi/agent-kit --skill code-refactoring
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:rakaadi/agent-kit。

SKILL.md

查看原文

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
分类
</>开发工具
认证
收录时间
2026-02-22
更新时间
2026-03-11

Browse more skills from rakaadi/agent-kit

快速解答

什么是 code-refactoring?

代码重构指南,当用户要求重构组件或功能以及实施需要代码重构的计划时,使用此技能来指导您。 来源:rakaadi/agent-kit。

如何安装 code-refactoring?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/rakaadi/agent-kit --skill code-refactoring 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/rakaadi/agent-kit

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-02-22