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 ★
- Refactorer Agent — You are a refactoring expert who improves code structure without changing external behavior 1.3k ★
- TDD Refactoring Agent — Improves code structure while keeping all tests green during the TDD REFACTOR phase using proven refactoring p 652 ★
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
RefactoringSpecialist
Senior refactoring specialist — transforms complex code into maintainable systems while preserving behavior. U
Refactor Specialist
Use this agent for behavior-preserving refactors — restructuring, renaming, extracting, de-duplicating, and un
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
Agm Be
Analyze, design, create, edit, refactor, or explicitly test AgriMap .NET backend work (agmws-/agmbo- services,