← 返回 Skills 市场
Vue3 Project Standard
作者
Bovin Phang
· GitHub ↗
· v2.4.0
· MIT-0
42
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install fec-vue3-project-standard
功能描述
Use when designing or reviewing Vue 3 + TypeScript project structure, SFC/component boundaries, composables organization, route composition, Pinia ownership,...
使用说明 (SKILL.md)
Vue 3 项目规范
适用于使用 Vue 3 + TypeScript 的仓库。
Purpose
为 Vue 3 + TypeScript 项目提供工程结构、组件边界、Composables 和默认实现约定,确保约定式开发和类型安全。
Procedure
- 识别仓库已有 Vue 约定:目录、路由、Pinia、请求层、样式体系、组件库和测试框架。
- 划分页面、业务组件、通用组件、composables、stores、services 和 utils 的边界。
- 优先沿用
\x3Cscript setup lang="ts">、组合式 API 和仓库现有自动导入/模块出口约定。 - 输出时补齐状态归属、API 层、错误处理、样式隔离和专项 skill 分流。
- 页面和模块要有可恢复错误 UI;全局
errorHandler、onErrorCaptured、请求错误映射和路由错误页分工明确。 - Tailwind token/variant 或响应式布局需求应分流到对应专项 skill,避免把样式系统规则塞进 Vue 组件规范。
- 状态归属复杂时先做状态清单;DTO、公共 props 或泛型 composable 复杂时先收敛 TypeScript 类型契约。
Detailed References
需要具体 Vue 3 项目结构、组件模式、Composables、slots、Provide/Inject、路由、Pinia、API 层、错误处理、指令、样式、TypeScript、测试、性能或审查清单时,加载 references/vue3-project-details.md。
Constraints
- 使用
\x3Cscript setup lang="ts">,禁止使用 Options API 新增组件 - 组件文件规模宜约 300 行内;逾 500 行或复杂度过高须拆子组件与 Composables
- Props / Emits 必须使用 TypeScript interface 定义,禁止使用
any - Composable 返回
readonly引用,防止外部意外修改 - 不要在 store 中存放 UI 临时状态(modal 开关、表单输入等)
- 服务端数据优先用请求库管理,而非手动存入 Pinia
- 避免在
v-for中使用v-if(提取为 computed 过滤) - 禁止直接从 feature 内部深层路径导入,绕过
index.ts - 不用全局错误处理吞掉组件内可恢复的 API、表单或权限错误。
Expected Output
- 组件使用
\x3Cscript setup lang="ts">,Props / Emits 类型完整 - 可复用逻辑已提取到 composable,返回
readonly引用 - Loading / Error / Empty / Data 状态均已处理
- 路由组件使用动态 import 加载,状态管理符合就近原则
- URL 状态、服务端状态、表单状态和 Pinia 全局状态边界明确
- API 调用有类型约束和统一错误处理
- 样式使用 scoped 隔离,关键行为有测试覆盖
- 文件结构与项目约定一致(pages / features / components 分离)
安全使用建议
Install this skill as a Vue 3 coding-standard reference. It can guide agents to edit Vue projects, so review generated code changes as usual, but the skill package itself is documentation-only and does not request sensitive access.
能力评估
Purpose & Capability
The stated purpose is Vue 3 + TypeScript architecture guidance, and the artifacts contain matching instructions, examples, and a detailed reference file.
Instruction Scope
Instructions are scoped to project structure, component boundaries, composables, Pinia, API layering, errors, styling, testing, and review checklists; no prompt override, deception, or unrelated agent-control behavior was found.
Install Mechanism
The package contains markdown and JSON files only, with no executable files, lifecycle scripts, dependency installs, or postinstall behavior in the reviewed artifact.
Credentials
Expected use may involve reading an existing Vue repository to align conventions, which is proportionate to the skill purpose; no broad indexing, credential access, or network data flow is requested.
Persistence & Privilege
No persistence, privilege escalation, background workers, credential/session use, or automatic mutation authority is present; token/localStorage references appear only as example Vue application code.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install fec-vue3-project-standard - 安装完成后,直接呼叫该 Skill 的名称或使用
/fec-vue3-project-standard触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.4.0
Version 2.4.0
- Added LICENSE, README.md, metadata.json, package.json, and detailed structural reference (references/vue3-project-details.md)
- Removed skill-card.md
- Updated skill trigger and description for improved specificity and English usage
- Refined structure: split out detailed architecture, conventions, and procedures into dedicated references file
- Clarified boundaries and constraints for components, composables, Pinia, and error handling
- Output expectations and guidance are now more concise and strictly scoped to architecture, not style/test specifics
元数据
常见问题
Vue3 Project Standard 是什么?
Use when designing or reviewing Vue 3 + TypeScript project structure, SFC/component boundaries, composables organization, route composition, Pinia ownership,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 42 次。
如何安装 Vue3 Project Standard?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install fec-vue3-project-standard」即可一键安装,无需额外配置。
Vue3 Project Standard 是免费的吗?
是的,Vue3 Project Standard 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Vue3 Project Standard 支持哪些平台?
Vue3 Project Standard 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Vue3 Project Standard?
由 Bovin Phang(@bovinphang)开发并维护,当前版本 v2.4.0。
推荐 Skills