/go-service-guide:observabilityfrom go-service-guide
Provides OpenTelemetry tracing and slog structured logging patterns for Go services, handlers, and Lambda functions. Includes span creation, attribute setting, log levels, and HTTP client instrumentation.
Ships in go-service-guide. 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.
Read when SKILL.md points to them.
References: Examples
Mandatory for: repositories, API clients, Lambdas, usecases
func (s *Service) GetOrder(ctx context.Context, id string) (*Order, error) {
ctx, span := tracing.StartSpan(ctx, "Service.GetOrder")
defer span.End()
span.SetAttributes(attribute.String("order.id", id))
// business logic...
}
Use log/slog with structured JSON:
slog.InfoContext(ctx, "order retrieved",
"order_id", orderID,
"reference_id", referenceID,
)
| Level | Use When |
|---|---|
| INFO | Normal operations, successful requests |
| WARN | Recoverable errors, degraded state, fallbacks used |
| ERROR | Failures requiring attention, unrecoverable errors |
func main() {
ctx := context.Background()
otelShutdown, err := otel.Setup(ctx)
if err != nil {
fmt.Printf("Error setting up OpenTelemetry: %v\n", err)
os.Exit(1)
}
defer func() {
if err := otelShutdown(context.Background()); err != nil {
fmt.Printf("Error shutting down: %v\n", err)
}
}()
lambda.Start(otellambda.InstrumentHandler(handler))
}
client := tracing.NewRestyClient(baseURL,
tracing.WithTimeout(30*time.Second),
tracing.WithRetryCount(3),
)
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub cemezgin/go-service-guide --plugin go-service-guide6 skills in this plugin
/architectureClean/hexagonal architecture rules, folder structure, interface ownership, and dependency direction. Use when creating new packages, services, or understanding codebase structure./concurrencyGoroutine ownership, errgroup patterns, worker pools, and graceful shutdown. Use when writing concurrent code or parallel request handling./go-styleUber Go style guide rules for guidelines, performance, and code style. Use when writing or reviewing Go code for style compliance./patternsProject patterns including functional options, must pattern, caching decorator, error handling, configuration, and HTTP clients. Use when implementing common patterns in the codebase./testingTesting patterns including table-driven tests, mock setup, and coverage requirements. Use when writing tests or setting up test infrastructure.Other plugins' skills for the same job