api-client
Installation
SKILL.md
API Client Skill
Patterns for fetch-based API communication with robust error handling, retry logic, and response caching.
Philosophy
- Native
fetch()only - No axios or other libraries - Errors should be explicit - No swallowed promises
- Requests should be cancellable - Use AbortController
- Fail gracefully - Handle network issues elegantly
Base Fetch Wrapper
A typed wrapper around fetch with consistent error handling: