↗
Resource profile / Vue Composition API Workflow
About this skill

Workflow & requirements

Vue

Based on Vue 3.5, generated at 2026-09-25. Always use Composition API with <script setup lang="ts">.

Preferences

  • Prefer TypeScript over JavaScript
  • Prefer <script setup lang="ts"> over <script>
  • For performance, prefer shallowRef over ref if deep reactivity is not needed
  • Always use Composition API over Options API
  • Discourage using Reactive Props Destructure

Core

Topic Description Reference
Script Setup & Macros <script setup>, defineProps, defineEmits, defineModel, defineExpose, defineOptions, defineSlots, generics script-setup-macros
Reactivity & Lifecycle ref, shallowRef, computed, watch, watchEffect, effectScope, lifecycle hooks, composables core-new-apis

Features

Topic Description Reference
Built-in Components & Directives Transition, Teleport, Suspense, KeepAlive, v-memo, custom directives advanced-patterns

Quick Reference

Component Template

<script setup lang="ts">
import { ref, computed, watch, onMounted } from 'vue'

const props = defineProps<{
  title: string
  count?: number
}>()

const emit = defineEmits<{
  update: [value: string]
}>()

const model = defineModel<string>()

const doubled = computed(() => (props.count ?? 0) * 2)

watch(() => props.title, (newVal) => {
  console.log('Title changed:', newVal)
})

onMounted(() => {
  console.log('Component mounted')
})
</script>

<template>
  <div>{{ title }} - {{ doubled }}</div>
</template>

Key Imports

// Reactivity
import { ref, shallowRef, computed, reactive, readonly, toRef, toRefs, toValue } from 'vue'

// Watchers
import { watch, watchEffect, watchPostEffect, onWatcherCleanup } from 'vue'

// Lifecycle
import { onMounted, onUpdated, onUnmounted, onBeforeMount, onBeforeUpdate, onBeforeUnmount } from 'vue'

// Utilities
import { nextTick, defineComponent, defineAsyncComponent } from 'vue'
PACKAGE TRANSPARENCY

Inspect before installing

Source: Anthony Fu · MIT · SHA-256 shown alongside the download.

8 files10564 ZIP bytes0 script/code files

License file included. A license and checksum are not a security certification. Review package instructions and scripts before running them.

View files and uncompressed sizes
Machine-readable installation guide →
CATALOG REVIEW NOTES

Know what you need before installing

Source and packaging checks recorded on 2026-10-03. These notes are not safety certification or measured task performance.

Requirements

Vue, TypeScript and the matching SFC compiler/tooling in your own project. The author prefers Composition API; this is an opinionated documentation-derived skill, not an official Vue skill.

Costs, access & practical limits

MIT skill material; separate tooling, hosting, dependencies and model access may have costs. No external tool or account is supplied. Full skill/agent runtime evaluation has not been performed. Independent documentation-derived proof-of-concept maintained by Anthony Fu; upstream says skill effectiveness has not been fully tested. Check matching framework and package versions. Preferences are not mandatory framework rules, and code samples may be separate alternatives rather than complete files. The main preference discourages reactive props destructure, while its reference documents Vue 3.5 support; this is an author preference, not removal of the feature.

View the recorded checks
  • Pinned source bytes verified against Git blob hashes
  • Complete upstream MIT copyright and license retained
  • Core name/folder identity and packaged references checked
  • Publisher attribution, dependency and version limitations disclosed

Upstream commit: e53a142a2420e8cd812cfe9ed0484ab01bc856aa

Runtime status: not tested by this catalog. Configure your client and test the skill in your own environment.

SCENARIOS

Inputs, criteria and recorded outcomes

Records are supplied by the site administrator and bound to a specific package. They are not third-party safety certification. This page does not execute skills.

No published scenario records yet. Resource availability and download counts do not imply measured task performance.

Community reviews

★ New

Be the first to share your experience.

Sign in to leave a review →

More to explore

View all ↗