samber

75 mods across 5 repositories, 3.3k stars between them.

samber/cc-skills-golang

Skill Claude CodeCodex

Golang everyday observability — the always-on signals in production. Covers structured logging with slog, Prometheus metrics, OpenTelemetry distributed tracing, continuous profiling with pprof/Pyroscope, server-side RUM event tracking, alerting, and Grafana dashboards. Apply when instrumenting Go services for…

3.1k 5d ago A 166 tokens original MIT

golang-performance

26

samber/cc-skills-golang

Skill Claude CodeCodex

Golang performance optimization patterns and methodology - if X bottleneck, then apply Y. Covers allocation reduction, CPU efficiency, memory layout, GC tuning, pooling, caching, and hot-path optimization. Use when profiling or benchmarks have identified a bottleneck and you need the right optimization pattern to fix…

3.1k 5d ago A 130 tokens original MIT

golang-pkg-go-dev

27

samber/cc-skills-golang

Skill Claude CodeCodex

Golang package and module documentation and exploration via godig, a pkg.go.dev API client (CLI + MCP server) — package docs, API references, symbols, code examples, available versions, importers (who imports a package), licenses, and known vulnerabilities. Read-only, no auth. Use for looking up any Go/Golang…

3.1k 5d ago A 234 tokens original MIT

samber/cc-skills-golang

Skill Claude CodeCodex

Recommends production-ready Golang libraries and frameworks. Apply when the user explicitly asks for library suggestions, wants to compare alternatives, needs to choose a library for a specific task, or when a new dependency is being added to the project.

3.1k 5d ago A 55 tokens original MIT

samber/cc-skills-golang

Skill Claude CodeCodex

Provides a guide for setting up Golang project layouts and workspaces. Use when starting a new Go project, organizing an existing codebase, setting up a monorepo with multiple packages, creating CLI tools with multiple main packages, deciding between cmd/internal/pkg directory conventions, or discussing package…

3.1k 5d ago A 71 tokens original MIT

golang-refactoring

30

samber/cc-skills-golang

Skill Claude CodeCodex

Golang refactoring — the safe, at-scale process for restructuring existing Go code: a coverage-adaptive safety net, tool-driven behavior-preserving transforms (gopls Rename/Inline/Extract, gofmt -r, eg, gopatch, go/analysis fixers), the Fowler catalog mapped to Go, breaking import cycles, moving types across packages…

3.1k 5d ago A 247 tokens original MIT

golang-safety

31

samber/cc-skills-golang

Skill Claude CodeCodex

Defensive Golang coding to prevent panics, silent data corruption, and subtle runtime bugs. Use when encountering nil panics, append aliasing, map concurrent access, float comparison pitfalls, or zero-value design questions. Also use when reviewing code for nil-safety, numeric conversion overflow, resource lifecycle…

3.1k 5d ago A 80 tokens original MIT

golang-samber-do

32

samber/cc-skills-golang

Skill Claude CodeCodex

Dependency injection in Golang using samber/do — service containers, lifecycle management, scopes, health checks, graceful shutdown, and module organization. Apply when using or adopting samber/do, when the codebase imports github.com/samber/do or github.com/samber/do/v2, or when refactoring manual constructor…

3.1k 5d ago A 74 tokens original MIT

golang-samber-hot

33

samber/cc-skills-golang

Skill Claude CodeCodex

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…

3.1k 5d ago A 122 tokens original MIT

golang-samber-lo

34

samber/cc-skills-golang

Skill Claude CodeCodex

Functional programming helpers for Golang using samber/lo — 500+ type-safe generic functions for slices, maps, channels, strings, math, tuples, and concurrency (Map, Filter, Reduce, GroupBy, Chunk, Flatten, Find, Uniq, etc.). Core immutable package (lo), concurrent variants (lo/parallel aka lop), in-place mutations…

3.1k 5d ago A 169 tokens original MIT

golang-samber-mo

35

samber/cc-skills-golang

Skill Claude CodeCodex

Monadic types for Golang using samber/mo — Option, Result, Either, Future, IO, Task, and State types for type-safe nullable values, error handling, and functional composition with pipeline sub-packages. Apply when using or adopting samber/mo, when the codebase imports github.com/samber/mo, or when considering…

3.1k 5d ago A 85 tokens original MIT

golang-samber-oops

36

samber/cc-skills-golang

Skill Claude CodeCodex

Structured error handling in Golang with samber/oops — error builders, stack traces, error codes, error context, error wrapping, error attributes, user-facing vs developer messages, panic recovery, and logger integration. Apply when using or adopting samber/oops, or when the codebase already imports…

3.1k 5d ago A 74 tokens original MIT

golang-samber-ro

