fsd-query

Generate TanStack Query hooks with queryKeys, useQuery, and useMutation for FSD slices.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/rladydqls99/claude-marketplace --skill fsd-query
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fsd-query
Source: https://github.com/rladydqls99/claude-marketplace/tree/main/plugins/dev-team-plugin/skills/fsd-query
Command: npx skills add https://github.com/rladydqls99/claude-marketplace --skill fsd-query

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation of TanStack Query hooks for FSD (Feature-Sliced Design) slices, streamlining data-fetching logic in React applications.

Core Features & Use Cases

  • Automatic Hook Generation: Creates useQuery, useMutation, and queryKeys based on FSD conventions.
  • API Integration: Uses ky for HTTP requests and integrates with defined API endpoints.
  • Invalidation Logic: Automatically includes mutation invalidation for cache management.
  • Use Case: When developing a new feature that requires fetching and mutating user data, use this Skill to quickly generate the necessary TanStack Query hooks, ensuring consistency and adherence to project patterns.

Quick Start

Generate data-fetching hooks for the 'users' FSD slice.

Frequently Asked Questions about fsd-query

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

FAQPage Schema
How do I generate TanStack Query hooks for a Feature-Sliced Design slice?

To generate TanStack Query hooks for a Feature-Sliced Design slice, you can use this Skill to automatically create useQuery, useMutation, and queryKeys based on FSD conventions. It streamlines data-fetching logic and ensures consistency across your React application.

How does automatic cache invalidation work with useMutation in FSD?

Automatic cache invalidation with useMutation in FSD works by automatically including mutation invalidation logic when generating the hooks. This ensures that your React query cache management stays consistent and synchronized with your data-fetching operations without manual configuration.

Can I use ky for HTTP requests when generating TanStack Query hooks?

Yes, you can use ky for HTTP requests when generating TanStack Query hooks. This Skill specifically integrates with ky to handle HTTP requests and connects with your defined API endpoints within the Feature-Sliced Design project context.

Do I need to manually define queryKeys for my React data-fetching hooks?

You do not need to manually define queryKeys for your React data-fetching hooks. This Skill automatically generates queryKeys alongside useQuery and useMutation hooks by following specific project patterns for queryKeys within your FSD slices.

What is the best way to structure data-fetching logic in an FSD React project?

The best way to structure data-fetching logic in an FSD React project is to automate hook generation for each slice. This Skill creates standardized TanStack Query hooks including useQuery, useMutation, and queryKeys, ensuring adherence to FSD conventions and project patterns.

Does this hook generation tool work with existing TypeScript FSD project patterns?

Yes, this hook generation tool works with existing TypeScript FSD project patterns. It analyzes your specific project patterns for queryKeys and API endpoints to generate consistent TanStack Query hooks for your React Feature-Sliced Design slices.