monad-maybe

Installation
SKILL.md

Maybe Monad

Installation: If not already installed, add the package with pnpm add @efesto-cloud/maybe.

Use this skill to keep Maybe<T> usage simple and predictable.

Core Rules

  • Wrap optional value with Maybe.maybe(value).
  • Build explicit presence with Maybe.some(value).
  • Build explicit absence with Maybe.none().
  • Check state with isSome() / isNone().
  • Provide fallback with else(() => defaultValue).
  • Convert to Result when needed with toResult().

Common Mistakes To Avoid

  • Do not treat Maybe like Result.
  • Do not use isFailure on Maybe.
  • Do not access .data without checking isSome() first.
Installs
9
First Seen
Apr 12, 2026
monad-maybe — efesto-cloud/skills