Toolverse
All skills

create-adaptable-composable

by vuejs-ai

Create a library-grade Vue composable that accepts maybe-reactive inputs (MaybeRef / MaybeRefOrGetter) so callers can pass a plain value, ref, or getter. Normalize inputs with toValue()/toRef() inside reactive effects (watch/watchEffect) to keep behavior predictable and

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
vuejs-ai
Category
Security
Views
3

About this skill

Create a library-grade Vue composable that accepts maybe-reactive inputs (MaybeRef / MaybeRefOrGetter) so callers can pass a plain value, ref, or getter. Normalize inputs with toValue()/toRef() inside reactive effects (watch/watchEffect) to keep behavior predictable and reactive. Use this skill when user asks for creating adaptable or reusable composables.

How to use

  1. Upewnij się, że Twój projekt używa Vue 3 lub wyższej wersji (lub Nuxt 3+), ponieważ skill wymaga tych wersji.
  2. Zdefiniuj cel i API composable'a — określ, jakie parametry powinny być reaktywne i jakie wartości będzie zwracać.
  3. Zidentyfikuj parametry wejściowe, które powinny obsługiwać zarówno wartości zwykłe, jak i reaktywne. Oznacz je typem MaybeRef (jeśli mogą być zapisywalne) lub MaybeRefOrGetter (jeśli mają być tylko do odczytu).
  4. Wewnątrz efektów reaktywnych (watch, watchEffect) normalizuj wejścia za pomocą toValue() lub toRef(), aby obsługiwać wszystkie formy wejścia — zwykłe wartości, referencje, computed czy gettery.
  5. Zaimplementuj logikę composable'a używając Vue Reactivity API, pamiętając o regułach: dla wejść tylko do odczytu użyj MaybeRefOrGetter, dla zapisywalnych użyj MaybeRef, a dla callbacków unikaj MaybeRefOrGetter, aby nie aktywować ich przypadkowo jako gettery.
  6. Przetestuj composable z różnymi typami wejść (wartości zwykłe, refs, computed, gettery) aby upewnić się, że zachowuje się przewidywalnie w każdym kontekście.

Related skills

academic-researcher

by Shubhamsaboo

Academic research assistant for literature reviews, paper analysis, and scholarly writing.\nUse when: reviewing academic papers, conducting literature reviews, writing research summaries,\nanalyzing methodologies, formatting citations, or when user mentions academic research,

Security
1260

gmail-manager

by jeffvincent

Manage Gmail - send, read, search emails, manage labels and drafts. Use when user wants to interact with their Gmail account for email operations.

Security
17128

content-creator

by alirezarezvani

Create SEO-optimized marketing content with consistent brand voice. Includes brand voice analyzer, SEO optimizer, content frameworks, and social media templates. Use when writing blog posts, creating social media content, analyzing brand voice, optimizing SEO, planning content

Security
25124

solidity-security

by wshobson

Master smart contract security best practices to prevent common vulnerabilities and implement secure Solidity patterns. Use when writing smart contracts, auditing existing contracts, or implementing security measures for blockchain applications.

Security
10105

senior-security

by davila7

Comprehensive security engineering skill for application security, penetration testing, security architecture, and compliance auditing. Includes security assessment tools, threat modeling, crypto implementation, and security automation. Use when designing security architecture,

Security
2482

llama-cpp

by zechenzhangAGI

Runs LLM inference on CPU, Apple Silicon, and consumer GPUs without NVIDIA hardware. Use for edge deployment, M1/M2/M3 Macs, AMD/Intel GPUs, or when CUDA is unavailable. Supports GGUF quantization (1.5-8 bit) for reduced memory and 4-10× speedup vs PyTorch on CPU.

Security
11252