vue — vue audit tool claude-rules, community, vue audit tool, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Frontend Agents needing efficient Vue component generation and auditing capabilities. Vue is a skill that provides customized code generation and auditing capabilities for Vue components, utilizing commands like `/vue <path>` and integrating with Element Plus and TypeScript.

Features

Generates Vue code based on user descriptions containing keywords like 'create', 'generate', and 'encapsulate'
Audits Vue files using the `/vue <path>` command, supporting paths like `src/components` and `src/views/Dashboard.vue`
Utilizes a decision tree for type judgment and generates code according to specifications
Ensures complete TypeScript type definitions for generated code
Supports development mode for creating new components and audit mode for reviewing existing code

# Core Topics

TTT1231 TTT1231
[0]
[0]
Updated: 3/8/2026

Agent Capability Analysis

The vue skill by TTT1231 is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for vue audit tool.

Ideal Agent Persona

Perfect for Frontend Agents needing efficient Vue component generation and auditing capabilities.

Core Value

Empowers agents to generate high-quality Vue code and audit Vue files based on user input, utilizing Element Plus and TypeScript for robust component development, and provides features like automatic code generation and type checking.

Capabilities Granted for vue

Generating reusable Vue components
Auditing Vue files for best practices
Creating composable functions like useTable

! Prerequisites & Limits

  • Requires user input for code generation
  • Limited to Vue framework
  • Dependent on Element Plus for table components
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

vue

Install vue, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Vue 组件开发技能

功能说明

开发模式

当用户描述需求时,生成高质量的 Vue 代码:

创建一个用户列表组件
封装 Element Plus 的 Table 组件
写一个 useTable composable
这个组件太大了,帮我拆分

触发条件:用户描述包含"创建"、"生成"、"封装"、"编写"、"拆分"等关键词

审查模式

当用户使用 /vue <path> 命令时,审查指定路径下的 Vue 文件:

/vue src/components
/vue src/views/Dashboard.vue
/vue                          # 审查当前目录

模式分发

1. 开发模式

执行流程

  1. 需求解析 — 理解用户想要实现的功能
  2. 类型判断 — 使用决策树确定组件类型
  3. 代码生成 — 按照规范生成代码
  4. 类型提示 — 确保完整的 TypeScript 类型定义

2. 审查模式

执行流程

  1. 文件扫描 — 使用 Glob 查找指定路径下的所有 .vue 和 composables 文件

  2. 展示检查清单 — 展示可检查项,等待用户确认:

    以下是可执行的检查项,请确认需要检查哪些(默认全选,回复排除项的编号即可):
    
    1. [x] 组件结构
    2. [x] TypeScript 类型
    3. [x] 组件封装
    4. [x] Composable
    5. [x] 性能
    6. [x] 现代语法
    7. [x] 代码规范
    8. [x] 可访问性 (a11y)
    9. [ ] 测试(默认不选,需明确指定)
    
  3. 逐项检查 — 按照清单扫描代码,记录问题

  4. 输出诊断报告 — 按统一格式输出结果(见下方)


快速决策树

用户请求 → 判断类型

是纯逻辑复用吗?
  → YES: Composable (useXxx)
  → NO: 继续

是封装组件库组件吗?
  → YES: 二次封装(保证类型透传)
  → NO: 继续

业务逻辑复杂 或 >1300 行?
  → YES: 拆分为子组件 + Composable
  → NO: 单文件组件

代码生成规范 (AI 必须遵守)

  1. 语法标准
    • 必须使用 <script setup lang="ts">
    • 优先使用 const 声明变量
    • 必须使用 async/await 处理异步操作,并包裹在 try/catch
    • 优先使用 Vue 3.5+ 新特性(如 useTemplateRef, useId, defineModel
  2. 类型定义
    • 必须为所有 Props、Emits、Refs 提供明确的 TypeScript 类型
    • 避免使用 any,优先使用 unknown 或具体类型
    • 复杂类型定义应提取到单独的 types.ts 文件中
  3. 状态管理
    • 局部状态使用 refreactive
    • 跨组件状态优先使用 Provide/Inject
    • 全局状态使用 Pinia
  4. 性能优化
    • 列表渲染必须提供唯一的 :key
    • 频繁更新的非响应式数据不要使用 ref
    • 庞大的只读数据使用 shallowRef

审查输出格式

markdown
1## 📋 [文件名] 审查结果 2 3### ✅ 通过项 4 5- [x] 组件结构合理 6- [x] TypeScript 类型完整 7- [x] ... 8 9### ❌ 问题项 10 11- [ ] **[问题标题]** 12 - 位置:[文件:行号] 13 - 问题:[描述] 14 - 建议:[改进方案] 15 16### 📊 总评:X/10

引用文件

详细规则位于 references/ 目录:

  • references/component-types.md — 组件分类、大组件拆分规则、Props/Emits、Provide/Inject
  • references/wrapper-pattern.md — 二次封装完整指南、v-model 处理、动态插槽
  • references/composable-rules.md — Composable 编写规则、副作用清理、状态共享
  • references/modern-features.md — Vue 3.3+ / 3.5+ 新特性
  • references/review-checklist.md — 详细的审查清单
  • references/project-setup.md — Vue Web 项目配置(Pinia, Router, Axios, unplugin 等)
  • references/performance-optimization.md — 性能优化指南(shallowRef, v-memo, 虚拟滚动等)

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is vue?

Perfect for Frontend Agents needing efficient Vue component generation and auditing capabilities. Vue is a skill that provides customized code generation and auditing capabilities for Vue components, utilizing commands like `/vue <path>` and integrating with Element Plus and TypeScript.

How do I install vue?

Run the command: npx killer-skills add TTT1231/claude-rules. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for vue?

Key use cases include: Generating reusable Vue components, Auditing Vue files for best practices, Creating composable functions like useTable.

Which IDEs are compatible with vue?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for vue?

Requires user input for code generation. Limited to Vue framework. Dependent on Element Plus for table components.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add TTT1231/claude-rules. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use vue immediately in the current project.

Related Skills

Looking for an alternative to vue or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI