Agent skill

Fp Either Ref

by sickn33 in sickn33/agentic-awesome-skills

Quick reference for Either type. An agent skill from sickn33/agentic-awesome-skills.

MITAuto-check passed

Install Fp Either Ref

skills CLI
$ npx skills add sickn33/agentic-awesome-skills --skill fp-either-ref -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sickn33/agentic-awesome-skills fp-either-ref --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/fp-either-ref .claude/skills/fp-either-ref && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
fp-either-ref
GitHub stars
47k
Used in
2 other repos
Token cost
~655 tokens
SKILL.md length
111 words
Files
1
Skills in repo
1,493
Repo updated
First seen
Licence
MIT

At a glance

Quick reference for Either type. An agent skill from sickn33/agentic-awesome-skills.

  • User needs error handling
  • SKILL.md covers When to Use, Create, Transform and Extract, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Operations that can fail with typed errors

What it does

Fp Either Ref is an agent skill from sickn33/agentic-awesome-skills. Quick reference for Either type. Use when user needs error handling, validation, or operations that can fail with typed errors.

Its SKILL.md is about 660 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: AAS Core is the local, agent-first control plane for complete catalog discovery, agent-owned selection, stack validation, and planning, backed by 2,400+ agentic skills. Includes… The licence is MIT.

When your agent uses it

  • User needs error handling
  • Operations that can fail with typed errors

Example prompts

  • “/fp-either-ref”

What it can do on your machine

Read from SKILL.md and the folder at commit 680176d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Fp Either Ref loads about 655 tokens when it runs. Until then it costs about 35 tokens; SKILL.md has 111 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~35
When it runs · the whole SKILL.md, loaded when a task matches
~655

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from sickn33/agentic-awesome-skills at commit 680176d, republished under its MIT licence (© sickn33). 111 words, ~655 tokens.

