FirasLatrech

Refactor Splitter — Development agent for Claude Code

Development community

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

Terminal
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:

  1. Read the file and understand its structure
  2. 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 Repository