[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D3QNE2NNJ1G5KA6B47YN9B":3,"skill-same:01M7D3QNE2NNJ1G5KA6B47YN9B":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":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M7D3QNE2NNJ1G5KA6B47YN9B","create-adaptable-composable",null,"Create a library-grade Vue composable that accepts maybe-reactive inputs (MaybeRef \u002F MaybeRefOrGetter) so callers can pass a plain value, ref, or getter. Normalize inputs with toValue()\u002FtoRef() inside reactive effects (watch\u002FwatchEffect) to keep behavior predictable and reactive. Use this skill when user asks for creating adaptable or reusable composables.","om-scogo\u002Fskillsh-scraper","om-scogo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160466840?v=4","01M79AWB6DFVCQ7RK70CS34B96","Om Achrekar","01M79AWB6ZM9SKR8KDH1WSSM22",0,"MIT","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fvuejs-ai-skills\u002Fcreate-adaptable-composable\u002Fskills\u002Fcreate-adaptable-composable\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: create-adaptable-composable\ndescription: Create a library-grade Vue composable that accepts maybe-reactive inputs (MaybeRef \u002F MaybeRefOrGetter) so callers can pass a plain value, ref, or getter. Normalize inputs with toValue()\u002FtoRef() inside reactive effects (watch\u002FwatchEffect) to keep behavior predictable and reactive. Use this skill when user asks for creating adaptable or reusable composables.\nlicense: MIT\nmetadata:\n  author: github.com\u002Fvuejs-ai\n  version: \"17.0.0\"\ncompatibility: Requires Vue 3 (or above) or Nuxt 3 (or above) project\n---\n\n# Create Adaptable Composable\n\nAdaptable composables are reusable functions that can accept both reactive and non-reactive inputs. This allows developers to use the composable in a variety of contexts without worrying about the reactivity of the inputs.\n\nSteps to design an adaptable composable in Vue.js:\n1. Confirm the composable's purpose and API design and expected inputs\u002Foutputs.\n2. Identify inputs params that should be reactive (MaybeRef \u002F MaybeRefOrGetter).\n3. Use `toValue()` or `toRef()` to normalize inputs inside reactive effects.\n4. Implement the core logic of the composable using Vue's reactivity APIs.\n\n## Core Type Concepts\n\n### Type Utilities\n\n```ts\n\u002F**\n * value or writable ref (value\u002Fref\u002FshallowRef\u002Fwritable computed)\n *\u002F\nexport type MaybeRef\u003CT = any> = T | Ref\u003CT> | ShallowRef\u003CT> | WritableComputedRef\u003CT>;\n\n\u002F**\n * MaybeRef\u003CT> + ComputedRef\u003CT> + () => T\n *\u002F\nexport type MaybeRefOrGetter\u003CT = any> = MaybeRef\u003CT> | ComputedRef\u003CT> | (() => T);\n```\n\n### Policy and Rules\n\n- Read-only, computed-friendly input: use `MaybeRefOrGetter`\n- Needs to be writable \u002F two-way input: use `MaybeRef`\n- Parameter might be a function value (callback\u002Fpredicate\u002Fcomparator): do not use `MaybeRefOrGetter`, or you may accidentally invoke it as a getter.\n- DOM\u002FElement targets: if you want computed\u002Fderived targets, use `MaybeRefOrGetter`.\n\nWhen `MaybeRefOrGetter` or `MaybeRef` is used: \n- resolve reactive value using `toRef()` (e.g. watcher source)\n- resolve non-reactive value using `toValue()`\n\n### Examples\n\nAdaptable `useDocumentTitle` Composable: read-only title parameter\n\n```ts\nimport { watch, toRef } from 'vue'\nimport type { MaybeRefOrGetter } from 'vue'\n\nexport function useDocumentTitle(title: MaybeRefOrGetter\u003Cstring>) {\n  watch(toRef(title), (t) => {\n    document.title = t\n  }, { immediate: true })\n}\n```\n\nAdaptable `useCounter` Composable: two-way writable count parameter\n\n```ts\nimport { watch, toRef } from 'vue'\nimport type { MaybeRef } from 'vue'\n\nfunction useCounter(count: MaybeRef\u003Cnumber>) {\n  const countRef = toRef(count)\n  function add() {\n    countRef.value++\n  }\n  return { add }\n}\n```\n","# Create Adaptable Composable\n\nAdaptable composables are reusable functions that can accept both reactive and non-reactive inputs. This allows developers to use the composable in a variety of contexts without worrying about the reactivity of the inputs.\n\nSteps to design an adaptable composable in Vue.js:\n1. Confirm the composable's purpose and API design and expected inputs\u002Foutputs.\n2. Identify inputs params that should be reactive (MaybeRef \u002F MaybeRefOrGetter).\n3. Use `toValue()` or `toRef()` to normalize inputs inside reactive effects.\n4. Implement the core logic of the composable using Vue's reactivity APIs.\n\n## Core Type Concepts\n\n### Type Utilities\n\n```ts\n\u002F**\n * value or writable ref (value\u002Fref\u002FshallowRef\u002Fwritable computed)\n *\u002F\nexport type MaybeRef\u003CT = any> = T | Ref\u003CT> | ShallowRef\u003CT> | WritableComputedRef\u003CT>;\n\n\u002F**\n * MaybeRef\u003CT> + ComputedRef\u003CT> + () => T\n *\u002F\nexport type MaybeRefOrGetter\u003CT = any> = MaybeRef\u003CT> | ComputedRef\u003CT> | (() => T);\n```\n\n### Policy and Rules\n\n- Read-only, computed-friendly input: use `MaybeRefOrGetter`\n- Needs to be writable \u002F two-way input: use `MaybeRef`\n- Parameter might be a function value (callback\u002Fpredicate\u002Fcomparator): do not use `MaybeRefOrGetter`, or you may accidentally invoke it as a getter.\n- DOM\u002FElement targets: if you want computed\u002Fderived targets, use `MaybeRefOrGetter`.\n\nWhen `MaybeRefOrGetter` or `MaybeRef` is used: \n- resolve reactive value using `toRef()` (e.g. watcher source)\n- resolve non-reactive value using `toValue()`\n\n### Examples\n\nAdaptable `useDocumentTitle` Composable: read-only title parameter\n\n```ts\nimport { watch, toRef } from 'vue'\nimport type { MaybeRefOrGetter } from 'vue'\n\nexport function useDocumentTitle(title: MaybeRefOrGetter\u003Cstring>) {\n  watch(toRef(title), (t) => {\n    document.title = t\n  }, { immediate: true })\n}\n```\n\nAdaptable `useCounter` Composable: two-way writable count parameter\n\n```ts\nimport { watch, toRef } from 'vue'\nimport type { MaybeRef } from 'vue'\n\nfunction useCounter(count: MaybeRef\u003Cnumber>) {\n  const countRef = toRef(count)\n  function add() {\n    countRef.value++\n  }\n  return { add }\n}\n```\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":27},{"author":25,"version":26},"github.com\u002Fvuejs-ai","17.0.0","Requires Vue 3 (or above) or Nuxt 3 (or above) project","main","8859218955d9504cd18b59e7892100718039d3b4","data\u002Fskills\u002Fvuejs-ai-skills\u002Fcreate-adaptable-composable\u002Fskills\u002Fcreate-adaptable-composable",1,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper","https:\u002F\u002Fgithub.com\u002Fom-scogo","SDE-1 @ Scogo ","2026-07-18 12:22:46",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add om-scogo\u002Fskillsh-scraper --skill create-adaptable-composable",{"tool":42,"command":43},"bunx","bunx skills add om-scogo\u002Fskillsh-scraper --skill create-adaptable-composable",{"tool":45,"command":46},"pnpm","pnpm dlx skills add om-scogo\u002Fskillsh-scraper --skill create-adaptable-composable","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fvuejs-ai-skills\u002Fcreate-adaptable-composable\u002Fskills\u002Fcreate-adaptable-composable\u002FSKILL.md",true,[],[51,58,63,70,75,82],{"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},"01M7D6MC9FAAEV4CMNYX8W7JTG","arxiv-search","Search arXiv physics, math, and computer science preprints using natural language queries. Powered by Valyu semantic search.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002Fskills\u002Farxiv-search\u002FSKILL.md",[],[],{"skillNo":59,"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":60,"categories":61,"keywords":62,"publishedAt":19},"01M7D6M85CKKN87TA98VCQV4H7","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002FSkill.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7D4ZTCS4DR3CE4JY06X84T2","working-with-legacy-code","Safely change and test untested codebases using Feathers' \"Working Effectively with Legacy Code\". Use when the user mentions \"legacy code\", \"no tests\", \"untested codebase\", \"how do I test this\", \"seams\", \"characterization tests\", \"golden master\", \"sprout method\", \"afraid to change this code\", \"monster method\", \"dependency breaking\", or \"inherited a messy codebase\". Also trigger when changing code without tests safely, getting a class under test when constructors, statics, or singletons block it, adding features to tangled modules, or planning incremental test coverage for an old codebase. Covers the legacy-code change algorithm, seams, characterization tests, sprout\u002Fwrap, and dependency-breaking techniques. For refactoring code that already has tests, see refactoring-patterns. For day-to-day code quality, see clean-code.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002Fworking-with-legacy-code\u002FSKILL.md",[],[],{"skillNo":71,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7D4ZHZKJD2RSNGAF63V14P4","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002FSkill.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7D4ZB4CJBFW5JE67CPH2QRV","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", \"type hierarchy\", \"variable fonts\", \"FOUT\u002FFOIT\", \"typographic scale\", or \"the text is hard to read\". Also trigger when choosing between system fonts and web fonts, optimizing font-loading performance, or designing readable long-form content. Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":83,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7D4Z4MVYVY3NMJ18BNV6WNA","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002FSkill.md",[],[]]