Agent skill

React Fetch Cache Patterns

by pproenca in pproenca/dot-skills

React data-fetching patterns at scale — recommender carousels, infinite feeds, pages with many parallel fetches, dashboards.

MITAuto-check passedDevelopment

Install React Fetch Cache Patterns

skills CLI
$ npx skills add pproenca/dot-skills --skill react-fetch-cache-patterns -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pproenca/dot-skills react-fetch-cache-patterns --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.experimental/react-fetch-cache-patterns .claude/skills/react-fetch-cache-patterns && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
react-fetch-cache-patterns
GitHub stars
214
Token cost
~3k tokens
SKILL.md length
838 words
Files
59 (incl. references, assets)
Skills in repo
182
Repo updated
First seen
Licence
MIT

At a glance

React data-fetching patterns at scale — recommender carousels, infinite feeds, pages with many parallel fetches, dashboards.

  • Works in 8 steps: Request Orchestration (CRITICAL) → Cache Strategy (CRITICAL) → Backend Protection (CRITICAL) → …
  • Refactoring React components that fetch data — even if the user doesnt explicitly mention performance
  • SKILL.md covers When to Apply, Rule Categories by Priority, Quick Reference and How to Use, plus 3 more sections
  • Runs TypeScript scripts from its folder

What it does

React Fetch Cache Patterns is an agent skill from pproenca/dot-skills. React data-fetching patterns at scale — recommender carousels, infinite feeds, pages with many parallel fetches, dashboards. Covers request orchestration (parallelism, batching, deduplication), cache strategy (keys, normalization, staleTime, SWR), backend protection (concurrency caps, debounce/throttle, jittered retries, circuit breakers), prefetching (route loaders, hover/intent, idle, server hydration), failure resilience (AbortController, timeouts, error boundaries, stale fallback, idempotent mutations), and…

Its SKILL.md is about 3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 61 other files, including reference files and assets (for example `AGENTS.md`, `assets/templates/_template.md` and `assets/templates/request-collapser.template.ts`).

It sits in Development, covering Caching, React components and Error handling. It works with React. The repository describes itself as: A collection of AI agent skills following the Agent Skills open format. The licence is MIT.

When your agent uses it

  • Refactoring React components that fetch data — even if the user doesnt explicitly mention performance
  • Tasks that involve Caching
  • Tasks that involve React components

Example prompts

  • “t explicitly mention”
  • “/react-fetch-cache-patterns”

Requirements

  • Node.js

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Request Orchestration (CRITICAL)
  2. Cache Strategy (CRITICAL)
  3. Backend Protection (CRITICAL)
  4. Prefetch & Hydration (HIGH)
  5. Failure Resilience (HIGH)
  6. Feed & Carousel Patterns (MEDIUM-HIGH)
  7. Mutation & Invalidation (MEDIUM)
  8. Component Patterns (MEDIUM)

What it can do on your machine

Read from SKILL.md and the folder at commit cf93c57. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (TypeScript, from the files we listed), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

React Fetch Cache Patterns loads about 3k tokens when it runs, and up to ~44k if it reads all its reference files. Until then it costs about 231 tokens; SKILL.md has 838 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~231
When it runs · the whole SKILL.md, loaded when a task matches
~3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~44k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from pproenca/dot-skills at commit cf93c57, republished under its MIT licence (© pproenca). 838 words, ~2,959 tokens.

