vue-component-dev

Develop Vue 3 components with Pinia stores and ECharts charts.

1|Updated Nov 4, 2025
One-click install
npx skills add https://github.com/alongor666/daylyreport --skill vue-component-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue-component-dev
Source: https://github.com/alongor666/daylyreport/tree/main/.claude/skills/vue-component-dev
Command: npx skills add https://github.com/alongor666/daylyreport --skill vue-component-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires vue, pinia, echarts, axios, vite, and includes references (resource) components.

What problem does it solve?

This Skill provides standardized guidelines for developing Vue 3 components for the vehicle insurance data analysis platform. It covers component structure, communication, Pinia state management, ECharts integration, and performance optimization, ensuring consistent, maintainable, and high-quality frontend development.

Core Features & Use Cases

  • Standard Component Template: Offers a ready-to-use template for new Vue components, including <script setup>, Props, Emits, and lifecycle hooks.
  • Component Communication: Guides on using Props for parent-to-child data, Emits for child-to-parent events, and Pinia for cross-component state sharing.
  • Pinia Store Usage: Defines three core Pinia stores (appStore, filterStore, dataStore) with clear responsibilities and usage规范.
  • ECharts Integration: Provides a standard ECharts component template, emphasizing responsive handling, data updates, and adherence to eye-care color palettes.
  • Performance Optimization: Offers tips on choosing between computed vs watch, v-show vs v-if, and avoiding complex template expressions.
  • Use Case: A developer needs to create a new dashboard widget that displays data from the dataStore and allows user interaction. This skill provides the component template, Pinia integration pattern, and styling guidelines to build it efficiently and correctly.

Quick Start

Create a new Vue 3 component 'SalesOverview.vue' that fetches data from the dataStore and displays it using an ECharts bar chart.

Frequently Asked Questions about vue-component-dev

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

FAQPage Schema
How do I build Vue 3 components with Pinia state management?

Build Vue 3 components with Pinia by using `<script setup>` syntax, defining typed Props and Emits, and connecting to Pinia stores for cross-component state sharing. The Skill provides standard templates and store patterns for `appStore`, `filterStore`, and `dataStore` to manage state consistently across your dashboard.

How do I integrate ECharts into Vue 3 components?

Integrate ECharts into Vue 3 components using a standard template that handles responsive sizing, data updates, and applies eye-care color palettes. The Skill provides the integration pattern and emphasizes updating chart data reactively when store state changes.

What's the best way to structure Vue 3 component communication?

Structure Vue 3 component communication by using Props for parent-to-child data flow, Emits for child-to-parent events, and Pinia stores for cross-component state sharing. The Skill enforces PascalCase naming, scoped CSS with CSS variables, and clear responsibility separation across three core stores.

Can I use Pinia with ECharts for a data dashboard?

Yes, use Pinia with ECharts to build data dashboards by storing chart data in Pinia stores and reactively updating ECharts components when store state changes. This pattern isolates business logic, maintains consistent data across multiple charts, and simplifies performance optimization.

How do I optimize Vue 3 component performance?

Optimize Vue 3 component performance by choosing `computed` over `watch` for derived state, using `v-show` instead of `v-if` for frequently toggled elements, and avoiding complex expressions in templates. The Skill provides specific guidance for dashboard widgets handling large datasets from the `dataStore`.

Do I need to follow naming conventions and styling standards in Vue components?

Yes, follow PascalCase naming for components, use scoped CSS with CSS variables for styling, and apply typed Props and Emits. The Skill enforces these standards to ensure maintainability and consistency across the vehicle insurance analytics platform.