CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

golang-context

Idiomatic context.Context usage in Golang — propagation through API boundaries, cancellation, timeouts and deadlines, request-scoped values, context.WithoutCancel for background work outliving requests. Apply when designing context propagation across layers, debugging leaked or unexpired contexts, choosing between context.Background/TODO/WithoutCancel, or storing values in context. Not for code that merely accepts ctx as first parameter.

69

Quality

87%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
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, dense best-practices overview with sound progressive disclosure into three real reference files and a useful decision table. The main trim opportunities are the introductory what-is-context paragraph and the duplication between summary rule 1 and the Core Principle section; inline code coverage is thinner than the guidance quality suggests.

Suggestions

Cut or compress the intro paragraph explaining what context.Context is — Claude already knows this — and fold summary rule 1 into the 'Core Principle' section to remove the duplication.

Add one or two more inline good/bad code pairs (e.g. unexported key types, defer cancel()) in the body so the highest-frequency pitfalls are executable without opening the references.

Consider a compact 'validate with' note (e.g. `go vet` / staticcheck command line) in the linters section so enforcement is copy-paste ready rather than delegated to another skill.

DimensionReasoningScore

Conciseness

Mostly efficient — the ten best practices are dense, each carrying a pitfall-specific rationale — but the intro paragraph ("context.Context is Go's mechanism for propagating cancellation signals…Think of it as the 'session' of a request") re-explains a concept Claude already knows, and rule 1 duplicates the later 'Core Principle' section.

4 / 5

Actionability

Concrete guidance throughout: exact API names ("context.WithoutCancel (Go 1.21+)", "unexported types" for keys, "QueryContext, ExecContext"), a situation→use decision table, and one executable good/bad code pair. Minor gap: only one inline code example, with the detailed patterns deferred to the references.

4 / 5

Workflow Clarity

As a best-practices/reference skill rather than a multi-step process, it is unambiguous: summary rules → creation table → the core principle with a worked example → deep dives → linter enforcement. No explicit validation loop, though the 'Enforce with Linters' section partially serves as a checkpoint and no destructive/batch operations exist to cap the score.

4 / 5

Progressive Disclosure

Clear overview body with well-signaled one-level-deep references — all three linked files (cancellation.md, values-tracing.md, http-services.md) exist in the bundle, each with an accurate content summary in the body — plus cross-references to sibling skills. Content is appropriately split with easy navigation.

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: it enumerates concrete capabilities, provides an explicit and specific 'Apply when…' trigger clause, and adds a negative boundary to prevent over-triggering. Minor headroom remains in covering a few more natural user phrasings.

DimensionReasoningScore

Specificity

Lists multiple specific concrete actions — "propagation through API boundaries, cancellation, timeouts and deadlines, request-scoped values, context.WithoutCancel for background work outliving requests" — giving comprehensive coverage of the skill's scope, matching the top anchor.

5 / 5

Completeness

Clearly answers both what (idiomatic context.Context usage across propagation, cancellation, timeouts, values, WithoutCancel) and when ("Apply when designing context propagation across layers, debugging leaked or unexpired contexts, choosing between context.Background/TODO/WithoutCancel, or storing values in context"), plus an explicit exclusion clause.

5 / 5

Trigger Term Quality

Good keyword coverage with natural developer phrasings ("cancellation", "timeouts and deadlines", "leaked or unexpired contexts", "context.Background/TODO/WithoutCancel", "storing values in context"), though a few natural variations users might say — e.g. "goroutine cancellation" or bare "ctx propagation" — are absent.

4 / 5

Distinctiveness Conflict Risk

Clear niche (context.Context in Golang) with distinct triggers, and the negative boundary "Not for code that merely accepts ctx as first parameter" plus the domain qualifier keep conflict risk minimal even against sibling skills like golang-concurrency.

5 / 5

Total

19

/

20

Passed

Validation

93%

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

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

metadata_field

'metadata' should map string keys to string values

Warning

Total

15

/

16

Passed

Repository

samber/cc-skills-golang

Path

skills/golang-context/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.