From fuse-go
Structure Go 1.22+ services — standard cmd/internal layout, constructor-based dependency injection, HTTP routing (net/http ServeMux vs chi vs echo/gin/fiber), and type-safe database access with sqlc + pgx. Use when laying out a new Go project, choosing a router or DB layer, or wiring dependencies. Do NOT use for goroutines/channels patterns (go-concurrency) or language idioms (go-core-idioms).
How this skill is triggered — by the user, by Claude, or both
Slash command
/fuse-go:go-architectureThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Opinionated, 2026-current guidance for structuring Go backend services. Favors the
Opinionated, 2026-current guidance for structuring Go backend services. Favors the standard library and small, composable libraries over heavy frameworks.
Use when:
cmd/, internal/)net/http ServeMux, chi, echo/gin/fiber)Do NOT use for:
go-testing-qualityfuse-solid:solid-gofuse-design or a framework expert| Question | Load |
|---|---|
| Where do files/packages go? | project-layout.md |
| Which HTTP router? How do I route? | http-routing.md |
| How do I talk to the database? | database-access.md |
| How do I wire dependencies? | dependency-injection.md |
| I need a full working example | templates/rest-service.md |
net/http.ServeMux supports
method matching and path wildcards (GET /posts/{id}, req.PathValue("id")).
Most services no longer need a routing framework.
Source: https://go.dev/blog/routing-enhancementsinternal/ is the default home for service logic. A server binary is
self-contained; keep packages under internal/ and binaries under cmd/.
There is no official pkg/ requirement — do not cargo-cult it.
Source: https://go.dev/doc/modules/layoutNew… constructors; wire them in main.sqlc generates idiomatic Go from raw
SQL; run it on top of the pgx driver for PostgreSQL. GORM still works but is
in relative decline for new services — see database-access.md for the nuance.
Sources: https://docs.sqlc.dev + https://pkg.go.dev/github.com/jackc/pgx/v5fuse-solid:solid-go).go-testing-quality + sniper after any code change.The community skill set at github.com/samber/cc-skills-golang covers overlapping
Go territory. This skill deliberately scopes to architecture / structure /
routing / DB wiring and hands testing off to go-testing-quality. When in
doubt about which skill owns a topic, prefer the more specific one.
npx claudepluginhub fusengine/agents --plugin fuse-goProvides Go web server architecture with net/http 1.22+ routing, project structure patterns, graceful shutdown, and dependency injection. Use for building Go apps, layouts, and dependencies.
Guides idiomatic Go patterns, concurrency, HTTP servers, and microservice architecture. Emphasizes simplicity and standard library over frameworks.
Guides Go project layout and workspace setup, covering architecture decisions, dependency injection, and 12-factor app conventions. Use when starting a new Go project or reorganizing codebase.