Skip to content
Back to search

vueuse-skills

MarketplaceWorks with Claude CodeGitHub

Agent Skills for VueUse

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/vueuse-skills/badge.svg)](/listings/vueuse-skills)

HTML

<a href="/listings/vueuse-skills"><img src="/api/listings/vueuse-skills/badge.svg" alt="findsafeskills safety rating" /></a>

Install

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

npx skills add vueuse/skills

Claude Code Marketplace

An alternative for Claude Code users:

# Add marketplace
/plugin marketplace add vueuse/skills

# Install individual skills
/plugin install vueuse-functions@vueuse-skills

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

.claude-plugin/marketplace.json · Manifest · 18 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. {
  2. "name": "vueuse-skills",
  3. "owner": {
  4. "name": "VueUse",
  5. "url": "https://github.com/vueuse"
  6. },
  7. "plugins": [
  8. {
  9. "name": "vueuse-functions",
  10. "source": "./",
  11. "description": "A skill for using VueUse composables in Vue.js / Nuxt projects with references for 260+ functions.",
  12. "keywords": ["vueuse", "vue", "composables"],
  13. "skills": [
  14. "./skills/vueuse-functions"
  15. ]
  16. }
  17. ]
  18. }
README.md · README · 621 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. ![VueUse Skills banner](./.github/assets/banner.svg)
  2. # VueUse Skills
  3. Agent Skills for [VueUse](https://vueuse.org/) — a collection of essential Vue Composition Utilities.
  4. > [!IMPORTANT]
  5. > Experimental Project: Aims to help AI agents use libraries more accurately with fewer tokens. Feedback is welcome.
  6. - 🪜 Progressive disclosure: send VueUse function overviews first, then load detailed usage and type declarations on demand
  7. - 💰 Minimal token usage: provide only necessary information to reduce token consumption
  8. - 📵 Offline-first design: works without internet access or additional agent permissions
  9. - ⚙️ Customizable policies: users can override function invocation rules in prompts or `AGENTS.md`
  10. - 💉 Reduced hallucinations: precise usage references help prevent invented APIs
  11. ## Installation
  12. ```bash
  13. npx skills add vueuse/skills
  14. ```
  15. ### Claude Code Marketplace
  16. An alternative for Claude Code users:
  17. ```bash
  18. # Add marketplace
  19. /plugin marketplace add vueuse/skills
  20. # Install individual skills
  21. /plugin install vueuse-functions@vueuse-skills
  22. ```
  23. ## Example Usage
  24. Install VueUse in your Vue or Nuxt project, then instruct the agent. It will automatically leverage VueUse to assist development.
  25. Example prompt:
  26. ```
  27. create a todo app with the following features:
  28. - save todos to local storage
  29. - show remains todo count on browser title
  30. - add a copy button for each todo items
  31. - infinite scrolling for this todo list
  32. - dark / light mode
  33. ```
  34. <details>
  35. <summary>Output Snippet</summary>
  36. ```vue
  37. <script setup lang="ts">
  38. import { computed, ref } from 'vue'
  39. import {
  40. useClipboard,
  41. useColorMode,
  42. useInfiniteScroll,
  43. useLocalStorage,
  44. useTitle,
  45. } from '@vueuse/core'
  46. type Todo = {
  47. id: number
  48. text: string
  49. done: boolean
  50. }
  51. const seedTexts = [
  52. 'Review project goals',
  53. 'Plan the next sprint',
  54. 'Reply to client email',
  55. ]
  56. const defaultTodos = Array.from({ length: 36 }, (_, index) => ({
  57. id: index + 1,
  58. text:
  59. seedTexts[index % seedTexts.length] +
  60. (index >= seedTexts.length ? ` #${index + 1}` : ''),
  61. done: index % 7 === 0,
  62. }))
  63. const todos = useLocalStorage<Todo[]>('focus-flow-todos', defaultTodos)
  64. const nextId = ref(
  65. todos.value.reduce((max, todo) => Math.max(max, todo.id), 0) + 1,
  66. )
  67. const newTodo = ref('')
  68. const totalCount = computed(() => todos.value.length)
  69. const remainingCount = computed(() =>
  70. todos.value.filter((todo) => !todo.done).length,
  71. )
  72. const completedCount = computed(
  73. () => totalCount.value - remainingCount.value,
  74. )
  75. useTitle(computed(() => `Todos (${remainingCount.value})`))
  76. const mode = useColorMode({
  77. attribute: 'data-theme',
  78. disableTransition: false,
  79. })
  80. const isDark = computed(() => mode.value === 'dark')
  81. const toggleMode = () => {
  82. mode.value = isDark.value ? 'light' : 'dark'
  83. }
  84. const { copy, copied, isSupported } = useClipboard()
  85. const lastCopiedId = ref<number | null>(null)
  86. const handleCopy = async (todo: Todo) => {
  87. await copy(todo.text)
  88. lastCopiedId.value = todo.id
  89. }
  90. const pageSize = 8
  91. const visibleCount = ref(Math.min(pageSize, todos.value.length))
  92. const visibleTodos = computed(() => todos.value.slice(0, visibleCount.value))
  93. const listRef = ref<HTMLElement | null>(null)
  94. const { isLoading } = useInfiniteScroll(
  95. listRef,
  96. () => {
  97. if (visibleCount.value < todos.value.length) {
  98. visibleCount.value = Math.min(
  99. visibleCount.value + pageSize,
  100. todos.value.length,
  101. )
  102. }
  103. },
  104. {
  105. distance: 120,
  106. canLoadMore: () => visibleCount.value < todos.value.length,
  107. },
  108. )
  109. const syncVisibleCount = () => {
  110. if (todos.value.length <= pageSize) {
  111. visibleCount.value = todos.value.length
  112. return
  113. }
  114. if (visibleCount.value === 0) {
  115. visibleCount.value = pageSize
  116. return
  117. }
  118. if (visibleCount.value > todos.value.length) {
  119. visibleCount.value = todos.value.length
  120. }
  121. }
  122. const addTodo = () => {
  123. const value = newTodo.value.trim()
  124. if (!value)
  125. return
  126. todos.value.unshift({
  127. id: nextId.value++,
  128. text: value,
  129. done: false,
  130. })
  131. newTodo.value = ''
  132. syncVisibleCount()
  133. }
  134. const removeTodo = (id: number) => {
  135. todos.value = todos.value.filter((todo) => todo.id !== id)
  136. syncVisibleCount()
  137. }
  138. </script>
  139. <template>
  140. <div class="page">
  141. <div class="shell">
  142. <header class="header">
  143. <div>
  144. <p class="eyebrow">Minimal todo tracker</p>
  145. <h1>Focus Flow</h1>
  146. <p class="subtitle">
  147. Keep a lightweight list, copy tasks with a click, and scroll as the
  148. list grows.
  149. </p>
  150. </div>
  151. <button class="btn ghost mode-toggle" type="button" @click="toggleMode">
  152. <span class="mode-dot" :class="{ dark: isDark }" />
  153. <span>{{ isDark ? 'Dark' : 'Light' }} mode</span>
  154. </button>
  155. </header>
  156. <form class="composer" @submit.prevent="addTodo">
  157. <div class="input-wrap">
  158. <input
  159. v-model="newTodo"
  160. type="text"
  161. maxlength="120"
  162. placeholder="Add a new task"
  163. aria-label="Add a new task"
  164. />
  165. <button class="btn primary" type="submit" :disabled="!newTodo.trim()">
  166. Add task
  167. </button>
  168. </div>
  169. <div class="stats">
  170. <div class="stat">
  171. <span>Total</span>
  172. <strong>{{ totalCount }}</strong>
  173. </div>
  174. <div class="stat">
  175. <span>Remaining</span>
  176. <strong>{{ remainingCount }}</strong>
  177. </div>
  178. <div v-if="completedCount" class="stat">
  179. <span>Done</span>
  180. <strong>{{ completedCount }}</strong>
  181. </div>
  182. </div>
  183. </form>
  184. <section class="list-card">
  185. <div class="list-head">
  186. <h2>Todo list</h2>
  187. <span class="list-hint">
  188. {{ visibleTodos.length }} / {{ totalCount }} shown
  189. </span>
  190. </div>
  191. <div ref="listRef" class="todo-list" aria-live="polite">
  192. <article
  193. v-for="(todo, index) in visibleTodos"
  194. :key="todo.id"
  195. class="todo-item"
  196. :class="{ done: todo.done }"
  197. :style="{ animationDelay: `${index * 0.03}s` }"
  198. >
  199. <label class="todo-check">
  200. <input v-model="todo.done" type="checkbox" />
  201. <span class="checkmark" />
  202. </label>
  203. <p class="todo-text">{{ todo.text }}</p>
  204. <div class="todo-actions">
  205. <button
  206. class="btn ghost"
  207. type="button"
  208. :disabled="!isSupported"
  209. :title="isSupported ? 'Copy task text' : 'Clipboard not supported'"
  210. @click="handleCopy(todo)"
  211. >
  212. {{ copied && lastCopiedId === todo.id ? 'Copied' : 'Copy' }}
  213. </button>
  214. <button class="btn danger" type="button" @click="removeTodo(todo.id)">
  215. Remove
  216. </button>
  217. </div>
  218. </article>
  219. <p v-if="!visibleTodos.length" class="empty">
  220. No tasks yet. Add your first todo above.
  221. </p>
  222. <div v-if="visibleTodos.length" class="list-footer">
  223. <span class="footer-status">
  224. <span v-if="isLoading">Loading more...</span>
  225. <span v-else-if="visibleTodos.length < totalCount">
  226. Scroll to load more
  227. </span>
  228. <span v-else>All caught up</span>
  229. </span>
  230. </div>
  231. </div>
  232. </section>
  233. </div>
  234. </div>
  235. </template>
  236. <style>
  237. @import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');
  238. :root {
  239. color-scheme: light;
  240. --bg: #f6f7fb;
  241. --bg-spot: rgba(59, 130, 246, 0.18);
  242. --bg-spot-2: rgba(34, 197, 94, 0.18);
  243. --card: rgba(255, 255, 255, 0.92);
  244. --surface: rgba(255, 255, 255, 0.84);
  245. --border: rgba(148, 163, 184, 0.35);
  246. --text: #0f172a;
  247. --muted: #64748b;
  248. --accent: #2563eb;
  249. --accent-strong: #1d4ed8;
  250. --accent-soft: rgba(37, 99, 235, 0.18);
  251. --danger: #ef4444;
  252. --danger-soft: rgba(239, 68, 68, 0.15);
  253. --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  254. --radius: 22px;
  255. }
  256. :root[data-theme='dark'] {
  257. color-scheme: dark;
  258. --bg: #0b1222;
  259. --bg-spot: rgba(56, 189, 248, 0.18);
  260. --bg-spot-2: rgba(16, 185, 129, 0.16);
  261. --card: rgba(15, 23, 42, 0.86);
  262. --surface: rgba(15, 23, 42, 0.7);
  263. --border: rgba(148, 163, 184, 0.25);
  264. --text: #f8fafc;
  265. --muted: #94a3b8;
  266. --accent: #38bdf8;
  267. --accent-strong: #0ea5e9;
  268. --accent-soft: rgba(56, 189, 248, 0.2);
  269. --danger: #f87171;
  270. --danger-soft: rgba(248, 113, 113, 0.2);
  271. --shadow: 0 26px 70px rgba(2, 6, 23, 0.55);
  272. }
  273. * {
  274. box-sizing: border-box;
  275. }
  276. body {
  277. margin: 0;
  278. min-height: 100vh;
  279. font-family: 'Sora', system-ui, -apple-system, sans-serif;
  280. color: var(--text);
  281. background:
  282. radial-gradient(900px circle at top left, var(--bg-spot), transparent 55%),
  283. radial-gradient(700px circle at bottom right, var(--bg-spot-2), transparent 50%),
  284. var(--bg);
  285. transition: background 0.4s ease, color 0.4s ease;
  286. }
  287. #app {
  288. min-height: 100vh;
  289. display: flex;
  290. align-items: center;
  291. justify-content: center;
  292. padding: clamp(20px, 4vw, 48px);
  293. }
  294. .page {
  295. width: min(980px, 100%);
  296. }
  297. .shell {
  298. display: grid;
  299. gap: clamp(20px, 3vw, 28px);
  300. padding: clamp(20px, 4vw, 36px);
  301. border-radius: var(--radius);
  302. background: var(--card);
  303. border: 1px solid var(--border);
  304. box-shadow: var(--shadow);
  305. backdrop-filter: blur(18px);
  306. }
  307. .header {
  308. display: flex;
  309. align-items: center;
  310. justify-content: space-between;
  311. gap: 24px;
  312. }
  313. .eyebrow {
  314. text-transform: uppercase;
  315. letter-spacing: 0.2em;
  316. font-size: 0.72rem;
  317. color: var(--muted);
  318. margin: 0 0 10px;
  319. }
  320. h1 {
  321. margin: 0;
  322. font-size: clamp(2rem, 3vw, 2.6rem);
  323. }
  324. .subtitle {
  325. margin: 10px 0 0;
  326. color: var(--muted);
  327. max-width: 520px;
  328. }
  329. .composer {
  330. display: grid;
  331. gap: 16px;
  332. }
  333. .input-wrap {
  334. display: grid;
  335. grid-template-columns: 1fr auto;
  336. gap: 12px;
  337. }
  338. input[type='text'] {
  339. padding: 12px 14px;
  340. border-radius: 14px;
  341. border: 1px solid var(--border);
  342. background: var(--surface);
  343. color: var(--text);
  344. font-size: 1rem;
  345. transition: border 0.2s ease, box-shadow 0.2s ease;
  346. }
  347. input[type='text']:focus {
  348. outline: none;
  349. border-color: var(--accent);
  350. box-shadow: 0 0 0 3px var(--accent-soft);
  351. }
  352. .stats {
  353. display: flex;
  354. flex-wrap: wrap;
  355. gap: 12px;
  356. }
  357. .stat {
  358. display: inline-flex;
  359. align-items: center;
  360. gap: 8px;
  361. padding: 8px 12px;
  362. border-radius: 999px;
  363. background: var(--surface);
  364. border: 1px solid var(--border);
  365. font-size: 0.9rem;
  366. color: var(--muted);
  367. }
  368. .stat strong {
  369. font-family: 'Space Mono', ui-monospace, SFMono-Regular, monospace;
  370. color: var(--text);
  371. font-size: 0.95rem;
  372. }
  373. .list-card {
  374. display: grid;
  375. gap: 16px;
  376. }
  377. .list-head {
  378. display: flex;
  379. align-items: baseline;
  380. justify-content: space-between;
  381. gap: 12px;
  382. }
  383. .list-head h2 {
  384. margin: 0;
  385. font-size: 1.2rem;
  386. }
  387. .list-hint {
  388. font-size: 0.85rem;
  389. color: var(--muted);
  390. font-family: 'Space Mono', ui-monospace, SFMono-Regular, monospace;
  391. }
  392. .todo-list {
  393. max-height: clamp(320px, 55vh, 520px);
  394. overflow-y: auto;
  395. display: grid;
  396. gap: 12px;
  397. padding: 6px;
  398. margin: -6px;
  399. }
  400. .todo-item {
  401. display: grid;
  402. grid-template-columns: auto 1fr auto;
  403. gap: 12px;
  404. align-items: center;
  405. padding: 14px 16px;
  406. border-radius: 16px;
  407. background: var(--surface);
  408. border: 1px solid var(--border);
  409. animation: fadeUp 0.4s ease both;
  410. }
  411. .todo-item.done {
  412. opacity: 0.7;
  413. }
  414. .todo-text {
  415. margin: 0;
  416. font-size: 0.98rem;
  417. }
  418. .todo-item.done .todo-text {
  419. text-decoration: line-through;
  420. color: var(--muted);
  421. }
  422. .todo-check {
  423. display: inline-flex;
  424. align-items: center;
  425. }
  426. .todo-check input {
  427. width: 18px;
  428. height: 18px;
  429. accent-color: var(--accent);
  430. }
  431. .checkmark {
  432. display: none;
  433. }
  434. .todo-actions {
  435. display: inline-flex;
  436. gap: 8px;
  437. flex-wrap: wrap;
  438. }
  439. .btn {
  440. border: 1px solid var(--border);
  441. background: transparent;
  442. color: var(--text);
  443. padding: 8px 14px;
  444. border-radius: 999px;
  445. font-size: 0.88rem;
  446. cursor: pointer;
  447. display: inline-flex;
  448. align-items: center;
  449. gap: 8px;
  450. transition: all 0.2s ease;
  451. }
  452. .btn:disabled {
  453. cursor: not-allowed;
  454. opacity: 0.6;
  455. }
  456. .btn.primary {
  457. background: var(--accent);
  458. border-color: var(--accent);
  459. color: #fff;
  460. font-weight: 600;
  461. }
  462. .btn.primary:hover:not(:disabled) {
  463. background: var(--accent-strong);
  464. border-color: var(--accent-strong);
  465. }
  466. .btn.ghost:hover:not(:disabled) {
  467. border-color: var(--accent);
  468. color: var(--accent);
  469. }
  470. .btn.danger {
  471. border-color: transparent;
  472. color: var(--danger);
  473. background: var(--danger-soft);
  474. }
  475. .mode-toggle {
  476. white-space: nowrap;
  477. }
  478. .mode-dot {
  479. width: 10px;
  480. height: 10px;
  481. border-radius: 50%;
  482. background: #facc15;
  483. box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.2);
  484. }
  485. .mode-dot.dark {
  486. background: #38bdf8;
  487. box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
  488. }
  489. .empty {
  490. text-align: center;
  491. padding: 32px 12px;
  492. color: var(--muted);
  493. border-radius: 16px;
  494. border: 1px dashed var(--border);
  495. }
  496. .list-footer {
  497. text-align: center;
  498. font-size: 0.85rem;
  499. color: var(--muted);
  500. padding: 8px 0 12px;
  501. }
  502. @keyframes fadeUp {
  503. from {
  504. opacity: 0;
  505. transform: translateY(8px);
  506. }
  507. to {
  508. opacity: 1;
  509. transform: translateY(0);
  510. }
  511. }
  512. @media (max-width: 820px) {
  513. .header {
  514. flex-direction: column;
  515. align-items: flex-start;
  516. }
  517. .input-wrap {
  518. grid-template-columns: 1fr;
  519. }
  520. .todo-item {
  521. grid-template-columns: auto 1fr;
  522. }
  523. .todo-actions {
  524. grid-column: 1 / -1;
  525. justify-content: flex-end;
  526. }
  527. }
  528. </style>
  529. ```
  530. </details>
  531. ## License
  532. MIT

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.