[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75NEGXZPJFCHAE5P31CQX94":3,"skill-same:01M75NEGXZPJFCHAE5P31CQX94":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M75NEGXZPJFCHAE5P31CQX94","vuejs-state-management",null,"Manage Vue application state with Pinia and the right state locality","linktogo\u002Fmaggie","linktogo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F29751338?v=4","01M75NBAKP44KV5ND0WEE3H87P","Fabien Brunet","01M75NBAMC2TEQQ8FMTBA23MET",2,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flinktogo\u002Fmaggie\u002Fblob\u002Fmain\u002Fskills\u002Fvuejs\u002Fstate-management\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: vuejs-state-management\ndescription: Manage Vue application state with Pinia and the right state locality\nglobs: [\"**\u002F*.vue\", \"**\u002F*.ts\", \"**\u002Fstores\u002F**\u002F*.ts\"]\n---\n\n# Vue state management\n\nKeep state as local as possible. Reach for a global store only when state is\ngenuinely shared across unrelated parts of the app.\n\n## Rules\n\n- Local UI state lives in the component (`ref`\u002F`reactive`). Do not push\n  everything into a global store.\n- For shared\u002Fglobal state use Pinia (the current standard) — not Vuex, not a\n  hand-rolled reactive singleton. Define stores with `defineStore` and the setup\n  syntax so they read like composables.\n- A store owns `state`, `getters` (derived, cached), and `actions` (the only\n  place that mutates state, including async work). Components read state and call\n  actions; they don't mutate store state directly from outside.\n- Keep server cache separate from client state. Data fetched from an API is best\n  handled by a query layer (e.g. TanStack Query) or a dedicated store action with\n  loading\u002Ferror flags — don't scatter `fetch` calls across components.\n- Pass props \u002F provide-inject for parent-to-child sharing before promoting state\n  to a global store.\n\n## Anti-patterns\n\n- One giant store holding unrelated slices of the whole app.\n- Mutating `store.someValue` from a component instead of calling an action.\n- Duplicating server data into a store and letting it drift from the source.\n","# Vue state management\n\nKeep state as local as possible. Reach for a global store only when state is\ngenuinely shared across unrelated parts of the app.\n\n## Rules\n\n- Local UI state lives in the component (`ref`\u002F`reactive`). Do not push\n  everything into a global store.\n- For shared\u002Fglobal state use Pinia (the current standard) — not Vuex, not a\n  hand-rolled reactive singleton. Define stores with `defineStore` and the setup\n  syntax so they read like composables.\n- A store owns `state`, `getters` (derived, cached), and `actions` (the only\n  place that mutates state, including async work). Components read state and call\n  actions; they don't mutate store state directly from outside.\n- Keep server cache separate from client state. Data fetched from an API is best\n  handled by a query layer (e.g. TanStack Query) or a dedicated store action with\n  loading\u002Ferror flags — don't scatter `fetch` calls across components.\n- Pass props \u002F provide-inject for parent-to-child sharing before promoting state\n  to a global store.\n\n## Anti-patterns\n\n- One giant store holding unrelated slices of the whole app.\n- Mutating `store.someValue` from a component instead of calling an action.\n- Duplicating server data into a store and letting it drift from the source.\n",{"name":5,"globs":24,"description":7},[25,26,27],"**\u002F*.vue","**\u002F*.ts","**\u002Fstores\u002F**\u002F*.ts","main","d884e3c730aa8243273458fa6d7de64bfd3b8bba","skills\u002Fvuejs\u002Fstate-management","https:\u002F\u002Fgithub.com\u002Flinktogo\u002Fmaggie","https:\u002F\u002Fgithub.com\u002Flinktogo","http:\u002F\u002Ffabien-brunet.fr\u002F","Software Architect @Capgemini","2026-11-14 21:45:09",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add linktogo\u002Fmaggie --skill vuejs-state-management",{"tool":42,"command":43},"bunx","bunx skills add linktogo\u002Fmaggie --skill vuejs-state-management",{"tool":45,"command":46},"pnpm","pnpm dlx skills add linktogo\u002Fmaggie --skill vuejs-state-management","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinktogo\u002Fmaggie\u002Fblob\u002Fmain\u002Fskills\u002Fvuejs\u002Fstate-management\u002FSKILL.md",true,[],[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M75NEEHT92D2SPZFEWBMSVX9","vuejs-composition-api","Write Vue 3 components with the Composition API, script setup, and composables","https:\u002F\u002Fgithub.com\u002Flinktogo\u002Fmaggie\u002Fblob\u002Fmain\u002Fskills\u002Fvuejs\u002Fcomposition-api\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M75NEBQJKWVJG8CYZQQB4BFQ","reactjs-hooks","Use React hooks correctly — dependencies, effects, and custom hooks","https:\u002F\u002Fgithub.com\u002Flinktogo\u002Fmaggie\u002Fblob\u002Fmain\u002Fskills\u002Freactjs\u002Fhooks\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M75NE9V7AYPA9QF9H21TKC08","reactjs-component-design","Write small, composable React components with clean props and no needless state","https:\u002F\u002Fgithub.com\u002Flinktogo\u002Fmaggie\u002Fblob\u002Fmain\u002Fskills\u002Freactjs\u002Fcomponent-design\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M75NE64WGJTNTKW3RYVC7394","postgres-query-performance","Diagnose and fix slow PostgreSQL queries with indexes and EXPLAIN","https:\u002F\u002Fgithub.com\u002Flinktogo\u002Fmaggie\u002Fblob\u002Fmain\u002Fskills\u002Fpostgres\u002Fquery-performance\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M75NE3KGES659BWDAZDM6YQ5","postgres-migrations","Write safe, reversible, zero-downtime PostgreSQL schema migrations","https:\u002F\u002Fgithub.com\u002Flinktogo\u002Fmaggie\u002Fblob\u002Fmain\u002Fskills\u002Fpostgres\u002Fmigrations\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M75NE106KTAH8BH7QCFZV74A","nx-task-running","Run Nx tasks efficiently with affected, caching, and target dependencies","https:\u002F\u002Fgithub.com\u002Flinktogo\u002Fmaggie\u002Fblob\u002Fmain\u002Fskills\u002Fnx\u002Ftask-running\u002FSKILL.md",[],[]]