Giverny

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.

by samber★ 4,015Languages

What Golang Project Layout does

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 restructuring existing code without a layout change (→ See `samber/cc-skills-golang@golang-refactoring` skill).

How to install Golang Project Layout in Claude Code

Giverny gives you a ready prompt with the exact install command from samber/cc-skills-golang. Sign in with GitHub, copy the prompt and paste it into Claude Code; Claude installs the skill and confirms it loaded. To install by hand, clone samber/cc-skills-golang and copy the skills/golang-project-layout folder into ~/.claude/skills/.

How to use it

Once installed, Claude loads Golang Project Layout on its own whenever your request matches what the skill does. You can also ask for it by name, for example: “Use the golang-project-layout skill on my current project.”

More Claude skills for languages