Home / Use cases / Engineering / Refactoring

Refactoring: AI agents, skills & prompts

355 ways to get refactoring done with Claude Code, Codex, Cursor or Gemini CLI, ranked on usage. Filter by type below.

affaan-m/ECCSubagent

Dead code cleanup and consolidation specialist. Use PROACTIVELY for removing unused code, duplicates, and refactoring. Runs analysis tools (knip, depcheck, ts-prune) to identify dead code and safely…

284k 16d ago ≈57 tokens in your chat Claude Code Scanned
90popular
luongnv89/claude-howtoSkill

Systematic code refactoring based on Martin Fowler's methodology. Use when users ask to refactor code, improve code structure, reduce technical debt, clean up legacy code, eliminate code smells, or…

42k 16d ago ≈86 tokens always loaded Claude CodeSkills CLI Scanned
87popular
tirth8205/code-review-graphSkill

Plan and execute safe refactoring using dependency analysis

32k 19d ago ≈19 tokens always loaded Claude CodeSkills CLI Scanned
87popular
kucherenko/jscpdSkill

Three-part workflow to improve overall codebase health with jscpd — find and fix duplicated code, find and remove or refactor dead code, then find and simplify the largest/most complex files. Starts…

6.4k +40 this week 16d ago ≈74 tokens always loaded Claude CodeSkills CLI Scanned
80popular
kucherenko/jscpdSkill

Guided workflow to eliminate copy-paste duplication detected by jscpd. Refactor exact, renamed and near-miss clones using extract function, parameterize, module, constant, or base class strategies,…

6.4k +40 this week 16d ago ≈65 tokens always loaded Claude CodeSkills CLI Scanned
80popular
anthropics/claude-plugins-officialPlugin

Guided modernization for any legacy codebase: start with /modernize, get an assessment, an interactive map, the business rules mined from the code, and a plan you approve, then an upgrade, a rewrite…

46k today Claude Code Not scanned
79popular
Nanako0129/sepiaSkill

Use when a user explicitly requests Sepia refactor for minimal in-place prose revision.

3.2k +122 this week 21d ago ≈26 tokens always loaded Claude CodeSkills CLI Scanned
76popular
appandflow/react-native-easeSkill

Scan for Animated/Reanimated code and migrate to EaseView

987 +4 this week 19d ago ≈21 tokens always loaded Claude CodeSkills CLI Scanned
76popular
ciembor/agent-rules-booksSkill

Apply Robert C. Martin-inspired clean code rules when improving readability, naming, function design, responsibilities, or testable everyday code.

3.1k +53 this week 2mo ago ≈39 tokens always loaded Claude CodeSkills CLI Scanned
69popular
ciembor/agent-rules-booksSkill

Apply Refactoring.Guru-inspired rules when diagnosing code smells, choosing refactoring techniques, and stopping cleanup before uncontrolled redesign.

3.1k +53 this week 2mo ago ≈42 tokens always loaded Claude CodeSkills CLI Scanned
69popular
wondelai/skillsSkill

Write readable, maintainable code through disciplined naming, small functions, and clean error handling. Use when the user mentions "clean up this code", "this function is too long", "code smells",…

2.5k +68 this week 2mo ago ≈153 tokens always loaded Claude CodeSkills CLI Scanned
68popular
CloudAI-X/claude-workflow-v2Subagent

Code refactoring specialist for improving code quality, reducing technical debt, eliminating code smells, reducing complexity, and applying design patterns. Use PROACTIVELY when code needs…

1.4k +2 this week 29d ago ≈73 tokens in your chat Claude Code Scanned · 1 to know
68popular
OpenSource03/harnssSubagent

Use this agent when you need to refactor existing code, rewrite a module for better maintainability, decompose a large file into focused sub-modules, eliminate duplication, improve type safety,…

386 20d ago ≈155 tokens in your chat Claude Code Scanned
66popular
OpenSource03/harnssSubagent

Use this agent when you need a thorough code quality analysis and refactoring recommendations for specific files, directories, or an entire branch. This agent reads code deeply, questions every…

386 20d ago ≈154 tokens in your chat Claude Code Scanned
66popular
OpenSource03/harnssSubagent

Use this agent when a significant refactoring has been completed and you need to verify that the changes are correct, consistent, and haven't introduced regressions. This includes verifying type…

386 20d ago ≈155 tokens in your chat Claude Code Scanned
66popular
tobihagemann/turboSkill

Assess project-wide structural technical debt: complexity hotspots, deprecated API usage, duplication clusters, architecture rot, and low-value tests. Ranks findings by impact and refactor effort…

414 +2 this week 16d ago ≈145 tokens always loaded Claude CodeSkills CLI Scanned
64popular
nikolai-vysotskyi/trace-mcpSkill

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.

193 +3 this week 16d ago ≈50 tokens always loaded Claude CodeSkills CLI Scanned
64popular
amElnagdy/guard-skillsSkill

Review generated or changed production code before it ships, using Clean Code, SOLID, DRY, KISS, YAGNI, and LLM-specific failure-mode checks in any programming language. Best used reactively after…

1.3k +12 this week 4mo ago ≈154 tokens always loaded Claude CodeSkills CLI Scanned
63popular
CharlesWiltgen/AxiomSubagent

Use this agent when the user wants to modernize iOS code to iOS 17/18 patterns, migrate from ObservableObject to @Observable, update @StateObject to @State, or adopt modern SwiftUI APIs.

1.2k 17d ago ≈52 tokens in your chat Claude Code Scanned
63popular
decebals/claude-code-javaSkill

Clean Code principles (DRY, KISS, YAGNI), naming, function design and readability. Use when code is hard to read, with long methods, unclear names, duplication or deep nesting. For how…

758 +9 this week 2mo ago ≈75 tokens always loaded Claude CodeSkills CLI Scanned
63popular
Sayhi-bzb/CharDeskSkill

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…

453 16d ago ≈58 tokens always loaded Claude CodeSkills CLI Scanned
63popular
sangrokjung/claude-forgeSubagent

데드 코드·미사용 exports·의존성 제거, 중복 통합 전문. knip/depcheck/ts-prune 감지 → Grep 참조 검증 → 안전 제거. 피처 브랜치에서만 동작. Use proactively when "데드 코드", "미사용 코드", "정리해줘", "클린업", "리팩토링" 요청 시. 빌드 에러 수정은 build-error-resolver,…

861 2mo ago ≈59 tokens in your chat Claude Code Scanned
62popular

add-refactoring

From the maker
dotnet/roslynatorSkill

Use when adding a new RR#### refactoring in roslynator, editing Refactorings.xml, registering in RefactoringContext, or when refactorings-testing.md shows XunitRefactoringVerifier — in-repo uses…

3.5k +2 this week 1mo ago ≈66 tokens always loaded Claude CodeSkills CLI Scanned
61popular
dotnet/roslynatorSkill

Use when obsoleting or retiring RCS####, RR####, or RCF#### in roslynator, replacing an analyzer with another id, or when tempted to use IsObsolete on an Analyzer entry — analyzers use Status…

3.5k +2 this week 1mo ago ≈63 tokens always loaded Claude CodeSkills CLI Scanned
61popular
UI5/plugins-coding-agentsPlugin

Complete UI5 modernization toolkit with workflow and specialized fix patterns for modernizing SAPUI5/OpenUI5 applications.

45 2d ago Claude Code Scanned
61popular
first-fluke/oh-my-agentSubagent

Behavior-preserving refactoring specialist. Hotspot repayment, characterization-test safety nets, atomic refactor-only commits. Never changes observable behavior.

1.3k +7 this week 16d ago ≈45 tokens in your chat Claude Code Scanned
60popular
alirezarezvani/claude-code-tresorSubagent

Code refactoring specialist focused on clean architecture, SOLID principles, and technical debt reduction. Use proactively for code quality improvements and architectural refactoring.

782 4mo ago ≈50 tokens in your chat Claude Code Scanned
60popular
justxor/claude-code-pro-courseSkill

Безопасный рефакторинг маленькими шагами без изменения поведения. Используй, когда просят отрефакторить, упростить, разделить модуль, убрать дублирование или почистить код.

309 +12 this week 1mo ago ≈45 tokens always loaded Claude CodeSkills CLI Scanned
60popular
sd0xdev/sd0x-harnessSubagent

Document refactoring expert. Condense documents without losing information; use sequenceDiagram for flows.

194 28d ago ≈30 tokens in your chat Claude Code Scanned
60popular
sd0xdev/sd0x-harnessSubagent

Refactoring review expert. Evaluates refactoring risk and verifies behavior preservation.

194 28d ago ≈27 tokens in your chat Claude Code Scanned
60popular
cloudnative-co/claude-code-starter-kitSubagent

Refactoring and dead-code cleanup specialist. Use for removing duplication, unused code, stale files, or simplifying implementations after behavior is protected.

154 24d ago ≈45 tokens in your chat Claude Code Scanned
60popular
vinta/hal-9000Skill

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…

140 +3 this week 16d ago ≈59 tokens always loaded Claude CodeSkills CLI Scanned
60popular
vinta/hal-9000Skill

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,…

140 +3 this week 16d ago ≈60 tokens always loaded Claude CodeSkills CLI Scanned
60popular
vinta/hal-9000Skill

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…

140 +3 this week 16d ago ≈66 tokens always loaded Claude CodeSkills CLI Scanned
60popular
josstei/maestro-orchestrateSubagent

Refactoring specialist for codebase modernization, structural improvements, and technical debt reduction. Use when the task involves reorganizing code, extracting abstractions, renaming for clarity,…

486 16d ago ≈87 tokens in your chat Claude Code Scanned
59popular
AltimateAI/data-engineering-skillsSkill

Safely refactors dbt models with downstream impact analysis. Use when restructuring dbt models for:

129 20d ago ≈31 tokens always loaded Claude CodeSkills CLI Scanned
59popular
travisjneuman/.claudeSubagent

Safe, incremental, behavior-preserving refactoring validated by careful review. Use when improving code structure, reducing complexity, or paying down technical debt.

104 +4 this week 16d ago ≈47 tokens in your chat Claude Code Scanned
59popular
Dimillian/SkillsSkill

Plan and execute large refactor or rewrite efforts efficiently with parallel multi-agent analysis and implementation. Use when a user asks to refactor many files, split workstreams, analyze a target…

4.0k +12 this week 7mo ago ≈79 tokens always loaded Claude CodeSkills CLI Scanned
58popular
mhattingpete/claude-skills-marketplaceSkill

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…

683 +3 this week 3mo ago ≈77 tokens always loaded Claude CodeSkills CLI Scanned
58popular
vinilana/dotcontextSubagent

Identify code smells and improvement opportunities

574 4mo ago ≈18 tokens in your chat Claude Code Scanned
58popular
osovv/grace-marketplaceSkill

Refactor GRACE 4 governed code while keeping .grace graph, verification, change scopes, and file-local anchors synchronized.

253 +1 this week 1mo ago ≈35 tokens always loaded Claude CodeSkills CLI Scanned
58popular
irahardianto/awesome-agvSubagent

Dedicated refactoring agent for code smell detection, safe transformation,

156 21d ago ≈24 tokens in your chat Claude Code Scanned
58popular
btseee/clean-code-skillsSkill

Use when writing, editing, reviewing, testing, planning, or refactoring code in any language or framework; creating files or deciding where code and folders belong; designing or changing module…

15 1mo ago ≈101 tokens always loaded Claude CodeSkills CLIGemini CLI Scanned
56popular
xu-xiang/everything-claude-code-zhSubagent

冗余代码清理与合并专家。主动用于移除未使用的代码、重复项并进行重构。运行分析工具(knip、depcheck、ts-prune)来识别冗余代码并安全地将其移除。

2.0k +8 this week 8mo ago ≈24 tokens in your chat Claude Code Scanned
55popular
galdawave/pickle-rick-extensionSkill

Expertise in Senior Principal Engineering refactoring. Use when you need to eliminate technical debt, remove "AI Slop," simplify complex logic, and ensure DRY code.

453 6mo ago ≈46 tokens always loaded Claude CodeSkills CLIGemini CLI Scanned
55popular
agenticnotetaking/arscontextaSkill

Plan vault restructuring from config changes. Compares config.yaml against derivation.md, identifies dimension shifts, shows restructuring plan, executes on approval. Triggers on "/refactor",…

3.5k +14 this week 8mo ago ≈55 tokens always loaded Claude CodeSkills CLI Scanned
54popular
cfrs2005/claude-initSubagent

死代码清理与合并专家。请主动用于移除未使用的代码、重复项及重构。运行分析工具 (knip, depcheck, ts-prune) 以识别死代码并安全移除。

1.4k 8mo ago ≈24 tokens in your chat Claude Code Scanned
54popular
softaworks/agent-toolkitSkill

Refactor bloated AGENTS.md, CLAUDE.md, or similar agent instruction files to follow progressive disclosure principles. Splits monolithic files into organized, linked documentation.

2.6k +26 this week 8mo ago ≈50 tokens always loaded Claude CodeSkills CLI Scanned
53popular
ThibautBaissac/rails_ai_agentsSubagent

Orchestrates incremental refactoring of Rails codebases toward 37signals

668 5mo ago ≈23 tokens in your chat Claude Code Scanned
53popular
ThibautBaissac/rails_ai_agentsSubagent

Improves code structure while keeping all tests green during the TDD REFACTOR phase using proven refactoring patterns. Use proactively after tests pass to clean up implementation code. Use when…

668 5mo ago ≈120 tokens in your chat Claude Code Scanned
53popular
AsyrafHussin/agent-skillsSkill

SOLID principles, design patterns, DRY, KISS, and clean code fundamentals. Use when reviewing architecture, checking code quality, refactoring, or discussing design decisions. Triggers on "review…

90 +3 this week 2mo ago ≈78 tokens always loaded Claude CodeSkills CLI Scanned
53popular
drvoss/everything-copilot-cliSubagent

Dead code removal, code cleanup, and safe modernization without behavioral changes

49 1mo ago ≈25 tokens in your chat Claude Code Scanned
53popular
GammaLabTechnologies/harmonistSubagent

Coordinates safe, mechanical refactors across multiple repositories / services / packages — API renames, shared-library upgrades, breaking-schema transitions. Owns the expand-migrate-contract…

2.3k 5mo ago ≈74 tokens in your chat Claude Code Scanned
52popular
matt1as/claude-abap-skillsSkill

Refactor existing ABAP code to Clean ABAP style without changing behavior. Use when the user asks to refactor, clean up, modernize, or tidy ABAP code. Applies the rule set in ../CLAUDE.md in…

30 3mo ago ≈106 tokens always loaded Claude CodeSkills CLI Scanned
52popular
NYCU-Chung/my-claude-devteamSubagent

Large-scale safe refactoring: rename across many files, extract module, move files, restructure folders. Differs from fullstack-engineer by being more cautious, scoped, and verification-heavy. Use…

270 7mo ago ≈71 tokens in your chat Claude Code Scanned
47popular
aspenkit/aspensSubagent

Execute refactoring tasks — reorganize files, extract components, update imports, fix patterns across the codebase. Use after a refactor-planner has created a plan.

102 2mo ago ≈46 tokens in your chat Claude Code Scanned
47popular
aspenkit/aspensSubagent

Analyze code and create comprehensive refactoring plans with phases, risk assessment, and step-by-step strategy. Use BEFORE code-refactor-master executes.

102 2mo ago ≈43 tokens in your chat Claude Code Scanned
47popular
arpitnath/claude-capsule-kitSubagent

Use this agent for safe code refactoring. Specializes in improving code structure

93 5mo ago ≈26 tokens in your chat Claude Code Scanned
47popular
awesome-cursorrulesCursor rules

Guidelines for writing clean, maintainable, and human-readable code. Apply these rules when writing or reviewing code to ensure consistency and quality.

CursorCC0
–unranked
tt-a1i/archifySkill

Simplification audit or authorized codebase simplification whose stated objective is to remove accidental complexity. Use for evidence-backed deletion or consolidation of dead code, duplicate state,…

86k 16d ago ≈117 tokens always loaded Claude CodeSkills CLI Scanned
93popular

See all 355 with filters