Skip to content
Skill

Expo data fetching

Guides an AI agent through fetch, React Query, auth tokens and offline handling in Expo

Expo data fetching is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
5
Last commit
License
MIT
Listing updated

Similar skills

About Expo data fetching

This skill gives an agent a playbook for networking inside Expo and React Native apps. It covers plain fetch calls with status checks, TanStack Query setup and mutations, retry with backoff, and token storage in expo-secure-store with a refresh pattern. It also sets out how screens should handle loading, error, empty and cached-content states so a failed refresh does not wipe what the user already sees.

The instructions include code samples for each area, along with decision guidance such as choosing React Query over SWR for larger apps and preferring expo/fetch over axios. Environment configuration with EXPO_PUBLIC_ variables and separate development and production env files is documented, including a warning against putting secrets in client-visible variables. Offline detection with NetInfo, request cancellation and Expo Router route loaders are split into a separate reference file.

The skill is written for React Native and Expo projects in TypeScript. It names expo-secure-store, React Query and NetInfo, so those packages need to be part of the app for the examples to apply. It includes no scripts; it only provides guidance and code to adapt.

When your agent uses it

Implement or debug data fetching in Expo apps. Use for fetch API calls, React Query, SWR, authenticated requests, caching, retries, offline support, loading and error states, or Expo Router data loaders (useLoaderData).

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 4 files (25 KB) on GitHub on 2 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the better-supabase plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add ScaleDockHQ/better-supabase
/plugin install better-supabase@better-supabase

Or copy only this skill to ~/.claude/skills/expo-data-fetching:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/expo-data-fetching &&
cp -R "$tmp/.agents/skills/expo-data-fetching" ~/.claude/skills/expo-data-fetching &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/expo-data-fetching inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/expo-data-fetching to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/expo-data-fetching &&
cp -R "$tmp/.agents/skills/expo-data-fetching" ~/.agents/skills/expo-data-fetching &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/expo-data-fetching inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/expo-data-fetching to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/expo-data-fetching &&
cp -R "$tmp/.agents/skills/expo-data-fetching" ~/.cursor/skills/expo-data-fetching &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/expo-data-fetching inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/ScaleDockHQ/better-supabase.git --path .agents/skills/expo-data-fetching

Or copy the folder to ~/.gemini/skills/expo-data-fetching yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/expo-data-fetching:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/expo-data-fetching &&
cp -R "$tmp/.agents/skills/expo-data-fetching" ~/.copilot/skills/expo-data-fetching &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/expo-data-fetching inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git

Then copy better-supabase/.agents/skills/expo-data-fetching into your agent's skills folder as expo-data-fetching. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Basic fetch patterns
Shows GET and POST requests with response status checks and typed error handling.
React Query setup
Covers the query client, useQuery fetching and mutations with invalidation.
Screen state handling
Explains loading, error, empty and cached-content states for data screens.
Secure token management
Stores auth tokens with expo-secure-store and adds a guarded token refresh flow.
Retry and error helpers
Provides a retry wrapper with exponential backoff and a network error type.
Environment-based API config
Explains EXPO_PUBLIC_ variables, per-environment env files and secret handling.
Offline and cancellation guide
Points to a reference on NetInfo status, offline-first queries and AbortController.

Good for

  • Add a data-fetching layer with React Query to an Expo app
  • Wire a bearer token into API requests stored with SecureStore
  • Handle a failed refresh while keeping cached screen data visible
  • Configure separate dev and production API URLs in Expo
  • Add retry with backoff to flaky network requests
  • Debug a fetch call that fails in a React Native screen

Expo data fetching FAQ

Which libraries does Expo data fetching assume are installed?

The examples use TanStack Query, expo-secure-store and NetInfo, with fetch as the base HTTP client. The skill recommends expo/fetch over axios.

Does Expo data fetching store tokens securely?

It recommends expo-secure-store for tokens and calls out AsyncStorage as insecure for that purpose.

Can Expo data fetching expose API keys to the app bundle?

The skill warns that EXPO_PUBLIC_ variables are visible in the built app, so secret keys should stay out of them and be used only in API routes.

Does Expo data fetching cover Expo Router data loaders?

It mentions useLoaderData for web with SDK 55 and later, and points to a separate reference file for route-level loaders.

How do I install Expo data fetching in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/expo-data-fetching to use it in all your projects, or to .claude/skills/expo-data-fetching in one project. Or install the better-supabase plugin, which includes it: /plugin marketplace add ScaleDockHQ/better-supabase, then /plugin install better-supabase@better-supabase.

Does Expo data fetching run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Expo data fetching?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Expo data fetching?

The closest alternatives to Expo data fetching are Expo data fetching, Expo native UI, Expo router, Expo native UI and Expo router.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from ScaleDockHQ/better-supabase

  1. Apply the CommonMark 0.31.2 spec when parsing or rendering Markdown

    • Open source
    • 5 GitHub stars
    • Files and documents
  2. Publish Agent Cards and run agent-to-agent calls over the A2A 1.0 protocol

    • Open source
    • 5 GitHub stars
    • Developer tools
  3. Lets an agent stream runs, tool calls and shared state to user-facing apps over AG-UI 1.0

    • Open source
    • 5 GitHub stars
    • Developer tools
  4. Lets an AI agent drive Chrome or Chromium through a fast browser automation CLI

    • Open source
    • 5 GitHub stars
    • Browser automation
  5. Guides an agent to write, review and validate SKILL.md skills against the Agent Skills

    • Open source
    • 5 GitHub stars
    • Developer tools
  6. Write, place, migrate and review AGENTS.md instruction files for coding agents

    • Open source
    • 5 GitHub stars
    • Developer tools