asl-general-react-query-hook-composition

Community

Optimize AskLeave project with centralized Query Key management and business Hooks.

AuthorChapmanRichard
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill unit addresses the complexity and redundancy of query management in the AskLeave project by providing a structured approach to composing business Hooks using useQuery and useMutation.

Core Features & Use Cases

  • Centralized Query Key Management: Ensures that all query keys are declared and exported from a single location, improving maintainability and avoiding scattering literals.
  • Unified Query Key Constants: Standardizes query key constants for invalidation scope and cache strategy, promoting consistency across the application.
  • Business Hooks Composition: Offers a framework for creating Hooks (useXxx) that encapsulate the logic for querying and mutating data, simplifying the usage in components.
  • Use Case: For instance, a developer can use this Skill to create a useEmployeeLeave Hook that handles CRUD operations for employee leaves, ensuring that related caches are invalidated appropriately upon data changes.

Quick Start

Use the asl-general-react-query-hook-composition skill to create a new Hook for employee leave management by following the guidelines in the SKILL.md.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 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: asl-general-react-query-hook-composition
Download link: https://github.com/ChapmanRichard/LeaveSystem_Frontend/archive/main.zip#asl-general-react-query-hook-composition

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 620,000+ vetted skills library on demand.