golang-development — Claude Code skill: what it does, how to install
golang-development configures build flags, modernize checks, and idiomatic Go practices in Claude Code. Helpful when writing services or tests in Go.
Apache-2.0 ★ 173 updated 2026-10-24
npx skills add sammcj/agentic-coding --skill golang-development -a claude-codeWhat golang-development does
This skill instructs Claude Code to verify and use the newest Go release instead of guessing. It requires compiling with -ldflags="-s -w" to strip symbol tables and debug information. It also runs golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest with -fix -test ./... to bring syntax up to date.
Code conventions focus on idiomatic Go: explicit error handling, early returns, small interfaces, composition, and defer for resource cleanup. When writing tests, it points the agent to references/go-testing.md for table-driven patterns.
The skill hardcodes a config path at $HOME/git/sammcj/mcp-devtools/.golangci.yml, so copying that linter file fails unless you have that exact repository cloned locally.
What it helps with
- build Go binaries stripped of debug information with ldflags
- refactor outdated Go patterns using the modernize tool
- generate table-driven unit tests following repository guidelines
- enforce early returns and small interface design in Go code
Example prompts for the agent
- Run the modernize tool on this Go package and apply fixes
- Compile the application using the required ldflags
- Write table-driven tests for the user repository
How to install golang-development
1Skills CLI (Vercel)
npx skills add sammcj/agentic-coding --skill golang-development -a claude-code2Manually: put the files in place
~/.claude/skills/golang-development/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/golang-development/
1Skills CLI (Vercel)
npx skills add sammcj/agentic-coding --skill golang-development -a codex2Manually: put the files in place
.agents/skills/golang-development/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add sammcj/agentic-coding --skill golang-development -a cursor2Manually: put the files in place
.cursor/skills/golang-development/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install sammcj/agentic-coding Skills/golang-development/SKILL.md2Manually: put the files in place
.github/skills/golang-development/SKILL.md1Skills CLI (Vercel)
npx skills add sammcj/agentic-coding --skill golang-development -a gemini-cli2Platform CLI
gemini skills install https://github.com/sammcj/agentic-coding --path Skills/golang-developmentManually: put the files in place
.devin/skills/golang-development/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about golang-development
How to install golang-development in Claude Code?
Run npx skills add sammcj/agentic-coding --skill golang-development -a claude-code or save the file to ~/.claude/skills/golang-development/SKILL.md.
What does the golang-development skill do?
It guides Claude Code on building with -ldflags="-s -w", running the modernize analyzer, and structuring code with early returns and table-driven tests.
Where does the skill look for the golangci configuration?
It targets $HOME/git/sammcj/mcp-devtools/.golangci.yml, which means the file must exist at that specific path to be copied.
Source text
SKILL.md · Apache-2.0
--- name: golang-development description: You MUST activate this skill when working on Go projects --- # Go - Use latest Go version (verify, don't assume). Build with `-ldflags="-s -w"` - Check modernity: `go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./...` - Copy golangci config: `$HOME/git/sammcj/mcp-devtools/.golangci.yml` - Idiomatic Go: explicit error handling, early returns, small interfaces, composition, defer for cleanup, table-driven tests ## Go Testing - When working with tests in Go, read in `references/go-testing.md` for actionable testing guidelines.
© sammcj · Apache-2.0 · sammcj/agentic-coding