pinia-best-practices by hyf0/vue-skills
npx skills add https://github.com/hyf0/vue-skills --skill pinia-best-practices适用于 Vue 3 应用中 Pinia 存储的 TypeScript 配置及常见问题。
storeToRefs 类型问题这些规则使 AI 能够解决原本无法解决的问题。
| 规则 | 影响 | 描述 |
|---|---|---|
| storeToRefs-type-loss | 高 | 修复 Vue 3.5+ 中嵌套 ref 类型不正确的问题 |
这些规则帮助 AI 更有效、更一致地解决问题。
| 规则 | 影响 | 描述 |
|---|---|---|
| getters-circular-types |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 中 |
修复 getter 中使用 this 导致的 TypeScript any 或循环错误 |
每周安装量
350
代码仓库
GitHub 星标数
2.0K
首次出现
2026年1月21日
安全审计
已安装于
claude-code203
cursor196
trae170
antigravity144
gemini-cli144
opencode119
TypeScript configuration and common pitfalls for Pinia stores in Vue 3 applications.
storeToRefs type issuesRules that enable AI to solve problems it cannot solve without the skill.
| Rule | Impact | Description |
|---|---|---|
| storeToRefs-type-loss | HIGH | Fix incorrect nested ref types with Vue 3.5+ |
Rules that help AI solve problems more effectively and consistently.
| Rule | Impact | Description |
|---|---|---|
| getters-circular-types | MEDIUM | Fix TypeScript any or circular errors in getters using this |
Weekly Installs
350
Repository
GitHub Stars
2.0K
First Seen
Jan 21, 2026
Security Audits
Installed on
claude-code203
cursor196
trae170
antigravity144
gemini-cli144
opencode119
Vue.js测试最佳实践:Vue 3组件、组合式函数、Pinia与异步测试完整指南
3,700 周安装