Skip to content
InfratoApp
InfratoApp / Resources / Agent skills / golang-refactoring

golang-refactoring

golang-refactoring is an agent skill published by samber, listed under design. It lives in the samber/cc-skills-golang repository, which has 3,672 GitHub stars and is licensed under MIT; we last read it on 2026-09-16.

Golang refactoring — safe, at-scale restructuring of existing Go code: a coverage-adaptive safety net, behavior-preserving transforms (gopls Rename/Extract, `gofmt -r`, `gopatch`), the Fowler catalog mapped to Go, breaking import cycles, and small stacked PRs. Apply when a function or type has grown too large, a code smell blocks a feature, or the user asks to refactor Go code — also for renaming at scale, extracting functions or interfaces, moving code between packages, or planning a multi-step refactor. Target styles owned elsewhere → See `samber/cc-skills-golang@golang-naming` (renames), `samber/cc-skills-golang@golang-project-layout` (splits), `samber/cc-skills-golang@golang-modernize` (idioms), `samber/cc-skills-golang@golang-code-style` (control flow), `samber/cc-skills-golang@golang-design-patterns` (patterns/DI).

Install

skills is a generic installer for any repository of Claude agent skills -- it reads samber/cc-skills-golang’s own structure rather than assuming one, the same way this page reads the skill’s own SKILL.md rather than assuming a format.

npx skills add samber/cc-skills-golang

Maintenance

Stars
3672
State
listed
Licence
MIT
From the repository

Golang refactoring — safe, at-scale restructuring of existing Go code: a coverage-adaptive safety net, behavior-preserving transforms (gopls Rename/Extract, `gofmt -r`, `gopatch`), the Fowler catalog mapped to Go, breaking import cycles, and small stacked PRs. Apply when a function or type has grown too large, a code smell blocks a feature, or the user asks to refactor Go code — also for renaming at scale, extracting functions or interfaces, moving code between packages, or planning a multi-step refactor. Target styles owned elsewhere → See `samber/cc-skills-golang@golang-naming` (renames), `samber/cc-skills-golang@golang-project-layout` (splits), `samber/cc-skills-golang@golang-modernize` (idioms), `samber/cc-skills-golang@golang-code-style` (control flow), `samber/cc-skills-golang@golang-design-patterns` (patterns/DI).

golang-refactoring compared with similar skills

golang-refactoring compared with other skills for the same job, by publisher, what it does, repository stars and last update
SkillPublisherWhat it doesRepo starsLast update
golang-refactoring (this page)samberGolang refactoring — safe, at-scale restructuring of existing Go code: a coverage-adaptive safety net, behavi…3,6722026-10-23
golang-project-layout(same repository)samberGolang project layout and workspace setup — cmd/internal/pkg directory conventions, module and package naming…3,6722026-10-23
golang-spf13-cobra(same repository)samberGolang CLI command tree library using spf13/cobra — cobra.Command, RunE vs Run, PersistentPreRunE hook chain,…3,6722026-10-23
setup-matt-pocock-skillsmattpocockConfigure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain…303,5492026-10-22
brand-guidelinesanthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having…183,8452026-10-09
frontend-designanthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps…183,8452026-10-09
apple-designemilkowalskiApple's approach to interface design and fluid, physical motion, translated for the web. Use when building or…49,7152026-10-11

Skills from the same repository first, then others for this job by repository stars. Figures are from each repository when we last read it.

Common questions about golang-refactoring

What does golang-refactoring do?
Golang refactoring — safe, at-scale restructuring of existing Go code: a coverage-adaptive safety net, behavior-preserving transforms (gopls Rename/Extract, `gofmt -r`, `gopatch`), the Fowler catalog mapped to Go, breaking import cycles, and small stacked PRs. Apply when a function or type has grown too large, a code smell blocks a feature, or the user asks to refactor Go code — also for renaming at scale, extracting functions or interfaces, moving code between packages, or planning a multi-step refactor. Target styles owned elsewhere → See `samber/cc-skills-golang@golang-naming` (renames), `samber/cc-skills-golang@golang-project-layout` (splits), `samber/cc-skills-golang@golang-modernize` (idioms), `samber/cc-skills-golang@golang-code-style` (control flow), `samber/cc-skills-golang@golang-design-patterns` (patterns/DI).
How do I install golang-refactoring?
Run npx skills add samber/cc-skills-golang. The skills installer reads the repository’s own structure, so it works for any repository of agent skills.
Who publishes golang-refactoring?
samber.
Is golang-refactoring maintained, and what licence does it use?
Its repository has 3,672 GitHub stars and its state in our directory is listed. Its last commit we recorded was on 2026-10-23. The repository declares the MIT licence.

More agent skills for design

All design entries →

Learn this on Infrato