Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add sammcj/agentic-coding --skill golang-development -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/golang-development/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/golang-development/

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

Similar skills

All skills for Backend and APIs →

From the same set73

The whole set →
typescript-development typescript-development — a skill that enforces strict TypeScript conventions in Claude Code, applying type safety rules and best practices automatically for TypeScript and JavaScript projects. CX Codex +1 ★ 173repo stars rust-development rust-development instructs Claude Code to follow Rust best practices by organizing crates into workspaces, trimming public generics, and cutting build times. CX Codex +1 ★ 173repo stars python-development The python-development skill sets Python coding rules for Claude Code, covering environments, typing, paths, and script dependencies. Use it on Python projects. CX Codex +1 ★ 173repo stars deeper Rewrites your prompt so the task gets deeper rather than longer. It adds the methods a specialist would use and a way to check the result. CX Codex +1 ★ 173repo stars edit-article edit-article restructures draft articles around heading dependencies and rewrites each section into short paragraphs under 240 characters. CX Codex +1 ★ 173repo stars llm-prompting-guide llm-prompting-guide is a Claude Code skill with prompt format rules for MiniMax H3 and MiniMax Music 3. Consult it when drafting prompts for these models in ComfyUI or other tools. CX Codex +1 ★ 173repo stars backlog Tracks bugs and features in local Markdown files or GitHub Issues. Keeps backlogs tidy without drafting heavy PRDs or specifications. CX Codex +1 ★ 173repo stars github This skill sets rules for using gh to work with GitHub, from reading PR feedback to checking GitHub Actions. It fits tasks involving issues and code review. CX Codex +1 ★ 173repo stars

Project sponsors

Companies that keep this analytics open