Tooluck logoTooluck
SKILL.md

golang-samber-slog

Agent skill fromsamber/cc-skills-golang

Structured logging extensions for Golang using samber/slog-**** packages — multi-handler pipelines (slog-multi), log sampling (slog-sampling), attribute formatting (slog-formatter), HTTP middleware (slog-fiber, slog-gin, slog-chi, slog-echo), and backend routing (slog-datadog, slog-sentry, slog-loki, slog-syslog, slog-logstash, slog-graylog...). Apply when using or adopting slog, or when the codebase already imports any github.com/samber/slog-* package.

How to install golang-samber-slog

install golang-samber-slog
# install the cc-skills-golang pack with the skills CLI
npx skills add samber/cc-skills-golang

# or add only this skill to Claude Code: copy the folder

skills/golang-samber-slog/

# into

~/.claude/skills/golang-samber-slog/ (all projects)

.claude/skills/golang-samber-slog/ (one project)

skills/golang-samber-slog/SKILL.md

MITFull file
1**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.
2
3# samber/slog-\*\*\*\* — Structured Logging Pipeline for Go
4
520+ 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.
6
7**Official resources:**
8
9- [github.com/samber/slog-multi](https://github.com/samber/slog-multi) — handler composition
10- [github.com/samber/slog-sampling](https://github.com/samber/slog-sampling) — throughput control
11- [github.com/samber/slog-formatter](https://github.com/samber/slog-formatter) — attribute transformation
12
13This skill is not exhaustive — refer to library documentation and code examples for more information:
14
15- For Go package docs, symbols, versions, importers, and known vulnerabilities, → See `samber/cc-skills-golang@golang-pkg-go-dev` skill (`godig`), preferred over Context7 for Go package facts.
16- To navigate this library's usage in your own code (definitions, call sites, diagnostics), → See `samber/cc-skills-golang@golang-gopls` skill (`gopls`).
17- Context7 remains a fallback for docs not indexed on pkg.go.dev.
18
19## The Pipeline Model
20…

Excerpt shown under the repository's MIT license.

More skills in cc-skills-golang

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates