effect-option
OfficialClarify Option vs Nullable types in Effect.
Authoragentxm
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Many TypeScript codebases using Effect struggle to decide whether optional data should be modeled with Option<T> or as nullable values (T | null | undefined), leading to scattered conventions and subtle bugs.
Core Features & Use Cases
- Establishes clear guidance for when to wrap values in Option versus using nullable types.
- Demonstrates safe interop boundaries with external APIs, DOM, and JSON serialization.
- Use case: modeling a user profile where some fields may be absent but the application must still reason about presence vs absence reliably.
Quick Start
Provide a concise example converting an external payload into Effect<Option<YourType>, Error> and handling missing data with a sensible default.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: effect-option Download link: https://github.com/agentxm/axm/archive/main.zip#effect-option Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.