CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

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.

88

1.00x
Quality

87%

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

Quality

Content

78%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A well-structured reference-style body: dense with library-specific APIs, executable-leaning examples, a clear canonical pipeline order with mistakes and performance warnings, and clean one-level-deep reference navigation. The main gaps are slight duplication of the ordering rationale and code snippets that are illustrative rather than fully runnable.

Suggestions

Deduplicate the pipeline-ordering rationale: state it once (in The Pipeline Model) and cut the repeated 'Order matters: sampling before formatting saves CPU... Reversing this wastes work' paragraph.

Make the code examples runnable by including imports and definitions for referenced variables (e.g., sentryHandler, innerHandler), or move a complete runnable example into one of the reference files and link it.

Turn the 'Diagnose' note into an explicit feedback loop, e.g., benchmark with `go test -bench`, identify the top-allocating handler, apply the corresponding fix from the mistakes table, and re-benchmark before adopting.

DimensionReasoningScore

Conciseness

Nearly all content is library-specific knowledge (constructor names, latency semantics, flush APIs, mistake tables) rather than concepts Claude already knows. Minor duplication exists — the pipeline-ordering rationale appears in both "place sampling first to drop early and avoid wasting CPU" and "Order matters: sampling before formatting saves CPU... Reversing this wastes work" — so it is efficient with trimmable instances rather than fully lean.

4 / 5

Actionability

Provides real Go snippets (Router with predicates, ThresholdSamplingOption middleware, formatter Pipe, Gin Config with Filters) plus concrete fixes in the Common Mistakes table and specific shutdown calls ("handler.Stop(ctx)", "lokiClient.Stop()"). The snippets reference undefined variables (sentryHandler, innerHandler) and omit imports, making them illustrative rather than fully copy-paste ready, which fits anchor 4 ("mostly executable... minor gaps") better than anchor 5.

4 / 5

Workflow Clarity

Presents a canonical sequenced pipeline ("record → [Sampling] → [Pipe: trace/PII] → [Router] → [Sinks]") with ordering rationale, numbered best practices, and verification guidance ("Benchmark your pipeline with `go test -bench` before production deployment" and the "Diagnose" directive). Checkpoints are present, but there is no explicit validate-fix-retry feedback loop, so it sits at anchor 4 rather than anchor 5; no destructive/batch-operation cap applies.

4 / 5

Progressive Disclosure

Overview tables and key examples are inline while detail is split into four clearly signaled references ("For full code examples of every pattern, see [Pipeline Patterns](references/pipeline-patterns.md)"; likewise sampling-strategies.md, http-middlewares.md, backend-handlers.md). All four files exist, and they contain no nested references, so navigation is one level deep and easy — matching anchor 5; nothing inlined belongs in a separate file, so anchor 4's "minor organization gaps" does not apply.

5 / 5

Total

17

/

20

Passed

Description

92%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: third-person, concrete, and explicit about both capabilities (with package-level specificity) and trigger conditions (slog usage or imports). Its only weakness is a handful of missing natural trigger phrasings beyond the slog-centric vocabulary.

DimensionReasoningScore

Specificity

Enumerates multiple concrete capabilities — "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...)" — with named packages covering every category of the skill's scope. Coverage is comprehensive with no significant gaps, matching the anchor-5 example rather than the "minor gaps" of anchor 4.

5 / 5

Completeness

Explicitly answers both what (capability and package enumeration) and when ("Apply when using or adopting slog, or when the codebase already imports any github.com/samber/slog-* package") with concrete trigger phrases. This mirrors the anchor-5 example structure exactly; the when-clause is explicit, not merely implied as at anchor 4.

5 / 5

Trigger Term Quality

Includes natural terms users would say — "Structured logging", "Golang", "slog", "HTTP middleware", "log sampling" — plus explicit import-path triggers ("github.com/samber/slog-*"). A few natural phrasings are still missing (plain "Go", "logger", "logging setup"), so it fits anchor 4 ("Good keyword coverage; a few natural terms missing") rather than anchor 5's comprehensive synonym coverage.

4 / 5

Distinctiveness Conflict Risk

The description is pinned to the "samber/slog-**** packages" niche and conditions triggering on slog usage or imports, so it is clearly distinguishable from generic Go logging skills. Conflict risk is minimal, matching anchor 5 rather than the "minor overlap risk" of anchor 4.

5 / 5

Total

19

/

20

Passed

Validation

87%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 14 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

allowed_tools_field

'allowed-tools' contains unusual tool name(s)

Warning

metadata_field

'metadata' should map string keys to string values

Warning

Total

14

/

16

Passed

Repository

samber/cc-skills-golang

Path

skills/golang-samber-slog/SKILL.md

Reviewed

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.