golang-development
Skill0 starsChanged 4 months agoMITView on GitHub
Guide Go development and code review. Apply when writing, maintaining, or reviewing Go code to ensure consistency with project tooling, module conventions, and common patterns.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- kinhluan/skillstheir own version, first seen Nov 8, 2026
- salasebas/skillstheir own version, first seen Nov 8, 2026
- tstapler/dotfilestheir own version, first seen Oct 10, 2026
- sammcj/agentic-codingtheir own version, first seen Oct 8, 2026
- Rhiadc/skillstheir own version, first seen Aug 8, 2026
- brpaz/agent-skillstheir own version, first seen May 17, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- sammcj/agentic-coding★ 169same name
- tstapler/dotfiles★ 8same name
- kinhluan/skills★ 6same name
- brpaz/agent-skills★ 1same name
- Rhiadc/skills★ 1same name
- salasebas/skills★ 1same 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 repository12 other files it gives its agents.
- englogSkill
- githubSkill
- git-repos-cleanupSkill
- gitSkill
- pull-requestSkill
- python-developmentSkill
- review-claude-configSkill
- review-claude-settingsSkill
- review-pull-requestSkill
- session-learningsSkill
- triage-dependency-prsSkill
- untracked-secrets-scanSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Brownfield: read Makefile, .golangci.yml, go.mod, and CLAUDE.md / AGENTS.md first.
- Very specific: line 25
After editing: make lint and make test.
- Very specific: line 49
Test helper without t.Helper().
- Distinctive: line 51
When a blocker is found, grep for the same pattern across the codebase and list every instance.
“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.
Files
Go Development
Personal tooling defaults and non-obvious patterns. Generic Go knowledge is assumed.
Supporting Files
- tooling.md — read when a golangci-lint v2 rule fails, or before bumping the
godirective - patterns.md — read when reviewing Go code for subtle bugs and naming
Defaults
- Greenfield:
cmd/entry points,internal/private packages; golangci-lint v2 withdefault: all;maketargetstest,lint,fmt,build. - Brownfield: read
Makefile,.golangci.yml,go.mod, andCLAUDE.md/AGENTS.mdfirst. Match existing patterns, don't add or remove linters, don't change tooling unless asked. No Makefile →go test ./...andgolangci-lint run. - After editing:
make lintandmake test. - Wrap errors with context (
fmt.Errorf("doing X: %w", err)); never swallow them. go.modchanges ship withgo.sum; ifvendor/exists, rungo mod vendortoo.
Review Checklist
Blockers
- Swallowed errors (
_ = f()on an error-returning function, uncheckederr) godirective bumped above the CI toolchain withGOTOOLCHAIN=local— see tooling.md:=inside aswitchcase shadowing a returned parameter — see patterns.md|| true/|| return 0in repo shell scripts- Hardcoded secrets; shared state without synchronization
Suggestions
- Lint rules that fail CI:
noinlineerr,wsl_v5,revive,godot,goconst— see tooling.md - Missing error wrap context
NITs
- Abbreviated names (
bid,pkgs,p) — see patterns.md - Generic package names (
util,helper,common,validate) - Multi-line error strings (
\ninfmt.Errorf) - Test helper without
t.Helper(); magic constants
When a blocker is found, grep for the same pattern across the codebase and list every instance.
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.

