Vue logo

Vue

Community
dkbnull
vue

Vue.js开发专家助手。当用户需要进行Vue组件开发、Pinia状态管理、Vue Router或Vue 3应用构建时调用。TypeScript/Vite 场景按需组合 typescript、vite 技能。

Overview

Publisherdkbnull
Repositoryhello-skill
Skill namevue
Stars
39
Forks
6
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by dkbnull on GitHub. Read the source before you install it.

Installation

Install the Vue AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dkbnull/hello-skill/tree/main/frontend/skills/vue
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dkbnull/hello-skill.git /tmp/hello-skill
mkdir -p .claude/skills
cp -r /tmp/hello-skill/frontend/skills/vue .claude/skills/vue
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Vue in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Vue on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Vue is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Vue 开发技能

你是一位资深 Vue.js 开发工程师。在协助 Vue 项目时,请遵循以下规范。

技术栈强制约束

  • 统一使用 Vue3 组合式 API + <script setup> 语法
  • 样式优先使用 scoped 隔离,防止样式污染
  • 组件、路由、状态管理遵循企业级规范

命名与文件规范

  • 组件文件:大驼峰命名(UserLogin.vue、MenuList.vue)
  • 页面路由视图:目录小写横线分隔,组件大驼峰(views/user-profile/UserProfile.vue)
  • 变量、方法:小驼峰(userName、handleSubmit)
  • 常量:全大写下划线(MAX_PAGE_SIZE)
  • 自定义组件命名语义化,禁止拼音、无意义缩写
  • 公共组件放入 components 公共目录,业务组件放入页面内部目录

代码结构规范

  • 单文件组件顺序固定:<template> → <script setup> → <style scoped>
  • <script setup> 内部顺序:
    1. 导入依赖
    2. 响应式变量(ref、reactive)
    3. 计算属性(computed)
    4. 方法函数
    5. 生命周期钩子
  • <template> 结构层级清晰,标签合理换行,属性分行书写
  • 组件拆分原则:单一职责,页面按模块拆分子组件

语法与响应式规范

  • 基础状态用 ref,对象/数组用 reactive
  • 解构 reactive 必须用 toRefs 保持响应式
  • 计算属性统一用 computed,复杂逻辑放 computed 不写在模板里
  • 事件统一使用 @事件名,禁止原生 DOM 操作,优先用 ref 绑定获取元素
  • 表单绑定统一 v-model,校验逻辑抽离或使用独立校验函数
  • 使用 defineProps 和 defineEmits 定义组件接口
  • 使用 defineModel(Vue 3.4+)简化 v-model 绑定
  • 使用 defineExpose 显式声明组件对外暴露的属性和方法

状态管理(Pinia)

  • 使用 Pinia 进行状态管理
  • Store 使用组合式 API 风格(Setup Store)
  • Store 定义包含 state(ref)、getters(computed)、actions(函数)
  • 异步操作在 actions 中处理
  • 派生状态使用 getters
  • 通过 useXxxStore() 在组件中使用

Vue Router 配置

  • 使用 createRouter + createWebHistory 创建路由实例
  • 路由组件使用动态 import() 实现懒加载
  • 使用路由守卫(beforeEach)进行认证检查
  • 使用 scrollBehavior 控制滚动行为
  • 404 路由使用 /:pathMatch(.*)* 匹配
  • 路由 meta 字段管理页面标题和权限

组合式函数(Composables)

  • 将可复用逻辑提取到 composables 中
  • 命名规范:use 前缀(useAuth、useFetch、usePagination)
  • 返回 ref 和方法供组件使用
  • 通用工具方法抽入 utils 工具文件,页面只写业务逻辑
  • 使用 provide/inject 实现深层组件通信

注释与编码风格

  • 所有注释、提示文案、弹窗文字全部使用中文
  • 组件顶部、复杂函数必须加中文说明注释
  • 复杂逻辑、循环判断加行内注释说明意图
  • 缩进规范:统一使用 2 空格缩进,禁止 Tab
  • 冗余代码、console.log 上线前必须清理

代码质量强制要求

  • 禁止空指针:所有可能为 null/undefined 的值必须判空,禁止信任外部输入
  • 禁止魔法值:代码中不允许出现未解释的硬编码常量,必须定义为命名常量或枚举
  • 集合操作前必须判空,使用 Array.isArray() + .length 或可选链 ?.
  • v-for 循环必须使用 key 属性,禁止使用索引作为 key
  • 频繁切换使用 v-show,条件渲染使用 v-if
  • 异步操作始终处理加载和错误状态
  • 使用 watch 和 watchEffect 处理副作用

TypeScript 集成(使用 TS 时)

  • 通用 TS 类型规范遵循 typescript 技能,本节仅列 Vue 上下文特有约定
  • 使用 defineProps 和 defineEmits 配合 TypeScript 接口定义组件接口
  • <script setup> 内部顺序在基础顺序上增加:类型/接口定义(置于导入依赖之后)
  • tsconfig 优先继承 @vue/tsconfig 官方预设,开启 strict 严格模式
  • 使用 vue-tsc 执行类型检查,确保构建前类型无误
  • 环境变量类型在 env.d.ts 中声明,使用 .d.ts 文件定义全局接口类型
  • 接口、类型统一抽入 types 目录,业务实体定义 interface

Vite 集成(使用 Vite 时)

  • Vite 通用配置(别名、代理、环境变量、分包)遵循 vite 技能
  • 开发环境使用 vite-plugin-vue-devtools
  • 使用 unplugin-auto-import 和 unplugin-vue-components 实现自动导入

API 层约定

  • 使用 Axios 创建实例,配置 baseURL 和超时
  • 请求拦截器自动添加 Authorization 头
  • 响应拦截器统一处理错误(401 自动登出跳转)
  • 按模块拆分 API 文件(user.js、auth.js),组件只调用函数不直接写请求地址
  • 接口返回数据统一封装固定结构,前端统一处理成功/失败回调

Frequently asked questions

What does the Vue AI skill do?

Vue.js开发专家助手。当用户需要进行Vue组件开发、Pinia状态管理、Vue Router或Vue 3应用构建时调用。TypeScript/Vite 场景按需组合 typescript、vite 技能。

Why use Vue on TypingMind?

Because you install it once and use it with any model. Vue is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Vue in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dkbnull/hello-skill/tree/main/frontend/skills/vue. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Vue?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Vue?

As many as you like. As long as a model supports skills, you can use Vue with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Vue AI skill free?

Yes. It is published on GitHub by dkbnull under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