dev-create-composable

Generate a Vue Query composable with useQuery or useMutation for server state.

20|3|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/HerbertJulio/specialist-agent --skill dev-create-composable
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dev-create-composable
Source: https://github.com/HerbertJulio/specialist-agent/tree/main/packs/vue/skills/dev-create-composable
Command: npx skills add https://github.com/HerbertJulio/specialist-agent --skill dev-create-composable

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Adds server state management to a Vue module by generating a Vue Query composable with built-in caching and error handling.

Core Features & Use Cases

  • Generates a composable that uses Vue Query (useQuery/useMutation) to fetch or mutate data with a coherent error strategy.
  • Supports integration with services and adapters in a Vue 3 + TypeScript project, enabling predictable, testable data flows.
  • Provides a pattern for typed composables, including a reactive queryKey and explicit staleTime for caching behavior.

Quick Start

Create a composable in composables/use[Name].ts that uses useQuery or useMutation with caching and proper error handling.

Frequently Asked Questions about dev-create-composable

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

FAQPage Schema
How do I create a Vue Query composable with caching and error handling in Vue 3?

To create a Vue Query composable with caching, you generate a typed composable using useQuery or useMutation, implement a reactive queryKey, and define an explicit staleTime to manage server state and handle errors predictably.

What is the best way to manage server state and data fetching in a Vue 3 TypeScript project?

Managing server state in Vue 3 is best achieved by generating a Vue Query composable that integrates useQuery or useMutation, providing structured data fetching, coherent error strategies, and predictable caching behavior.

How do I set up a reactive queryKey and staleTime for Vue Query data fetching?

You set up data fetching by defining a reactive queryKey for cache identification and an explicit staleTime to control data freshness within your typed Vue Query composable.

Does Vue Query work with TypeScript for structured mutation logic and caching?

Yes, Vue Query works with TypeScript by generating typed composables that handle mutation logic and caching, enabling predictable and testable data flows within your Vue 3 modules.

When do I need to use useMutation instead of useQuery for my Vue composable?

You need to use useMutation instead of useQuery when your Vue composable must mutate server data rather than fetch it, applying a coherent error strategy and structured caching behavior.