CtrlK
BlogDocsLog inGet started
Tessl Logo

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.

91

1.00x
Quality

89%

Does it follow best practices?

Impact

95%

1.00x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Evaluation results

90%

-10%

Loki Logging for a High-Throughput Request-Processing Service

Loki handler configuration for high-cardinality per-request attributes

The agent wrote 22978 files outside the evaluated workspace (Without this skill)

These are not visible to scoring or included in the download.

/home/agent/go/pkg/mod/cache/download/bazil.org/fuse/@v/list

/home/agent/go/pkg/mod/cache/download/bazil.org/fuse/@v/v0.0.0-20160811212531-371fbbdaa898.mod

/home/agent/go/pkg/mod/cache/download/bazil.org/fuse/@v/v0.0.0-20200407214033-5883e5a4b512.mod

/home/agent/go/pkg/mod/cache/download/cloud.google.com/go/@v/list

/home/agent/go/pkg/mod/cache/download/cloud.google.com/go/@v/v0.100.2.mod

The agent wrote 33055 files outside the evaluated workspace (With this skill)

These are not visible to scoring or included in the download.

/home/agent/go/pkg/mod/cache/download/bazil.org/fuse/@v/list

/home/agent/go/pkg/mod/cache/download/bazil.org/fuse/@v/v0.0.0-20160811212531-371fbbdaa898.mod

/home/agent/go/pkg/mod/cache/download/bazil.org/fuse/@v/v0.0.0-20200407214033-5883e5a4b512.mod

/home/agent/go/pkg/mod/cache/download/cloud.google.com/go/@v/list

/home/agent/go/pkg/mod/cache/download/cloud.google.com/go/@v/v0.100.2.mod

Criteria
Without this skill
With this skill

HandleRecordsWithMetadata enabled

100%

100%

Option struct constructor

100%

100%

NewLokiHandler method

100%

100%

lokiClient.Stop() called

100%

100%

Deferred shutdown

100%

0%

Label explosion explanation

100%

100%

High-cardinality as slog attributes

100%

100%

100%

Sampling Metrics for a Go Logging Pipeline

Sampling observability via accepted/dropped hook metrics in slog pipeline

The agent wrote 3362 files outside the evaluated workspace (Without this skill)

These are not visible to scoring or included in the download.

/home/agent/go/pkg/mod/cache/download/github.com/beorn7/perks/@v/list

/home/agent/go/pkg/mod/cache/download/github.com/beorn7/perks/@v/v1.0.1.info

/home/agent/go/pkg/mod/cache/download/github.com/beorn7/perks/@v/v1.0.1.lock

/home/agent/go/pkg/mod/cache/download/github.com/beorn7/perks/@v/v1.0.1.mod

/home/agent/go/pkg/mod/cache/download/github.com/beorn7/perks/@v/v1.0.1.zip

The agent wrote 16030 files outside the evaluated workspace (With this skill)

These are not visible to scoring or included in the download.

/home/agent/go/pkg/mod/cache/download/github.com/beorn7/perks/@v/list

/home/agent/go/pkg/mod/cache/download/github.com/beorn7/perks/@v/v1.0.1.info

/home/agent/go/pkg/mod/cache/download/github.com/beorn7/perks/@v/v1.0.1.lock

/home/agent/go/pkg/mod/cache/download/github.com/beorn7/perks/@v/v1.0.1.mod

/home/agent/go/pkg/mod/cache/download/github.com/beorn7/perks/@v/v1.0.1.zip

Criteria
Without this skill
With this skill

OnAccepted hook set

100%

100%

OnDropped hook set

100%

100%

OnAccepted increments counter

100%

100%

OnDropped increments counter

100%

100%

Separate accepted/dropped metrics

100%

100%

Sampling first in pipeline

100%

100%

No formatter before sampling

100%

100%

No router before sampling

100%

100%

Uses slogmulti.Pipe()

100%

100%

No custom Handler for metrics

100%

100%

97%

12%

Tame the Log Firehose: Two-Tier Sampling for a High-Throughput API

Two-tier sampling pipeline with per-message and global cap

The agent wrote 900 files outside the evaluated workspace (Without this skill)

These are not visible to scoring or included in the download.

/home/agent/go/pkg/mod/cache/download/github.com/bluele/gcache/@v/list

/home/agent/go/pkg/mod/cache/download/github.com/bluele/gcache/@v/v0.0.2.info

/home/agent/go/pkg/mod/cache/download/github.com/bluele/gcache/@v/v0.0.2.lock

/home/agent/go/pkg/mod/cache/download/github.com/bluele/gcache/@v/v0.0.2.mod

/home/agent/go/pkg/mod/cache/download/github.com/bluele/gcache/@v/v0.0.2.zip

The agent wrote 913 files outside the evaluated workspace (With this skill)

These are not visible to scoring or included in the download.

/home/agent/go/pkg/mod/cache/download/github.com/bluele/gcache/@v/list

/home/agent/go/pkg/mod/cache/download/github.com/bluele/gcache/@v/v0.0.2.info

/home/agent/go/pkg/mod/cache/download/github.com/bluele/gcache/@v/v0.0.2.lock

/home/agent/go/pkg/mod/cache/download/github.com/bluele/gcache/@v/v0.0.2.mod

/home/agent/go/pkg/mod/cache/download/github.com/bluele/gcache/@v/v0.0.2.zip

Criteria
Without this skill
With this skill

ThresholdSamplingOption used

100%

100%

AbsoluteSamplingOption used

100%

100%

Pipe() chaining pattern

86%

100%

Threshold before absolute in chain

0%

100%

Per-message matcher for threshold

100%

100%

Global matcher for cap

100%

100%

No UniformSamplingOption

100%

100%

No custom sampling logic

100%

100%

Sampling is pipeline-first

40%

40%

Repository
samber/cc-skills-golang
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.