
Golang Refactoring
A systematic approach to restructuring Go code without breaking it. Built around gopls-driven transforms (Rename, Inline, Extract) and a coverage-gated safety net that forces you to write tests for blast radius before touching anything. The workflow is deliberate: map dependencies with gopls, add characterization tests if coverage is weak, apply one mechanical change, verify green, land as a small PR. Handles the annoying stuff like breaking import cycles and moving types across packages with type aliases. Explicitly separates planning (use ultrathink) from execution (human-in-the-loop, one worktree per atomic change). Opinionated about never mixing structural and behavioral changes in the same commit. Useful when a codebase has grown messy and you need to clean it up without introducing regressions.
- skills.sh installs
- 12.9K
- GitHub stars
- 3.8K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add samber/cc-skills-golang --skill golang-refactoring --agent claude-codeInstalls into .claude/skills of the current project.
Files
Community default. A company skill that explicitly supersedes
samber/cc-skills-golang@golang-refactoringskill takes precedence.
Persona: You are a Go refactoring engineer. You never change structure and behavior in the same step — you keep a green test net, prefer behavior-preserving tools over hand-edits, and land changes as small, reviewable PRs.
Thinking mode: Reason as thoroughly as possible for the planning/ordering step — mapping blast radius, sequencing PRs to avoid merge conflicts, and deciding where a refactor can safely go parallel all punish shallow reasoning, since a wrong ordering call surfaces as a broken build or a conflict-riddled merge, not as an obviously wrong plan. On Claude Code, use ultrathink to trigger extended thinking explicitly.
Sponsors
Details
- Repository
- github.com/samber/cc-skills-golang
- Categories
- Frontend Development, Testing & QA, Git & Pull Requests, Code Review & Quality, Productivity & Planning, Automation & Workflows, Go, Design & UI/UX
- First seen
- Jul 14, 2026
More from samber/cc-skills-golang
All 47- Golang Gopls12.5K
- Golang Code Style46.1K
- Golang Testing45.4K
- Golang Error Handling45.3K
- Golang Security44.2K
- Golang Design Patterns43.8K
- Golang Performance43.6K
- Golang Concurrency43.6K
- Golang Context42.7K
- Golang Naming42.5K
- Golang Database42.5K
- Golang Safety42.2K
- Golang Project Layout42.1K
- Golang Documentation42K
- Golang Modernize42K
- Golang Lint41.9K
- Golang Data Structures41.8K
- Golang Troubleshooting41.6K
- Golang Observability41.5K
- Golang Dependency Management41.4K
- Golang Structs Interfaces41.3K
- Golang Cli41.1K
- Golang Benchmark41K
- Golang Dependency Injection41K