vue2-legacy

Guide Vue 2.x Options API development with Vuex integration and legacy patterns.

8|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/zb-ss/opencode-workflows --skill vue2-legacy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue2-legacy
Source: https://github.com/zb-ss/opencode-workflows/tree/main/skill/vue2-legacy
Command: npx skills add https://github.com/zb-ss/opencode-workflows --skill vue2-legacy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to building Vue.js applications using the Options API, addressing common patterns, reactivity caveats, and legacy best practices.

Core Features & Use Cases

  • Options API Structure: Demonstrates the standard component structure with data, computed properties, methods, watchers, and lifecycle hooks.
  • Vuex Integration: Illustrates how to manage global state using Vuex modules, getters, mutations, and actions.
  • Legacy Patterns: Covers mixins, filters, and event buses, highlighting their usage and potential drawbacks.
  • Component Communication: Explains props/events and slots for effective parent-child interaction.
  • Use Case: A developer maintaining or building a Vue 2 application can use this Skill to quickly reference correct patterns for state management, component logic, and inter-component communication, avoiding common pitfalls.

Quick Start

Use the vue2-legacy skill to generate a Vue 2 component example demonstrating data fetching with Vuex.

Frequently Asked Questions about vue2-legacy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a Vue 2 component using the Options API?

A Vue 2 component using the Options API structures logic by defining data, computed properties, methods, watchers, and lifecycle hooks within a single export object. This Skill provides reference patterns for organizing these component options effectively.

What is the best way to manage global state in a Vue 2 application?

To manage global state in a Vue 2 application, integrate Vuex using modules, getters, mutations, and actions. This Skill illustrates how to structure your Vuex store to handle shared data and asynchronous operations correctly.

How does component communication work between parent and child in Vue 2?

Component communication in Vue 2 relies on props and custom events for parent-child interaction, while slots enable flexible content distribution. This Skill explains how to configure these options to pass data and trigger actions effectively.

Why does my Vue 2 reactivity break when adding new object properties?

Vue 2 reactivity breaks when adding new object properties because it cannot detect property additions or deletions automatically. This Skill covers reactivity caveats and legacy patterns to help you avoid these common tracking pitfalls.

When should I use mixins and filters in Vue 2 legacy code?

Mixins and filters in Vue 2 are used for logic reuse and text formatting, though they carry potential drawbacks like naming conflicts and implicit dependencies. This Skill highlights their usage scenarios and explains their legacy behavior.