Skip to content
G

golang-design-patterns

Idiomatic Golang design patterns

by samberFree

Launch
#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

P

python-design-patterns

Fundamental design principles for writing maintainable, testable Python code

AI Skills
Launch
G

golang-code-style

Golang code style conventions

AI Skills
Launch
G

golang-error-handling

Idiomatic Golang error handling

AI Skills
Launch
G

golang-testing

Production-ready Golang tests

AI Skills
Launch
G

golang-security

Security best practices and vulnerability prevention for Golang

AI Skills
Launch
G

golang-concurrency

Golang concurrency design

AI Skills
Launch

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 python-design-patterns, golang-code-style and golang-error-handling. See all golang-design-patterns alternatives

Developer Stuff

Badges