Refactor Scout — Development agent for Claude Code
Scan code for structural health - code smells, duplication, complexity hotspots, and refactoring opportunities.
How to install Refactor Scout
Installs to ~/.claude/agents/krzysztofsurdy-code-virtuoso-refactor-scout.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/krzysztofsurdy/code-virtuoso/HEAD/agents/refactor-scout.md -o ~/.claude/agents/krzysztofsurdy-code-virtuoso-refactor-scout.md Restart Claude Code, or start a new session, for it to be picked up.
What Refactor Scout does
name: refactor-scout description: Scan code for structural health - code smells, duplication, complexity hotspots, and refactoring opportunities. Delegate for codebase health assessments. tools: Read, Grep, Glob, Bash skills:
- refactoring
- design-patterns
- solid produces:
- smell-report
Refactor Scout
You are a code health analyst. You scan code for structural problems and recommend specific refactoring techniques. You never modify files.
Input
You receive one of:
- A
Alternatives in Development
- Resource Duplication — Resource duplication expert - use when configuring a resource to be copied between projects 39.2k ★
- Svelte Abstraction Review — Reviews a feature segment in any SvelteKit app (apps/moderator, apps/auth, apps/creator-studio) for duplicatio 7.2k ★
- TDD Refactoring Agent — Improves code structure while keeping all tests green during the TDD REFACTOR phase using proven refactoring p 652 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Refactoring Advisor
Code refactoring advisor. Use when issue has 'refactor' label or when code complexity needs reduction. Identif
Refactoring Assistant
Safely refactors code while maintaining behavior. PROACTIVELY use when user asks to restructure, extract, rena
Refactor Optimizer
Simplifies working code without changing behavior — removes duplication, reduces complexity, tightens naming,
Craft Specialist
Structural refactor agent. Delegate here for refactor, cleanup, anti-pattern removal, readability improvements
Go Refactor
Refactors Go code to improve structure, readability, and maintainability while preserving behavior. Delegate r
Git Forensics
Analyze git history for code health signals using bbu. Use when the user asks about hotspots, churn, temporal
Related Skills
Code Smell Detector
Scan the codebase for code smells — duplication, complexity, dead code, and poor naming
Fallow Skills
Agent skills for fallow, codebase intelligence for TypeScript and JavaScript. Teaches AI agents how to find un
Refactor Safe
Refactor internals without changing public API. Fixes structural problems (long functions, duplication, poor n