vue-components

Develop Vue 3 components with the Composition API and TypeScript.

5|1|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/slashwhy/super-todo --skill vue-components
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue-components
Source: https://github.com/slashwhy/super-todo/tree/main/.github/skills/vue-components
Command: npx skills add https://github.com/slashwhy/super-todo --skill vue-components

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a standardized approach to building Vue 3 components, ensuring consistency, maintainability, and adherence to project conventions.

Core Features & Use Cases

  • Component Structure: Demonstrates the recommended structure for Vue 3 components using <script setup lang="ts">.
  • Props and Emits: Illustrates type-safe definition and usage of props and emits with TypeScript.
  • State Management: Shows basic reactive state management with ref and computed properties.
  • Use Case: When creating a new reusable UI element like a modal or a card, use this Skill to ensure it follows the project's established patterns for props, emits, and styling.

Quick Start

Create a new Vue component named 'UserProfileCard' that accepts a 'user' prop and emits a 'save' event.

Frequently Asked Questions about vue-components

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

FAQPage Schema
How do I define type-safe props and emits in Vue 3 components?

Define type-safe props and emits in Vue 3 components using `<script setup lang="ts">` to ensure TypeScript inference and project convention adherence. This Skill provides patterns for type-safe definitions and reactive state management.

What is the best way to structure a Vue 3 component using the Composition API?

The best way to structure a Vue 3 component is using `<script setup lang="ts">` with patterns for reactive state, computed properties, and lifecycle hooks. This Skill ensures component structures remain testable and maintainable.

How do I add data-testid attributes to Vue components for testing?

Add `data-testid` attributes to Vue components to ensure they are testable according to project standards. This Skill provides conventions for including testable attributes alongside proper styling guidelines.

Can I use TypeScript with Vue 3 Composition API for state management?

Yes, you can use TypeScript with the Vue 3 Composition API for basic reactive state management using `ref` and computed properties. This Skill demonstrates type-safe state management patterns for reusable UI elements.

Why does my Vue 3 component structure lack consistency across reusable UI elements?

Vue 3 component structure lacks consistency without standardized patterns for props, emits, and styling. This Skill solves the problem by providing conventions for developing components using the Composition API and TypeScript.

When do I need to use script setup in Vue 3 components?

Use `<script setup>` in Vue 3 components when creating new reusable UI elements like modals or cards to ensure they follow established project patterns. This Skill provides the recommended structure for these scenarios.