Agent skill
go
Go (Golang) with goroutines, channels, interfaces, and idiomatic patterns. Use for .go files.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/go
SKILL.md
Go
A simple, fast, and concurrent language developed by Google.
When to Use
- Microservices / Cloud-native apps
- Network tools (servers, proxies)
- High-performance systems
- CLIs
Quick Start
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
ch := make(chan string)
go func() {
ch <- "from goroutine"
}()
msg := <-ch
fmt.Println(msg)
}
Core Concepts
Goroutines
Lightweight threads managed by the Go runtime.
go doSomething()
Channels
Typed conduits for communication between goroutines.
Interfaces
Implicitly implemented. If a struct has the methods, it implements the interface.
Best Practices
Do:
- Handle errors explicitly (check
if err != nil) - Use
gofmtto format code - Keep extensive comments for public APIs
- Use context for cancellation and timeouts
Don't:
- Ignore errors (using
_) blindly - Use panic/recover for normal error handling
- Create large interfaces (keep them small)
References
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?