golang-refactoring
Skill8 starsChanged 37 days agoNo licenceView on GitHub
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).
- Installs packages
6 other projects use a version of this, 5 of them edited.
Adopted by
Most recently taken up by
- samber/cc-skills-golangedited, first seen Nov 1, 2026
- klawisha012/agentsyncedited, first seen Oct 25, 2026
- rockcookies/skillsedited, first seen Oct 13, 2026
- reagin/agent-skillstheir own version, first seen Sep 25, 2026
- rzisso/golang-skillsedited, first seen Sep 16, 2026
- jkeddari/go-skillsedited, first seen Jul 19, 2026
Used with
Projects with it also use golang-samber-ro, golang-samber-lo and 2 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
guynhsichngeodiecSkillgolang-samber-ro
Reactive streams and event-driven programming in Golang using samber/ro — ReactiveX implementation with 150+ type-safe operators, cold/hot observables, 5 subject types (Publish, Behavior, Replay, Async, Unicast), declarative pipelines via Pipe, 40+ plugins (HTTP, cron, fsnotify, JSON, logging), automatic backpressure, error propagation, and Go context integration. Apply when using or adopting samber/ro, when the codebase imports github.com/samber/ro, or when building asynchronous event-driven pipelines, real-time data processing, streams, or reactive architectures in Go. Not for finite slice transforms (-> See golang-samber-lo skill).
Also in 5 projects that use this
guynhsichngeodiecSkillgolang-samber-lo
Functional programming helpers for Golang using samber/lo — 500+ type-safe generic functions for slices, maps, channels, strings, math, tuples, and concurrency (Map, Filter, Reduce, GroupBy, Chunk, Flatten, Find, Uniq, etc.). Core immutable package (lo), concurrent variants (lo/parallel aka lop), in-place mutations (lo/mutable aka lom), lazy iterators (lo/it aka loi for Go 1.23+), and experimental SIMD (lo/exp/simd). Apply when using or adopting samber/lo, when the codebase imports github.com/samber/lo, or when implementing functional-style data transformations in Go. Not for streaming pipelines (→ See golang-samber-ro skill).
Also in 5 projects that use this
alexastrumSkillgolang-google-wire
Compile-time dependency injection in Golang using google/wire — wire.NewSet, wire.Build, wire.Bind (interface→concrete), wire.Struct, wire.Value, wire.InterfaceValue, wire.FieldsOf, cleanup functions, //go:build wireinject injector files, and generated wire_gen.go. Apply when using or adopting google/wire, when the codebase imports `github.com/google/wire`, or when wiring an application graph at compile time via `wire.Build`. For runtime DI with reflection, see `samber/cc-skills-golang@golang-uber-dig` skill.
Also in 4 projects that use this
alexastrumSkillgolang-graphql
Implements GraphQL APIs in Golang using gqlgen or graphql-go. Apply when building GraphQL servers, designing schemas, writing resolvers, handling subscriptions, or integrating GraphQL with existing Go HTTP services. Also apply when the codebase imports `github.com/99designs/gqlgen` or `github.com/graph-gophers/graphql-go`.
Also in 4 projects that use this
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 5
- samber/cc-skills-golang★ 3.9k100% same
- klawisha012/agentsync★ 1094% same
- jkeddari/go-skills★ 111% same
- rockcookies/skills★ 193% same
- rzisso/golang-skills★ 0100% same
Wrote their own version · 1
- reagin/agent-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository280 other files it gives its agents.
- bootstrap/AGENTS.mdAGENTS.md
- .claude/agents.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- .claude/commands/CLAUDE.mdCLAUDE.md
- CLAUDECLAUDE.md
- CLAUDE.mdCLAUDE.md
- academic-cv-builderSkill
- address-review-commentsSkill
- advanced-memory-architectureSkill
- agent-developmentSkill
- android-versioningSkill
- architecture-best-practicesSkill
- ast-grepSkill
- automation-constructsSkill
- basic-context-optimizationSkill
- bazel-angularSkill
- bazel-github-actions-ciSkill
- bazel-kotlinSkill
- bazel-perfSkill
- bazel-version-upgradesSkill
- bedrock-model-lookupSkill
- blog-pipelineSkill
- browser-profilingSkill
- career-changer-translatorSkill
- claude-technique-evaluatorSkill
- clothing-product-sourcerSkill
- cmp-ui-testingSkill
- code-archaeologySkill
- code-architecture-best-practicesSkill
- code-ast-grepSkill
- code-debuggingSkill
- code-go-gitSkill
- code-golang-architectureSkill
- code-gritqlSkill
- code-hotspot-analysisSkill
- code-java-api-discoverySkill
- code-kmpSkill
- code-new-projectSkill
- code-path-analysisSkill
- code-refactor-core6-mechanicalSkill
- code-refactoringSkill
- code-re-qt5Skill
- code-reverse-engineering-binarySkill
- code-reviewSkill
- code-root-cause-analysisSkill
- code-spring-bootSkill
- code-strandsSkill
- command-developmentSkill
- composable-integrationsSkill
- confluence-markdownSkill
- context-auditSkill
- context-engineeringSkill
- context-vizSkill
- cover-letter-generatorSkill
- creative-portfolio-resumeSkill
- debuggingSkill
- debug-lost-in-middleSkill
- design-loopSkill
- design-modifySkill
- design-patternsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. 5 are common, 0 are distinctive, and 2 are very specific to this project.
5
Common
Most of the 6 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
No licence file, so all rights are reserved — read it at the source. We count its rules but don't quote them. Read them on GitHub.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

