Official agent skill

Frontend Data Fetching

by getsentry in getsentry/sentry

Fetch data in Sentry's frontend with TanStack Query and apiOptions.

OfficialCustom licenceAuto-check passedFrontend & Design

Install Frontend Data Fetching

skills CLI
$ npx skills add getsentry/sentry --skill frontend-data-fetching -a claude-code

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

GitHub CLI
$ gh skill install getsentry/sentry frontend-data-fetching --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/getsentry/sentry.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/frontend-data-fetching .claude/skills/frontend-data-fetching && 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
frontend-data-fetching
GitHub stars
46k
Token cost
~1.4k tokens
SKILL.md length
322 words
Files
1
Skills in repo
29
Repo updated
First seen
Licence
Custom licence

At a glance

Fetch data in Sentry's frontend with TanStack Query and apiOptions.

  • Works in 5 steps: Type the mutationFn parameters, not the… → Use fetchMutation to type the return… → Never type the error generic as… → …
  • Editing React code in static/ that calls the API — useQuery/useMutation/useInfiniteQuery
  • SKILL.md covers TanStack Query Type Inference… and Accessing response headers…
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Frontend Data Fetching is an agent skill from getsentry/sentry, published by the product's own GitHub organization. Fetch data in Sentry's frontend with TanStack Query and apiOptions. Use when adding or editing React code in static/ that calls the API — useQuery/useMutation/useInfiniteQuery, apiOptions, queryOptions/mutationOptions, fetchMutation, reading response headers/pagination, or conditional fetching. Trigger on "fetch data", "add an API call", "useQuery", "useMutation", "apiOptions", "queryFn", "pagination headers", "X-Hits", or "why is my query type wrong".

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design. It works with Sentry, TanStack and React. The repository describes itself as: Developer-first error tracking and performance monitoring.

When your agent uses it

  • Editing React code in static/ that calls the API — useQuery/useMutation/useInfiniteQuery
  • QueryOptions/mutationOptions
  • Reading response headers/pagination
  • Conditional fetching

Example prompts

  • “fetch data”
  • “add an API call”
  • “useQuery”
  • “/frontend-data-fetching”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Type the mutationFn parameters, not the hook/function generics. The variables type flows from the mutationFn signature.
  2. Use fetchMutation to type the return value — the generic on fetchMutation is correct because it types the API response.
  3. Never type the error generic as RequestError — that's a type assertion in disguise. The error is Error by default. Use runtime narrowing…
  4. Never explicitly type the context — it is inferred from what onMutate returns. Creating a separate type FooContext = {...} and passing it…
  5. Same rule applies to queries — useQuery, queryOptions, useInfiniteQuery, etc. Types flow from queryFn and select.

What it can do on your machine

Read from SKILL.md and the folder at commit 99b4c2b. 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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    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

Frontend Data Fetching loads about 1.4k tokens when it runs. Until then it costs about 120 tokens; SKILL.md has 322 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~120
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 322 words (~1,406 tokens).

“Use apiOptions with useQuery from TanStack Query. Do not use useApiQuery, getApiQueryData, or setApiQueryData — they are deprecated.”

— opening of SKILL.md by getsentry, Custom licence
name
frontend-data-fetching

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/frontend-data-fetching of getsentry/sentry.

Open the folder on GitHubat commit 99b4c2b

Compare with similar skills

Frontend Data Fetching 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.

Frontend Data Fetching compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Frontend Data Fetching this skillgetsentry/sentry46k—~1.4kAutomated safety check: PassCustom licence
React Frontend Development Guidelinesdiet103/claude-code-infrastructure-showcase10k2 repos~2.9kAutomated safety check: PassMIT
Frontend Code Reviewlangflow-ai/langflow156k—~1.6kAutomated safety check: PassMIT
Morphous CatalogAmeyanagi/morphos102—~2.1kAutomated safety check: PassApache-2.0
Buzzformbuildnbuzz/buzzform101—~1.5kAutomated safety check: PassMIT
Shadmin Devahaodev/shadmin174—~2.7kAutomated safety check: PassMIT

