Agent skill · Data & Analytics

fp-option-ref

Quick reference for Option type. Use when user needs to handle nullable values, optional data, or wants to avoid null checks.

Nick44,086★ · +407/wk · 1 repos on radarProfile →
claude-codecodexcursorMIT
Install
npx skills add sickn33/agentic-awesome-skills --skill fp-option-ref --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 2 KB
Bundled scripts: none
Version: 1.0.0
Path: skills/fp-option-ref/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 44,414 · +328 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Option Quick Reference Option = value that might not exist. `Some(value)` or `None`. ## When to Use - You need a quick fp-ts reference for nullable or optional values. - The task involves eliminating null checks, safe property access, or optional chaining with `Option`. - You want a short reference card rather than a full migration guide. ## Create ```typescript import * as O from 'fp-ts/Option' O.some(5) // Some(5) O.none // None O.fromNullable(x) // null/undefined → None, else Some(x) O.fromPredicate(x > 0)(x) // false → None, true → Some(x) ``` ## Transform ```typescript O.map(fn) // Transform inner value O.flatMap(fn) // Chain Options (fn returns Option) O.filter(predicate) // None if predicate false ``` ## Extract ```typescript O.getOrElse(() => default) // Get value or default O.toNullable(opt) // Back to T | null O.toUndefined(opt) // Back to T | undefined O.match(onNone, onSome) // Pattern match ``` ## Common Patterns ```typescript import { pipe } from 'fp-ts/function' import * as O from 'fp-ts/Option' // Safe property access pipe( O.fromNullable(user), O.map(u => u.profile), O.flatMap(p => O.fromNullable(p.avatar)), O.getOrElse(() => '/default-avatar.png') ) // Array fir

What's inside
Steps it walks through
  1. When to Use
  2. Create
  3. Transform
  4. Extract
  5. Common Patterns
  6. vs Nullable
  7. Limitations
More from agentic-awesome-skills
All skills →
About this skill
What does the fp-option-ref skill do?

Quick reference for Option type. Use when user needs to handle nullable values, optional data, or wants to avoid null checks.

How do I install it?

Run `npx skills add sickn33/agentic-awesome-skills --skill fp-option-ref --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going