vue-create-composables

Generate Vue 3 composables with reactive state and typed interfaces.

1|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/bmslabs/bmlabs-projects-templates --skill vue-create-composables
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue-create-composables
Source: https://github.com/bmslabs/bmlabs-projects-templates/tree/main/view-vuejs/.github/skills/vue-create-composables
Command: npx skills add https://github.com/bmslabs/bmlabs-projects-templates --skill vue-create-composables

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Este Skill facilita la generación de composables Vue 3 (Composition API) para gestionar el estado reactivo, la lógica de negocio y la orquestación de servicios, promoviendo la reutilización y la mantenibilidad.

Core Features & Use Cases

  • Creación de composables reutilizables para entidades con estado, acciones y efectos.
  • Integración con API para delegar llamadas HTTP a un servicio de backend.
  • Patrones de seguridad y SSR para evitar efectos globales y garantizar la compatibilidad con SSR.

Quick Start

Solicita un composable para una entidad específica usando el tipo CRUD o estado y proporciona el nombre de la entidad.

Frequently Asked Questions about vue-create-composables

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

FAQPage Schema
How do I create Vue 3 composables for reactive state and business logic?

To create Vue 3 composables for reactive state, you define a useXxx interface that encapsulates stateful logic, loading, error, and data properties. This approach delegates API calls to a dedicated service and enforces strict typing for reusable Composition API code.

How does SSR-safe state management work in Vue 3 Composition API?

SSR-safe state management in Vue 3 prevents global side effects by avoiding shared top-level reactive state outside the composable function scope. This ensures each server request gets isolated reactive state and avoids cross-request contamination.

What is the best way to structure Vue 3 composables for API integration?

The best way to structure Vue 3 composables for API integration is to delegate HTTP calls to a dedicated backend service rather than fetching directly. The composable exposes loading, error, and data refs, orchestrating the service to maintain clean separation of concerns.

Can I use this composable generator for CRUD operations in Vue 3?

Yes, you can generate composables for CRUD operations by specifying the entity type and name. The generated composable will provide a useXxx interface with loading, error, and data states, delegating the create, read, update, and delete API calls to a dedicated service.

Why should I delegate API calls to a service instead of fetching directly inside Vue composables?

Delegating API calls to a dedicated service instead of fetching directly inside Vue composables ensures strict separation of business logic from reactive state. This improves maintainability, simplifies testing, and keeps the composable focused on state orchestration.

Does this Vue composable generator enforce strict typing and naming conventions?

Yes, the Vue composable generator enforces strict typing and naming conventions automatically. It ensures your Composition API interfaces follow the useXxx pattern and maintain consistent type safety across your reactive state and service integrations.