Lightlines
By samber

golang-project-layout

samber36.6k installs

A Go project layout that fits your codebase.

What it does

Guides the setup and reorganization of Go projects into appropriately sized directory layouts, modules, and workspaces.

When to use it

Use when starting a Go project, organizing a codebase, setting up multiple modules or binaries, or changing package and module layouts.

How to use it

Give it a Go project to set up or organize; it asks about architecture and dependency injection before creating the structure.

What you provide

  • An existing project

Good to know

  • acts without asking
  • edits its own instructions

Latest review

What you need · 2

Requires the Go toolchain; the initialization checklist detects its installed version before initializing the module.

Directs the initialization workflow to this skill's Configure mode for an always-load directive in the project's agent configuration; installation requirements are unstated.


Access · 1

This skill

CLAUDE.md, AGENTS.md, or equivalent

Write

Adds an always-load skill directive