Skip to content
G

golang-design-patterns

Idiomatic Golang design patterns

by samberFree

#3341in AI Skills
0In stores

Description

golang-design-patterns is an agent skill from the samber cc-skills-golang collection that guides a coding agent to idiomatic Go design. It c…

Highlights

  • Functional options and constructor APIs
  • Avoiding init() and global state
  • Panic versus error decisions
  • Design and review modes
  • Points to related Go skills
  • Installs from skills.sh

Ratings & Reviews

No ratings yet

Be the first to rate golang-design-patterns.

People also visit

G

golang-patterns

Idiomatic Go patterns, best practices, and conventions for building robust

AI Skills
Get
U

use-modern-go

Use the Modern Go Guidelines CLI whenever writing, modifying, fixing

AI Skills
Get
M

modern-go-guidelines

Enhances Claude Code with modern Go guidelines up to go 1.26 version

AI Skills
Get
G

go-code-review

Reviewing Go code or checking code against community style standards

AI Skills
Get
G

golang-project-layout

Golang project layout and workspace setup

AI Skills
Get
G

golang-error-handling

Idiomatic Golang error handling

AI Skills
Get

golang-design-patterns FAQ

What does this skill cover?

Idiomatic Go design: functional options, constructor APIs, avoiding init and global state, enums, panic versus error, and resource management.

What are the two modes?

Design mode for new APIs, packages and structure, which asks about your architecture preference first, and review mode for auditing existing code.

What does review mode look for?

init abuse, unbounded resources, missing timeouts and implicit global state. It reports findings before suggesting refactors.

Does it cover error handling?

Only at the design level. Detailed error handling is in the separate golang-error-handling skill in the same collection.

How do I install it?

Run npx skills add https://github.com/samber/cc-skills-golang --skill golang-design-patterns.

What are the security audit results?

skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.

What are the best golang-design-patterns alternatives?

Popular alternatives to golang-design-patterns include golang-patterns, use-modern-go and modern-go-guidelines. See all golang-design-patterns alternatives

Developer Stuff

Badges