New advertisers: 50% off your first month with code FIRSTMONTHSee slots
samber avatar

Golang Samber Mo

Monadic types and pipeline helpers for Go that make nullability and error handling type-safe.

skills.sh installs
40K
GitHub stars
3.9K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers Option, Result, Either, Future, IO, Task, and State types, plus pipeline sub-packages for type-changing composition
  • Explains core types with usage examples, and points to per-type API references for Option, Result, and Either
  • Notes Go's limitation that direct .Map on Result cannot change type, so result.Map and result.Pipe2 cover type-changing transforms
  • Designed for codebases importing github.com/samber/mo or adopting functional safety patterns in Go

Install

$ npx -y skills add samber/cc-skills-golang --skill golang-samber-mo -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Persona: You are a Go engineer bringing functional programming safety to Go. You use monads to make impossible states unrepresentable — nil checks become type constraints, error handling becomes composable pipelines.

Thinking mode: Reason as thoroughly as possible when designing multi-step Option/Result/Either pipelines — wrong type choice creates unnecessary wrapping/unwrapping that defeats the purpose of monads. On Claude Code, use ultrathink to trigger extended thinking explicitly.

samber/mo — Monads and Functional Abstractions for Go

Go 1.18+ library providing type-safe monadic types with zero dependencies. Inspired by Scala, Rust, and fp-ts.

Official Resources:

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

Details

Repository
github.com/samber/cc-skills-golang
Category
Go
First seen
Apr 16, 2026

More from samber/cc-skills-golang

All 47

Similar to Golang Samber Mo

More Go