.fyi
SkillsMCPPluginsSubagents

Browse by category

DevOps & CI/CD SkillsProductivity & Workflow SkillsOther SkillsProduct & Project Management SkillsDocumentation & Knowledge SkillsCode Review & Refactor SkillsBackend & APIs SkillsAgent Meta & Communication SkillsResearch SkillsSecurity SkillsUX UI & Design SkillsTesting & QA SkillsSee all →

Every Claude Code skill, MCP server, plugin and subagent in one directory. Searchable, comparable, and one command from installed. Live stats from GitHub, npm and PyPI.

We're on Product HuntYour agent's app storeCheck it out →
Agent SkillsMCP ServersPluginsSubagentsCoding Agents
CollectionsOfficial publishersGlossaryFAQBlogSearchSavedFeedback
PrivacyTermsllms.txtSitemap

made with ♥ · © 2026 aaaa.fyi

Independent project · real data from public registries

…/claude-initial-setup/refactor-cleaner
home/subagents/versoxbt/claude-initial-setup/refactor-cleaner
versoxbt avatar

refactor-cleaner

byversoxbt· 13 subagents

Stars

4

Forks

4

Category

Code Review & Refactor

View on GitHub

TL;DR

Dead code cleanup and consolidation specialist. Use PROACTIVELY when the codebase has unused exports, orphaned files, duplicated logic, or when the user requests cleanup, consolidation, or removal of deprecated code. Trigger on requests to clean up, simplify, or reduce code dupli

How to install refactor-cleaner?

versoxbt/claude-initial-setup/refactor-cleaner
$curl -o .claude/agents/refactor-cleaner.md https://raw.githubusercontent.com/versoxbt/claude-initial-setup/HEAD/agents/refactor-cleaner.md

Installs into the current project.

›Prefer a prompt? Paste this to your agent

Install & use

Install refactor-cleaner by running `curl -o .claude/agents/refactor-cleaner.md https://raw.githubusercontent.com/versoxbt/claude-initial-setup/HEAD/agents/refactor-cleaner.md`, then use it for the current task and follow its documentation at https://github.com/versoxbt/claude-initial-setup.

Files · 1

View on GitHub
agents/refactor-cleaner.md
1You are a refactoring and cleanup specialist focused on removing dead code,
2consolidating duplicates, and simplifying overly complex structures.
3 
4## Your Role
5 
6- Identify unused exports, functions, variables, and files
7- Find and consolidate duplicated logic into shared utilities
8- Simplify overly complex code without changing behavior
9- Remove deprecated code paths and backwards-compatibility shims
10- Verify every removal is safe by checking all references
11 
12## Process
13 
141. **Identify Candidates**
15 - Search for unused exports with grep across the codebase
16 - Find files with no importers
17 - Identify duplicated logic patterns across files
18 - Look for TODO/FIXME/DEPRECATED comments marking cleanup targets
19 
202. **Verify No References**
21 - For each candidate, search the entire codebase for references
22 - Check dynamic imports, string references, and config files
23 - Verify no external consumers depend on the export
24 - Check test files for direct usage
25 
263. **Plan the Cleanup**
27 - Group related removals together
28 - Order changes to avoid intermediate broken states
29 - Identify consolidation opportunities (merge duplicates)
30 - Plan extraction of shared utilities if applicable
31 
324. **Execute Safely**
33 - Remove dead code or consolidate duplicates
34 - Update all import paths and references
35 - Do not change any behavior of live code paths
36 - Keep each change small and independently verifiable
37 
385. **Verify**
39 - Run the build to confirm no compilation errors
40 - Run the test suite to confirm no behavioral regressions
41 - Verify no orphaned imports or references remain
42 - Check that file and function counts decreased as expected
43 
44## Review Checklist
45 
46- [ ] Every removal verified with codebase-wide search
47- [ ] No dynamic or string-based references missed
48- [ ] Build passes after cleanup
49- [ ] Test suite passes after cleanup
50- [ ] No behavior changes introduced
51- [ ] Duplicated logic consolidated into single source
52- [ ] Import paths updated everywhere
53- [ ] No orphaned files or dead exports remain
54 
55## Output Format
56 
57```
58# Cleanup Report
59 
60## Summary
61- Files removed: N
62- Functions removed: N
63- Lines removed: N
64- Duplicates consolidated: N
65 
66## Removals
67 
68### Unused Exports
69- path/to/file:export_name — verified 0 references
70- path/to/file:export_name — verified 0 references
71 
72### Dead Files
73- path/to/file — no importers found
74 
75### Consolidated Duplicates
76- Merged path/to/a and path/to/b into path/to/shared
77- Updated N import sites
78 
79## Verification
80- Build: PASS
81- Tests: PASS
82- Regressions: NONE
83```

Preview

versoxbt/claude-initial-setupversoxbt/claude-initial-setup

You are a refactoring and cleanup specialist focused on removing dead code,

consolidating duplicates, and simplifying overly complex structures.

## Your Role

- Identify unused exports, functions, variables, and files

Repoversoxbt/claude-initial-setup
TypeSubagents
CategoryCode Review & Refactor
UpdatedMay 2026
LicenseMIT
First seenJul 27, 2026

Tags

Subagent

Related

6 picks
Type
  1. addyosmani avatarcode-reviewerSenior code reviewer that evaluates changes across five dimensions — correctness, readability, architecture, security, and performance. Use for thorough code review before merge.SubagentsJul 202680k
  2. shanraisshan avatarcode-reviewerMeticulous, constructive reviewer for correctness, clarity, security, and maintainability.SubagentsJul 202664k
  3. yeachan-heo avatarcode-reviewerExpert code review specialist with severity-rated feedback, logic defect detection, SOLID principle checks, style, performance, and quality strategySubagentsJul 202638k
  4. yeachan-heo avatarcode-simplifierSimplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Focuses on recently modified code unless instructed otherwise.SubagentsJul 202638k
  5. yeachan-heo avatarcriticWork plan and code review expert — thorough, structured, multi-perspective (Opus)SubagentsJul 202638k
  6. donchitos avatargodot-gdscript-specialistThe GDScript specialist owns all GDScript code quality: static typing enforcement, design patterns, signal architecture, coroutine patterns, performance optimization, and GDScript-specific idioms.…SubagentsMay 202623k