Skill站外收录 @skilllib/skill-2014279415637684227
vue
提供 Vue 3 单文件组件开发、组合式函数编写、客户端工具函数设计及单元测试的完整实践指南,涵盖响应式模式、Props/Emits 规范、VueUse 集成、类型安全配置与路由类型化等核心能力。
软件开发 AI 技能
Skills.MD
# Vue 3 Development
Reference for Vue 3 Composition API patterns, component architecture, and testing practices.
**Current stable:** Vue 3.5+ with enhanced reactivity performance (-56% memory, 10x faster array tracking), new SSR features, and improved developer experience.
## Overview
Progressive reference system for Vue 3 projects. Load only files relevant to current task to minimize context usage (~250 tokens base, 500-1500 per sub-file).
## When to Use
**Use this skill when:**
- Writing `.vue` components
- Creating composables (`use*` functions)
- Building client-side utilities
- Testing Vue components/composables
**Use `nuxt` skill instead for:**
- Server routes, API endpoints
- File-based routing, middleware
- Nuxt-specific patterns
**For styled UI components:** use `nuxt-ui` skill
**For headless accessible components:** use `reka-ui` skill
**For VueUse composables:** use `vueuse` skill
## Quick Reference
| Working on... | Load file |
| ------------------------ | -------------------------- |
| `.vue` in `components/` | references/components.md |
| File in `composables/` | references/composables.md |
| File in `utils/` | references/utils-client.md |
| `.spec.ts` or `.test.ts` | references/testing.md |
| TypeScript patterns | references/typescript.md |
| Vue Router typing | references/router.md |
## Loading Files
**Load one file at a time based on file context:**
- Component work → [references/components.md](references/components.md)
- Composable work → [references/composables.md](references/composables.md)
- Utils work → [references/utils-client.md](references/utils-client.md)
- Testing → [references/testing.md](references/testing.md)
- TypeScript → [references/typescript.md](references/typescript.md)
- Vue Router → [references/router.md](references/router.md)
**DO NOT load all files at once** - wastes context on irrelevant patterns.
## Available Guidance
**[references/components.md](references/components.md)** - Props with reactive destructuring, emits patterns, defineModel for v-model, slots shorthand
**[references/composables.md](references/composables.md)** - Composition API structure, VueUse integration, lifecycle hooks, async patterns, reactivity gotchas
**[references/utils-client.md](references/utils-client.md)** - Pure functions, formatters, validators, transformers, when NOT to use utils
**[references/testing.md](references/testing.md)** - Vitest + @vue/test-utils, component testing, composable testing, router mocking
**[references/typescript.md](references/typescript.md)** - InjectionKey for provide/inject, vue-tsc strict templates, tsconfig settings, generic components
**[references/router.md](references/router.md)** - Route meta types, typed params with unplugin-vue-router, scroll behavior, navigation guards
## Examples
Working examples in `resources/examples/`:
- `component-example.vue` - Full component with all patterns
- `composable-example.ts` - Reusable composition function
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「vue」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次