Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Provides a centralized web frontend API client with React Query hooks for fetching and mutating backend data.
17% 100%+83 ptsof test cases passed
Passed 23 of 23 test cases with the skill, and 4 of 23 without it.
Our document management web interface needs a function to kick off background OCR parsing for uploaded files. What is our internal library function for initiating generation tasks?
Imports startGeneration from ./lib/api.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
One sentence: Centralized API client for the web frontend with React Query integration.
Trigger: when fetching or mutating data from the backend API.
| Task | Pattern |
|---|---|
| Fetch generations | useGenerations() |
| Start generation | useStartGeneration() |
Handle structured API errors using the ApiError class which provides status and code fields for precise error categorization.
import { ApiError } from '@/lib/api';
try {
const data = await fetchApi<User>('/api/user');
} catch (error) {
if (error instanceof ApiError) {
// Handle specific status codes
if (error.status === 401) {
// Redirect to login
}
}
}
Next to this one in the catalogue, plus more from the same author.