Fantasia neverthrow

From vishiri/fantasia-archive · View interactive version

Fantasia neverthrow is an AI agent skill from the GitHub repository vishiri/fantasia-archive. Use the neverthrow Result / ResultAsync pattern instead of try/catch for recoverable failures. Apply when touching error paths, IPC wrappers, parsers, or refactors around thrown errors.

How to use this skill

Skill file

Neverthrow error handling

When to follow

See neverthrow.mdc.

Core API (Neverthrow v8)

Prefer finally on Promise chains for cleanup-only side effects.

Preload exclusion

src-electron/contentBridgeAPIs/** — sandboxed preload bundle. No neverthrow import. Use Promise.then/.catch, URL.canParse, early returns. src-electron/shared/** reachable from preload: same rule. Renderer, main, helpers/ still prefer Result / ResultAsync.

Links

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.