Claude skills for refactoring
The 50 strongest of 525 refactoring skills on GitHub. Skills built for refactoring come first; no repository gets more than 3 spots. Each links to its folder; copy it into ~/.claude/skills/ to use it.
refactor
Guides a refactor, cleanup, or restructure with the right decomposition. Use when the user asks to refactor, simplify, extract, or modernize code.
code-yeongyu/oh-my-openagent★ 70kLicence: see repoFolder:
refactorcsharp refactoring
Safely refactors C#/.NET code without changing behavior. USE FOR any request to refactor, rename, move, extract, inline, merge, consolidate, deduplicate, split, or modernize C# code, including partial/generated declarations, wrappers, public APIs,…
dotnet/skills★ 5.8kMITFolder:
csharp-refactoringdeep module refactor
Explore a codebase to find opportunities for architectural improvement, focusing on making the codebase more testable by deepening shallow modules. Use when user wants to improve architecture, find refactoring opportunities, consolidate tightly-coupled…
zebbern/claude-code-guide★ 4.7kMITFolder:
deep-module-refactorgolang refactoring
Golang refactoring — safe, at-scale restructuring of existing Go code: a coverage-adaptive safety net, behavior-preserving transforms (gopls Rename/Extract, `gofmt -r`, `gopatch`), the Fowler catalog mapped to Go, breaking import cycles, and small stacked…
samber/cc-skills-golang★ 3.7kMITFolder:
golang-refactoringsepia refactor
Use when a user explicitly requests Sepia refactor for minimal in-place prose revision.
Nanako0129/sepia★ 3.5kMITFolder:
sepia-refactorrefactoring guru
Apply Refactoring.Guru-inspired rules when diagnosing code smells, choosing refactoring techniques, and stopping cleanup before uncontrolled redesign.
ciembor/agent-rules-books★ 3.1kMITFolder:
refactoring-gururefactoring
Apply Martin Fowler-inspired refactoring rules when improving existing code structure while preserving observable behavior.
ciembor/agent-rules-books★ 3.1kMITFolder:
refactoringagent md refactor
Refactor bloated AGENTS.md, CLAUDE.md, or similar agent instruction files to follow progressive disclosure principles. Splits monolithic files into organized, linked documentation.
softaworks/agent-toolkit★ 2.6kMITFolder:
agent-md-refactorrefactoring patterns
Apply named refactoring transformations to improve code structure without changing behavior. Use when the user mentions "refactor this", "code smells", "extract method", "replace conditional", "technical debt", "move method", "inline variable", "decompose…
wondelai/skills★ 2.5kMITFolder:
refactoring-patternsrefactoring ui
Audit and fix visual hierarchy, spacing, color, and depth in web UIs. Use when the user mentions "my UI looks off" (or amateur/unprofessional), "fix the design", "Tailwind styling", "color palette", "visual hierarchy", "design system", "spacing scale", or…
wondelai/skills★ 2.5kMITFolder:
refactoring-uidev refactor
AI DevKit · Systematic structural or multi-file refactors across any stack while preserving behavior and public contracts. Use for reorganizing modules, boundaries, naming, APIs/contracts, staged refactor plans, or refactor risk review.
codeaholicguy/ai-devkit★ 1.7kApache-2.0Folder:
dev-refactorred green refactor
Guides the red-green-refactor TDD workflow: write a failing test first, implement the minimum code to make it pass, then refactor while keeping tests green. Use when a user asks to practice TDD, write tests first, follow red-green-refactor, do test-driven…
rohitg00/skillkit★ 1.6kApache-2.0Folder:
red-green-refactorrefactor clean
Refactor cleanly instead of layering sediment. Use for rename requests, stale or misleading names, legacy leftovers, changed scope, or when a change reveals duplicated concepts, local adapters, obsolete owners, redundant inputs or guards, compatibility…
dzhng/skills★ 1.4kMITFolder:
refactor-cleanoma refactor
Restructure existing code while preserving observable behavior. Use for targeted technical debt or hotspot work with characterization tests.
first-fluke/oh-my-agent★ 1.4kMITFolder:
oma-refactorrefactor safety
当用户要求重构代码(提取组件、合并重复逻辑、重命名变量、优化结构)时触发。提供重构安全检查清单,防止丢失原始上下文。
doccker/cc-use-exp★ 1.1kLicence: see repoFolder:
refactor-safetycc refactor safety
当用户要求重构代码(提取组件、合并重复逻辑、重命名变量、优化结构)时触发。提供重构安全检查清单,防止丢失原始上下文。
doccker/cc-use-exp★ 1.1kLicence: see repoFolder:
cc-refactor-safetycode refactor
Perform bulk code refactoring operations like renaming variables/functions across files, replacing patterns, and updating API calls. Use when users request renaming identifiers, replacing deprecated code patterns, updating method calls, or making…
mhattingpete/claude-skills-marketplace★ 689Apache-2.0Folder:
code-refactornw legacy refactoring ddd
DDD-guided legacy refactoring patterns -- strangler fig, bubble context, ACL migration, 14 tactical/strategic/infrastructure patterns, and incremental monolith-to-microservices methodology
nWave-ai/nWave★ 626MITFolder:
nw-legacy-refactoring-dddnw progressive refactoring
Progressive L1-L6 refactoring hierarchy, 22 code smell taxonomy, atomic transformations, test code smells, and Fowler refactoring catalog
nWave-ai/nWave★ 626MITFolder:
nw-progressive-refactoringnw refactor
Applies the Refactoring Priority Premise (RPP) levels L1-L6 for systematic code refactoring. Use when improving code quality through structured refactoring passes.
nWave-ai/nWave★ 626MITFolder:
nw-refactorralph specum refactor
This skill should be used only when the user explicitly asks to use `$ralph-specum-refactor`, or explicitly asks Ralph Specum in Codex to revise spec artifacts after implementation learnings.
tzachbon/smart-ralph★ 564MITFolder:
ralph-specum-refactor141 java refactoring with modern features
Use when you need to refactor Java code to adopt modern Java features (Java 8+) — including migrating anonymous classes to lambdas, replacing Iterator loops with Stream API, adopting Optional for null safety, switching from legacy Date/Calendar to…
jabrena/plinth★ 456Apache-2.0Folder:
141-java-refactoring-with-modern-features145 java refactoring high performance
Use when you need to refactor Java code for high performance — including memory/allocation reduction, CPU hot-path optimization, and syntax/API/control-flow improvements. This should trigger for requests such as Review Java code for high performance;…
jabrena/plinth★ 456Apache-2.0Folder:
145-java-refactoring-high-performance163 java profiling refactor
Use when you need to refactor Java code based on trusted profiling analysis findings — including reviewing repository-owned or maintainer-sanitized docs/profiling-problem-analysis and docs/profiling-solutions files, identifying specific performance…
jabrena/plinth★ 456Apache-2.0Folder:
163-java-profiling-refactorcode refactoring assistant
Suggest and apply code refactorings to improve readability, maintainability, and code quality. Use this skill when improving existing code structure, eliminating code smells, applying design patterns, simplifying complex logic, extracting duplicated code,…
ArabelaTso/Skills-4-SE★ 260Apache-2.0Folder:
code-refactoring-assistantlsp refactoring
Intelligent code refactoring using IDE-level tools (rename, find-references, go-to-definition), AST-aware pattern matching, and TDD verification. Use for safe, large-scale refactoring with precision.
ArabelaTso/Skills-4-SE★ 260Apache-2.0Folder:
lsp-refactoringproof refactoring assistant
Restructure and improve Isabelle or Coq proofs to enhance readability, modularity, and maintainability without changing semantics. Use when proofs are long and monolithic, have repeated patterns, use unclear naming, lack documentation, or when the user…
ArabelaTso/Skills-4-SE★ 260Apache-2.0Folder:
proof-refactoring-assistantgrace refactor
Refactor GRACE 4 governed code while keeping .grace graph, verification, change scopes, and file-local anchors synchronized.
osovv/grace-marketplace★ 257MITFolder:
grace-refactorrefactor safely
Restructure existing code safely without changing externally observable behavior. Composes context, design, architecture, code quality, and testing guardrails into a characterization-first refactoring workflow. Use when the user says 'refactor this',…
techygarg/lattice★ 208MITFolder:
refactor-safelytrace mcp refactoring
Safe refactoring workflow using trace-mcp — assess risk, find candidates, check impact, and rename symbols across all files without missing import sites or cross-file references.
nikolai-vysotskyi/trace-mcp★ 198MITFolder:
trace-mcp-refactoringrust refactor helper
Safe Rust refactoring with LSP analysis. Triggers on: /refactor, rename symbol, move function, extract, 重构, 重命名, 提取函数, 安全重构
moeru-ai/auv★ 195Apache-2.0Folder:
rust-refactor-helperrefactoring csharp
Rename and refactor C# symbols in a .NET solution or multi-solution monorepo with a one-shot Roslyn CLI. Use when the user asks to rename a symbol, preview impact, update references across a solution, or refactor shared projects across several solutions.
CodeAlive-AI/ai-driven-development★ 167MITFolder:
refactoring-csharpca refactor
Restructure code without changing observable behavior: rename, extract, inline, move, deduplicate, or replace an internal implementation with an equivalent one. Prove parity through unchanged pre-existing tests. Not for new behavior, bug fixes,…
arbiterForge/codeArbiter★ 149AGPL-3.0Folder:
ca-refactorrefactor agents md
Use when about to refactor or refine a user-level or project-level CLAUDE.md or AGENTS.md, from a full restructure down to a one-line wording fix; a change that looks too small to need this skill is not an exemption
vinta/hal-9000★ 142MITFolder:
refactor-agents-mdrefactor skill
Use when about to refactor or refine an existing skill, its SKILL.md or sibling files, from a full restructure down to a one-line wording fix; a change that looks too small to need this skill is not an exemption. Not for creating a skill from scratch
vinta/hal-9000★ 142MITFolder:
refactor-skillrefactor memory
Use when refactoring Claude Code or Codex memories to remove stale or derivable entries, resolve contradictions, promote standing instructions, or reorganize recall. Not for standalone CLAUDE.md, AGENTS.md, or rules cleanup
vinta/hal-9000★ 142MITFolder:
refactor-memoryrefactoring dbt models
Safely refactors dbt models with downstream impact analysis. Use when restructuring dbt models for: (1) Task mentions "refactor", "restructure", "extract", "split", "break into", or "reorganize" (2) Extracting CTEs to intermediate models or creating macros…
AltimateAI/data-engineering-skills★ 130MITFolder:
refactoring-dbt-modelssnowflake dbt model refactoring
Refactor a bloated dbt model on Snowflake safely and produce a quantified before/after report that explains **which qualities improved and why** — not just raw deltas. Extends the standard refactor flow with (1) downstream impact analysis via…
AltimateAI/data-engineering-skills★ 130MITFolder:
snowflake-dbt-model-refactoringrefactor ops
Safe refactoring patterns - extract, rename, restructure with test-driven methodology and dead code detection. Use for: refactor, refactoring, extract function, extract component, rename, move file, restructure, dead code, unused imports, code smell,…
0xDarkMatter/claude-mods★ 78MITFolder:
refactor-opsDelphi Code Refactoring
Refactoring techniques for Object Pascal focused on improving readability, removing code smells, and preserving behavior through practices like Extract Method, Guard Clauses, and polymorphism.
delphicleancode/delphi-spec-kit★ 57MITFolder:
refactoringrefactor assistant
Refactor codebases with confidence — extract methods, reduce complexity, apply SOLID principles, and modernize legacy code.
inbharatai/claude-skills★ 41MITFolder:
refactor-assistantroblox code maintenance refactor
Maintain and refactor Roblox Luau code safely. Use for technical debt, dead code removal, module boundaries, naming cleanup, duplicate logic, dependency review, regression prevention, and long-term codebase health.
AshExplained/roblox-skills★ 40MITFolder:
roblox-code-maintenance-refactorgitnexus refactoring
Use when the user wants to rename, extract, split, move, or restructure code safely. Examples: \"Rename this function\", \"Extract this into a module\", \"Refactor this class\", \"Move this to a separate file\"
qualixar/skillfortify★ 40Licence: see repoFolder:
gitnexus-refactoringrefactor break compat
Use when modernizing APIs, removing compat shims, killing feature flags, or rewriting a subsystem cleanly. Not for additive refactors that must preserve the old path.
OutlineDriven/odin-claude-plugin★ 40Apache-2.0Folder:
refactor-break-compatbefore you refactor
Use when considering, evaluating, or performing a refactor, restructure, cross-file rename, or cleanup
oribarilan/97★ 25Licence: see repoFolder:
before-you-refactorfec refactoring control
保持行为的前端重构主要涉及条件控制类重构,已经选定或正在评估对应手法,需要查询该 family 的操作步骤、风险与 JavaScript/TypeScript/React/Vue 适配时。
bovinphang/frontend-craft★ 22MITFolder:
fec-refactoring-controlfec refactoring catalog
已经有结构问题证据,需要在多种保持行为的重构手法之间比较前置条件、选择最小安全方案,或决定多个重构步骤的合理先后关系时。
bovinphang/frontend-craft★ 22MITFolder:
fec-refactoring-catalogfec refactoring api
保持行为的前端重构主要涉及API 类重构,已经选定或正在评估对应手法,需要查询该 family 的操作步骤、风险与 JavaScript/TypeScript/React/Vue 适配时。
bovinphang/frontend-craft★ 22MITFolder:
fec-refactoring-apilead refactor
Autonomous comprehensive refactoring. Three-phase pipeline — Phase 1 /refactor (tactical, loops internally to convergence) → Phase 2 loop of /review-arch + /implement-batch until architectural findings converge below a severity floor (default HIGH+) →…
chrisallenlane/claude-swe-workflows★ 18MITFolder:
lead-refactorpreparatory refactor
Identify opportunities to introduce a refactor that would make a feature easy to implement.
stevepolitodesign/skills★ 9No licence statedFolder:
preparatory-refactor
Claude skills for refactoring: what people ask
What's the best Claude skill for refactoring?
There are 525 of them, spread over 251 repositories on GitHub. Named for it and most starred: refactor (code-yeongyu/oh-my-openagent, ★ 70k), csharp refactoring (dotnet/skills, ★ 5.8k) and deep module refactor (zebbern/claude-code-guide, ★ 4.7k). Stars rate the repository a skill sits in, not the skill.
How do I install a Claude skill for refactoring?
For refactoring, take the refactor folder from code-yeongyu/oh-my-openagent (the folder that holds SKILL.md) into ~/.claude/skills/ to use it in every Claude Code project, or into .claude/skills/ for one project. In the Claude apps, zip that folder and upload it as a custom skill in settings.
Are all these refactoring skills in English?
No: 6 of those listed, such as refactor safety and cc refactor safety, are written mainly in Chinese, Japanese, Korean or Russian rather than English, though the refactoring task is the same. Claude can follow them either way, but read them before you install.
Are these refactoring skills official?
No. None of the 525 refactoring skills comes from Anthropic's own skills repository, so all of them are community-made across 251 repositories.
Can I use these refactoring skills at work?
Of the 50 refactoring skills listed here, 43 sit in repositories under an open licence such as MIT or Apache 2.0, and preparatory refactor states no licence at all, which legally means you may not reuse it. Check the licence file before you copy one into company work.
What should I check before installing a refactoring skill?
A refactoring skill is instructions Claude follows, and it can bundle scripts Claude runs, so read SKILL.md and every script first: for refactor, that is everything in the refactor folder. 1 of the 50 here, preparatory refactor, come from repositories with under 10 stars, so few people have looked at it. Red flags: piping a download into a shell, sending files to a URL, and instructions to hide what it does from you.
More topics: every “Claude skills for…” page.