Topic · Development

Best refactoring skills for Claude Code, Codex and other agents.

Skills that restructure existing code to improve readability and design without changing its behaviour.
skills
1,154
official
61

Refactoring skills, ranked

Ranked by score. Sort bymost stars,trending,newest,recently updated

Refactoring skills, ranked
#SkillRepositoryStarsUsed inTokensAuto-checkLicenceUpdated
1

Rules for structuring React components with composition instead of boolean props, covering compound components, lifted state, variants and React 19 changes.

vercel-labs/openreview1.7k58 repos~721Automated safety check: PassMIT7 mo ago
2

NestJS best practices and architecture patterns for building production-ready applications.

rolling-scopes/rsschool-app10k6 repos~1.2kAutomated safety check: PassMIT3 days ago
3

Behavioral guidelines to reduce common LLM coding mistakes. An agent skill from akash-network/node.

akash-network/node1.1k22 repos~577Automated safety check: PassMITyesterday
4

Refactor high-complexity React components in Langflow frontend.

langflow-ai/langflow156k—~3.5kAutomated safety check: PassMITtoday
5

Plans and carries out moving non-host-specific code and its tests from the OpenHuman core into vendored tiny submodule libraries, then releases the submodule and re-pins the host.

tinyhumansai/openhuman41k—~2.6kAutomated safety check: PassGPL-3.0today
6

Searches and rewrites code by syntax-tree shape across 25 languages with ast-grep, for codemods, structural queries and YAML lint rules, using a Python wrapper script.

code-yeongyu/oh-my-openagent70k—~3.3kAutomated safety check: PassMITtoday
7

Guides refactoring in phases based on Martin Fowler's method: research, test coverage check, planning and small tested steps, with your approval at each phase.

luongnv89/claude-howto42k—~3kAutomated safety check: PassMIT7 days ago
8

A skill your agent uses when the user asks to run Codex CLI (codex exec, codex resume) or references OpenAI Codex for code analysis, refactoring, or automated editing

skills-directory/skill-codex1.5k3 repos~1.8kAutomated safety check: PassMIT23 days ago
9

Forces the laziest solution that actually works, simplest, shortest, most minimal.

DavidObando/gsharp5648 repos~1.7kAutomated safety check: PassMITtoday
10

Refactor and review SwiftUI view files with strong defaults for small dedicated subviews, MV-over-MVVM data flow, stable view trees, explicit dependency injection, and correct Observation usage.

Dimillian/Skills4k5 repos~2kAutomated safety check: PassMIT6 mo ago
11

React and Next.js performance optimization guidelines from Vercel Engineering.

sanity-io/sanity6.4k130 repos~1.6kAutomated safety check: PassMITtoday
12

Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.

farm-fe/farm5.6k3 repos~1.1kAutomated safety check: PassMIT15 days ago
13

Meta-skill that turns docs, APIs, code or specs into a reusable skill with references and a quality gate, and refactors skills that are unclear or misfire.

tradecatlabs/vibe-coding-cn17k1 repo~2.4kAutomated safety check: PassMIT6 days ago
14
14.Scraps ReviewOfficial

Filter large Sentry Scraps design-system migration PRs for review by separating mechanical import-path changes, generated baseline updates, snapshot mocks, and pure renames from substantive…

getsentry/sentry45k—~1.2kAutomated safety check: NotesUnknowntoday
15

Describes seven Rust design patterns for the RTK CLI filter modules, with when to use each, RTK examples, and notes on when a pattern is overkill.

rtk-ai/rtk83k—~1.9kAutomated safety check: PassApache-2.0today
16

Enforces one repository's React and TypeScript module layout for code under src/: source-root imports, feature barrels, deliberate exports and no deep imports.

siteboon/claudecodeui14k—~2.6kAutomated safety check: PassAGPL-3.02 days ago
17

Use when implementing or refactoring React/TypeScript components and the task requires decisions about component ownership, feature boundaries…

langgenius/dify158k—~626Automated safety check: PassUnknowntoday
18

Applies opinionated production Python conventions chosen by the project's Python version: modern type syntax, pathlib, explicit checks and interface guidance.

docling-project/docling68k—~1.5kAutomated safety check: PassApache-2.0yesterday
19

Finds and implements evidence-backed simplifications in the ego-lite repository, such as dead code, duplicated state and speculative abstractions, without hiding behavior changes.

citrolabs/ego-lite17k—~1.2kAutomated safety check: PassMIT14 days ago
20

Reviews generated or changed production code against Clean Code, SOLID, DRY, KISS, YAGNI and LLM-specific failure modes before it ships, in any language.

amElnagdy/guard-skills1.3k2 repos~4.3kAutomated safety check: PassMIT3 mo ago
21

Reviews and converts UI code to Chakra UI v3, producing a critique, rewritten code or both, from plain HTML, Tailwind, CSS Modules or styled-components.

chakra-ui/chakra-ui41k—~2.8kAutomated safety check: PassMITtoday
22

Guides systematic, test-backed refactoring in the style of Martin Fowler, moving through research, planning and small incremental changes with your approval at each phase.

luongnv89/claude-howto42k—~3.1kAutomated safety check: PassMIT7 days ago
23

A skill your agent uses when writing new features, fixing bugs, or refactoring code.

hellangleZ/burn-in-cceverywhere-ralph11211 repos~2.4kAutomated safety check: PassNo licence8 mo ago
24
24.Nuqs

nuqs (type-safe URL query state) best practices for Next.js and other React frameworks.

trycompai/crm11k1 repo~1.7kAutomated safety check: PassMIT26 days ago
25

Find deepening opportunities in a codebase, informed by the domain language in CONTEXT.md and the decisions in docs/adr/.

ywwynm/EverythingDone14415 repos~1.3kAutomated safety check: PassGPL-3.023 days ago
26

