PlugWiki

golang-samber-lo Skill for Claude Code: Use the samber/lo Go Library

Makes Claude use the samber/lo library for Go collection transforms, and pick the right variant: lo, lop, lom or loi.

Installs
39.3K
on skills.sh
Stars
3.7K
on GitHub
Files
4
besides SKILL.md
Updated
Nov 2026
last repo commit

golang-samber-lo teaches Claude samber/lo, a generics-based Go utility library with helpers like Map, Filter, Reduce, GroupBy, Chunk and Uniq. It tells Claude to start with the core lo package and move to lop, lom or loi only after profiling shows a need.

It also tells Claude to prefer the standard slices and maps packages when they cover the job, and to use Must variants only in tests and init code. It bundles three reference files: API reference, package guide and advanced patterns.

Good for

  • Go developers who want less loop boilerplate in slice and map code
  • Anyone deciding when to move from lo to the parallel or mutable packages
  • Teams using samber/lo who want the agent to know its API

Install golang-samber-lo

Claude Code

  1. 1

    Copy this prompt.

    Install the golang-samber-lo skill in Claude Code. Run this command:
    
    /plugin marketplace add samber/cc
    /plugin install cc-skills-golang@samber
    
    Then check that it loaded and tell me how to use it.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Pick one route, not several. The README says the skills cross-reference each other and a subset gives a partial and potentially inconsistent view, so the plugin or the whole-set CLI command is the better choice. The plugin installs the repo's 46 skill folders; its manifest declares no hooks, commands or MCP servers. Claude Code names plugin skills /plugin-name:skill-name, so after the plugin install the full name is /cc-skills-golang:golang-samber-lo. The samber/cc marketplace lists seven plugins; the second command installs only cc-skills-golang.

From the project README. Source.

What's in the skill

When it loads

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 (lo/mutable aka lom), lazy iterators (lo/it aka loi for Go 1.23+), and experimental SIMD (lo/exp/simd). Apply when using or adopting samber/lo, when the codebase imports github.com/samber/lo, or when implementing functional-style data transformations in Go. Not for streaming pipelines (→ See `samber/cc-skills-golang@golang-samber-ro` skill).

Sections in SKILL.md

  1. Why samber/lo
  2. Installation
  3. Choose the Right Package
  4. Core Patterns
  5. Transform a slice
  6. Filter + Reduce
  7. GroupBy
  8. Error variant — stop on first error
  9. Common Mistakes
  10. Best Practices
  11. Quick Reference
  12. Cross-References

Key facts

Installs on skills.sh
39,313 as of 2026-11-02
Last repo commit
2026-11-01

What it includes

  • lo, lop, lom, loi or simd, with the trade-off for each

    lo is immutable and the default. lop is parallel for CPU-bound work, lom mutates input, loi is lazy iterators for Go 1.23+, and simd is experimental.

    Read · Choose the right package

  • Transform, filter and reduce, group by, error variants

    Short examples such as the Err variants that stop on the first error.

    Read · Core patterns

  • Five mistakes, such as lop.Map on 10 items or lo.Must in production

    Each with the reason it fails and the fix.

    Read · Common mistakes

  • Prefer stdlib, compose functions, profile before optimizing

    Five rules.

    Read · Best practices

  • Twenty common functions in one table

    Map, Filter, Reduce, GroupBy, Chunk, Flatten, Uniq, Find and more.

    Read · Quick reference

  • The full function catalog

    For the complete list of functions.

    Read · references/api-reference.md

  • Package comparison, composition, stdlib interop, iterator pipelines

    Deeper guidance for choosing packages and combining functions.

    Read · references/package-guide.md and advanced-patterns.md

From the official docs

Permissions

Low risk

Claude can edit your Go files and run go and git commands while this skill is active. Work on a branch and read the diff before you commit.

What it can do

  • Read your data
  • Create and change things
  • Delete things
  • Read-only mode

Watch out for

  • It edits files and runs commands in your project

    The frontmatter lists Edit, Write and these shell commands: go:*, golangci-lint:*, git:*, godig:*, gopls:*. Work on a branch and read the diff before you commit. github.com

  • The recommended plugin route installs the whole repo

    The plugin route and the --all skills CLI command add all 46 skill folders in the repo, not only this one. The plugin manifest (.claude-plugin/plugin.json, version 2.0.1) declares a name, description, author, license and keywords, and lists no hooks, commands or MCP servers. The skills CLI docs say --all installs every skill into every agent it supports without prompts. github.com

Technical details
Sign-in and keysSKILL.md names no account or API key.
Scopes
  • Reads and edits files in your Go project

  • Runs the shell commands listed in the allowed-tools field: go:*, golangci-lint:*, git:*, godig:*, gopls:*

  • Frontmatter also allows MCP tools: mcp__context7__resolve-library-id, mcp__context7__query-docs, mcp__gopls__*

Questions

What does golang-samber-lo do?

It makes Claude use the samber/lo Go library correctly for slice, map, string and concurrency helpers, choosing between lo, lop (parallel), lom (mutable) and loi (iterators) based on need.

How do I install golang-samber-lo?

Install the whole golang set, not only this skill. The README calls the skills atomic, cross-referencing units and says a partial install gives a potentially inconsistent view. The install box lists the Claude Code plugin (/plugin marketplace add samber/cc, then /plugin install cc-skills-golang@samber), the skills CLI for the whole set or for this skill alone, and the README's Codex, Gemini CLI, Cursor and OpenCode routes. The README documents no Claude app route, so none is listed.

Do I need the other golang skills with golang-samber-lo?

Installing the set is the safer choice. SKILL.md hands neighboring topics to other skills: golang-samber-ro, golang-samber-mo, golang-data-structures, golang-performance, golang-pkg-go-dev, golang-gopls. This skill sits in the README's Tools list, and the README's advice to install together is written for its general-purpose skills, but the whole-set install gives you every skill this one points to.

What does golang-samber-lo need on my machine?

The frontmatter names these programs: go. SKILL.md names no API key or account.

Is golang-samber-lo safe?

It is instruction text and reference files, and the folder bundles no scripts. When you use it, Claude can edit files and run go, golangci-lint, git, godig and gopls commands in your project, as its frontmatter allows. Work on a branch, read the diff and approve commands you do not recognize.

golang-samber-lo vs the standard slices and maps packages?

The skill tells Claude to prefer the standard slices and maps packages where they cover the job, for example slices.Contains and slices.Sort, and to use lo for transforms the standard library lacks.

Does golang-samber-lo work in Codex, Cursor or the Claude app?

The SKILL.md compatibility field says it is designed for Claude Code, Codex or a similar harness, and the README says the skills are built for Claude Code, Codex, Gemini, Copilot, Antigravity and Cursor. The install box covers Claude Code, Codex, Gemini CLI, Cursor, OpenCode and the skills CLI. The README documents no Claude app route.

Information

updated Nov 2, 2026

Folder
skills/golang-samber-lo

samber/cc-skills-golangskills.sh

Sources

Docs, issue trackers and discussions this page is built from.

Show all 6
  1. cc-skills-golang README · github.com
  2. skills CLI commands · github.com
  3. cc-skills-golang plugin.json · github.com
  4. samber/cc marketplace.json · github.com
  5. Claude Code skills · code.claude.com
  6. golang-samber-lo SKILL.md · github.com

Updated Nov 2, 2026.