Token导航 LogoToken导航TokenDH.com
开发规范执行命令github未标认证来源可访问clear审计通过

vue-best-practicesVue 最佳实践

Agent Skill

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

总安装

351,528

周安装

15,095

GitHub Stars

4,785

下载量

123,216
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/antfu/skills --skill vue-best-practices

简介

Vue 3 开发工作流程强制执行 Composition API、TypeScript 和重点组件架构。

  • 需要带有 <script setup lang="ts"> 的 Composition API
  • 作为默认方法;加载 Options API 或 JSX 项目的替代技能
  • 要求在实施之前阅读四个核心参考资料(反应性、SFC 结构、组件数据流、可组合项),并在整个任务中保持它们处于活动状态
  • 当职责超出一个明确的目的时,强制执行组件拆分,并通过明确的规则使入口/根/视图组件保持精简,并将功能逻辑移至子组件和可组合项中
  • 涵盖基本基础:具有计算推导的最小源状态、props-down/events-up 数据流、模板安全性以及用于可重用或副作用较多的逻辑的可组合提取
  • 推迟可选功能(插槽、转换、异步组件、指令、状态管理),直到需求明确调用它们为止,并为后功能传递保留性能优化

SKILL.md

name
vue-best-practices
description
Vue 3 and Vue.js best practices for TypeScript, vue-tsc, and Volar. This skill should be used when writing, reviewing, or refactoring Vue components to ensure correct typing patterns. Triggers on tasks involving Vue components, props extraction, wrapper components, template type checking, or Volar configuration.
license
MIT
metadata
author
hyf0
version
8.0.0

Capability Rules

RuleKeywordsDescription
extract-component-propsget props type, wrapper component, extend props, inherit props, ComponentPropsExtract types from .vue components
vue-tsc-strict-templatesundefined component, template error, strictTemplatesCatch undefined components in templates
fallthrough-attributesfallthrough, $attrs, wrapper componentType-check fallthrough attributes
strict-css-modulescss modules, $style, typoCatch CSS module class typos
data-attributes-configdata-*, strictTemplates, attributeAllow data-* attributes
volar-3-breaking-changesvolar, vue-language-server, editorFix Volar 3.0 upgrade issues
module-resolution-bundlercannot find module, @vue/tsconfig, moduleResolutionFix module resolution errors
define-model-update-eventdefineModel, update event, undefinedFix model update errors
with-defaults-union-typeswithDefaults, union type, defaultFix union type defaults
deep-watch-numericwatch, deep, array, Vue 3.5Efficient array watching
vue-directive-comments@vue-ignore, @vue-skip, templateControl template type checking
vue-router-typed-paramsroute params, typed router, unpluginFix route params typing

Efficiency Rules

RuleKeywordsDescription
hmr-vue-ssrhmr, ssr, hot reloadFix HMR in SSR apps
pinia-store-mockingpinia, mock, vitest, storeMock Pinia stores

Reference

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

Claude Code

28.49%
按下载量换算35,104

Cursor

23.03%
按下载量换算28,377

OpenCode

18.33%
按下载量换算22,585

Antigravity

13.32%
按下载量换算16,412

trae

8.15%
按下载量换算10,042

Gemini CLI

3.89%
按下载量换算4,793

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/antfu/skills --skill vue-best-practices;npx skills add antfu/skills --skill "vue-best-practices" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills