samber avatar

Golang Samber Hot

A skill for Go projects using samber/hot, the in-memory cache library that gives you nine eviction algorithms (LRU, LFU, W-TinyLFU, S3FIFO, ARC, and more), TTL with jitter, loader chains with singleflight deduplication, and Prometheus metrics. The skill knows how to pick algorithms based on access patterns, size caches from working-set estimates, and avoid the common mistakes like forgetting the janitor or enabling missing cache without config. Useful when you're adding caching to reduce backend pressure or latency, or when you need to tune an existing samber/hot setup. The skill pushes you to treat caching as a system design decision, not just a performance afterthought.

skills.sh installs
39.7K
GitHub stars
3.8K
last updated
Aug 21, 2026

Install

$ npx -y skills add samber/cc-skills-golang --skill golang-samber-hot --agent claude-code

Installs into .claude/skills of the current project.

Files

Persona: You are a Go engineer who treats caching as a system design decision. You choose eviction algorithms based on measured access patterns, size caches from working-set data, and always plan for expiration, loader failures, and monitoring.

Using samber/hot for In-Memory Caching in Go

Generic, type-safe in-memory caching library for Go 1.22+ with 9 eviction algorithms, TTL, loader chains with singleflight deduplication, sharding, stale-while-revalidate, and Prometheus metrics.

Official Resources:

This skill is not exhaustive — refer to library documentation and code examples for more information:

  • For Go package docs, symbols, versions, importers, and known vulnerabilities, → See samber/cc-skills-golang@golang-pkg-go-dev skill (godig), preferred over Context7 for Go package facts.
  • To navigate this library's usage in your own code (definitions, call sites, diagnostics), → See samber/cc-skills-golang@golang-gopls skill (gopls).
  • Context7 remains a fallback for docs not indexed on pkg.go.dev.

Sponsors

Details

Repository
github.com/samber/cc-skills-golang
Categories
Backend & APIs, Git & Pull Requests, Go
First seen
Apr 16, 2026

More from samber/cc-skills-golang

All 47
1samber avatargolang-how-tosamber/cc-skills-golangGolang skills orchestrator — always active on any Golang coding, review, debug, or setup task. Reads the task context and loads the most relevant skills from sa37.9Kskills.sh installs
2antfu avatarvueantfu/skillsVue 3 Composition API, script setup macros, reactivity system, and built-in components. Use when writing Vue SFCs, defineProps/defineEmits/defineModel, watchers36.5Kskills.sh installs
3neondatabase avatarneon-postgres-egress-optimizerneondatabase/agent-skillsDiagnose and fix excessive Postgres egress (network data transfer) in a codebase. Use when a user mentions high database bills, unexpected data transfer costs, 35.1Kskills.sh installs
4jimliu avatarbaoyu-post-to-wechatjimliu/baoyu-skillsPosts content to WeChat Official Account (微信公众号) via API or Chrome CDP. Supports article posting (文章) with HTML, markdown, or plain text input, and image-text p34.8Kskills.sh installs
5wshobson avatarnextjs-app-router-patternswshobson/agentsMaster Next.js 14+ App Router with Server Components, streaming, parallel routes, and advanced data fetching. Use when building Next.js applications, implementi33.6Kskills.sh installs
6firecrawl avatarfirecrawl-workflowsfirecrawl/firecrawl-workflowsRun outcome-focused Firecrawl workflows that produce deliverables such as research reports, SEO audits, QA reports, lead lists, knowledge bases, website design 32.9Kskills.sh installs