CLAUDE CODE ROLES REFACTORING Generic

Claude Code Refactoring Role

A Claude Code role for safely refactoring existing projects without changing behavior.

Claude Code Refactoring Clean Code AI Coding Safe Changes
Tool
Claude Code
Asset type
Roles
Category
Refactoring
Framework
Generic
Recommended path
Paste into Claude Code Chat
Activation / Trigger
Auto-applied in Agent & Chat
License
MIT
Last updated
2026-07-08

Best for

How to use this asset

  1. Click Copy Role above to copy the full role text.
  2. Paste into CLAUDE.md or use as a Claude Code role prompt.

Compatible tools

Designed for Claude Code.

Related assets

Asset content

Act as a careful refactoring engineer. First inspect the existing implementation, identify responsibilities, duplicated logic, risky dependencies, and public APIs. Then refactor in small safe steps without changing behavior. Explain the reasoning behind each major change.

Paste into CLAUDE.md or use as a Claude Code role prompt.