vue3-composition
OfficialWrite 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()vsreactive()(project standard:ref()), howcomputed()andwatch()behave, and why.valueand 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 inonMounted()with proper guards. - Composable authoring conventions: Standardizes
useXxxcomposable structure, returning reactive state plus methods, and keeping watchers explicit (nowatchEffect()). <script setup>component syntax: CoversdefineProps,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 requiredComponents
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.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.