LogoAwesome Skills
  • Search
  • Category
  • Tag
  • Blog
LogoAwesome Skills
LogoAwesome Skills

Discover Open-Source Agent Skills for AI Coding Assistants

Product

  • Search
  • Category
  • Tag
  • Blog

Resources

  • Claude Skill Docs
  • Antigravity Skills Docs

Tools

  • Claude Code
  • OpenCode
  • Cursor
  • Codex
  • Antigravity

Company

  • Privacy Policy
  • Terms of Service
  • Sitemap

©2026 Awesome Skills. All rights reserved.

Privacy PolicyTerms
Back to Skills

golang-samber-slog

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.

1,807stars118forksUpdated 5/24/2026
Developer Tools#structured-logging#middleware#logging-pipeline#observability#slog#golang

Security Assessment

Safe(100/100)
Security Score100/100

About golang-samber-slog

The golang-samber-slog skill provides structured logging pipeline guidance and integration patterns for Go applications using the samber/slog-* ecosystem. It focuses on building composable logging architectures around Go 1.21+ `slog.Handler` interfaces, helping developers create scalable and maintainable log processing pipelines. The skill addresses common logging challenges such as high log throughput, noisy records, inconsistent formatting, backend routing, and sensitive data handling. It promotes a canonical pipeline model where sampling, formatting, routing, and sink delivery are ordered efficiently to reduce CPU usage and improve observability reliability.

The skill covers three primary libraries: `slog-multi` for handler composition and routing, `slog-sampling` for throughput and noise reduction, and `slog-formatter` for attribute transformation and sanitization. It also supports a wide ecosystem of integrations and middleware packages including HTTP frameworks like Fiber, Gin, Chi, and Echo, as well as backend sinks such as Datadog, Sentry, Loki, Syslog, Logstash, Graylog, Fluentd, Kafka, Slack, Telegram, and Microsoft Teams. Key capabilities include fanout pipelines, failover handlers, routing strategies, log sampling policies, PII filtering, error formatting, and backend-specific log delivery using standard `slog.Handler` implementations.

This skill is intended for Go developers, platform engineers, observability teams, and AI coding agents working on structured logging systems. It is especially useful in distributed services, microservices, APIs, and production systems where logs must be filtered, transformed, and routed to multiple destinations efficiently. Teams adopting Go's native `slog` package or already using any `github.com/samber/slog-*` library can use this skill to design cleaner logging architectures and integrate observability tooling consistently across services.

FAQ

What problem does this skill solve?

It helps developers design structured logging pipelines in Go using the samber/slog-* ecosystem, including routing, sampling, formatting, middleware integration, and backend sink management.

Which Go logging standard does this skill support?

The skill is designed around Go 1.21+ and the standard `slog.Handler` interface introduced with Go's native structured logging support.

Can this skill be used with HTTP frameworks?

Yes. The skill references middleware integrations for frameworks including Fiber, Gin, Chi, Echo, and HTTP-based logging pipelines.

Does the skill support routing logs to external services?

Yes. The documented ecosystem includes integrations for services such as Datadog, Sentry, Loki, Syslog, Logstash, Graylog, Kafka, Slack, Telegram, and others.

Are all package APIs and constructors fully documented in the skill?

No. The content explicitly states that the skill is not exhaustive and recommends consulting official library documentation and examples for complete implementation details.

All Files

6 files
references/sampling-strategies.md6.4 KB
View
evals/evals.json15.7 KB
View
references/backend-handlers.md7.2 KB
View
references/pipeline-patterns.md8.1 KB
View
SKILL.md11.5 KB
View
references/http-middlewares.md5.1 KB
View

Install golang-samber-slog

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

samber/cc-skills-golang

Related Skills

research

448

secops-detection-engineering

21,346

qdrant-monitoring

259

project-architecture

3