
from cc-skills-golang1,476
Guidance and patterns for using samber/hot in Go: eviction algorithms, TTL, loaders, sharding, stale-while-revalidate, and Prometheus monitoring.
Practical, opinionated guidance for using the samber/hot in-memory caching library in Go projects. Covers algorithm selection (W-TinyLFU, LRU, LFU, TinyLFU, ARC, TwoQueue, SIEVE, FIFO), TTL strategies, loader/read-through patterns with singleflight deduplication, capacity sizing, janitor/cleanup, and Prometheus metrics. Includes code examples for basic cache usage, loader patterns, and operational best practices.
Use this skill when your Go service imports github.com/samber/hot or when you repeatedly load the same medium-to-low cardinality resources at high frequency and need to reduce latency and backend pressure. Helpful during performance tuning, architecting cache layers, or adding observability to caches.
Designed for coding-capable agents (Claude Code, Copilot-style code assistants) and developers using Go 1.22+.
Well-crafted skill for using samber/hot Go caching library. Clear algorithm selection table, good code examples, capacity sizing guidance, and common mistakes section. No scripts to test. Clean frontmatter, good progressive disclosure with references/ directory links. Niche audience — Go developers specifically using this one library.
No security concerns. No network calls, no credentials, no destructive commands. The skill is purely instructional with code snippets. Well-structured SKILL.md with frontmatter, persona, clear sections, and cross-references. The allowed-tools list is reasonable (read, edit, write, go commands, git). Niche usefulness — specific to one Go caching library, but high quality for that niche.