api-data-fetching

Alias API data-fetching guidance to the canonical react-query-data-patterns skill.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/aidanaden/sg-food-guide --skill api-data-fetching
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-data-fetching
Source: https://github.com/aidanaden/sg-food-guide/tree/main/.agents/skills/api-data-fetching
Command: npx skills add https://github.com/aidanaden/sg-food-guide --skill api-data-fetching

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Compatibility alias for API/query guidance to ensure legacy prompts continue to work while directing users to the canonical React Query data patterns skill.

Core Features & Use Cases

  • Provides a stable alias to the canonical react-query-data-patterns skill for API data-fetching guidance.
  • Guides on core workflow and module boundaries (client.ts, types.ts, queries.ts) and conventions for query keys and cache invalidation.
  • Scenario: A team migrating legacy prompts to the canonical skill without losing guidance on how to structure client modules and queries.

Quick Start

Refer to the canonical react-query-data-patterns skill for current guidance.

Frequently Asked Questions about api-data-fetching

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure React Query data fetching modules for cache invalidation?

To structure React Query data fetching, separate your code into client.ts, types.ts, and queries.ts modules. This canonical pattern ensures proper query key conventions and structured cache invalidation for frontend projects.

What is the canonical pattern for organizing React Query mutations and types?

The canonical pattern for organizing React Query mutations and types involves defining strict module boundaries. You structure client modules, types, and queries separately to maintain clean data fetching workflows and proper mutation patterns.

Does this API data-fetching guidance work for legacy React prompts?

Yes, this API data-fetching guidance works for legacy React prompts by providing a compatibility alias. It directs legacy prompts to the canonical react-query-data-patterns skill without losing guidance on structuring client modules and queries.

How do I migrate legacy API data-fetching prompts to current React Query patterns?

To migrate legacy API data-fetching prompts to current React Query patterns, use this skill as a stable alias. It automatically routes your existing prompts to the canonical react-query-data-patterns guidance for current module structuring.

When do I need to alias API data-fetch guidance to canonical React Query patterns?

You need to alias API data-fetch guidance to canonical React Query patterns when maintaining compatibility for older prompts. This ensures teams migrating legacy configurations continue receiving current module boundary and query structuring guidance.

What are the limitations of using an alias skill for React Query data patterns?

The limitation of using an alias skill for React Query data patterns is that it contains no native guidance itself. It requires alignment with documented module boundaries and depends entirely on the primary canonical skill for current instructions.