Golang project layout and workspace setup — cmd/internal/pkg directory conventions, module and package naming, go.work workspaces, and essential configuration files. Use when starting a new Go project, organizing an existing codebase, setting up a monorepo with multiple packages, creating CLI tools with multiple main packages, or discussing package restructuring, package splits, or module splits.
Install
npx skills add samber/cc-skills-golang --skill golang-project-layoutnpx skills add samber/cc-skills-golang --skill golang-project-layout -a claude-code -gnpx skills add samber/cc-skills-golang --skill golang-project-layout -a codex -ggemini skills install https://github.com/samber/cc-skills-golang.git --path skills/golang-project-layoutgh skill install samber/cc-skills-golang golang-project-layoutgit 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-project-layout ~/.claude/skills/golang-project-layout # Claude Code
cp -R /tmp/samber__cc-skills-golang/skills/golang-project-layout ~/.agents/skills/golang-project-layout # Codex, Cursor, Gemini CLI, Copilot, OpenCode