Download SKILL.mdSave it as .claude/skills/react-fetch-cache-patterns/SKILL.md (or your agent's skills folder). This skill also uses 58 other files; get the full folder from GitHub.
name
react-fetch-cache-patterns
description
React data-fetching patterns at scale — recommender carousels, infinite feeds, pages with many parallel fetches, dashboards. Covers request orchestration (parallelism, batching, deduplication), cache strategy (keys, normalization, staleTime, SWR), backend protection (concurrency caps, debounce/throttle, jittered retries, circuit breakers), prefetching (route loaders, hover/intent, idle, server hydration), failure resilience (AbortController, timeouts, error boundaries, stale fallback, idempotent mutations), and feed/carousel patterns (virtualization, cursor pagination, summary/detail split). Includes 5 ready-to-use scaffolding templates (resource query hook, carousel data loader, infinite feed, hover-prefetch link, request collapser). Trigger when building, reviewing, or refactoring React components that fetch data — even if the user doesn't explicitly mention "performance" or "scale".

Experimental React Data Fetching & Caching Best Practices

Implementation patterns for React applications that fetch and cache many API requests without overwhelming the backend. 48 rules across 8 categories, ordered by execution lifecycle impact — earlier categories cascade through everything downstream. Templates show both library-based (TanStack Query, SWR) and library-free (pure React + AbortController) implementations so the patterns are usable regardless of stack constraints.

When to Apply

  • Writing or reviewing a React component that calls fetch, useQuery, useSWR, or any data-fetching hook
  • Designing a list, feed, or carousel that displays many items each requiring data
  • Investigating "the backend is getting hammered" or "the page loads slowly" symptoms
  • Choosing between client-side fetching, route loaders, server components, or SSR
  • Implementing prefetch, retry, optimistic updates, or any failure-handling logic
  • Refactoring code that already does data fetching but with waterfalls, no cache strategy, or no concurrency limits

Rule Categories by Priority

#CategoryImpactPrefixRules
1Request OrchestrationCRITICALorch-7
2Cache StrategyCRITICALcache-7
3Backend ProtectionCRITICALprotect-7
4Prefetch & HydrationHIGHprefetch-6
5Failure ResilienceHIGHresilience-6
6Feed & Carousel PatternsMEDIUM-HIGHfeed-7
7Mutation & InvalidationMEDIUMmutate-4
8Component PatternsMEDIUMrender-4

Quick Reference

1. Request Orchestration (CRITICAL)
2. Cache Strategy (CRITICAL)
3. Backend Protection (CRITICAL)
4. Prefetch & Hydration (HIGH)
5. Failure Resilience (HIGH)
Show full SKILL.md (361 more words)Show less
7. Mutation & Invalidation (MEDIUM)
8. Component Patterns (MEDIUM)

How to Use

  1. Open references/_sections.md for category definitions and impact rationale
  2. Read individual rule files for incorrect-vs-correct code examples
  3. For ready-to-use scaffolds, see scaffolding templates
  4. The AGENTS.md navigation document (auto-generated) provides a TOC for browsing

Scaffolding Templates

Six ready-to-adapt code templates under assets/templates/:

TemplateLibrary depsPurpose
use-resource-query.template.tsxTanStack QueryStandard query hook with key factory, retry, abort, optional suspense
use-resource-query-no-deps.template.tsxNone (pure React + AbortController)Same patterns as above, library-free: hand-rolled cache, dedup, retry with jitter, staleTime/gcTime, concurrency limit
carousel-data-loader.template.tsxTanStack Query + react-error-boundarySingle carousel (summary + viewport-triggered detail) and multi-carousel feed with per-carousel failure isolation
infinite-feed.template.tsxTanStack Query + TanStack VirtualCursor-paginated infinite feed with virtualization and bounded working set
prefetch-link.template.tsxNoneHover/intent prefetch link wrapper
request-collapser.template.tsNoneIn-flight deduplication + concurrency limit utility

Library-free path: if you can't add TanStack Query / SWR / DataLoader to your bundle (size constraints, host-app conflicts, dependency bans), start with use-resource-query-no-deps.template.tsx — it implements the core cache/dedup/retry/abort patterns in ~250 lines using only React and the web platform. The other templates that depend on TanStack can be adapted on top of it; only the request-collapser and prefetch-link templates are zero-dep out of the box.

Reference Files

FileDescription
references/_sections.mdCategory definitions, ordering, impact rationale
assets/templates/_template.mdTemplate for authoring new rules
metadata.jsonVersion, references, abstract
  • react-optimise — General React render performance (this skill is data-fetching-specific)
  • nextjs-bundle-optimizer — Bundle/payload optimization for Next.js
  • inngest-nextjs-patterns — Server-side workflow patterns (complements server-fetch guidance)

© pproenca, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 58 other files (references, assets) in skills/.experimental/react-fetch-cache-patterns of pproenca/dot-skills.

  • SKILL.md
  • AGENTS.md
  • assets/templates/_template.md
  • assets/templates/carousel-data-loader.template.tsx
  • assets/templates/infinite-feed.template.tsx
  • assets/templates/prefetch-link.template.tsx
  • assets/templates/request-collapser.template.ts
  • assets/templates/use-resource-query-no-deps.template.tsx
  • assets/templates/use-resource-query.template.tsx
  • metadata.json
  • references/_sections.md
  • references/cache-deterministic-keys.md
  • references/cache-normalize-shared-entities.md
  • references/cache-select-subscribed-fields.md
  • references/cache-set-stale-time.md
  • references/cache-shared-key-factory.md
  • references/cache-stale-while-revalidate.md
  • references/cache-tiered-stale-fresh.md
  • … and 41 more

Open the folder on GitHubat commit cf93c57

Compare with similar skills

React Fetch Cache Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

React Fetch Cache Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
React Fetch Cache Patterns this skillpproenca/dot-skills214—~3kAutomated safety check: PassMIT
No Use Effectmattiacerutti/supernova1872 repos~1.7kAutomated safety check: PassMIT
React Best Practicesshapeshift/web2061 repos~2kAutomated safety check: PassMIT
Migrate Componentasyncapi/generator1.1k—~3kAutomated safety check: PassApache-2.0
Data Client Reactreactive/data-client2k—~1.9kAutomated safety check: PassApache-2.0
Project Form PatternsAkaraChen/aghub272—~1.1kAutomated safety check: PassMIT

Similar skills

  • No Use Effect

    mattiacerutti/supernova

    Enforce the no-useEffect rule when writing or reviewing React code.

    187 GitHub starsUsed in 2 repos~1.7k tokens
    DevelopmentAuto-check passed
  • React Best Practices

    shapeshift/web

    Comprehensive React and Next.js performance optimization guide with 40+ rules for eliminating waterfalls, optimizing bundles, and improving rendering.

    206 GitHub starsUsed in 1 repo~2k tokens
    DevelopmentAuto-check passed
  • Migrate Component

    asyncapi/generator

    Promote a duplicated React/JSX template-local component into the shared @asyncapi/generator-components package.

    1.1k GitHub stars~3k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Data Client React

    reactive/data-client

    Use @data-client/react hooks for data fetching, mutations, and rendering - useSuspense, useFetch, useQuery, useCache, useLive, useDLE, useSubscription, useController, DataProvider, AsyncBoundary…

    2k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Project Form Patterns

    AkaraChen/aghub

    Form implementation guidance for the aghub desktop app. An agent skill from AkaraChen/aghub.

    272 GitHub stars~1.1k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • React Performance

    affaan-m/ECC

    React and Next.js performance optimization patterns adapted from Vercel Engineering's React Best Practices (https://github.com/vercel-labs/agent-skills).

    274k GitHub starsUsed in 1 repo~4.5k tokens
    DevelopmentAuto-check passed

More from pproenca/dot-skills

All 182 skills in this repo
  • Audio Voice Recovery

    pproenca/dot-skills

    Audio forensics and voice recovery guidelines for CSI-level audio analysis.

    214 GitHub stars~3.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Codemod React Pipeline

    pproenca/dot-skills

    Guided, scripted pipeline for running JSX/TSX/React codemods safely across large legacy codebases.

    214 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Dev Rfc

    pproenca/dot-skills

    Create well-structured RFCs and technical proposals for software projects.

    214 GitHub stars~3.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Dx Harness

    pproenca/dot-skills

    Developer-experience friction auditing and fixing — slow onboarding, repeated manual setup steps, missing bootstrap/reset/seed scripts, undiscoverable conventions.

    214 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Language Spec Author

    pproenca/dot-skills

    Turn a rough idea for a language into a complete, implementable specification — a DSL, query, config/data, template, or protocol language — by interviewing the author dimension by dimension until…

    214 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Python Pep Author

    pproenca/dot-skills

    Drafting Python Enhancement Proposals (PEPs) — proposing a Python language feature, a standard library change, an interoperability standard, or an informational/process document for the Python…

    214 GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about React Fetch Cache Patterns

What does React Fetch Cache Patterns do?

React data-fetching patterns at scale — recommender carousels, infinite feeds, pages with many parallel fetches, dashboards. React Fetch Cache Patterns is an agent skill from pproenca/dot-skills. React data-fetching patterns at scale — recommender carousels, infinite feeds, pages with many parallel fetches, dashboards.

When should I use React Fetch Cache Patterns?

React Fetch Cache Patterns fits situations like: refactoring React components that fetch data — even if the user doesnt explicitly mention performance; tasks that involve Caching; tasks that involve React components.

How do I install React Fetch Cache Patterns in Claude Code?

Run `npx skills add pproenca/dot-skills --skill react-fetch-cache-patterns -a claude-code`. Or copy the skill folder (skills/.experimental/react-fetch-cache-patterns in pproenca/dot-skills) into .claude/skills/react-fetch-cache-patterns in your project. Claude Code loads it when a task matches its description.

How do I install React Fetch Cache Patterns in Codex?

Run `npx skills add pproenca/dot-skills --skill react-fetch-cache-patterns -a codex`. Or copy the skill folder (skills/.experimental/react-fetch-cache-patterns in pproenca/dot-skills) into .agents/skills/react-fetch-cache-patterns in your project. Codex loads it when a task matches its description.

Can I use React Fetch Cache Patterns in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pproenca/dot-skills --skill react-fetch-cache-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/react-fetch-cache-patterns, .gemini/skills/react-fetch-cache-patterns, .github/skills/react-fetch-cache-patterns and .opencode/skills/react-fetch-cache-patterns in your project.

What does React Fetch Cache Patterns need to run?

Going by SKILL.md and its folder, React Fetch Cache Patterns needs TypeScript for the scripts in its folder. Our summary lists: Node.js.

Does React Fetch Cache Patterns access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is React Fetch Cache Patterns safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does React Fetch Cache Patterns use?

React Fetch Cache Patterns is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does React Fetch Cache Patterns use?

About 3k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 41k tokens, read only when the agent opens those files.

What are the alternatives to React Fetch Cache Patterns?

Skills that share tags, products or a category with React Fetch Cache Patterns: No Use Effect (mattiacerutti/supernova, 187 stars), React Best Practices (shapeshift/web, 206 stars), Migrate Component (asyncapi/generator, 1.1k stars) and Data Client React (reactive/data-client, 2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains React Fetch Cache Patterns?

pproenca (a GitHub user) maintains it in pproenca/dot-skills, which has 214 GitHub stars. The repository holds 182 skills in this directory. The repository was last updated on August 15, 2026.

Source: pproenca/dot-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.