vueuse-functions
更快构建 VueUse 组合式函数
Vue 和 Nuxt 团队会花时间选择合适的响应式工具。此技能会将需求映射到 VueUse 组合式函数和使用说明。
安装前请停下并请求确认。
请审查安装计划,并在更改文件前获得用户明确同意。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "vueuse-functions" from https://skillstore.io/skills/antfu-vueuse-functions.md and its manifest at https://skillstore.io/api/skills/antfu-vueuse-functions/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“vueuse-functions”。 向 Nuxt 设置面板添加深色模式支持。
预期结果:
助手会推荐 useDark 或 useColorMode,解释持久化行为,并说明 SSR 和用户偏好处理。
正在使用“vueuse-functions”。 替换 Vue 组件中的手动 resize 监听器。
预期结果:
助手会建议 useResizeObserver 或 useWindowSize,描述清理收益,并指向相关参考指导。
正在使用“vueuse-functions”。 构建一个会响应页面变化的分页列表。
预期结果:
助手会识别 useOffsetPagination,概述它提供的响应式状态,并解释如何将其连接到数据加载。
安全审计
安全All 400 presented static findings are false positives caused by Markdown formatting, TypeScript declarations, relative documentation paths, and legitimate VueUse examples. Keyboard examples handle user-interface events without recording or transmitting input, while network examples use documentation endpoints or caller-provided URLs. No prompt injection or malicious intent was found in the reviewed files. Static review was capped at 400/1259 representative findings; omitted static matches are unconfirmed, so automatic publishing stays disabled until manual review.
风险因素
⚙️ 外部命令 (50)
🌐 网络访问 (50)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/antfu-vueuse-functions/audits/6?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/antfu-vueuse-functions?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/antfu-vueuse-functions?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/antfu-vueuse-functions/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/antfu-vueuse-functions.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
antfu. (2026). vueuse-functions security audit report (audit version 6) [Author version 1.0]. Skillstore. https://skillstore.io/skills/antfu-vueuse-functions/audits/6BibTeX 引用
@techreport{antfu-antfu-vueuse-functions-2026,
author = {antfu},
title = {vueuse-functions security audit report (audit version 6)},
institution = {Skillstore},
year = {2026},
number = {6},
url = {https://skillstore.io/skills/antfu-vueuse-functions/audits/6},
note = {Author version 1.0}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "vueuse-functions security audit report (audit version 6)"
version: "1.0"
type: report
authors:
- name: "antfu"
date-released: "2026-07-23"
url: "https://skillstore.io/skills/antfu-vueuse-functions/audits/6"
identifiers:
- type: other
value: "skillstore:antfu-vueuse-functions:audit:6"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
为功能选择组合式函数
找到与所请求 UI 行为匹配的 VueUse 函数,然后应用其文档化的使用模式。
现代化自定义响应式代码
用标准 VueUse 组合式函数替换手写的状态、事件、计时或浏览器 API 辅助工具。
规划可选集成
在将功能添加到项目之前,识别何时需要外部 VueUse 集成包。
试试这些提示
我正在构建一个需要 [behavior] 的 Vue 3 功能。我应该使用哪个 VueUse 组合式函数,为什么?
更新此 Vue 组件,以使用最适合 [behavior] 的 VueUse 组合式函数。解释任何必需的 imports 或 options。
审查这段自定义 Vue 响应式逻辑,并在能提升可维护性的地方用 VueUse 组合式函数替换它。
使用 VueUse 为 [feature] 设计 Nuxt 3 方案。包括 SSR 考量、浏览器权限限制和可选依赖。
最佳实践
- 在使用外部或仅显式调用的组合式函数之前,检查调用规则。
- 当 VueUse 工具能减少自定义事件、计时器、存储或 observer 代码时,优先使用它们。
- 在使用传感器、媒体、文件或 window API 之前,审查浏览器权限和 SSR 行为。
避免
- 除非项目已经使用可选集成包或用户批准安装,否则不要添加它们。
- 不要在没有保护措施的情况下,在服务器渲染期间使用仅浏览器可用的组合式函数。
- 当 VueUse 组合式函数不能带来有意义的简化时,不要替换清晰的原生 Vue 代码。
常见问题
此技能会安装 VueUse 吗?
哪些项目可以使用此技能?
它能在相似的组合式函数之间做选择吗?
它支持外部 VueUse 集成吗?
它能帮助处理 SSR 考量吗?
参考文件是可执行的吗?
开发者详情
作者
antfu许可证
MIT
作者版本
v1.0
Skillstore 修订
r2
版本提示
作者声明的版本不符合 SemVer 规范。
引用
89edfdc710d0846129dcee6a929477b04f08052c
维护新鲜度
2026/7/24
使用量
10 次下载 · 428 次浏览