Code Refactoring banner
tstapler tstapler

Code Refactoring

Development community

Description

--- name: code-refactoring description: Use this agent to refactor code following established software engineering principles, design patterns, and best practices from authoritative literature. This agent uses AST-based tools (gritql) for safe, validated structural transformations and should be invoked when you need to improve existing code structure, apply design patterns, implement SOLID principles, or modernize code using language-specific idioms while preserving behavior and enhanc

Installation

Installs to ~/.claude/agents/tstapler-dotfiles-code-refactoring.md

Terminal
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/tstapler/dotfiles/HEAD/.claude/agents/code-refactoring.md -o ~/.claude/agents/tstapler-dotfiles-code-refactoring.md

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

Full documentation available on GitHub

View Source Repository