Survey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute.

fossasia/eventyay-interpretation1.6k10 repos~3.7kAutomated safety check: WarnMIT2 days ago
27

A code-change gate for the iPolloWork repository: search and reuse first, keep one source of truth, justify every new file or dependency, and audit the change.

Devin-AXIS/iPolloWork6.7k—~2.7kAutomated safety check: PassUnknownyesterday
28

Perform a refactor pass focused on simplicity after recent changes. Use when the user asks for a refactor/cleanup pass, simplification, or dead-code…

star-history/star-history9.6k1 repo~168Automated safety check: PassMIT25 days ago
29

This skill should be used when analyzing technical debt in a codebase, documenting code quality issues, creating technical debt registers, or assessing code maintainability.

ailabs-393/ai-labs-claude-skills4542 repos~3.9kAutomated safety check: PassMIT11 mo ago
30

Readable Python code rules inspired by The Art of Readable Code.

crazyguitar/pysheeet8.2k—~2.4kAutomated safety check: PassMITtoday
31

A skill your agent uses when designing, generating an MVP blueprint for, auditing, troubleshooting, refactoring, or explaining an agentic harness for any domain.

DenisSergeevitch/agents-best-practices2.4k—~7.4kAutomated safety check: PassMIT2 days ago
32

Svelte 5 runes, snippets, SvelteKit patterns, and modern best practices for TypeScript and component development.

SikandarJODD/cnblocks4301 repo~810Automated safety check: PassMIT3 mo ago
33

A skill your agent uses for Zhihu++ maintenance work that scans Kotlin main sources for low-call functions, structurally similar function bodies, dead code, pure forwarding wrappers, pointless…

zly2006/zhihu-plus-plus4.2k—~3.7kAutomated safety check: PassAGPL-3.0today
34

Applies principles from Robert C. An agent skill from GabrielMartinMoran/mind.

GabrielMartinMoran/mind1486 repos~1.1kAutomated safety check: PassMIT7 days ago
35

Avoid common Ruby and Rails antipatterns that degrade maintainability and performance.

doorkeeper-gem/doorkeeper5.5k—~1.1kAutomated safety check: PassMITyesterday
36

Reviews RTK's Rust code for over-engineering and verbose patterns, applying idioms like iterator chains and early returns while protecting a specific list of constraints from being simplified away.

rtk-ai/rtk83k—~1.1kAutomated safety check: PassApache-2.0today
37

Core best practices for the Dinero.js money library. An agent skill from dinerojs/dinero.js.

dinerojs/dinero.js6.8k—~756Automated safety check: PassMITyesterday
38

Deep dive into software architecture for macOS. An agent skill from KartikLabhshetwar/better-shot.

KartikLabhshetwar/better-shot2.4k2 repos~1.4kAutomated safety check: PassUnknown6 days ago
39

Facilitates deliberate skill development during AI-assisted coding.

DrCatHicks/learning-opportunities2.5k—~2.5kAutomated safety check: PassCC-BY-4.01 mo ago
40

Inspect, review, or apply authorized triage decisions to SonarCloud issues and security hotspots; also review the Sonar helpers.

netdata/netdata81k—~2.8kAutomated safety check: NotesGPL-3.0today
41

Build new Plate plugins with Slate-first architecture, sane typing, and explicit React/Plate wrapper boundaries.

udecode/plate17k—~2.3kAutomated safety check: PassUnknowntoday
42

Stream-JSON chaining for multi-agent pipelines, data transformation, and sequential workflows

ruvnet/agentic-flow8165 repos~3.2kAutomated safety check: PassNo licence21 days ago
43

Generate a persistent .nexus-map/ knowledge base that lets any AI session instantly understand a codebase's architecture, systems, dependencies, and change hotspots.

Haaaiawd/Nexus-skills1661 repo~2.5kAutomated safety check: NotesNo licence6 mo ago
44

Build, review, refactor, or architect ASP.NET Core web applications using current official guidance for .NET web development.

fanslead/ReverseProxy.Store1632 repos~1.4kAutomated safety check: PassApache-2.01 mo ago
45

Delegate coding tasks to Codex, Claude Code, or Pi agents via background process.

TermiX-official/cryptoclaw1008 repos~2.7kAutomated safety check: PassMIT4 mo ago
46

Plans a refactor from a code dependency graph, previews renames before applying them and checks that the final impact matches the plan.

tirth8205/code-review-graph32k1 repo~332Automated safety check: PassMITyesterday
47

Simplify and refine recently modified code while preserving functionality.

millionco/react-doctor15k—~1.2kAutomated safety check: PassUnknowntoday
48

Migrate codebase from try/catch or Promise-based error handling to better-result.

nikivdev/ts820—~1.4kAutomated safety check: PassMIT7 mo ago

Questions, answered from the data.

What is the best refactoring skill?

React Composition Patterns (official) from vercel-labs/openreview ranks first of the 1,154 refactoring skills listed here, with the highest score: its repository has 1.7k GitHub stars, 58 other GitHub owners carry a copy, its SKILL.md loads about 721 tokens and it passes the automated safety check with no findings. Next come Nestjs Best Practices and Guidelines.

Which refactoring skills are official?

61 of the 1,154 refactoring skills are official, published by the vendor's own GitHub organization: React Composition Patterns, Vercel React Best Practices, Scraps Review, Code Guidelines, Gitnexus Refactoring and 56 more.

How are these skills ranked?

By Skill Navigator score, which combines the GitHub stars of the skill's repository (shared across that repo's skills and discounted for large collections), how many other GitHub owners carry a copy of the skill, and automated SKILL.md quality checks, minus penalties for safety-check warnings and for each further skill from the same repository. Skills that fail the safety check are not listed.