Armory
Source
Browse
Sub-Agents

code-refactoring-specialist

PROACTIVELY USE this agent when code needs structural improvements, technical debt reduction, or architectural enhancements. This agent MUST BE USED for code refactoring and architecture improvement tasks. Examples: <example>Context: User has written a large function that handles multiple responsibilities and wants to improve its structure. user: 'I have this 200-line function that handles user authentication, data validation, and database operations. It's getting hard to maintain.' assistant: 'I'll use the code-refactoring-specialist agent to analyze this function and break it down into smaller, more focused components following SOLID principles.' <commentary>The user has identified a code smell (large function with multiple responsibilities) that needs refactoring, so use the code-refactoring-specialist agent.</commentary></example> <example>Context: User mentions their codebase has grown organically and now has duplicate code patterns. user: 'Our codebase has a lot of repeated validation logic scattered across different modules. Can you help clean this up?' assistant: 'I'll use the code-refactoring-specialist agent to identify the duplicate validation patterns and extract them into reusable components.' <commentary>This is a clear case of code duplication (DRY violation) that requires refactoring expertise.</commentary></example> <example>Context: User is working on legacy code that violates SOLID principles. user: 'This class is doing too many things - it handles file I/O, data processing, and email notifications all in one place.' assistant: 'I'll use the code-refactoring-specialist agent to analyze this class and separate its concerns into focused, single-responsibility components.' <commentary>The user has identified a Single Responsibility Principle violation that needs architectural refactoring.</commentary></example>

Score
Unranked
Evidence
No signals yet
Last commit
Not known
Listed

Install

armory install code-refactoring-specialist --cli claude

writes the file to.claude/agents/code-refactoring-specialist.mdListed as compatible

Configuration
# fetches the source and writes it to:
.claude/agents/code-refactoring-specialist.md

Needs the armory CLI · not on npm yet, build it from cli/ in the repository

What it is

dl-ezo/claude-code-sub-agents sub-agent code-refactoring-specialist. PROACTIVELY USE this agent when code needs structural improvements, technical debt reduction, or architectural enhancements. This agent MUST BE USED for code refactoring and architecture improvement tasks. Examples: Context: User has written a large function that handles multiple responsibilities and wants to improve its structure. user: 'I have this 200-line function that handles user authentication, data validation, and database operations. It's getting hard to maintain.' assistant: 'I'll use the code-refactoring-specialist agent to analyze this function and break it down into smaller, more focused components following SOLID principles.' The user has identified a code smell (large function with multiple responsibilities) that needs refactoring, so use the code-refactoring-specialist agent. Context: User mentions their codebase has grown organically and now has duplicate code patterns. user: 'Our codebase has a lot of repeated validation logic scattered across different modules. Can you help clean this up?' assistant: 'I'll use the code-refactoring-specialist agent to identify the duplicate validation patterns and extract them into reusable components.' This is a clear case of code duplication (DRY violation) that requires refactoring expertise. Context: User is working on legacy code that violates SOLID principles. user: 'This class is doing too many things - it handles file I/O, data processing, and email notifications all in one place.' assistant: 'I'll use the code-refactoring-specialist agent to analyze this class and separate its concerns into focused, single-responsibility components.' The user has identified a Single Responsibility Principle violation that needs architectural refactoring.

When to use it

PROACTIVELY USE this agent when code needs structural improvements, technical debt reduction, or architectural enhancements. This agent MUST BE USED for code refactoring and architecture improvement tasks. Examples: Context: User has written a large function that handles multiple responsibilities and wants to improve its structure. user: 'I have this 200-line function that handles user authentication, data validation, and database operations. It's getting hard to maintain.' assistant: 'I'll use the code-refactoring-specialist agent to analyze this function and break it down into smaller, more focused components following SOLID principles.' The user has identified a code smell (large function with multiple responsibilities) that needs refactoring, so use the code-refactoring-specialist agent. Context: User mentions their codebase has grown organically and now has duplicate code patterns. user: 'Our codebase has a lot of repeated validation logic scattered across different modules. Can you help clean this up?' assistant: 'I'll use the code-refactoring-specialist agent to identify the duplicate validation patterns and extract them into reusable components.' This is a clear case of code duplication (DRY violation) that requires refactoring expertise. Context: User is working on legacy code that violates SOLID principles. user: 'This class is doing too many things - it handles file I/O, data processing, and email notifications all in one place.' assistant: 'I'll use the code-refactoring-specialist agent to analyze this class and separate its concerns into focused, single-responsibility components.' The user has identified a Single Responsibility Principle violation that needs architectural refactoring.

How to install / invoke

# copy into your project's .claude/agents/
curl -sL https://github.com/dl-ezo/claude-code-sub-agents/raw/main/code-refactoring-specialist.md -o .claude/agents/code-refactoring-specialist.md

Notes

Extracted from dl-ezo/claude-code-sub-agents.