vue3-composition

Official

Write SSR-safe Vue 3 Composition code fast.

Authore-xode
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It resolves confusion and bugs when building Vue 3 components with the Composition API in an SSR environment, especially around ref/reactivity, lifecycle timing, and composable patterns.

Core Features & Use Cases

  • Reactivity primitives guidance: Explains when to use ref() vs reactive() (project standard: ref()), how computed() and watch() behave, and why .value and destructuring mistakes break updates.
  • Lifecycle & SSR-safe patterns: Clarifies what runs on server vs client and ensures browser-only logic (DOM, window, document, localStorage) is placed in onMounted() with proper guards.
  • Composable authoring conventions: Standardizes useXxx composable structure, returning reactive state plus methods, and keeping watchers explicit (no watchEffect()).
  • <script setup> component syntax: Covers defineProps, defineEmits, defineModel, template refs, and common patterns for focusing DOM elements after render.

Quick Start

Ask: “How should I implement an SSR-safe composable that watches the route param id and fetches data when it changes, using the project’s ref() and watch() conventions?”

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: vue3-composition
Download link: https://github.com/e-xode/vue-ssr/archive/main.zip#vue3-composition

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.