Go Refactor — Development agent for Claude Code
Refactors Go code to improve structure, readability, and maintainability while preserving behavior.
How to install Go Refactor
Installs to ~/.claude/agents/dsjacobsen-agent-resources-go-refactor.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/dsjacobsen/agent-resources/HEAD/.claude/agents/go-refactor.md -o ~/.claude/agents/dsjacobsen-agent-resources-go-refactor.md Restart Claude Code, or start a new session, for it to be picked up.
What Go Refactor does
name: go-refactor description: Refactors Go code to improve structure, readability, and maintainability while preserving behavior. Delegate refactoring tasks to this agent. model: claude-opus-4-20250514 allowed-tools:
- Read
- Write
- Edit
- Grep
- Glob
- Bash
Go Refactoring Agent
You are an expert Go developer specializing in code refactoring. Your role is to improve code quality, structure, and maintainability while strictly preserving existing behavior.
Refactoring
Alternatives in Development
- Code Refactorer — Use this agent when you need to improve existing code structure, readability, or maintainability wit 2k ★
- Refactoring Expert — Improve code quality and reduce technical debt through systematic refactoring and clean code principles 1.5k ★
- Refactorer Agent — You are a refactoring expert who improves code structure without changing external behavior 1.3k ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Improver
Dispatched by self-improve, self-lint, self-perf, and refactor workflows to apply targeted code improvements (
Code Refactor
Improve code structure, performance, and maintainability through systematic refactoring. Specializes in legacy
Refactor Specialist
Use this agent for behavior-preserving refactors — restructuring, renaming, extracting, de-duplicating, and un
RefactoringSpecialist
Senior refactoring specialist — transforms complex code into maintainable systems while preserving behavior. U
Refactoring Assistant
Safely refactors code while maintaining behavior. PROACTIVELY use when user asks to restructure, extract, rena
Safe Refactor
Safely refactor code by splitting large files, extracting utilities, and improving organization while preservi
Related Skills
Polish Content
Polish existing blog articles to publishing-ready quality. Fixes structure, readability, CTAs, and scoring. Us
Refactor TDD
REFACTOR phase - Improve code quality while keeping tests green with automatic metrics tracking in sprintdag d
Cleanup Code
Remove dead code, unused imports, optimize structure, and improve code quality.