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.
安装
npx skills add samber/cc-skills-golang --skill golang-refactoringnpx skills add samber/cc-skills-golang --skill golang-refactoring -a claude-code -gnpx skills add samber/cc-skills-golang --skill golang-refactoring -a codex -ggemini skills install https://github.com/samber/cc-skills-golang.git --path skills/golang-refactoringgh skill install samber/cc-skills-golang golang-refactoringgit clone --depth 1 https://github.com/samber/cc-skills-golang /tmp/samber__cc-skills-golang
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/samber__cc-skills-golang/skills/golang-refactoring ~/.claude/skills/golang-refactoring # Claude Code
cp -R /tmp/samber__cc-skills-golang/skills/golang-refactoring ~/.agents/skills/golang-refactoring # Codex, Cursor, Gemini CLI, Copilot, OpenCode