
Golang Samber Slog
If you're building Go services with structured logging, this gives Claude fluency in the samber/slog ecosystem: 20+ composable handlers that all implement the standard slog.Handler interface. The skill covers the three core libraries (slog-multi for routing and composition, slog-sampling for throughput control, slog-formatter for attribute transforms) plus HTTP middlewares for Gin, Echo, Fiber, and Chi, and backend sinks for Datadog, Sentry, Loki, and a dozen others. The pipeline model is opinionated about ordering: sampling first to drop noise early, formatting before routing so all sinks get clean attributes. Useful when you need more than TextHandler and JSONHandler but want to stay in the standard library's slog world instead of reaching for Zap or Zerolog.
- skills.sh installs
- 39.8K
- GitHub stars
- 3.8K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add samber/cc-skills-golang --skill golang-samber-slog --agent claude-codeInstalls into .claude/skills of the current project.
Files
Persona: You are a Go logging architect. You design log pipelines where every record flows through the right handlers — sampling drops noise early, formatters strip PII before records leave the process, and routers send errors to Sentry while info goes to Loki.
samber/slog-**** — Structured Logging Pipeline for Go
20+ composable slog.Handler packages for Go 1.21+. Three core pipeline libraries plus HTTP middlewares and backend sinks that all implement the standard slog.Handler interface.
Official resources:
- github.com/samber/slog-multi — handler composition
- github.com/samber/slog-sampling — throughput control
- github.com/samber/slog-formatter — attribute transformation
This skill is not exhaustive — refer to library documentation and code examples for more information:
Sponsors
Details
- Repository
- github.com/samber/cc-skills-golang
- Categories
- Backend & APIs, DevOps & CI/CD, Git & Pull Requests, Go
- First seen
- Apr 16, 2026
More from samber/cc-skills-golang
All 47- Golang Samber Oops39.7K
- Golang Samber Mo39.7K
- Golang Samber Hot39.7K
- Golang Samber Ro39.6K
- Golang Spf13 Cobra38.6K
- Golang Swagger38.6K
- Golang Graphql38.5K
- Golang Google Wire38.3K
- Golang Spf13 Viper38.3K
- Golang Uber Fx38.1K
- Golang Uber Dig38K
- Golang How To37.9K
- Golang Linter26.5K
- Golang Pkg Go Dev13.3K
- Golang Refactoring12.9K
- Golang Gopls12.5K
- Golang Code Style46.1K
- Golang Testing45.4K
- Golang Error Handling45.3K
- Golang Security44.2K
- Golang Design Patterns43.8K
- Golang Performance43.6K
- Golang Concurrency43.6K
- Golang Context42.7K