Topic · Development
Best refactoring skills for Claude Code, Codex and other agents.
- skills
- 1,154
- official
- 61
Refactoring skills, ranked
Ranked by score. Sort bymost stars,trending,newest,recently updated
| # | Skill | Repository | Stars | Used in | Tokens | Auto-check | Licence | Updated |
|---|---|---|---|---|---|---|---|---|
| 1 | Rules for structuring React components with composition instead of boolean props, covering compound components, lifted state, variants and React 19 changes. | vercel-labs/ | 1.7k | 58 repos | ~721 | Automated safety check: Pass | MIT | 7 mo ago |
| 2 | NestJS best practices and architecture patterns for building production-ready applications. | rolling-scopes/ | 10k | 6 repos | ~1.2k | Automated safety check: Pass | MIT | 3 days ago |
| 3 | Behavioral guidelines to reduce common LLM coding mistakes. An agent skill from akash-network/node. | akash-network/ | 1.1k | 22 repos | ~577 | Automated safety check: Pass | MIT | yesterday |
| 4 | Refactor high-complexity React components in Langflow frontend. | langflow-ai/ | 156k | — | ~3.5k | Automated safety check: Pass | MIT | today |
| 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/ | 41k | — | ~2.6k | Automated safety check: Pass | GPL-3.0 | today |
| 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/ | 70k | — | ~3.3k | Automated safety check: Pass | MIT | today |
| 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/ | 42k | — | ~3k | Automated safety check: Pass | MIT | 7 days ago |
| 8 | 8.Codex 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/ | 1.5k | 3 repos | ~1.8k | Automated safety check: Pass | MIT | 23 days ago |
| 9 | 9.Ponytail Forces the laziest solution that actually works, simplest, shortest, most minimal. | DavidObando/ | 564 | 8 repos | ~1.7k | Automated safety check: Pass | MIT | today |
| 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/ | 4k | 5 repos | ~2k | Automated safety check: Pass | MIT | 6 mo ago |
| 11 | React and Next.js performance optimization guidelines from Vercel Engineering. | sanity-io/ | 6.4k | 130 repos | ~1.6k | Automated safety check: Pass | MIT | today |
| 12 | Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook. | farm-fe/ | 5.6k | 3 repos | ~1.1k | Automated safety check: Pass | MIT | 15 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/ | 17k | 1 repo | ~2.4k | Automated safety check: Pass | MIT | 6 days ago |
| 14 | 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/ | 45k | — | ~1.2k | Automated safety check: Notes | Unknown | today |
| 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/ | 83k | — | ~1.9k | Automated safety check: Pass | Apache-2.0 | today |
| 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/ | 14k | — | ~2.6k | Automated safety check: Pass | AGPL-3.0 | 2 days ago |
| 17 | Use when implementing or refactoring React/TypeScript components and the task requires decisions about component ownership, feature boundaries… | langgenius/ | 158k | — | ~626 | Automated safety check: Pass | Unknown | today |
| 18 | Applies opinionated production Python conventions chosen by the project's Python version: modern type syntax, pathlib, explicit checks and interface guidance. | docling-project/ | 68k | — | ~1.5k | Automated safety check: Pass | Apache-2.0 | yesterday |
| 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/ | 17k | — | ~1.2k | Automated safety check: Pass | MIT | 14 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/ | 1.3k | 2 repos | ~4.3k | Automated safety check: Pass | MIT | 3 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/ | 41k | — | ~2.8k | Automated safety check: Pass | MIT | today |
| 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/ | 42k | — | ~3.1k | Automated safety check: Pass | MIT | 7 days ago |
| 23 | 23.TDD Workflow A skill your agent uses when writing new features, fixing bugs, or refactoring code. | hellangleZ/ | 112 | 11 repos | ~2.4k | Automated safety check: Pass | No licence | 8 mo ago |
| 24 | 24.Nuqs nuqs (type-safe URL query state) best practices for Next.js and other React frameworks. | trycompai/ | 11k | 1 repo | ~1.7k | Automated safety check: Pass | MIT | 26 days ago |
| 25 | Find deepening opportunities in a codebase, informed by the domain language in CONTEXT.md and the decisions in docs/adr/. | ywwynm/ | 144 | 15 repos | ~1.3k | Automated safety check: Pass | GPL-3.0 | 23 days ago |
| 26 | 26.Improve Survey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. | fossasia/ | 1.6k | 10 repos | ~3.7k | Automated safety check: Warn | MIT | 2 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/ | 6.7k | — | ~2.7k | Automated safety check: Pass | Unknown | yesterday |
| 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/ | 9.6k | 1 repo | ~168 | Automated safety check: Pass | MIT | 25 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/ | 454 | 2 repos | ~3.9k | Automated safety check: Pass | MIT | 11 mo ago |
| 30 | 30.Readable Py Readable Python code rules inspired by The Art of Readable Code. | crazyguitar/ | 8.2k | — | ~2.4k | Automated safety check: Pass | MIT | today |
| 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/ | 2.4k | — | ~7.4k | Automated safety check: Pass | MIT | 2 days ago |
| 32 | Svelte 5 runes, snippets, SvelteKit patterns, and modern best practices for TypeScript and component development. | SikandarJODD/ | 430 | 1 repo | ~810 | Automated safety check: Pass | MIT | 3 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/ | 4.2k | — | ~3.7k | Automated safety check: Pass | AGPL-3.0 | today |
| 34 | 34.Clean Code Applies principles from Robert C. An agent skill from GabrielMartinMoran/mind. | GabrielMartinMoran/ | 148 | 6 repos | ~1.1k | Automated safety check: Pass | MIT | 7 days ago |
| 35 | Avoid common Ruby and Rails antipatterns that degrade maintainability and performance. | doorkeeper-gem/ | 5.5k | — | ~1.1k | Automated safety check: Pass | MIT | yesterday |
| 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/ | 83k | — | ~1.1k | Automated safety check: Pass | Apache-2.0 | today |
| 37 | Core best practices for the Dinero.js money library. An agent skill from dinerojs/dinero.js. | dinerojs/ | 6.8k | — | ~756 | Automated safety check: Pass | MIT | yesterday |
| 38 | Deep dive into software architecture for macOS. An agent skill from KartikLabhshetwar/better-shot. | KartikLabhshetwar/ | 2.4k | 2 repos | ~1.4k | Automated safety check: Pass | Unknown | 6 days ago |
| 39 | Facilitates deliberate skill development during AI-assisted coding. | DrCatHicks/ | 2.5k | — | ~2.5k | Automated safety check: Pass | CC-BY-4.0 | 1 mo ago |
| 40 | Inspect, review, or apply authorized triage decisions to SonarCloud issues and security hotspots; also review the Sonar helpers. | netdata/ | 81k | — | ~2.8k | Automated safety check: Notes | GPL-3.0 | today |
| 41 | Build new Plate plugins with Slate-first architecture, sane typing, and explicit React/Plate wrapper boundaries. | udecode/ | 17k | — | ~2.3k | Automated safety check: Pass | Unknown | today |
| 42 | 42.Stream Chain Stream-JSON chaining for multi-agent pipelines, data transformation, and sequential workflows | ruvnet/ | 816 | 5 repos | ~3.2k | Automated safety check: Pass | No licence | 21 days ago |
| 43 | 43.Nexus Mapper Generate a persistent .nexus-map/ knowledge base that lets any AI session instantly understand a codebase's architecture, systems, dependencies, and change hotspots. | Haaaiawd/ | 166 | 1 repo | ~2.5k | Automated safety check: Notes | No licence | 6 mo ago |
| 44 | 44.Aspnet Core Build, review, refactor, or architect ASP.NET Core web applications using current official guidance for .NET web development. | fanslead/ | 163 | 2 repos | ~1.4k | Automated safety check: Pass | Apache-2.0 | 1 mo ago |
| 45 | 45.Coding Agent Delegate coding tasks to Codex, Claude Code, or Pi agents via background process. | TermiX-official/ | 100 | 8 repos | ~2.7k | Automated safety check: Pass | MIT | 4 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/ | 32k | 1 repo | ~332 | Automated safety check: Pass | MIT | yesterday |
| 47 | 47.Deslop Simplify and refine recently modified code while preserving functionality. | millionco/ | 15k | — | ~1.2k | Automated safety check: Pass | Unknown | today |
| 48 | Migrate codebase from try/catch or Promise-based error handling to better-result. | nikivdev/ | 820 | — | ~1.4k | Automated safety check: Pass | MIT | 7 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.
Explore related skills
Category
More topics in Development
- Pull requests1,927
- Debugging1,154
- Changelog and release notes1,147
- Code review1,053
- Technical documentation998
- Linting and formatting830
- Git workflow809
- Diagrams801
- Project scaffolding742
- Root cause analysis610
- Code quality579
- Architecture decision records562
- Commit messages556
- Git worktrees528
- Performance optimization440
- Design patterns408
- Error handling317
- Type safety301
- Dependency management285
- Software architecture280
- Monorepo tooling267
- Async programming243
- Issue triage234
- Codebase onboarding232