·code-refactoring
</>

code-refactoring

Guide for code refactoring, use this skill to guide you when user asked to refactor a components or functions and when an implementation of a plan requiring a code refactoring.

5Installs·0Trend·@rakaadi

Installation

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

How to Install code-refactoring

Quickly install code-refactoring AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/rakaadi/agent-kit --skill code-refactoring
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: rakaadi/agent-kit.

SKILL.md

View raw

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.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/rakaadi/agent-kit --skill code-refactoring
Category
</>Dev Tools
Verified
First Seen
2026-02-22
Updated
2026-03-10

Browse more skills from rakaadi/agent-kit

Quick answers

What is code-refactoring?

Guide for code refactoring, use this skill to guide you when user asked to refactor a components or functions and when an implementation of a plan requiring a code refactoring. Source: rakaadi/agent-kit.

How do I install code-refactoring?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/rakaadi/agent-kit --skill code-refactoring Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

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

Details

Category
</>Dev Tools
Source
skills.sh
First Seen
2026-02-22