Stats
Actions
Tags
From Prisma
Use when writing or reviewing code that returns Result<T, E> from the @efesto-cloud/result package.
How this skill is triggered — by the user, by Claude, or both
Slash command
/Prisma:monad-resultThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Installation:** If not already installed, add the package with `pnpm add @efesto-cloud/result`.
Installation: If not already installed, add the package with pnpm add @efesto-cloud/result.
Use this skill to keep Result<T, E> usage consistent across the project.
Result.ok(value).Result.err(error).result.isFailure() or result.isSuccess().result.unwrapOrThrow().result.else(() => fallback).result.run(fn) — runs fn on success data, no-op on failure.result.toObject() — returns ISuccess<T> | IFailure<E>.Result.fromObject(obj) — reconstructs from a plain IResult<T, E> object.Result.fromZod(zodParseResult) — converts SafeParseReturnType to Result.isErr().unwrap().getOr().Result<T, E> is created and returned.Result.ok(...)Result.err(...)if (res.isFailure()) return Result.err(res.error);res.dataisFailure()res.else(() => value)res.unwrapOrThrow()map, flatMap, mapError, or fold.const created = createSomething(input);
if (created.isFailure()) return Result.err(created.error);
return Result.ok(created.data);
const name = maybeNameResult
.map((v) => v.trim())
.else(() => "N/D")
.unwrapOrThrow();
npx claudepluginhub efesto-cloud/lib --plugin PrismaCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.