CtrlK
BlogDocsLog inGet started
Tessl Logo

golang-samber-hot

In-memory caching in Golang using samber/hot — eviction algorithms (LRU, LFU, TinyLFU, W-TinyLFU, S3FIFO, ARC, TwoQueue, SIEVE, FIFO), TTL, cache loaders, sharding, stale-while-revalidate, missing key caching, and Prometheus metrics. Apply when using or adopting samber/hot, when the codebase imports github.com/samber/hot, or when the project repeatedly loads the same medium-to-low cardinality resources at high frequency and needs to reduce latency or backend pressure.

72

Quality

89%

Does it follow best practices?

Impact

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

Quality

Content

79%

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

This is a well-crafted skill that efficiently covers algorithm selection, core usage, capacity sizing, and common pitfalls for samber/hot. Its strengths are excellent conciseness, fully executable code examples, and a highly actionable algorithm selection table. The main weaknesses are the absence of an explicit adoption/integration workflow with validation checkpoints, and the referenced bundle files (algorithm-guide.md, production-patterns.md, api-reference.md) not being provided.

Suggestions

Add an explicit adoption workflow section with steps like: 1. Profile access patterns → 2. Select algorithm → 3. Size cache from memory budget → 4. Configure with TTL/jitter/janitor → 5. Deploy with Prometheus metrics → 6. Validate hit rate > 80% → 7. Tune algorithm/capacity if needed.

Provide the referenced bundle files (references/algorithm-guide.md, references/production-patterns.md, references/api-reference.md) to fulfill the progressive disclosure promises made in the skill body.

DimensionReasoningScore

Conciseness

The content is lean and efficient throughout. It assumes Claude's Go competence, avoids explaining what caching is or how Go generics work, and every section delivers actionable information. The algorithm table is dense but earns its space. The capacity sizing section could be slightly tighter but the worked example justifies its inclusion.

3 / 3

Actionability

Provides fully executable Go code for basic cache setup, TTL, and loader patterns. The algorithm selection table gives concrete constants and clear guidance. Common mistakes list specific failure modes (panics, OOM) with exact causes. The capacity sizing section includes a concrete calculation example.

3 / 3

Workflow Clarity

The capacity sizing section has a clear 3-step process, and common mistakes serve as implicit validation checkpoints. However, there's no explicit workflow for adopting/integrating the cache (e.g., measure → choose algorithm → size → configure → monitor → tune), and no feedback loop for validating that the cache is working correctly after setup. For a library that can panic at runtime on misconfiguration, explicit validation steps would be valuable.

2 / 3

Progressive Disclosure

References to algorithm-guide.md, production-patterns.md, and api-reference.md are well-signaled and one level deep. However, no bundle files were provided, so these references point to non-existent files, undermining the progressive disclosure structure. The cross-references to other skills are a nice touch but the core referenced files are missing.

2 / 3

Total

10

/

12

Passed

Description

100%

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

This is an excellent skill description that is highly specific, comprehensive, and distinctive. It lists concrete capabilities, names the exact library and import path, enumerates supported algorithms, and provides clear 'when to use' guidance covering both direct library usage and broader use-case scenarios. The third-person voice is used correctly throughout.

DimensionReasoningScore

Specificity

Lists multiple specific concrete capabilities: eviction algorithms (with named variants), TTL, cache loaders, sharding, stale-while-revalidate, missing key caching, and Prometheus metrics. Very detailed and actionable.

3 / 3

Completeness

Clearly answers both 'what' (in-memory caching with specific features) and 'when' ('Apply when using or adopting samber/hot, when the codebase imports github.com/samber/hot, or when the project repeatedly loads the same medium-to-low cardinality resources...'). Explicit trigger guidance is provided.

3 / 3

Trigger Term Quality

Includes highly natural trigger terms: 'caching', 'Golang', 'samber/hot', 'LRU', 'LFU', 'TTL', 'eviction', 'sharding', 'Prometheus metrics', and the full import path 'github.com/samber/hot'. Users searching for any of these terms would naturally match this skill.

3 / 3

Distinctiveness Conflict Risk

Highly distinctive — scoped to a specific Go library (samber/hot) with a named import path and specific eviction algorithms. Very unlikely to conflict with generic caching skills or other language-specific caching tools.

3 / 3

Total

12

/

12

Passed

Validation

81%

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

Validation9 / 11 Passed

Validation for skill structure

CriteriaDescriptionResult

metadata_field

'metadata' should map string keys to string values

Warning

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

9

/

11

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.