Idiomatic Golang design patterns — functional options, constructor APIs, `init()` and global-state avoidance, enums, pa…
Part of cc-skills-golangPack · 46 skills
by samber· Developer toolsUnclaimed · Yours? Claim it
About
Idiomatic Golang design patterns — functional options, constructor APIs, `init()` and global-state avoidance, enums, panic vs error decisions, resource management and lifecycle, graceful shutdown, timeouts and retries, streaming and iterators, and architecture styles (clean, hexagonal, DDD, flat). Apply when choosing between architectural patterns, implementing functional options, designing constructor APIs, setting up graceful shutdown, applying resilience patterns, or asking which idiomatic Go pattern fits a specific problem. Not for wiring a DI container or comparing DI libraries (→ See `samber/cc-skills-golang@golang-dependency-injection` skill), nor for error wrapping, `errors.Is`/`As`, or logging mechanics (→ See `samber/cc-skills-golang@golang-error-handling` skill).
Skills people install alongside golang-design-patterns.
Runs on your machine.
Runs on your machine.
Runs on your machine.
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-design-patterns ~/.copilot/skills/golang-design-patterns
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-design-patterns ~/.cursor/skills/golang-design-patterns
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-design-patterns ~/.claude/skills/golang-design-patterns
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-design-patterns ~/.agents/skills/golang-design-patterns
Runs on your machine.
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-design-patterns ~/.gemini/skills/golang-design-patterns
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-design-patterns .agents/skills/golang-design-patterns
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-design-patterns ~/.openclaw/skills/golang-design-patterns
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-design-patterns ~/.config/opencode/skills/golang-design-patterns
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-design-patterns ~/.hermes/skills/golang-design-patterns
Scanned and passed · checked 2 h ago
From people who use it
Step by step
Nothing new reaches your agent until a person has looked at it.
Scanned on every change, and again when our rules improve.
No reviews yet. Used golang-design-patterns? Say how it went.
Write a reviewTw93's engineering habits as eight skills: plan before you build, debug to root cause, review before you ship, and more.
Go skills for coding agents: idiomatic style, error handling, testing, concurrency, security and performance for production Go projects.
Test Double's coding skills: build test-first, refactor under green tests, review your branch and trace bugs to their root cause.
Nobody has shared how they use golang-design-patterns yet.
Security scan
Passed
Safe to install in every agent it supports. Runs in your agent, as instructions.