/backend-golang:golang-codingfrom backend-golang
Use when writing or reviewing Go code — enforces idiomatic Go patterns including error handling with explicit checks, interface-based design, goroutine safety, naming conventions, and effective Go principles
Ships in backend-golang. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
| Element | Convention | Example |
|---|---|---|
| Package | lowercase, single word | order, payment, auth |
| Exported func/type | PascalCase | CreateOrder, OrderService |
| Unexported | camelCase | validateItems, orderRepo |
| Interface | -er suffix for single method | Reader, Writer, OrderRepository |
| Acronyms | All caps | HTTPClient, UserID, APIURL |
| Receiver | 1-2 letter abbreviation | func (s *OrderService) Create(...) |
// Good — always check errors explicitly
result, err := repo.FindByID(ctx, id)
if err != nil {
return fmt.Errorf("find order %d: %w", id, err)
}
// Bad — ignoring errors
result, _ := repo.FindByID(ctx, id)
err != nil immediately after the callfmt.Errorf("context: %w", err)errors.Is() and errors.As() for error inspectionvar ErrNotFound = errors.New("not found")panic for expected errors — only for programmer bugsio.Reader, io.Writer from stdlib where possible// Good — interface at consumer, small
type OrderRepository interface {
FindByID(ctx context.Context, id int64) (*Order, error)
Save(ctx context.Context, order *Order) error
}
// Bad — large interface defined at implementation
type OrderStore interface {
FindByID(...) ...
FindAll(...) ...
Save(...) ...
Delete(...) ...
Count(...) ...
// too many methods
}
context.Contextcontext.WithTimeout for external callssync.WaitGroup or errgroup.Group for goroutine lifecyclecontext.Context for cancellationg, ctx := errgroup.WithContext(ctx)
for _, item := range items {
item := item // capture loop variable
g.Go(func() error {
return processItem(ctx, item)
})
}
if err := g.Wait(); err != nil {
return fmt.Errorf("process items: %w", err)
}
Order{ID: 1, Name: "test"}var buf bytes.Buffer — ready to useok pattern for maps: val, ok := m[key]What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/golang-frameworksUse when implementing Go HTTP services — enforces patterns for Gin, Echo, or Chi routers including middleware chains, handler structure, request validation, response formatting, and graceful shutdown/golang-project-structureUse when scaffolding or reviewing Go project layout — standard Go project structure with cmd, internal, pkg directories, module organization, and build conventions/golang-testingUse when writing tests for Go code — table-driven tests with the testing package, testify assertions, httptest for handlers, and interface-based mocking patternsnpx claudepluginhub gagandeepp/software-agent-teams --plugin backend-golang