Similar skills

  • React Frontend Development Guidelines

    diet103/claude-code-infrastructure-showcase

    Guidelines for React 18 and TypeScript apps covering Suspense data fetching, lazy loading, feature folders, MUI v7 styling, TanStack Router and performance.

    10k GitHub starsUsed in 2 repos~2.9k tokens
    Frontend & DesignAuto-check passed
  • Frontend Code Review

    langflow-ai/langflow

    Review frontend code (.tsx, .ts, .js files) for quality, performance, and correctness against Langflow's frontend conventions.

    156k GitHub stars~1.6k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Morphous Catalog

    Ameyanagi/morphos

    Create or refresh Morphous website design-system/theme bundles from animal, insect, plant, landscape, mineral, weather, or other nature motifs.

    102 GitHub stars~2.1k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check passed
  • Buzzform

    buildnbuzz/buzzform

    A skill your agent uses when working with BuzzForm schema-driven forms, @buildnbuzz/form-core, @buildnbuzz/form-react, or any related APIs like defineSchema, InferType, FormProvider, useDataField…

    101 GitHub stars~1.5k tokensUpdated 4 mo ago
    Frontend & DesignAuto-check passed
  • Shadmin Dev

    ahaodev/shadmin

    Apply Shadmin feature-development standards (backend Go/Gin/Ent + frontend React/TS).

    174 GitHub stars~2.7k tokensUpdated 6 days ago
    Frontend & DesignAuto-check passed
  • I18n

    huoshen80/ReinaManager

    使用 i18next-cli 检查、同步和整理本项目的国际化资源。涉及新增、修改、删除翻译键或国际化字符串,以及修复缺失翻译时使用。

    693 GitHub stars~177 tokensUpdated 4 days ago
    Frontend & DesignAuto-check passed

More from getsentry/sentry

All 29 skills in this repo
  • Scraps Review

    getsentry/sentry

    Official

    Filter large Sentry Scraps design-system migration PRs for review by separating mechanical import-path changes, generated baseline updates, snapshot mocks, and pure renames from substantive…

    46k GitHub stars~1.2k tokensUpdated today
    Auto-check: notes
  • Analytics

    getsentry/sentry

    Official

    Instrument and discover analytics events in Sentry's frontend UI.

    46k GitHub stars~2.5k tokensUpdated today
    Auto-check passed
  • Hybrid Cloud Outboxes

    getsentry/sentry

    Official

    Guide for creating and maintaining outbox-based eventually consistent operations in Sentry.

    46k GitHub stars~4.8k tokensUpdated today
    Auto-check passed
  • Hybrid Cloud Rpc

    getsentry/sentry

    Official

    Guide for creating, updating, and deprecating hybrid cloud RPC services in Sentry.

    46k GitHub stars~4k tokensUpdated today
    Auto-check passed
  • Hybrid Cloud Test Gen

    getsentry/sentry

    Official

    Generate hybrid cloud tests for the Sentry codebase. An agent skill from getsentry/sentry.

    46k GitHub stars~2.6k tokensUpdated today
    Auto-check passed
  • Lint Fix

    getsentry/sentry

    Official

    Fix violations of an eslintPluginScraps rule across the codebase.

    46k GitHub stars~1k tokensUpdated today
    Auto-check passed

Questions about Frontend Data Fetching

What does Frontend Data Fetching do?

Fetch data in Sentry's frontend with TanStack Query and apiOptions. Frontend Data Fetching is an agent skill from getsentry/sentry, published by the product's own GitHub organization. Fetch data in Sentry's frontend with TanStack Query and apiOptions.

When should I use Frontend Data Fetching?

Frontend Data Fetching fits situations like: editing React code in static/ that calls the API — useQuery/useMutation/useInfiniteQuery; queryOptions/mutationOptions; reading response headers/pagination; conditional fetching.

How do I install Frontend Data Fetching in Claude Code?

Run `npx skills add getsentry/sentry --skill frontend-data-fetching -a claude-code`. Or copy the skill folder (.agents/skills/frontend-data-fetching in getsentry/sentry) into .claude/skills/frontend-data-fetching in your project. Claude Code loads it when a task matches its description.

How do I install Frontend Data Fetching in Codex?

Run `npx skills add getsentry/sentry --skill frontend-data-fetching -a codex`. Or copy the skill folder (.agents/skills/frontend-data-fetching in getsentry/sentry) into .agents/skills/frontend-data-fetching in your project. Codex loads it when a task matches its description.

Can I use Frontend Data Fetching 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 getsentry/sentry --skill frontend-data-fetching -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/frontend-data-fetching, .gemini/skills/frontend-data-fetching, .github/skills/frontend-data-fetching and .opencode/skills/frontend-data-fetching in your project.

What does Frontend Data Fetching need to run?

SKILL.md names no scripts, command-line tools or credentials: Frontend Data Fetching is instructions for the agent only.

Does Frontend Data Fetching 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 Frontend Data Fetching 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 Frontend Data Fetching use?

Frontend Data Fetching has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Frontend Data Fetching use?

About 1.4k tokens (SKILL.md is roughly 5.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Frontend Data Fetching?

Skills that share tags, products or a category with Frontend Data Fetching: React Frontend Development Guidelines (diet103/claude-code-infrastructure-showcase, 10k stars), Frontend Code Review (langflow-ai/langflow, 156k stars), Morphous Catalog (Ameyanagi/morphos, 102 stars) and Buzzform (buildnbuzz/buzzform, 101 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Frontend Data Fetching?

getsentry (a GitHub organization, an official publisher) maintains it in getsentry/sentry, which has 45,505 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on October 8, 2026.

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