Registry / zakariaf

zakariaf/flutter-skills/error-handling-typed-results

Enforces a typed-error spine — a hand-rolled sealed Result<T,F> plus one per-boundary sealed Failure carrying a stable code and typed params (never a localized string), returned instead of thrown; recoverable failures are values, only bugs throw. Convert-at-boundary catches narrowly with an on-clause and logs the original error+stack BEFORE returning a typed Failure; call sites switch exhaustively with no default:; the taxonomy of what the global error net (FlutterError.onError + PlatformDispatc

Agent skill · version 1.0.0 · from zakariaf/Flutter-Skills

Install

npx yarkr-cli add skill:zakariaf/flutter-skills/error-handling-typed-results

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:zakariaf/flutter-skills/error-handling-typed-results
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:zakariaf/flutter-skills/error-handling-typed-results

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:zakariaf/flutter-skills/error-handling-typed-results

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.