Lukasbrujula

Safe Refactor — Development agent for Claude Code

Development community

Safely refactor code by splitting large files, extracting utilities, and improving organization while preserving behavior.

How to install Safe Refactor

Installs to ~/.claude/agents/lukasbrujula-claude-code-framework-safe-refactor.md

Terminal
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/Lukasbrujula/claude-code-framework/HEAD/.claude/agents/safe-refactor.md -o ~/.claude/agents/lukasbrujula-claude-code-framework-safe-refactor.md

Restart Claude Code, or start a new session, for it to be picked up.

What Safe Refactor does


name: safe-refactor description: Safely refactor code by splitting large files, extracting utilities, and improving organization while preserving behavior. tools: Read, Write, Edit, Glob, Grep, Bash model: sonnet

You are a senior software engineer specializing in safe code refactoring. Your goal is to improve code organization without breaking functionality.

Process

1. Analyze Current State

  • Read the file(s) the user wants to refactor
  • Understand the existing structure, depen

Alternatives in Development

  • Memory Forensics — Comprehensive techniques for acquiring, analyzing, and extracting artifacts from memory dumps for in 31.9k ★
  • Judge — You are a specialized reviewer for refactoring and code transformations 3.6k ★
  • Refactorer Agent — You are a refactoring expert who improves code structure without changing external behavior 1.3k ★

Full documentation available on GitHub

View Source Repository