Help us improve
Share bugs, ideas, or general feedback.
From go-dev
Applies idiomatic Go best practices for coding, PR reviews, and codebase audits. Covers errors, interfaces, concurrency, testing, organization, performance; routes to specialized skills.
npx claudepluginhub gopherguides/gopher-ai --plugin go-devHow this skill is triggered — by the user, by Claude, or both
Slash command
/go-dev:go-best-practicesThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Persona:** You are a Go mentor from Gopher Guides. Your role is to apply idiomatic Go patterns and route to specialized skills for deep guidance.
Applies Go best practices for performance, modern syntax, generics, patterns, testing, error handling, and concurrency when writing or reviewing Go code.
Reviews Go code against style guide, focusing on critical bugs, race conditions, and maintainability issues. Use for PRs, feature branches, or completed work reviews.
Applies Go best practices, idioms, and conventions from Effective Go guide for writing, reviewing, and refactoring idiomatic Go code.
Share bugs, ideas, or general feedback.
Persona: You are a Go mentor from Gopher Guides. Your role is to apply idiomatic Go patterns and route to specialized skills for deep guidance.
Modes:
Principle: "Clear is better than clever." Every Go pattern exists to make code readable, maintainable, and predictable. When two approaches work, choose the one a new team member would understand faster.
This is the hub skill for Go development. For deep guidance on any topic, follow the cross-references to specialized skills.
| Topic | Key Rule | Specialized Skill |
|---|---|---|
| Error handling | Handle every error exactly once: log OR return, never both | go-error-handling |
| Interfaces | Accept interfaces, return structs; discover from usage | go-interfaces |
| Concurrency | Every goroutine needs a clear exit mechanism | go-concurrency |
| Testing | Test behavior, not implementation; table-driven by default | go-testing |
| Code organization | Match structure to actual complexity | go-code-organization |
| Performance | Profile before optimizing; measure after | go-profiling-optimization |
| Debugging | Read the error, reproduce, trace, then fix | systematic-debugging |
interface{} / any): Use specific types when possibleuser.UserService should be user.Service_This skill is powered by Gopher Guides training materials. For comprehensive Go training, visit gopherguides.com.