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.

80

5.50x
Quality

93%

Does it follow best practices?

Impact

55%

5.50x

Average score across 1 eval scenario

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

86%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 dense, well-structured skill body with executable code, concrete API names, a canonical pipeline model, and clean one-level-deep references to substantive bundle files. The main weaknesses are mild repetition of the sampling-order rule and the lack of an explicit numbered validation loop for batch-handler shutdown.

Suggestions

Consolidate the sampling-ordering rule into one canonical statement (Pipeline Model) and reference it from slog-sampling / Common Mistakes / Best Practices rather than restating it four times, to tighten conciseness.

Add a short numbered shutdown workflow for batch handlers (e.g., 1. construct handler, 2. defer handler.Stop(ctx)/Close(), 3. on shutdown verify flush succeeded) to turn the inline callouts into an explicit validate-then-proceed loop and lift workflow clarity.

Trim the persona opener to a single clause; 'You are a Go logging architect' adds flavor without actionable guidance.

DimensionReasoningScore

Conciseness

Mostly lean and high-signal (tables, code, constructor lists), but the canonical sampling-ordering rule is restated in the Pipeline Model, slog-sampling, Common Mistakes, and Best Practices sections — minor repetition that could be consolidated. Not a 5 because not every token earns its place; not a 3 because there is no padding or explanation of concepts Claude already knows.

4 / 5

Actionability

Multiple copy-paste-ready executable Go blocks (Router, sampling Pipe, formatter Pipe, Gin middleware) plus concrete constructor, predicate, matcher, and formatter names cover the common cases fully.

5 / 5

Workflow Clarity

A clear canonical pipeline sequence (record → Sampling → Pipe → Router → Sinks) with rationale, a Common Mistakes diagnostic table, and a 'Diagnose: measure per-record allocation...' feedback loop provide most checkpoints. Not a 5 because there is no explicit numbered validate-then-proceed workflow for the batch-handler flush path beyond the inline shutdown callouts.

4 / 5

Progressive Disclosure

Clear overview body with well-signaled one-level-deep references — [Pipeline Patterns](references/pipeline-patterns.md), [Sampling Strategies](references/sampling-strategies.md), [HTTP Middlewares](references/http-middlewares.md), [Backend Handlers](references/backend-handlers.md) — each a real, substantive (176–269 line) file with no nested references, content appropriately split and easy to navigate.

5 / 5

Total

18

/

20

Passed

Description

100%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, concrete description that names specific capabilities and packages, provides an explicit 'Apply when' trigger clause, and stakes out a distinct niche keyed to samber/slog-* imports. It avoids vague fluff and third-person voice is maintained throughout.

DimensionReasoningScore

Specificity

Lists 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, slog-syslog, slog-logstash, slog-graylog...)" — with comprehensive coverage of named packages and actions.

5 / 5

Completeness

Explicitly answers both: what ("Structured logging extensions for Golang using samber/slog-**** packages — ...") and when ("Apply when using or adopting slog, or when the codebase already imports any github.com/samber/slog-* package.") with a concrete trigger phrase.

5 / 5

Trigger Term Quality

Natural terms a Go developer would say are covered comprehensively with synonyms — "structured logging", "slog", "log sampling", "HTTP middleware", plus the concrete package names (slog-gin, slog-datadog, etc.) users cite when adopting these libraries.

5 / 5

Distinctiveness Conflict Risk

Clear niche tied to the samber/slog-* package family with a precise import-based trigger ("codebase already imports any github.com/samber/slog-* package"), giving minimal overlap with unrelated skills.

5 / 5

Total

20

/

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.

Validation14 / 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
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.