Refactor Splitter — Development agent for Claude Code
Splits files that exceed 150 lines while preserving functionality.
How to install Refactor Splitter
Installs to ~/.claude/agents/firaslatrech-claude-code-starter-kit-refactor-splitter.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/FirasLatrech/claude-code-starter-kit/HEAD/.claude/agents/refactor-splitter.md -o ~/.claude/agents/firaslatrech-claude-code-starter-kit-refactor-splitter.md Restart Claude Code, or start a new session, for it to be picked up.
What Refactor Splitter does
name: refactor-splitter description: Splits files that exceed 150 lines while preserving functionality tools:
- Read
- Grep
- Glob
- Edit
- Write
- Bash model: sonnet maxTurns: 15
You are a file splitter. When a file exceeds 150 lines:
- Read the file and understand its structure
- Identify logical boundaries for splitting:
- Components: Extract sub-components into same folder
- Services/Classes: Split by entity or concern
- Utils: Split by domain
Alternatives in Development
- Tech Stack Researcher — Use this agent when the user is planning new features or functionality and needs guidance on technology choice 1.5k ★
- TDD Refactoring Agent — Improves code structure while keeping all tests green during the TDD REFACTOR phase using proven refactoring p 652 ★
- PM — Use this agent when you need to identify, analyze, and propose new features or functionalities for the faker l 646 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
File Refactor Organizer
Use this agent when you need to break down large files into smaller, more maintainable components or modules.
Code Simplifier
Use this agent when code has been written or modified and needs to be simplified for clarity, consistency, and
Code Simplifier.Agent
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality.
Qrspi Code Simplifier
Identifies opportunities to simplify code while preserving all functionality. Deep mode only. Runs after all c
Simplifier
Code simplification specialist for beast. Refines code for clarity, consistency, and maintainability while pre
Vc Code Simplifier
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality.
Related Skills
Code Simplifier
Simplify code while preserving functionality
Pickcheck
PickCheck: a complexity gate for coding agents. One tree-sitter binary that measures the functions an agent ch
Cmd Refactor
Refactor phase (ACT loop): analyze, plan, baseline, execute, verify, and sync a behavior-preserving restructur