golang-project-layout

Community

Right-size Go project layouts for scalable code.

Authorsamber
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a structured approach to organizing Go projects, guiding developers on proper directory layouts, module naming, and workspace strategies to support scalable, maintainable codebases across single-module and multi-module scenarios.

Core Features & Use Cases

  • Guidance on choosing between CLI, library, and service layouts, including where to place entry points, interfaces, and business logic.
  • Prescribed directory patterns for cmd/, internal/, and pkg/ to promote clean architecture and easy testing.
  • Guidance for monorepos and multi-module setups, including module naming conventions and workspace decisions like go.work when appropriate.

Quick Start

Plan your project structure for a new Go project by selecting a project type (CLI, library, service) and applying the recommended directory layout and module naming conventions.

Dependency Matrix

Required Modules

None required

Components

referencesassets

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: golang-project-layout
Download link: https://github.com/samber/cc-skills-golang/archive/main.zip#golang-project-layout

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.