From partme-ai-full-stack-skills
Guides Vuex 2.x state management in Vue 2 apps, covering state, mutations, actions, getters, modules, plugins, setup, and API. Use for Vue 2 state queries or patterns.
npx claudepluginhub partme-ai/full-stack-skills --plugin t2ui-skillsThis skill uses the workspace's default tool permissions.
Use this skill whenever the user wants to:
LICENSE.txtapi/actions-api.mdapi/getters-api.mdapi/modules-api.mdapi/mutations-api.mdapi/store-api.mdexamples/advanced/plugins.mdexamples/core-concepts/actions.mdexamples/core-concepts/getters.mdexamples/core-concepts/modules.mdexamples/core-concepts/mutations.mdexamples/core-concepts/state.mdexamples/guide/installation.mdexamples/guide/intro.mdexamples/guide/quick-start.mdexamples/guide/what-is-vuex.mdtemplates/component-usage.mdtemplates/store-setup.mdCreates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Use this skill whenever the user wants to:
This skill is organized to match the Vuex official documentation structure (https://vuex.vuejs.org/zh/, https://vuex.vuejs.org/zh/guide/, https://vuex.vuejs.org/zh/api/). When working with Vuex:
Identify the topic from the user's request:
examples/guide/installation.mdexamples/guide/quick-start.mdexamples/core-concepts/examples/advanced/api/Load the appropriate example file from the examples/ directory:
Guide (使用指南):
examples/guide/intro.md - Introduction to Vuexexamples/guide/installation.md - Installation guideexamples/guide/quick-start.md - Quick start guideexamples/guide/what-is-vuex.md - What is VuexCore Concepts (核心概念):
examples/core-concepts/state.md - Stateexamples/core-concepts/getters.md - Gettersexamples/core-concepts/mutations.md - Mutationsexamples/core-concepts/actions.md - Actionsexamples/core-concepts/modules.md - ModulesAdvanced (高级):
examples/advanced/plugins.md - Pluginsexamples/advanced/strict-mode.md - Strict modeexamples/advanced/form-handling.md - Form handlingexamples/advanced/testing.md - Testingexamples/advanced/hot-reload.md - Hot reloadFollow the specific instructions in that example file for syntax, structure, and best practices
Important Notes:
Reference API documentation in the api/ directory when needed:
api/store-api.md - Store APIapi/state-api.md - State APIapi/getters-api.md - Getters APIapi/mutations-api.md - Mutations APIapi/actions-api.md - Actions APIapi/modules-api.md - Modules APIapi/plugins-api.md - Plugins APIUse templates from the templates/ directory:
templates/installation.md - Installation templatestemplates/store-setup.md - Store setup templatestemplates/component-usage.md - Component usage templatesVuex is a state management pattern and library for Vue.js applications. It serves as a centralized store for all the components in an application.
Key Concepts:
Using npm:
npm install vuex@3
Using yarn:
yarn add vuex@3
Using CDN:
<script src="https://unpkg.com/vuex@3"></script>
// store/index.js
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
state: {
count: 0
},
mutations: {
increment(state) {
state.count++
}
}
})
export default store
// main.js
import Vue from 'vue'
import store from './store'
new Vue({
store,
render: h => h(App)
}).$mount('#app')
examples/guide/ or examples/getting-started/ → https://vuex.vuejs.org/zh/guide/api/ → https://vuex.vuejs.org/zh/api/This skill includes detailed examples organized to match the official documentation structure. All examples are in the examples/ directory (see mapping above).
To use examples:
To use templates:
templates/ directory for common scaffoldingDetailed API documentation is available in the api/ directory, organized to match the official Vuex API documentation structure (https://vuex.vuejs.org/zh/api/):
api/store-api.md)api/state-api.md)api/getters-api.md)api/mutations-api.md)api/actions-api.md)api/modules-api.md)api/plugins-api.md)To use API reference:
api/ directoryexamples/ directoryVuex, vuex, Vue 2, state management, 状态管理, store, state, getters, mutations, actions, modules, 存储, 状态, 获取器, 变更, 动作, 模块, Vuex store, Vuex state, Vuex getters, Vuex mutations, Vuex actions, Vuex modules, Vuex plugins, centralized state, reactive state, synchronous mutations, asynchronous actions