Golang refactoring — safe, at-scale restructuring of existing Go code: a coverage-adaptive safety net, behavior-preserv…
Part of cc-skills-golangPack · 46 skills
by samber· Developer toolsUnclaimed · Yours? Claim it
About
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).
Skills people install alongside golang-refactoring.
Runs on your machine.
Runs on your machine.
Runs on your machine.
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-refactoring ~/.copilot/skills/golang-refactoring
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-refactoring ~/.cursor/skills/golang-refactoring
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-refactoring ~/.claude/skills/golang-refactoring
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-refactoring ~/.agents/skills/golang-refactoring
Runs on your machine.
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-refactoring ~/.gemini/skills/golang-refactoring
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-refactoring .agents/skills/golang-refactoring
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-refactoring ~/.openclaw/skills/golang-refactoring
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-refactoring ~/.config/opencode/skills/golang-refactoring
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-refactoring ~/.hermes/skills/golang-refactoring
Scanned and passed · checked 49 min ago
From people who use it
Step by step
Nothing new reaches your agent until a person has looked at it.
Scanned on every change, and again when our rules improve.
No reviews yet. Used golang-refactoring? Say how it went.
Write a reviewTw93's engineering habits as eight skills: plan before you build, debug to root cause, review before you ship, and more.
Go skills for coding agents: idiomatic style, error handling, testing, concurrency, security and performance for production Go projects.
Test Double's coding skills: build test-first, refactor under green tests, review your branch and trace bugs to their root cause.
Nobody has shared how they use golang-refactoring yet.
Security scan
Passed
Safe to install in every agent it supports. Runs in your agent, as instructions.