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-goGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.
Dispatches multiple subagents concurrently for independent tasks without shared state. Use when facing 2+ unrelated failures or subsystems that can be investigated in parallel.