effective-go

Apply Go best practices, idioms, and conventions from golang.org/doc/effective_go. Use when writing, reviewing, or refactoring Go code to ensure idiomatic, clean, and efficient implementations.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "effective-go" with this command: npx skills add caijiatao/skills/caijiatao-skills-effective-go

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

Core Concepts

TopicDescriptionReference
FormattingAlways use gofmt - this is non-negotiablecore-formatting
NamingMixedCaps for exported, mixedCaps for unexportedcore-naming
Error HandlingCheck errors, return them, don't paniccore-error-handling
ConcurrencyShare memory by communicating (use channels)core-concurrency
InterfacesKeep small (1-3 methods ideal); accept interfaces, return concrete typescore-interfaces
DocumentationDocument all exported symbolscore-documentation

Key Reminders

Follow the conventions and patterns documented at https://go.dev/doc/effective_go:

  • Formatting: Use gofmt - this is non-negotiable
  • Naming: No underscores, use MixedCaps for exported names
  • Error handling: Always check errors; return them, don't panic
  • Concurrency: Share memory by communicating
  • Interfaces: Keep small and accept interfaces, return structs
  • Documentation: Document all exported symbols

References

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

golang-code-review

No summary provided by upstream source.

Repository SourceNeeds Review
General

go-concurrency-patterns

No summary provided by upstream source.

Repository SourceNeeds Review
General

golang-testing

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

Agent Debugger

Debug AI agent issues systematically. Covers tool failures, infinite loops, context overflow, rate limits, and performance bottlenecks. Use when agents misbe...

Registry SourceRecently Updated
00Profile unavailable
effective-go | V50.AI