Toolverse
All skills

fp-ts-errors

by sickn33

Handle errors as values using fp-ts Either and TaskEither for cleaner, more predictable TypeScript code. Use when implementing error handling patterns with fp-ts.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
sickn33
Category
Backend

About this skill

Handle errors as values using fp-ts Either and TaskEither for cleaner, more predictable TypeScript code. Use when implementing error handling patterns with fp-ts.

How to use

  1. Zainstaluj skill fp-ts-errors w swoim projekcie TypeScript jako asystenta dla Claude, Copilota lub innego modelu obsługującego skills.

  2. Zamiast pisać funkcje, które rzucają wyjątkami, zdefiniuj je tak, aby zwracały Either<Error, Success>. Na przykład funkcja getUser powinna zwrócić Either<UserNotFoundError, User> zamiast rzucać wyjątek.

  3. Dla operacji asynchronicznych używaj TaskEither zamiast Promise z try/catch. TaskEither łączy Either (obsługa błędów jako wartości) z Task (operacje asynchroniczne).

  4. Zamiast zagnieżdżać wiele bloków try/catch, łańcuchuj operacje za pomocą map, flatMap i chain. Skill pokazuje, jak czytać i komponować te operacje, aby kod pozostał czytelny.

  5. Gdy potrzebujesz zbierać wiele błędów walidacji, użyj Either do akumulacji błędów zamiast zatrzymywania się na pierwszym. Skill zawiera wzorce do tego celu.

  6. Skonsultuj się ze skillem, gdy refaktoryzujesz istniejący kod z wyjątkami na Either/TaskEither – skill wyjaśni, jak zmienić sygnatury funkcji i przepisać logikę bez zmiany zachowania.

Related skills

pdf-to-markdown

by aliceisjustplaying

Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions \

Backend
355664

sql-optimization-patterns

by wshobson

Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.

Backend
40163

context-optimizer

by openclaw

Advanced context management with auto-compaction and dynamic context optimization for DeepSeek's 64k context window. Features intelligent compaction (merging, summarizing, extracting), query-aware relevance scoring, and hierarchical memory system with context archive. Logs

Backend
2964

using-superpowers

by obra

Use when starting any conversation - establishes mandatory workflows for finding and using skills, including using Skill tool before announcing usage, following brainstorming before coding, and creating TodoWrite todos for checklists

Backend
65167

supabase-operations

by elevanaltd

Supabase operational knowledge for migrations, RLS optimization, MCP tool benchmarks, and ADR-003 compliance. Use when validating database migrations, optimizing Row-Level Security policies, checking MCP tool performance, or ensuring Supabase operational standards. Triggers on:

Backend
27109

postgresql-psql

by timelessco

Comprehensive guide for PostgreSQL psql - the interactive terminal client for PostgreSQL. Use when connecting to PostgreSQL databases, executing queries, managing databases/tables, configuring connection options, formatting output, writing scripts, managing transactions, and

Backend
34173