home / skills / ehtbanton / claudeskillsrepo / vue-component-generator
This skill generates complete Vue 3 components using Composition API and TypeScript with props, emits, and scoped styles.
npx playbooks add skill ehtbanton/claudeskillsrepo --skill vue-component-generatorReview the files below or copy the command above to add this skill to your agents.
---
name: vue-component-generator
description: Generate Vue 3 components with Composition API TypeScript and scoped styles. Triggers on "create vue component", "generate vue file", "vue 3 component", ".vue component".
---
# Vue Component Generator
Generate Vue 3 components with Composition API and TypeScript.
## Output Requirements
**File Output:** `*.vue` component files
**Format:** Valid Vue 3 SFC
**Standards:** Vue 3.4+, script setup, TypeScript
## When Invoked
Immediately generate a complete Vue component with props, emits, and styles.
## Example Invocations
**Prompt:** "Create Vue button component"
**Output:** Complete `Button.vue` with variants and TypeScript.
This skill generates ready-to-use Vue 3 single-file components using the Composition API, TypeScript, and scoped styles. It produces valid .vue files that follow Vue 3.4+ script setup conventions and include props, emits, and style blocks. Outputs are complete components you can drop into a project and use or customize immediately.
When triggered by phrases like "create vue component" or "vue 3 component", the skill composes a full SFC (.vue) file. It scaffolds script setup with TypeScript types for props and emits, implements reactive state and lifecycle hooks as needed, and adds a scoped style section with sensible defaults. The generator returns a single .vue file text that conforms to Vue 3 SFC expectations.
Does the skill include tests or storybook stories?
No, it generates only a single .vue SFC. You can request example usage snippets or test scaffolds in a follow-up prompt.
Can it target Options API or JavaScript instead of TypeScript?
This generator targets Vue 3 script setup with TypeScript by default. Specify a different target in your prompt if you need Options API or plain JavaScript.