SKILL40.6K installs3.7K

Golang Project Layout

Provides a guide for setting up Golang project layouts and workspaces. 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, deciding between cmd/internal/pkg directory conventions, or discussing package restructuring, package splits, or module splits.

Type
Skill
Author
samber
Category
Productivity
GitHub stars
3.7K
Installs
40.6K
Last updated
November 1, 2026

Install

npx skills add https://github.com/samber/cc-skills-golang --skill golang-project-layout

Use cases


Frequently Asked Questions

Which directory conventions does it cover?

The cmd/internal/pkg conventions, along with when to split packages or modules.

Does it handle monorepos?

Yes, it covers setting up a monorepo with multiple packages.

When is it most useful?

At the point where layout decisions get expensive to change, such as starting a project or restructuring one.


About this skill

Guides Go project and workspace structure: starting a new project, reorganizing an existing codebase, setting up a monorepo, or creating CLI tools with multiple main packages. It covers the cmd/internal/pkg conventions and when to split packages or modules. Useful at the point where layout decisions get expensive to change.

Summary written with AI assistance from the project's public description.


Categories


More from samber


Similar Skills