handle-api-service
CommunityStandardize API services with React Query.
System Documentation
What problem does it solve?
This skill provides a standardized blueprint for creating API service functions and wiring them to TanStack Query (React Query) in React components. It helps teams implement consistent GET queries (useQuery) and mutations (useMutation), along with type definitions, error handling, notification flows, and i18n patterns.
Core Features & Use Cases
- Unified service pattern: Centralizes GET and mutation functions under a single class with a shared API wrapper.
- Component integration: Demonstrates how to connect services to React components via useQuery and useMutation with proper caching and error handling.
- i18n readiness: Includes guidance to use react-i18next for translated notifications when an i18n setup exists.
Quick Start
Create a new service file under src/services/gin, following the provided examples, then wire a GET operation with useQuery and a POST/PUT/PATCH/DELETE operation with useMutation. If i18n is present, wrap notification messages with useTranslation and t().
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: handle-api-service Download link: https://github.com/Tuienn/e-notarization/archive/main.zip#handle-api-service Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.