BigHugger
sk Skill · samber

golang-project-layout

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. Not for…

installs 8w
4,559
30-day movement
starts with the next reading
Related entries
1
Connections
1
goGo

An agent skill that guides Go project layout and workspace setup: cmd/internal/pkg directory conventions, module and package naming, go.work workspaces, and essential root configuration files. It prompts the developer to choose an architecture and dependency-injection approach before scaffolding, and bundles reference docs on directory layouts, testing layout, and workspaces.

Reach for it when starting a new Go project or reorganizing one, so directory structure, naming, and config files follow consistent conventions instead of ad-hoc choices.

Use it to

  • Scaffold a new Go project with a standard directory layout
  • Set up a monorepo with multiple packages and a go.work workspace
  • Create CLI tools with multiple main packages under cmd/
  • Plan package or module splits for an existing codebase
  • Add essential root config files like .gitignore and Makefile

For Go developers using AI coding agents

Host repository
samber/cc-skills-golang
Version
1.4.2
Installs, lifetime
39k
Installs, 8 weeks
4,559
Allowed tools
Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent AskUserQuestion
Compatible with
Designed for Claude Code, Codex or similar harness, and for projects using Golang.
Licence
MIT
Invocable by
user
Host stars
3,292
Host language
Go
topicsgolangproject-layoutworkspacesmonorepopackage-namingscaffolding