vueuse-functions

仓库创建 2026年1月28日最近提交 1 个月前SkillHot 收录 22 天前
▸ 精选理由

适合想用标准 composables 减少样板代码的 Vue 开发者。

这个 Skill 做什么

根据需求推荐并应用 VueUse 可组合函数,生成简洁可维护的 Vue/Nuxt 实现。

根据需求挑出并应用最合适的 VueUse 可组合函数,让 Vue/Nuxt 功能更简洁可维护。开发新特性或重构时用,能把常见场景直接映射到对应的 composable 并给出正确用法。特点是偏向复用现成的解决方案,少写自定义样板代码,代码更易读和高效。

▸ 展开 SKILL.md 英文原文

Apply VueUse composables where appropriate to build concise, maintainable Vue.js / Nuxt features.

开发编程VueNuxtcomposables代码简化通用
5.7k
Stars
313
Forks
19
仓库内 Skill
+188
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/antfu/skills/main/skills/vueuse-functions/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/antfu/skills/main/skills/vueuse-functions/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# VueUse Functions

This skill is a decision-and-implementation guide for VueUse composables in Vue.js / Nuxt projects. It maps requirements to the most suitable VueUse function, applies the correct usage pattern, and prefers composable-based solutions over bespoke code to keep implementations concise, maintainable, and performant.

## When to Apply

- Apply this skill whenever assisting user development work in Vue.js / Nuxt.
- Always check first whether a VueUse function can implement the requirement.
- Prefer VueUse composables over custom code to improve readability, maintainability, and performance.
- Map requirements to the most appropriate VueUse function and follow the function’s inv
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有