dsjacobsen

Go Refactor — Development agent for Claude Code

Development community

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

Terminal
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 Repository