Token导航 LogoToken导航TokenDH.com
开发需要联网clawhub未标认证来源可访问clear审计通过

vueVue 开发

Agent Skill

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

总安装

84,864

周安装

3,397

GitHub Stars

6

下载量

27,472
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install vue

简介

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

  • 适合生成或审查 Vue 相关代码。vue 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 可整理组件结构并定位布局和性能问题。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。
  • 需结合项目现有设计系统和路由方式使用。
  • 避免只生成孤立片段,应配合本地预览检查效果。

SKILL.md

name
Vue
slug
vue
version
1.0.1
description
Build Vue 3 applications with Composition API, proper reactivity patterns, and production-ready components.
metadata
{"clawdbot":{"emoji":"💚","requires":{"bins":["node"]},"os":["linux","darwin","win32"]}}

When to Use

User needs Vue expertise — from Composition API patterns to production optimization. Agent handles reactivity, component design, state management, and performance.

Quick Reference

TopicFile
Reactivity patternsreactivity.md
Component patternscomponents.md
Composables designcomposables.md
Performance optimizationperformance.md

Composition API Philosophy

  • Composition API is not about replacing Options API—it's about better code organization
  • Group code by feature, not by option type—related logic stays together
  • Extract reusable logic into composables—the main win of Composition API
  • <script setup> is the recommended syntax—cleaner and better performance

Reactivity Traps

  • ref for primitives—access with .value in script, auto-unwrapped in template
  • reactive can't reassign whole object—state = {...} breaks reactivity
  • Destructuring reactive loses reactivity—use toRefs(state) to preserve
  • Array index assignment reactive in Vue 3—arr[0] = x works, unlike Vue 2
  • Nested refs unwrap inside reactive—reactive({count: ref(0)}).count is number, not ref

Watch vs Computed

  • computed for derived state—cached, recalculates only when dependencies change
  • watch for side effects—when you need to DO something in response to changes
  • computed should be pure—no side effects, no async
  • watchEffect for immediate reaction with auto-tracked dependencies

Watch Traps

  • Watching reactive object needs deep: true—or watch a getter function
  • watch is lazy by default—use immediate: true for initial run
  • Watch callback receives old/new—watch(source, (newVal, oldVal) => {})
  • watchEffect can't access old value—use watch if you need old/new comparison
  • Stop watchers with returned function—const stop = watch(...); stop()

Props and Emits Traps

  • defineProps for type-safe props—defineProps<{ msg: string }>()
  • Props are readonly—don't mutate, emit event to parent
  • defineEmits for type-safe events—defineEmits<{ (e: 'update', val: string): void }>()
  • v-model is :modelValue + @update:modelValue—custom v-model with defineModel()
  • Default value for objects must be factory function—default: () => ({})

Template Ref Traps

  • ref="name" + const name = ref(null)—names must match exactly
  • Template refs available after mount—access in onMounted, not during setup
  • ref on component gives component instance—ref on element gives DOM element
  • Template ref with v-for becomes array of refs

Lifecycle Traps

  • onMounted for DOM access—component mounted to DOM
  • onUnmounted for cleanup—subscriptions, timers, event listeners
  • onBeforeMount runs before DOM insert—rarely needed but exists
  • Hooks must be called synchronously in setup—not inside callbacks or conditionals
  • Async setup needs <Suspense> wrapper

Provide/Inject Traps

  • provide('key', value) in parent—inject('key') in any descendant
  • Reactive if value is ref/reactive—otherwise static snapshot
  • Default value: inject('key', defaultVal)—third param for factory function
  • Symbol keys for type safety—avoid string key collisions

Vue Router Traps

  • useRoute for current route—reactive, use in setup
  • useRouter for navigation—router.push('/path')
  • Navigation guards: beforeEach, beforeResolve, afterEach—return false to cancel
  • <RouterView> with named views—multiple views per route

Common Mistakes

  • v-if vs v-show—v-if removes from DOM, v-show toggles display
  • Key on v-for required—v-for="item in items" :key="item.id"
  • Event modifiers order matters—.prevent.stop vs .stop.prevent
  • Teleport for modals—<Teleport to="body"> renders outside component tree

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

OpenClaw

78.58%
按下载量换算21,587

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills