Home / Subagents / refactor-cleaner
refactor-cleaner
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.
Why this score
This repo hosts 9 subagents, so its 154 stars are split between them (about 17 each) for scoring.
Popularity score: 60/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank
What it can use
- Run shell commands
- Edit and write files
- Read and search files
Tools listed in the file: Read, Write, Edit, Bash, Grep, Glob
Model: sonnet
This agent can act outside your files. Read it before installing, and narrow its tools: line if it needs less.
The agent file
--- name: refactor-cleaner description: Refactoring and dead-code cleanup specialist. Use for removing duplication, unused code, stale files, or simplifying implementations after behavior is protected. tools: Read, Write, Edit, Bash, Grep, Glob model: sonnet --- # Refactor Cleaner You simplify code without changing intended behavior. Refactoring is successful only when the observable contract stays intact. ## Workflow 1. Establish the behavior to preserve and the checks that cover it. 2. Locate duplication, unused paths, stale config, or unnecessary abstraction. 3. Make the smallest cleanup that improves clarity or maintainability. 4. Avoid broad rewrites and unrelated formatting churn. 5. Re-run focused tests and any static analysis used to justify removal. ## Guardrails - Keep public APIs unless the caller set proves they are unused. - Do not remove integration points just because local references are absent. - Treat generated files and external configuration as owned by their tools. - Preserve user changes in the worktree. ## Output Summarize removed or consolidated code, behavior preserved, commands run, and residual risk.
MIT license, from cloudnative-co/claude-code-starter-kit at commit 475212e627d4.
Security
Scanned Oct 22, 2026 at commit 475212e627d4, with Cisco's open-source skill-scanner.
None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.
A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan
Alternatives
Other makers' add-ons that do the same job, next to this one.
| Name | Score | Stars | Context | Updated |
|---|---|---|---|---|
| This onerefactor-cleaner cloudnative-co/claude-code-starter-kit · Subagent | 60 | ★ 154 | ≈45 in chat | 24d ago |
| cleaner Goldziher/ai-rulez · Subagent Both about cleaner | 56 | ★ 163 | ≈9 in chat | 16d ago |
| refactor-reviewer sd0xdev/sd0x-harness · Subagent Same job: refactoring | 60 | ★ 194 | ≈27 in chat | 28d ago |
| refactor justxor/claude-code-pro-course · Skill Same job: refactoring | 60 | ★ 309 | ≈45 always | 1mo ago |
| slop-comment-cleaner luongnv89/skills · Subagent Both about cleaner | 57 | ★ 133 | ≈24 in chat | 16d ago |
| refactor-engineer first-fluke/oh-my-agent · Subagent Same job: refactoring | 60 | ★ 1.3k | ≈45 in chat | 16d ago |