Vue前端开发
按 Vue 3 最佳实践写、调试和评审组件、组合式函数、状态与路由。
功能与用途
面向 Vue 3 应用的开发、排查与代码重构支持。涵盖响应式系统调试、组件与组合式函数实现、Pinia 状态管理以及 Vue Router 路由配置。支持排查数据变化未同步至 DOM、watcher 死循环、模板引用为空、水合不匹配等常见运行时故障;协助进行响应式 API 选型、长列表与重渲染性能优化;提供将 Vue 2 或选项式 API 平滑迁移至组合式 API 与 script setup 的方案。
适用场景
- 响应式与组件问题排查:解决修改状态后视图未更新、解构丢失响应性、模板 ref 为空或 watcher 循环触发等异常。
- 大列表与重渲染性能调优:针对输入卡顿、按键频繁触发重渲染或海量数据列表,应用 shallowRef 与虚拟化等优化策略。
- 选项式 API 升级迁移:协助将 Vue 2 选项式 API 代码规范重构成基于 script setup 的组合式 API 实现。
适用人群
- 前端工程师
- 全栈开发者
- 独立开发者
使用步骤
- 明确是写新代码、评审还是排障
- 按组合式 API 与 script setup 组织代码
- 在响应式与状态方案间做合适取舍
- 针对卡顿与包体做性能排查
- Nuxt 专属层与构建配置转对应技能
开始使用
将需求和 Skill 名称发送给已连接 SkillPX MCP 的 AI 助手,核对适用工具和安装要求。
技术信息
- 分类
- 编程
- 适用工具
- Codex、Claude Code、OpenClaw、Hermes、国内 Agent
- 使用难度
- 进阶
- 版本
- 1.0.3
- 最近更新
- 2026-07-26
- 文件数
- 3
- 安装包大小
- 自动生成 ZIP
- 安全检查
- 基础检查通过
Builds, debugs, and reviews Vue 3 apps: reactivity, components, composables, Pinia state, Vue Router, forms, and performance. Use when the UI does not update after a state change, a reactive object loses reactivity on destructure or reassignment, .value is forgotten, a watcher never fires or loops ("Maximum recursive updates exceeded"), props or v-model stop syncing, a template ref is null, SSR reports a hydration mismatch, a route param change does not reload the component, Pinia warns "getActivePinia() was called but there was no active Pinia", the console shows "Failed to resolve component" or "Extraneous non-props attributes", a thrown error blanks the page, a long list or large object makes typing lag, a chart or map library breaks after being put in ref(), scoped styles do not reach a child, or when migrating Vue 2 Options API to Composition API and script setup. Not for Nuxt-specific SSR, routing, and data fetching (nuxt), Vite build configuration (vite), or React and Svelte (react, svelte).
使用前准备
- Vue 3 项目
- Node.js 环境
依赖与权限
- 读取用户主动提供的内容