claude/skills/web-project-audit/templates/library/data-fetching.md
Neil Bantoc 5201aa9bd5 Add web-frontend, web-project-audit and web-project-scaffold-containerized-python skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 16:26:33 -08:00

696 B

Data Fetching & API Clients

Audit library doc. Findings come from reading source files — never from README/docs. Each pattern is one ### [slug] Title entry (written via audit.sh finding), with an exemplar file. Further files that repeat a known pattern are logged with audit.sh also, not re-described.

Scope: How the frontend gets and mutates data.

Look for: TanStack Query/SWR/Apollo/tRPC/plain fetch; API client wrappers, base URLs, interceptors, auth headers; request/response typing and runtime validation (Zod); caching, invalidation, optimistic updates; pagination/infinite scroll; error and retry handling; server actions; realtime (WebSocket/SSE).

Findings