Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

vue-developmentVue 开发

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

367

周安装

15

GitHub Stars

14

下载量

118
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:vue-development(Vue 开发)
来源仓库:https://github.com/alexanderop/claude-skill-vue-development
仓库路径:skills/vue-development
安装命令:
npx skills add https://github.com/alexanderop/claude-skill-vue-development --skill vue-development
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alexanderop/claude-skill-vue-development --skill vue-development

简介

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。

  • 适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构。
  • 使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段。
  • 涉及页面改动时,应配合本地预览和构建检查确认视觉效果。
  • 安装前建议确认权限范围和维护状态,以及是否会触发联网、命令执行或文件读写。

SKILL.md

Vue Development

Overview

Modern Vue 3 development with TypeScript, Composition API, and user-behavior testing. Core principle: Use TypeScript generics (not runtime validation), modern APIs (defineModel not manual props), and test user behavior (not implementation details).

Red Flags - STOP and Fix

If you catch yourself thinking or doing ANY of these, STOP:

  • "For speed" / "quick demo" / "emergency" → Using shortcuts
  • "We can clean it up later" → Accepting poor patterns
  • "TypeScript is too verbose" → Skipping types
  • "This is production-ready" → Without type safety
  • "Following existing code style" → When existing code uses legacy patterns
  • "Task explicitly stated..." → Following bad requirements literally
  • Using const props = defineProps() without using props in script
  • Manual modelValue prop + update:modelValue emit → Use defineModel()
  • "Component that takes value and emits changes" → Use defineModel(), NOT manual props/emit
  • Using runtime prop validation when TypeScript is available
  • Array syntax for emits: defineEmits(['event']) → Missing type safety
  • setTimeout() in tests → Use proper async utilities
  • Testing wrapper.vm.* internal state → Test user-visible behavior
  • Using index.vue in routes → Use route groups (name).vue
  • Generic route params [id] → Use explicit [userId], [postSlug]
  • Composables calling showToast(), alert(), or modals → Expose error state, component handles UI
  • External composable used in only ONE component → Start inline, extract when reused

All of these mean: Use the modern pattern. No exceptions.

Quick Rules

Components: defineProps<{}>() (no const unless used in script), defineEmits<{event: [args]}>(), defineModel<type>() for v-model. See @references/component-patterns.md

Testing: @testing-library/vue + MSW. Use findBy* or waitFor() for async. NEVER setTimeout() or test internal state. See @references/testing-patterns.md

Routing: Explicit params [userId] not [id]. Avoid index.vue, use (name).vue. Use . for nesting: users.edit.vue/users/edit. See @references/routing-patterns.md

Composables: START INLINE for component-specific logic, extract to external file when reused. External composables: prefix use, NO UI logic (expose error state instead). See @references/composable-patterns.md

Key Pattern: defineModel()

The most important pattern to remember - use for ALL two-way binding:

<script setup lang="ts">
// ✅ For simple v-model
const value = defineModel<string>({ required: true })

// ✅ For multiple v-models
const firstName = defineModel<string>('firstName')
const lastName = defineModel<string>('lastName')
</script>

<template>
  <input v-model="value" />
  <!-- Parent uses: <Component v-model="data" /> -->
</template>

Why: Reduces 5 lines of boilerplate to 1. No manual modelValue prop + update:modelValue emit.

Component Implementation Workflow

When implementing complex Vue components, use TodoWrite to track progress:

TodoWrite checklist for component implementation:
- [ ] Define TypeScript interfaces for props/emits/models
- [ ] Implement props with defineProps<{ }>() (no const unless used in script)
- [ ] Implement emits with defineEmits<{ event: [args] }>()
- [ ] Add v-model with defineModel<type>() if needed
- [ ] Write user-behavior tests with Testing Library
- [ ] Test async behavior with findBy* queries or waitFor()
- [ ] Verify: No red flags, no setTimeout in tests, all types present

When to create TodoWrite todos:

  • Implementing new components with state, v-model, and testing
  • Refactoring components to modern patterns
  • Adding routing with typed params
  • Creating composables with async logic

Rationalizations Table

ExcuseReality
"For speed/emergency/no time"Correct patterns take SAME time. TypeScript IS fast.
"TypeScript is too verbose"defineProps<{count: number}>() is LESS code.
"We can clean it up later"Write it right the first time.
"This is production-ready"Without type safety, it's not production-ready.
"Simple array syntax is fine"Missing types = runtime errors TypeScript would catch.
"Manual modelValue was correct"That was Vue 2. Use defineModel() in Vue 3.4+.
"Tests are flaky, add timeout"Timeouts mask bugs. Use proper async handling.
"Following existing code style"Legacy code exists. Use modern patterns to improve.
"Task explicitly stated X"Understand INTENT. Bad requirements need good implementation.
"Composables can show toasts"UI belongs in components. Expose error state.
"[id] is industry standard"Explicit names prevent bugs, enable TypeScript autocomplete.
"counter.ts is fine"Must prefix with 'use': useCounter.ts
"test-utils is the standard"Testing Library is gold standard for user-behavior.

Detailed References

See @references/ directory for comprehensive guides: component-patterns.md, testing-patterns.md, testing-composables.md, routing-patterns.md, composable-patterns.md

When NOT to Use This Skill

  • Vue 2 projects (different API)
  • Options API codebases (this is Composition API focused)
  • Projects without TypeScript (though you should add it)

Real-World Impact

Baseline: 37.5% correct patterns under pressure With skill: 100% correct patterns under pressure

Type safety prevents runtime errors. defineModel() reduces boilerplate. Testing Library catches real user issues.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

40.01%
按下载量换算47

Claude

28.68%
按下载量换算34

Cursor

17.75%
按下载量换算21

Gemini CLI

10.33%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills