samber avatar

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-code

Installs 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:

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
1googlechrome avatarmodern-web-guidancegooglechrome/modern-web-guidanceSearch tool for modern web development best practices. MANDATORY: Execute FIRST for all HTML/CSS and clientside JS tasks. Do NOT skip — web APIs evolve rapidly 38.8Kskills.sh installs
2better-auth avatarorganization-best-practicesbetter-auth/skillsMulti-tenant organization setup with member management, role-based access control, and team support via Better Auth.38.1Kskills.sh installs
3flutter avatarflutter-use-http-packageflutter/agent-pluginsUse the `http` package to execute GET, POST, PUT, or DELETE requests. Use when you need to fetch from or send data to a REST API.37.9Kskills.sh installs
4clerk avatarclerk-cliclerk/skillsOperate the Clerk CLI (`clerk` binary) for authentication, user/org/session management, impersonation, local webhook testing, deploy verification, instance conf35.8Kskills.sh installs
5clerk avatarclerkclerk/skillsClerk authentication router. Use when user asks about Clerk CLI operations, adding authentication, setting up Clerk, custom sign-in flows, Swift or native iOS a30.9Kskills.sh installs
6caffeinelabs avatarextension-posting-to-xcaffeinelabs/skillsMANDATORY recipe for every Caffeine build that posts to X (Twitter). The ONLY supported path is the `x-client` mops package with OAuth 2.0 PKCE. Hand-rolling `i29.8Kskills.sh installs