37

samber/cc-skills-golang

Skill Claude CodeCodex

Reactive streams and event-driven programming in Golang using samber/ro — ReactiveX implementation with 150+ type-safe operators, cold/hot observables, 5 subject types (Publish, Behavior, Replay, Async, Unicast), declarative pipelines via Pipe, 40+ plugins (HTTP, cron, fsnotify, JSON, logging), automatic backpressure…

3.1k 5d ago A 156 tokens original MIT

golang-samber-slog

38

samber/cc-skills-golang

Skill Claude CodeCodex

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…

3.1k 5d ago A 123 tokens original MIT

golang-security

39

samber/cc-skills-golang

Skill Claude CodeCodex

Security best practices and vulnerability prevention for Golang. Covers injection (SQL, command, XSS), cryptography, filesystem safety, network security, cookies, secrets management, memory safety, and logging. Apply when writing, reviewing, or auditing Go code for security, or when working on any risky code involving…

3.1k 5d ago A 86 tokens original MIT

golang-spf13-cobra

40

samber/cc-skills-golang

Skill Claude CodeCodex

Golang CLI command tree library using spf13/cobra — cobra.Command, RunE vs Run, PersistentPreRunE hook chain, Args validators (NoArgs, ExactArgs, MatchAll, custom), persistent vs local flags, command groups, ValidArgsFunction, RegisterFlagCompletionFunc, ShellCompDirective, usage/help template customization, man-page…

3.1k 5d ago A 180 tokens original MIT

golang-spf13-viper

41

samber/cc-skills-golang

Skill Claude CodeCodex

Golang configuration library using spf13/viper — layered precedence (flag > env > file > KV > default), BindPFlag/BindPFlags, SetEnvPrefix + SetEnvKeyReplacer + AutomaticEnv, ReadInConfig + ConfigFileNotFoundError, Unmarshal + mapstructure struct tags, Sub for sub-trees, WatchConfig + OnConfigChange for hot reload…

3.1k 5d ago A 174 tokens original MIT

golang-stay-updated

42

samber/cc-skills-golang

Skill Claude CodeCodex

Provides resources to stay updated with Golang news, communities and people to follow. Use when seeking Go learning resources, discovering new libraries, finding community channels, or keeping up with Go language changes and releases.

3.1k 5d ago A 48 tokens original MIT

samber/cc-skills-golang

Skill Claude CodeCodex

Comprehensive guide to stretchr/testify for Golang testing. Covers assert, require, mock, and suite packages in depth. Use when writing tests with testify, creating mocks, setting up test suites, or choosing between assert and require. Covers testify assertions, mock expectations, argument matchers, call verification…

3.1k 5d ago A 97 tokens original MIT

samber/cc-skills-golang

Skill Claude CodeCodex

Golang struct and interface design patterns — composition, embedding, type assertions, type switches, interface segregation, dependency injection via interfaces, struct field tags, and pointer vs value receivers. Use this skill when designing Go types, defining or implementing interfaces, embedding structs or…

3.1k 5d ago A 116 tokens original MIT

golang-swagger

45

samber/cc-skills-golang

Skill Claude CodeCodex

Golang OpenAPI/Swagger documentation with swaggo/swag — annotation comments (@Summary, @Param, @Success, @Router, @Security), swag init code generation, framework integrations (gin, echo, fiber, chi, net/http), security definitions (Bearer/JWT, OAuth2, API key), and struct tags (swaggertype, enums, example…

3.1k 5d ago A 146 tokens original MIT

golang-testing

46

samber/cc-skills-golang

Skill Claude CodeCodex

Production-ready Golang tests — table-driven tests, testify suites and mocks, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, code coverage, integration tests, idiomatic test naming. Use when writing or reviewing Go tests, choosing a testing approach, setting up Go test CI…

3.1k 5d ago A 115 tokens original MIT

samber/cc-skills-golang

Skill Claude CodeCodex

Troubleshoot Golang programs systematically - find and fix the root cause. Use when encountering bugs, crashes, deadlocks, or unexpected behavior in Go code. Covers debugging methodology, common Go pitfalls, test-driven debugging, pprof setup and capture, Delve debugger, race detection, GODEBUG tracing, and production…

3.1k 5d ago A 130 tokens original MIT

golang-uber-dig

48

samber/cc-skills-golang

Skill Claude CodeCodex

Implements dependency injection in Golang using uber-go/dig — reflection-based container, Provide/Invoke, dig.In/dig.Out parameter and result objects, named values, value groups, optional dependencies, scopes, and Decorate. Apply when using or adopting uber-go/dig, when the codebase imports go.uber.org/dig, or when…

3.1k 5d ago A 111 tokens original MIT