error-handling
/error-handling
Projektuje hierarchie błędów, granice błędów w React, ponawianie i zapasowe ścieżki, odpowiedzi API oraz śledzenie błędów w Sentry.
- Autor
- srstomp ↗
- Repozytorium
- pokayokay ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 28.09.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 9
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 28.09.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Projektuje hierarchie błędów, granice błędów w React, ponawianie i zapasowe ścieżki, odpowiedzi API oraz śledzenie błędów w Sentry.
Oryginalny opis (EN)
Use when designing error hierarchies, implementing React error boundaries, adding retry logic or fallbacks, creating API error responses, integrating error tracking (Sentry), or improving user-facing error communication.
Jak działa
- Quick Decision Guide
- Key Principles
- Quick Start Checklist
- References
- Runtime Notes
Podgląd SKILL.md
--- name: error-handling description: Use when designing error hierarchies, implementing React error boundaries, adding retry logic or fallbacks, creating API error responses, integrating error tracking (Sentry), or improving user-facing error communication. --- # Error Handling Design resilient applications through intentional error handling strategies. Errors are data, not just exceptions — design them intentionally. ## Quick Decision Guide | Situation | Pattern | Reference | |-----------|---------|-----------| | Typed error categories | Custom error classes | [error-patterns.md](references/error-patterns.md) | | Explicit handling (no throws) | Result/Either type | [error-patterns.md](references/error-patterns.md) | | React component crash | Error boundary | [react-errors.md](references/react-errors.md) | | API error response | Structured API errors | [api-errors.md](references/api-errors.md) | | Network calls that fail | Retry with backoff | [recovery-patterns.md](references/recovery-patterns.md) | | Unreliable downstream service | Circuit breaker | [recovery-patterns.md](references/recovery-patterns.md) | ## Key Principles - **Debuggable**: Rich context, stack traces, correlation IDs - **Recoverable**: Retry logic, fallbacks, circuit breakers - **User-friendly**: Clear messages, recovery guidance, no leaked internals - **Consistent**: Same error shape across all API endpoints ## Quick Start Checklist 1. Define base AppError class with code and context 2. Create domain-specific error subclasses 3. Implement consistent API error response shape 4. Add error boundaries at app, route, and component levels 5. Set up error tracking (Sentry) with scrubbing ## References | Reference | Description | |-----------|-------------| | [error-patterns.md](references/error-patterns.md) | Custom errors, Result types, error hierarchies | | [react-errors.md](references/react-errors.md) | Error boundaries, Suspense, React error handling | | [api-errors.md](references/api-errors.md) | HTTP errors, response shapes, status codes | | [recovery-patterns.md](references/recovery-patterns.md) | Retry, circuit breaker, fallbacks, degradation | | [overview.md](references/overview.md) | Error types, Result pattern, user messages, tracking, anti-patterns | | [anti-rationalization.md](references/anti-rationalization.md) | Iron Law, common rationalizations, red flag STOP list for error handling discipline | | [tdd-patterns.md](references/tdd-patterns.md) | Test-first patterns for error paths, retry logic, boundaries | | [review-checklist.md](references/review-checklist.md) | Error handling review checklist (classes, messages, recovery, tracking) | ## Runtime Notes - **Claude Code**: dispatch the relevant agent (yokay-implementer, yokay-fixer, yokay-spec-reviewer, or yokay-quality-reviewer) via the Task tool with `subagent_type: "pokayokay:yokay-<name>"`. - **Codex**: there is no subagent dispatch. Execute the agent's role inline — read the corresponding `agents/yokay-<name>.md` and follow its Behavioral Defaults, Critical Rules, and Output Contract directly in the current session.
Pliki w paczce (9)
- SKILL.md 3 KB
- references/anti-rationalization.md 7 KB
- references/api-errors.md 14 KB
- references/error-patterns.md 13 KB
- references/overview.md 3 KB
- references/react-errors.md 15 KB
- references/recovery-patterns.md 18 KB
- references/review-checklist.md 2 KB
- references/tdd-patterns.md 3 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · srstomp/pokayokay | 90 | MIT |
| ericrisco/rsc-harness | 100 | MIT |
| jcdendrite/claude-config | 100 | MIT |
| Sanit-mann/The-Insectoids | 100 | MIT |
| Esposter/Esposter | 100 | Apache-2.0 |
| komluk/scaffolding | 100 | MIT |
| oborchers/fractional-cto | 100 | MIT |
| affaan-m/ECC | 100 | MIT |
| claude-dev-suite/claude-dev-suite | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki bf639cbac8d5 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100backend-error-handling
Wdraża wzorce obsługi błędów: error boundaries, toasty i jeden spójny format błędów API. - 90error-boundary-creator
Tworzy granice błędów, obsługę błędów i widoki zastępcze w aplikacjach React oraz konfiguruje raportowanie błędów. - 98error-handling-patterns
Projektuje obsługę błędów w TypeScript i Pythonie: hierarchie wyjątków, typy Result i Either, ponowienia, error boundaries i strukturalne logowanie błędów. - 100sentry-reliability-patterns
Buduje niezawodne integracje Sentry, obsługując awarie SDK, ponawianie prób i ciągłość śledzenia błędów. - 100python-error-handling
Stosuje wzorce obsługi błędów w Python: walidacja wejścia, hierarchie wyjątków i częściowe awarie przy przetwarzaniu wsadowym oraz w odpornych API. - 100python-error-handling
Stosuje wzorce obsługi błędów w Python: walidacja wejścia, hierarchie wyjątków i częściowe awarie przy przetwarzaniu wsadowym oraz w odpornych API.