Download SKILL.mdSave it as .claude/skills/fp-either-ref/SKILL.md (or your agent's skills folder).
name
fp-either-ref
description
Quick reference for Either type. Use when user needs error handling, validation, or operations that can fail with typed errors.
risk
none
source
community
date_added
2026-09-04
version
1.0.0
tags
fp-ts, either, error-handling, validation, quick-reference

Either Quick Reference

Either = success or failure. Right(value) or Left(error).

When to Use

  • You need a quick fp-ts reference for typed synchronous error handling.
  • The task involves validation, fallible operations, or converting throwing code to Either.
  • You want a compact cheat sheet rather than a long tutorial.

Create

typescript
import * as E from 'fp-ts/Either'

E.right(value)           // Success
E.left(error)            // Failure
E.fromNullable(err)(x)   // null → Left(err), else Right(x)
E.tryCatch(fn, toError)  // try/catch → Either

Transform

typescript
E.map(fn)                // Transform Right value
E.mapLeft(fn)            // Transform Left error
E.flatMap(fn)            // Chain (fn returns Either)
E.filterOrElse(pred, toErr) // Right → Left if pred fails

Extract

typescript
E.getOrElse(err => default)  // Get Right or default
E.match(onLeft, onRight)     // Pattern match
E.toUnion(either)            // E | A (loses type info)

Common Patterns

typescript
import { pipe } from 'fp-ts/function'
import * as E from 'fp-ts/Either'

// Validation
const validateEmail = (s: string): E.Either<string, string> =>
  s.includes('@') ? E.right(s) : E.left('Invalid email')

// Chain validations (stops at first error)
pipe(
  E.right({ email: 'test@example.com', age: 25 }),
  E.flatMap(d => pipe(validateEmail(d.email), E.map(() => d))),
  E.flatMap(d => d.age >= 18 ? E.right(d) : E.left('Must be 18+'))
)

// Convert throwing code
const parseJson = (s: string) => E.tryCatch(
  () => JSON.parse(s),
  (e) => `Parse error: ${e}`
)

vs try/catch

typescript
// ❌ try/catch - errors not in types
try {
  const data = JSON.parse(input)
  process(data)
} catch (e) {
  handleError(e)
}

// ✅ Either - errors explicit in types
pipe(
  E.tryCatch(() => JSON.parse(input), String),
  E.map(process),
  E.match(handleError, identity)
)

Use Either when error type matters and you want to chain operations.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

© sickn33, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/fp-either-ref of sickn33/agentic-awesome-skills.

Open the folder on GitHubat commit 680176d

Used in 2 other repositories

We found 11 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in sickn33/agentic-awesome-skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Fp Either Ref next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Fp Either Ref compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Fp Either Ref this skillsickn33/agentic-awesome-skills47k2 repos~655Automated safety check: PassMIT
React18 String Refsgithub/awesome-copilot40k1 repos~527Automated safety check: PassMIT
Octopus Quicknyldn/claude-octopus4.2k1 repos~2.2kAutomated safety check: PassMIT
GSD Quick Batchopen-gsd/gsd-core10k—~1.4kAutomated safety check: NotesMIT
Quick Design SpecDonchitos/Claude-Code-Game-Studios26k—~2.9kAutomated safety check: PassMIT
Quicknotque/vexjoy-agent439—~1.9kAutomated safety check: NotesMIT

Similar skills

  • React18 String Refs

    github/awesome-copilot

    Official

    Provides exact migration patterns for React string refs (ref="name" + this.refs.name) to React.createRef() in class components.

    40k GitHub starsUsed in 1 repo~527 tokens
    Auto-check passed
  • Octopus Quick

    nyldn/claude-octopus

    Quick execution for ad-hoc tasks without full workflow overhead — use for small, self-contained requests

    4.2k GitHub starsUsed in 1 repo~2.2k tokens
    DevelopmentAuto-check passed
  • GSD Quick Batch

    open-gsd/gsd-core

    Runs several small /gsd-quick tasks as one batch, with a single coordinator that plans them, dispatches workers per item and owns all shared writes and worktree merges.

    10k GitHub stars~1.4k tokensUpdated yesterday
    Agent WorkflowsAuto-check: notes
  • Quick Design Spec

    Donchitos/Claude-Code-Game-Studios

    Writes a short design spec for small gameplay adjustments such as tuning, tweaks and minor additions, and redirects anything larger to a full design document.

    26k GitHub stars~2.9k tokensUpdated yesterday
    Game DevelopmentAuto-check passed
  • Quick

    notque/vexjoy-agent

    Tracked lightweight execution with composable rigor flags: --trivial, --discuss, --research, --full.

    439 GitHub stars~1.9k tokensUpdated 6 days ago
    DevelopmentAuto-check: notes
  • Dep Refs

    zai-org/ZCode

    A skill your agent uses when needs to inspect TypeScript export references in the z-code workspace, list exports from a file, verify whether an export is unused before deletion, investigate who…

    7.6k GitHub stars~552 tokensUpdated 10 days ago
    DevelopmentAuto-check passed

More from sickn33/agentic-awesome-skills

All 1,493 skills in this repo
  • Liuguang Banlan UI

    sickn33/agentic-awesome-skills

    Implements an interface in one of two named color modes, iridescent white or colorful black, from a parameterized starter that reports measured color intensity.

    47k GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • User Thoughts Memory

    sickn33/agentic-awesome-skills

    Saves a user's project decisions, rules and preferences into a project-local mdbase so later sessions and other agents can recover the intent.

    47k GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • Using LWC Memory and Graphs

    sickn33/agentic-awesome-skills

    Keeps project decisions, research and verified results available across coding-agent sessions through LWC memory, a document Wiki graph and a CodeGraph code index.

    47k GitHub starsUsed in 1 repo~2k tokens
    Auto-check passed
  • Find Complementary Founders

    sickn33/agentic-awesome-skills

    Guides an agent through assessing its own owner for cofounder fit, publishing an approved profile, and ranking complementary profiles other agents published for their owners.

    47k GitHub starsUsed in 1 repo~4.8k tokens
    Auto-check passed
  • Whatsapp Cloud API

    sickn33/agentic-awesome-skills

    Integracao com WhatsApp Business Cloud API (Meta). An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 2 repos~4.5k tokens
    Auto-check passed
  • Cline Pilot

    sickn33/agentic-awesome-skills

    Acts as a proxy for the Cline CLI, dispatching coding tasks one at a time, monitoring runs by hard evidence, relaying decisions to you and learning per-project preferences.

    47k GitHub starsUsed in 1 repo~4.6k tokens
    Auto-check passed

Questions about Fp Either Ref

What does Fp Either Ref do?

Quick reference for Either type. An agent skill from sickn33/agentic-awesome-skills. Fp Either Ref is an agent skill from sickn33/agentic-awesome-skills. Quick reference for Either type.

When should I use Fp Either Ref?

Fp Either Ref fits situations like: user needs error handling; operations that can fail with typed errors.

How do I install Fp Either Ref in Claude Code?

Run `npx skills add sickn33/agentic-awesome-skills --skill fp-either-ref -a claude-code`. Or copy the skill folder (skills/fp-either-ref in sickn33/agentic-awesome-skills) into .claude/skills/fp-either-ref in your project. Claude Code loads it when a task matches its description.

How do I install Fp Either Ref in Codex?

Run `npx skills add sickn33/agentic-awesome-skills --skill fp-either-ref -a codex`. Or copy the skill folder (skills/fp-either-ref in sickn33/agentic-awesome-skills) into .agents/skills/fp-either-ref in your project. Codex loads it when a task matches its description.

Can I use Fp Either Ref in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sickn33/agentic-awesome-skills --skill fp-either-ref -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/fp-either-ref, .gemini/skills/fp-either-ref, .github/skills/fp-either-ref and .opencode/skills/fp-either-ref in your project.

What does Fp Either Ref need to run?

SKILL.md names no scripts, command-line tools or credentials: Fp Either Ref is instructions for the agent only.

Does Fp Either Ref access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Fp Either Ref safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Fp Either Ref use?

Fp Either Ref is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Fp Either Ref use?

About 655 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Fp Either Ref?

Skills that share tags, products or a category with Fp Either Ref: React18 String Refs (github/awesome-copilot, 40k stars), Octopus Quick (nyldn/claude-octopus, 4.2k stars), GSD Quick Batch (open-gsd/gsd-core, 10k stars) and Quick Design Spec (Donchitos/Claude-Code-Game-Studios, 26k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Fp Either Ref?

sickn33 (a GitHub user) maintains it in sickn33/agentic-awesome-skills, which has 47,379 GitHub stars. The repository holds 1,493 skills in this directory. The repository was last updated on October 9, 2026.

Source: sickn33/agentic-awesome-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.