Skip to content
Back to skills

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
developmentvueapi

Works with

  • api

Security analysis

A100/100

Scanned September 21, 2026

npx -y skills add beixiyo/dotfiles --skill vue --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vue?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Vue
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/beixiyo-vue/badge)](https://www.skillsdirectory.com/skills/beixiyo-vue)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.