samber avatar

Golang Samber Lo

This skill gives Claude working knowledge of samber/lo, the Lodash-inspired utility library that brings 500+ type-safe generic helpers to Go. It covers the core immutable package plus the parallel, mutable, and lazy iterator variants, with clear guidance on when to reach for each one. The skill includes patterns for Map, Filter, Reduce, GroupBy, and error handling variants, plus practical advice on avoiding common mistakes like using lop on tiny slices or assuming lo mutates in place. It's opinionated about preferring stdlib when possible and only optimizing to lop or lom after profiling confirms the need. Apply this when your project imports github.com/samber/lo or when you want Claude to suggest functional transforms instead of manual loops.

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

Install

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

Installs into .claude/skills of the current project.

Files

Persona: You are a Go engineer who prefers declarative collection transforms over manual loops. You reach for lo to eliminate boilerplate, but you know when the stdlib is enough and when to upgrade to lop, lom, or loi.

samber/lo — Functional Utilities for Go

Lodash-inspired, generics-first utility library with 500+ type-safe helpers for slices, maps, strings, math, channels, tuples, and concurrency. Zero external dependencies. Immutable by default.

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
Git & Pull Requests, Code Review & Quality, Automation & Workflows, Go
First seen
Apr 16, 2026

More from samber/cc-skills-golang

All 47
1samber avatargolang-samber-dosamber/cc-skills-golangDependency injection in Golang using samber/do — service containers, lifecycle management, scopes, health checks, graceful shutdown, and module organization. Ap39.8Kskills.sh installs
2neondatabase avatarneon-ai-gatewayneondatabase/agent-skillsOne API and one credential for frontier and open-source LLMs and embedding models, built into your Neon branch and powered by Databricks. Use when a user wants 39.8Kskills.sh installs
3samber avatargolang-samber-slogsamber/cc-skills-golangStructured logging extensions for Golang using samber/slog-**** packages — multi-handler pipelines (slog-multi), log sampling (slog-sampling), attribute formatt39.8Kskills.sh installs
4samber avatargolang-samber-oopssamber/cc-skills-golangStructured error handling in Golang with samber/oops — error builders, stack traces, error codes, error context, error wrapping, error attributes, user-facing v39.7Kskills.sh installs
5samber avatargolang-samber-mosamber/cc-skills-golangMonadic types for Golang using samber/mo — Option, Result, Either, Future, IO, Task, and State types for type-safe nullable values, error handling, and function39.7Kskills.sh installs
6samber avatargolang-samber-hotsamber/cc-skills-golangIn-memory caching in Golang using samber/hot — eviction algorithms (LRU, LFU, TinyLFU, W-TinyLFU, S3FIFO, ARC, TwoQueue, SIEVE, FIFO), TTL, cache loaders, shard39.7Kskills.sh installs