vue-composables

Create and review Vue 3 composables with naming and structure conventions.

15|Updated Nov 23, 2025
One-click install
npx skills add https://github.com/alexanderop/workoutTracker --skill vue-composables-alexanderop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue-composables
Source: https://github.com/alexanderop/workoutTracker/tree/main/.claude/skills/vue-composables
Command: npx skills add https://github.com/alexanderop/workoutTracker --skill vue-composables-alexanderop

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured approach to creating reusable Vue 3 composables that follow established patterns and best practices, reducing duplication and improving maintainability.

Core Features & Use Cases

  • Naming conventions: prefix with use and PascalCase, e.g., useCounter.ts, placed in src/composables/.
  • Structured patterns: one composable should have a single responsibility, expose clear state and methods, and separate UI concerns from logic.
  • Use Cases: create new composables, refactor existing logic into composable functions, or review/validate existing composables across a Vue project.

Quick Start

Ask the assistant to create a new composable named useCounter following the use naming convention and placed in src/composables/, implementing a simple counter with increment and decrement functions.

Frequently Asked Questions about vue-composables

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

FAQPage Schema
How do I write clean Vue 3 composables using the Composition API?

Refactoring existing logic into Vue 3 composables involves extracting reusable state and methods into use* functions. Place these functions in src/composables, ensure single responsibility, and separate UI concerns from core logic to improve project maintainability and reduce duplication.

What are the naming conventions for Vue 3 composable functions?

Vue 3 composable naming conventions require prefixing files and functions with use in PascalCase, such as useCounter.ts. Composables must be located under the src/composables directory and export named functions to enforce consistency across the project.

Can I use this to review existing composables across a Vue project?

Yes, you can review and validate existing composables across a Vue project. It checks code against established patterns, ensuring proper use prefixing, correct location under src/composables, appropriate error handling, and correct lifecycle usage within the Composition API.

What's the best way to structure state and methods in a Vue composable?

The best way to structure state and methods in a Vue composable is to enforce single responsibility. Expose clear state and methods, separate UI concerns from underlying logic, and apply structured patterns for error handling and lifecycle usage to create high-quality, reusable functions.