vue-layer-store

Generate Pinia-based auth and user stores for Vue 3 projects.

Updated Mar 16, 2026
Ready to run
npx skills add https://github.com/limkyulee/front-skills --skill vue-layer-store
๐Ÿ’ฌ Prompt for ChatGPT / Claude Chatโ–ผ
Please help me install this Agent Skill.
Skill: vue-layer-store
Source: https://github.com/limkyulee/front-skills/tree/main/.opencode/vue-framework/vue-layer-store
Command: npx skills add https://github.com/limkyulee/front-skills --skill vue-layer-store

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Vue3 ํ”„๋กœ์ ํŠธ์˜ ์ƒํƒœ ๊ด€๋ฆฌ๋ฅผ ์ค‘์•™ ์ง‘์ค‘์‹์œผ๋กœ ์ฒ˜๋ฆฌํ•˜๊ธฐ ์œ„ํ•ด Pinia ๊ธฐ๋ฐ˜์˜ ์ „์—ญ ์Šคํ† ์–ด ๋ ˆ์ด์–ด(auth.store.ts ์™€ user.store.ts)๋ฅผ ์ž๋™์œผ๋กœ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

Core Features & Use Cases

  • Pinia ๊ธฐ๋ฐ˜ ์ธ์ฆ ์ƒํƒœ(auth.store.ts) ๋ฐ ์‚ฌ์šฉ์ž ํ”„๋กœํ•„(user.store.ts) ๊ด€๋ฆฌ ํŒŒ์ผ ์ƒ์„ฑ์„ ์ž๋™ํ™”ํ•ฉ๋‹ˆ๋‹ค.
  • ๊ธฐ์กด Vue3 ํ”„๋กœ์ ํŠธ์— ์ „์—ญ ์ƒํƒœ ๊ด€๋ฆฌ ๋ ˆ์ด์–ด๋ฅผ ๋‹จ๋…์œผ๋กœ ์ถ”๊ฐ€ํ•˜๊ฑฐ๋‚˜, ์˜ค์ผ€์ŠคํŠธ๋ ˆ์ดํ„ฐ์˜ ๋„ค ๋ฒˆ์งธ ๋‹จ๊ณ„๋กœ ํ†ตํ•ฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  • CONFIG.pinia ์„ค์ •์— ๋”ฐ๋ผ ๋ ˆ์ด์–ด ์ƒ์„ฑ ์—ฌ๋ถ€๋ฅผ ์ œ์–ดํ•˜๊ณ , API ํด๋ผ์ด์–ธํŠธ ์—ฐ๋™๊ณผ ์„ค๊ณ„ ์›์น™์„ ๋ฐ˜์˜ํ•ฉ๋‹ˆ๋‹ค.

Quick Start

Instantiate the Vue store layer in your Vue 3 project and run the app to verify authentication and profile management.

Frequently Asked Questions about vue-layer-store

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

FAQPage Schema
How do I set up Pinia auth and user stores in a Vue 3 project?โ–ผ

You can set up Pinia auth and user stores by generating src/stores/auth.store.ts and src/stores/user.store.ts files that manage centralized authentication and user profile state. This process wires the stores directly to your existing API client and applies design principles like action-only state changes and a $reset method.

What is the best way to manage centralized authentication state in Vue 3?โ–ผ

The best way to manage centralized authentication state in Vue 3 is by creating a dedicated Pinia auth store. This approach isolates authentication logic and user profile management into a global state layer, ensuring state changes occur only through defined actions with optional reset capabilities.

Do I need to configure anything before adding a Pinia store layer to my Vue app?โ–ผ

You need an existing Vue 3 project and an API client ready for wiring. The store layer generation is controlled by a CONFIG.pinia setting, which you must configure to determine whether the authentication and user profile stores should be activated and integrated into your application.

Can I integrate a Pinia user store into an existing Vue application?โ–ผ

Yes, you can integrate a Pinia user store into an existing Vue application. It can be added as a standalone global state management layer or integrated as the fourth stage of an orchestrator workflow, automatically connecting to your API client for profile management.

What design principles does an automated Pinia store layer follow for state management?โ–ผ

An automated Pinia store layer follows explicit design principles including action-only state changes and a $reset method for clearing store data. These principles ensure centralized state mutations remain predictable and manageable within your Vue 3 authentication and profile workflows.