Skill

neverthrow-wrap-exceptions

Capture exceptions and promise failures with `neverthrow` instead of hand-written `try/catch` in TypeScript and JavaScript code. Use when wrapping synchronous functions that may throw, promise-returning functions that may throw before returning, existing `PromiseLike` values that may reject, or third-party APIs such as parsers, database clients, HTTP clients, file-system helpers, serializers, and SDK calls. Prefer `Result.fromThrowable` for synchronous throwers, `ResultAsync.fromThrowable` for promise-returning functions that may throw or reject, and `ResultAsync.fromPromise` when you already have a `PromiseLike` value in hand. Only keep `try/catch` when the language construct, cleanup requirement, or framework boundary truly requires it.

Bundled with opencode-weave. Its trust score, security findings and other files are on the plugin page.

SKILL.md

Path
.agents/skills/neverthrow-wrap-exceptions/SKILL.md
Size
5.1 KB
SHA-256
d45e2606245b5adde3d27f68df600359b231023e7a6592da0e5a79cc2201bb5e

Install

Install the plugin's skills with the Skills CLI:

npx [email protected] add weave-io/weave