Go Refactor — Code Quality skill for Claude Code
Refactor Go code to improve structure and readability.
How to install Go Refactor
Installs to ~/.claude/commands/dsjacobsen-agent-resources-go-refactor.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/dsjacobsen/agent-resources/HEAD/.claude/commands/go-refactor.md -o ~/.claude/commands/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: Refactor Go code to improve structure and readability
Refactor the Go code in context to improve quality:
Use the `go-refactor` agent. Before refactoring:
- Verify tests exist - Don't refactor without tests
- Run tests - Ensure passing baseline
**Common refactorings:**
- Extract function - Break up long functions
- Extract interface - Create abstractions for testing
- Simplify conditionals - Use early returns
- **Remove duplicatio
Alternatives in Code Quality
- Refactor — We are about to refactor code 1.6k ★
- Refactor Claude Md — Refactor CLAUDE.md by extracting sections to dedicated docs with path-scoped rules 1.6k ★
- Repren — Power rename/refactor tool (now with Claude Code skill support 371 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Cleanup Code
Remove dead code, unused imports, optimize structure, and improve code quality.
Refactor TDD
REFACTOR phase - Improve code quality while keeping tests green with automatic metrics tracking in sprintdag d
Claude Formatter
A CLI tool to format Claude's streaming JSON output for better readability
Pbi Format
Reformat DAX expressions for maximum readability using the DAX Formatter API (daxformatter.com). Handles long
Sc Improve
Apply systematic improvements to code quality, performance, and maintainability
Clean Code Mentor
A patient mentor teaching production-grade code practices. Invoke when user wants to learn best practices, cod
Related 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