fe-service-hook

Official

Generate TanStack Query hooks for API data.

Authorlety-ai
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This solution helps frontend teams rapidly generate TanStack Query v5 hooks that integrate with ApiSDK-powered APIs, reducing boilerplate and ensuring consistent data management.

Core Features & Use Cases

  • Automatically generate useQuery and useMutation hooks following the project's ApiSDK pattern.
  • Organize hooks under features/<feature>/services/ with standard filenames (get-<feature>.ts, get-<feature>-list.ts, create-<feature>.ts, update-<feature>.ts, delete-<feature>.ts).
  • Supports TypeScript and ApiSDK Axios client usage, with global defaults for staleTime, cacheTime, and refetch behavior.

Quick Start

Provide the operation type, resource name, and OpenAPI method name to generate the corresponding TanStack Query hook.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: fe-service-hook
Download link: https://github.com/lety-ai/lety-skill-hub/archive/main.zip#fe-service-hook

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.