# golang-project-layout

> Golang project layout and workspace setup — cmd/internal/pkg directory conventions, module and package naming, go.work…

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).

- Type: Skill
- Made by: samber
- Category: Developer tools
- Formats: Skills
- Version: 1.4.2
- Source: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-project-layout
- Page: https://pluginboard.ai/skills/golang-project-layout

## Works with

- ChatGPT
- Claude
- Gemini
- GitHub Copilot
- Cursor
- Claude Code
- Codex
- Antigravity
- Gemini CLI
- Replit
- OpenClaw
- OpenCode
- Hermes Agent

## Install

### ChatGPT

In ChatGPT: Download the golang-project-layout folder and zip it, then Plugins → Skills → Create → Upload from your computer. Business and Enterprise plans.

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-project-layout

### Claude

In Claude (web or desktop): Download the golang-project-layout folder and zip the folder itself, then upload it in Customize → Skills.

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-project-layout

### Gemini

In Gemini: Download the golang-project-layout folder, then at gemini.google.com click Customize → Skills → Create → Upload and pick the folder (or a .zip of it).

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-project-layout

### GitHub Copilot

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-project-layout ~/.copilot/skills/golang-project-layout
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-project-layout

### Cursor

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-project-layout ~/.cursor/skills/golang-project-layout
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-project-layout

### Claude Code

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-project-layout ~/.claude/skills/golang-project-layout
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-project-layout

### Codex

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-project-layout ~/.agents/skills/golang-project-layout
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-project-layout

### Antigravity

In Antigravity: Copy the golang-project-layout folder into ~/.gemini/config/skills (Antigravity app and IDE) or ~/.gemini/antigravity-cli/skills (Antigravity CLI).

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-project-layout

### Gemini CLI

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-project-layout ~/.gemini/skills/golang-project-layout
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-project-layout

### Replit

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-project-layout .agents/skills/golang-project-layout
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-project-layout

### OpenClaw

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-project-layout ~/.openclaw/skills/golang-project-layout
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-project-layout

### OpenCode

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-project-layout ~/.config/opencode/skills/golang-project-layout
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-project-layout

### Hermes Agent

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-project-layout ~/.hermes/skills/golang-project-layout
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-project-layout

---
From Pluginboard (https://pluginboard.ai).
