Community编程与开发github.com

hyf0/vue-options-api-best-practices

Vue 3 Options API 风格指南(data()、methods、this 上下文)。每个参考仅展示 Options API 的解决方案。

vue-options-api-best-practices 是什么?

该技能专注于 Vue 3 的 Options API,提供了关于如何使用 data()、methods 以及 this 上下文的详细指南。它仅以 Options API 的形式呈现解决方案,非常适合偏好传统 Vue 开发模式的开发者。该技能确保所有示例和描述与 Vue 3 的 Options API 保持严格一致。它支持在 AI 代理环境中(如 Cursor 或 Codex)快速引用最佳实践,帮助用户编写符合 Vue 3 规范且可维护的代码。基于其文档 SKILL.md,该技能为用户提供了即用型的参考,省去了在 Composition API 和 Options API 之间切换的困扰。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/hyf0/vue-skills/tree/main/skills/vue-options-api-best-practices

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

vue-options-api-best-practices 是做什么的?

Vue 3 Options API 风格(data()、methods、this 上下文)。每个参考仅展示 Options API 的解决方案。

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

相关技能