File contents
name: vue-component-generator
description: 生成 Vue 3 组件模板,支持 Composition API、Options API、TypeScript、SFC 单文件组件,一键生成完整 Vue 组件代码。
metadata: {"clawdbot":{"emoji":"💚","requires":{},"primaryEnv":""}}
Vue Component Generator
快速生成专业的 Vue 3 组件代码。
功能
⚡ 一键生成组件
📝 支持 TypeScript
🎯 Composition API / Options API
🎨 SCSS 样式支持
📖 Props/Emits 定义
支持的 API
API
说明
composition
Composition API (推荐)
options
Options API
script-setup
<script setup> 语法
组件类型
使用方法
基本用法
# 生成 Composition API 组件
vue-component-generator MyButton --api composition
# 生成 Options API 组件
vue-component-generator MyModal --api options
# 生成 TypeScript 组件
vue-component-generator MyForm --typescript
选项
选项
说明
--api, -a
API 类型 (composition/options)
--typescript, -t
启用 TypeScript
--scss, -s
启用 SCSS
--output, -o
输出目录
输出示例
<template>
<div class="my-button">
<button @click="handleClick">
{{ label }}
</button>
</div>
</template>
<script setup>
import { ref } from 'vue'
const props = defineProps({
label: {
type: String,
default: 'Click me'
}
})
const emit = defineEmits(['click'])
const handleClick = () => {
emit('click')
}
</script>
<style scoped>
.my-button {
padding: 10px 20px;
}
</style>
安装
# 无需额外依赖
变现思路
组件库模板 - 销售专业组件库模板
企业服务 - 定制 Vue 组件
培训 - Vue 开发培训
更多示例
表单组件
vue-component-generator InputField --api composition --typescript
模态框
vue-component-generator Modal --api composition --scss
Source: modbender/skill-library-mcp — distributed by TomeVault .
1 --- 2 name: modbender-skill-library-mcp-vue-component-generator 3 description: --- 4 --- 5 --- 6 name: vue-component-generator 7 description: 生成 Vue 3 组件模板,支持 Composition API、Options API、TypeScript、SFC 单文件组件,一键生成完整 Vue 组件代码。 8 metadata: {"clawdbot":{"emoji":"💚","requires":{},"primaryEnv":""}} 9 --- 10 11 # Vue Component Generator 12 13 快速生成专业的 Vue 3 组件代码。 14 15 ## 功能 16 17 - ⚡ 一键生成组件 18 - 📝 支持 TypeScript 19 - 🎯 Composition API / Options API 20 - 🎨 SCSS 样式支持 21 - 📖 Props/Emits 定义 22 23 ## 支持的 API 24 25 | API | 说明 | 26 |-----|------| 27 | composition | Composition API (推荐) | 28 | options | Options API | 29 | script-setup | `<script setup>` 语法 | 30 31 ## 组件类型 32 33 - 普通组件 34 - 路由组件 35 - 布局组件 36 - 表单组件 37 38 ## 使用方法 39 40 ### 基本用法 41 42 ```bash 43 # 生成 Composition API 组件 44 vue-component-generator MyButton --api composition 45 46 # 生成 Options API 组件 47 vue-component-generator MyModal --api options 48 49 # 生成 TypeScript 组件 50 vue-component-generator MyForm --typescript 51 ``` 52 53 ### 选项 54 55 | 选项 | 说明 | 56 |------|------| 57 | `--api, -a` | API 类型 (composition/options) | 58 | `--typescript, -t` | 启用 TypeScript | 59 | `--scss, -s` | 启用 SCSS | 60 | `--output, -o` | 输出目录 | 61 62 ## 输出示例 63 64 ```vue 65 <template> 66 <div class="my-button"> 67 <button @click="handleClick"> 68 {{ label }} 69 </button> 70 </div> 71 </template> 72 73 <script setup> 74 import { ref } from 'vue' 75 76 const props = defineProps({ 77 label: { 78 type: String, 79 default: 'Click me' 80 } 81 }) 82 83 const emit = defineEmits(['click']) 84 85 const handleClick = () => { 86 emit('click') 87 } 88 </script> 89 90 <style scoped> 91 .my-button { 92 padding: 10px 20px; 93 } 94 </style> 95 ``` 96 97 ## 安装 98 99 ```bash 100 # 无需额外依赖 101 ``` 102 103 ## 变现思路 104 105 1. **组件库模板** - 销售专业组件库模板 106 2. **企业服务** - 定制 Vue 组件 107 3. **培训** - Vue 开发培训 108 109 ## 更多示例 110 111 ### 表单组件 112 113 ```bash 114 vue-component-generator InputField --api composition --typescript 115 ``` 116 117 ### 模态框 118 119 ```bash 120 vue-component-generator Modal --api composition --scss 121 ``` 122 123 --- 124 > Source: [modbender/skill-library-mcp](https://github.com/modbender/skill-library-mcp) — distributed by [TomeVault](https://tomevault.io). 125 <!-- tomevault:4.0:skill_md:2026-06-16 -->
tomevault-io/skills-registry/tree/main/modbender--skill-library-mcp--vue-component-generator commit b021bddd0f
Frequently asked questions How do I install the Modbender Skill Library MCP Vue Component Generator skill? Run npx skillmds@latest add tomevault-io/modbender-skill-library-mcp-vue-component-generator in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Modbender Skill Library MCP Vue Component Generator skill do? --- It is listed under Web & Frontend on SkillMD.
Is Modbender Skill Library MCP Vue Component Generator safe to use? This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Modbender Skill Library MCP Vue Component Generator? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Modbender Skill Library MCP Vue Component Generator free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Modbender Skill Library MCP Vue Component Generator? tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.