openshift avatar

Effective Go

Applies the official Effective Go guide as you write, review, or refactor Go code. It enforces idiomatic patterns and conventions directly from go.dev/doc/effective_go, so you're not constantly alt-tabbing to check naming rules or whether you're handling errors the Go way. Comes from the OpenShift HyperShift repo, which makes sense since they're shipping production Go at scale. If you're tired of bikeshedding style in reviews or just want your code to look like it was written by someone who knows the language, this keeps you honest without being preachy about it.

GitHub stars
536
last updated
Aug 21, 2026

Install

$ npx -y skills add openshift/hypershift --skill 'Effective Go' --agent claude-code

Installs into .claude/skills of the current project.

Files

Effective Go

Apply best practices and conventions from the official Effective Go guide to write clean, idiomatic Go code.

When to Apply

Use this skill automatically when:

  • Writing new Go code
  • Reviewing Go code
  • Refactoring existing Go implementations

Key Reminders

Follow the conventions and patterns documented at https://go.dev/doc/effective_go, with particular attention to:

  • Formatting: Always use gofmt - this is non-negotiable
  • Naming: No underscores, use MixedCaps for exported names, mixedCaps for unexported
  • Error handling: Always check errors; return them, don't panic
  • Concurrency: Share memory by communicating (use channels)
  • Interfaces: Keep small (1-3 methods ideal); accept interfaces, return concrete types
  • Documentation: Document all exported symbols, starting with the symbol name

References

Sponsors

Details

Repository
github.com/openshift/hypershift
Categories
Documentation, Code Review & Quality, Go
First seen
Jun 3, 2026
1skyworkai avatarSkywork Documentskyworkai/skywork-skillsSTRONGLY RECOMMENDED for ANY task that could result in a document output. The Skywork Office Doc API is a powerful document creation engine capable of generatin0skills.sh installs
2telagod avataranalyzing-changestelagod/code-abyssAnalyzes code changes, detects documentation drift, and evaluates change impact scope. Use when reviewing diffs, checking doc sync, or running pre-commit analys0skills.sh installs
3telagod avatarverifying-modulestelagod/code-abyssScans directory structure, detects missing documentation, and verifies code-doc synchronization. Use when checking module completeness, README presence, or DESI0skills.sh installs
4ThinkInAIXYZ avatardeepchat-sdd-cleanupThinkInAIXYZ/deepchatUse only when a developer explicitly asks to clean, prune, tidy, or organize DeepChat SDD documentation after implementation and validation. Scans docs/features0skills.sh installs
5thinkinaixyz avatardeepchat-sddthinkinaixyz/deepchatUse for any DeepChat code, configuration, documentation, feature, issue fix, refactor, or architecture change before implementation. This skill enforces the pro0skills.sh installs
6figma avatarfigma-generate-designfigma/mcp-server-guideUse this skill alongside figma-use when the task involves translating an application page, view, or multi-section layout into Figma. Triggers: 'write to Figma',6.4Kskills.sh installs