Back to skills
SKILL.md
Vue
ASecurity编写或修改 Vue/SFC/组合式 API/script setup/v-model 组件时调用,提供 Vue 开发规范、TailwindCSS 样式约束,以及 hooks/comps/utils、lucide-vue-next、motion-v 等项目约定
- 5 stars
- 0 votes
- 0 copies
- 4 views
- Added September 4, 2026
Works with
Security analysis
100/100npx -y skills add beixiyo/dotfiles --skill vue --agent claude-codeAre you the author of Vue?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/beixiyo-vue)---
name: vue
description: 编写或修改 Vue/SFC/组合式 API/script setup/v-model 组件时调用,提供 Vue 开发规范、TailwindCSS 样式约束,以及 hooks/comps/utils、lucide-vue-next、motion-v 等项目约定
---
## 项目结构
以下内部包和样式约定用于用户自己的项目;先确认依赖、别名和现有配置。外部项目遵循其规范,不强加内部包或深色模式方案。模板只展示结构,按实际需求声明有严格类型的 props / emits / model
```ts
import { } from 'hooks' // (packages/hooks)
import { Button, ... } from 'comps' // (packages/comps)
import { cn } from 'utils' // (packages/utils)
```
## 组件模板
```vue
<template>
<div class="Test-container"></div>
</template>
<script setup lang="ts">
defineOptions({ name: 'Test' })
const modelValue = defineModel({ ... })
const props = withDefaults(defineProps<{ myProps: any }>(), {})
const emit = defineEmits<{ (e: 'myEvent'): void }>()
</script>
<style lang="scss" scoped></style>
```
## 代码要求
- 组件化:一个组件一个文件,优先用 v-model 双向绑定
## CSS
- TailwindCSS:无法实现时用行内样式,禁止未定义类名(用 `bg-[#409eff]` 语法),禁止动态拼接 `h-[${h}px]`
- 深色模式:`tailwind.config` 变量已自动适配,无需 `dark:` 前缀
## 库
- 禁止:shadcn/ui
- 推荐:lucide-vue-next(图标)、`cn`(tailwind-merge)、motion-v(动画)
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.