[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CRPKSX3S98E11AASJSVGC1":3,"skill-same:01M7CRPKSX3S98E11AASJSVGC1":52},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7CRPKSX3S98E11AASJSVGC1","ts-library",null,"Use when authoring TypeScript libraries or npm packages - covers project setup, package.json exports, build tooling (tsdown\u002Funbuild), API design patterns, type inference tricks, testing, and publishing to npm. Use when bundling, configuring dual CJS\u002FESM output, or setting up release workflows.","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\u002Fonmax-nuxt-skills\u002Fts-library\u002FSkill.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ts-library\ndescription: Use when authoring TypeScript libraries or npm packages - covers project setup, package.json exports, build tooling (tsdown\u002Funbuild), API design patterns, type inference tricks, testing, and publishing to npm. Use when bundling, configuring dual CJS\u002FESM output, or setting up release workflows.\nlicense: MIT\n---\n\n# TypeScript Library Development\n\nPatterns for authoring high-quality TypeScript libraries, extracted from studying unocss, shiki, unplugin, vite, vitest, vueuse, zod, trpc, drizzle-orm, and more.\n\n## When to Use\n\n- Starting a new TypeScript library (single or monorepo)\n- Setting up package.json exports for dual CJS\u002FESM\n- Configuring tsconfig for library development\n- Choosing build tools (tsdown, unbuild)\n- Designing type-safe APIs (builder, factory, plugin patterns)\n- Writing advanced TypeScript types\n- Setting up vitest for library testing\n- Configuring release workflow and CI\n\n**For Nuxt module development:** use `nuxt-modules` skill\n\n## Quick Reference\n\n| Working on...         | Load file                                                          |\n| --------------------- | ------------------------------------------------------------------ |\n| New project setup     | [references\u002Fproject-setup.md](references\u002Fproject-setup.md)         |\n| Package exports       | [references\u002Fpackage-exports.md](references\u002Fpackage-exports.md)     |\n| tsconfig options      | [references\u002Ftypescript-config.md](references\u002Ftypescript-config.md) |\n| Build configuration   | [references\u002Fbuild-tooling.md](references\u002Fbuild-tooling.md)         |\n| ESLint config         | [references\u002Feslint-config.md](references\u002Feslint-config.md)         |\n| API design patterns   | [references\u002Fapi-design.md](references\u002Fapi-design.md)               |\n| Type inference tricks | [references\u002Ftype-patterns.md](references\u002Ftype-patterns.md)         |\n| Testing setup         | [references\u002Ftesting.md](references\u002Ftesting.md)                     |\n| Release workflow      | [references\u002Frelease.md](references\u002Frelease.md)                     |\n| CI\u002FCD setup           | [references\u002Fci-workflows.md](references\u002Fci-workflows.md)           |\n\n## Loading Files\n\n**Consider loading these reference files based on your task:**\n\n- [ ] [references\u002Fproject-setup.md](references\u002Fproject-setup.md) - if starting a new TypeScript library project\n- [ ] [references\u002Fpackage-exports.md](references\u002Fpackage-exports.md) - if configuring package.json exports or dual CJS\u002FESM\n- [ ] [references\u002Ftypescript-config.md](references\u002Ftypescript-config.md) - if setting up or modifying tsconfig.json\n- [ ] [references\u002Fbuild-tooling.md](references\u002Fbuild-tooling.md) - if configuring tsdown, unbuild, or build scripts\n- [ ] [references\u002Feslint-config.md](references\u002Feslint-config.md) - if setting up ESLint for library development\n- [ ] [references\u002Fapi-design.md](references\u002Fapi-design.md) - if designing public APIs, builder patterns, or plugin systems\n- [ ] [references\u002Ftype-patterns.md](references\u002Ftype-patterns.md) - if working with advanced TypeScript types or type inference\n- [ ] [references\u002Ftesting.md](references\u002Ftesting.md) - if setting up vitest or writing tests for library code\n- [ ] [references\u002Frelease.md](references\u002Frelease.md) - if configuring release workflow or versioning\n- [ ] [references\u002Fci-workflows.md](references\u002Fci-workflows.md) - if setting up GitHub Actions or CI\u002FCD pipelines\n\n**DO NOT load all files at once.** Load only what's relevant to your current task.\n\n## New Library Workflow\n\n1. Create project structure → load [references\u002Fproject-setup.md](references\u002Fproject-setup.md)\n2. Configure `package.json` exports → load [references\u002Fpackage-exports.md](references\u002Fpackage-exports.md)\n3. Set up build with tsdown → load [references\u002Fbuild-tooling.md](references\u002Fbuild-tooling.md)\n4. Verify build: `pnpm build && pnpm pack --dry-run` — check output includes `.mjs`, `.cjs`, `.d.ts`\n5. Add tests → load [references\u002Ftesting.md](references\u002Ftesting.md)\n6. Configure release → load [references\u002Frelease.md](references\u002Frelease.md)\n\n## Quick Start\n\n```json\n\u002F\u002F package.json (minimal)\n{\n  \"name\": \"my-lib\",\n  \"type\": \"module\",\n  \"exports\": {\n    \".\": {\n      \"import\": \".\u002Fdist\u002Findex.mjs\",\n      \"require\": \".\u002Fdist\u002Findex.cjs\"\n    }\n  },\n  \"main\": \".\u002Fdist\u002Findex.cjs\",\n  \"module\": \".\u002Fdist\u002Findex.mjs\",\n  \"types\": \".\u002Fdist\u002Findex.d.ts\",\n  \"files\": [\"dist\"]\n}\n```\n\n```ts\n\u002F\u002F tsdown.config.ts\nimport { defineConfig } from 'tsdown'\n\nexport default defineConfig({\n  entry: ['src\u002Findex.ts'],\n  format: ['esm', 'cjs'],\n  dts: true,\n})\n```\n\n## Key Principles\n\n- ESM-first: `\"type\": \"module\"` with `.mjs` outputs\n- Dual format: always support both CJS and ESM consumers\n- `moduleResolution: \"Bundler\"` for modern TypeScript\n- tsdown for most builds, unbuild for complex cases\n- Smart defaults: detect environment, don't force config\n- Tree-shakeable: lazy getters, proper `sideEffects: false`\n\n_Token efficiency: Main skill ~300 tokens, each reference ~800-1200 tokens_\n","# TypeScript Library Development\n\nPatterns for authoring high-quality TypeScript libraries, extracted from studying unocss, shiki, unplugin, vite, vitest, vueuse, zod, trpc, drizzle-orm, and more.\n\n## When to Use\n\n- Starting a new TypeScript library (single or monorepo)\n- Setting up package.json exports for dual CJS\u002FESM\n- Configuring tsconfig for library development\n- Choosing build tools (tsdown, unbuild)\n- Designing type-safe APIs (builder, factory, plugin patterns)\n- Writing advanced TypeScript types\n- Setting up vitest for library testing\n- Configuring release workflow and CI\n\n**For Nuxt module development:** use `nuxt-modules` skill\n\n## Quick Reference\n\n| Working on...         | Load file                                                          |\n| --------------------- | ------------------------------------------------------------------ |\n| New project setup     | [references\u002Fproject-setup.md](references\u002Fproject-setup.md)         |\n| Package exports       | [references\u002Fpackage-exports.md](references\u002Fpackage-exports.md)     |\n| tsconfig options      | [references\u002Ftypescript-config.md](references\u002Ftypescript-config.md) |\n| Build configuration   | [references\u002Fbuild-tooling.md](references\u002Fbuild-tooling.md)         |\n| ESLint config         | [references\u002Feslint-config.md](references\u002Feslint-config.md)         |\n| API design patterns   | [references\u002Fapi-design.md](references\u002Fapi-design.md)               |\n| Type inference tricks | [references\u002Ftype-patterns.md](references\u002Ftype-patterns.md)         |\n| Testing setup         | [references\u002Ftesting.md](references\u002Ftesting.md)                     |\n| Release workflow      | [references\u002Frelease.md](references\u002Frelease.md)                     |\n| CI\u002FCD setup           | [references\u002Fci-workflows.md](references\u002Fci-workflows.md)           |\n\n## Loading Files\n\n**Consider loading these reference files based on your task:**\n\n- [ ] [references\u002Fproject-setup.md](references\u002Fproject-setup.md) - if starting a new TypeScript library project\n- [ ] [references\u002Fpackage-exports.md](references\u002Fpackage-exports.md) - if configuring package.json exports or dual CJS\u002FESM\n- [ ] [references\u002Ftypescript-config.md](references\u002Ftypescript-config.md) - if setting up or modifying tsconfig.json\n- [ ] [references\u002Fbuild-tooling.md](references\u002Fbuild-tooling.md) - if configuring tsdown, unbuild, or build scripts\n- [ ] [references\u002Feslint-config.md](references\u002Feslint-config.md) - if setting up ESLint for library development\n- [ ] [references\u002Fapi-design.md](references\u002Fapi-design.md) - if designing public APIs, builder patterns, or plugin systems\n- [ ] [references\u002Ftype-patterns.md](references\u002Ftype-patterns.md) - if working with advanced TypeScript types or type inference\n- [ ] [references\u002Ftesting.md](references\u002Ftesting.md) - if setting up vitest or writing tests for library code\n- [ ] [references\u002Frelease.md](references\u002Frelease.md) - if configuring release workflow or versioning\n- [ ] [references\u002Fci-workflows.md](references\u002Fci-workflows.md) - if setting up GitHub Actions or CI\u002FCD pipelines\n\n**DO NOT load all files at once.** Load only what's relevant to your current task.\n\n## New Library Workflow\n\n1. Create project structure → load [references\u002Fproject-setup.md](references\u002Fproject-setup.md)\n2. Configure `package.json` exports → load [references\u002Fpackage-exports.md](references\u002Fpackage-exports.md)\n3. Set up build with tsdown → load [references\u002Fbuild-tooling.md](references\u002Fbuild-tooling.md)\n4. Verify build: `pnpm build && pnpm pack --dry-run` — check output includes `.mjs`, `.cjs`, `.d.ts`\n5. Add tests → load [references\u002Ftesting.md](references\u002Ftesting.md)\n6. Configure release → load [references\u002Frelease.md](references\u002Frelease.md)\n\n## Quick Start\n\n```json\n\u002F\u002F package.json (minimal)\n{\n  \"name\": \"my-lib\",\n  \"type\": \"module\",\n  \"exports\": {\n    \".\": {\n      \"import\": \".\u002Fdist\u002Findex.mjs\",\n      \"require\": \".\u002Fdist\u002Findex.cjs\"\n    }\n  },\n  \"main\": \".\u002Fdist\u002Findex.cjs\",\n  \"module\": \".\u002Fdist\u002Findex.mjs\",\n  \"types\": \".\u002Fdist\u002Findex.d.ts\",\n  \"files\": [\"dist\"]\n}\n```\n\n```ts\n\u002F\u002F tsdown.config.ts\nimport { defineConfig } from 'tsdown'\n\nexport default defineConfig({\n  entry: ['src\u002Findex.ts'],\n  format: ['esm', 'cjs'],\n  dts: true,\n})\n```\n\n## Key Principles\n\n- ESM-first: `\"type\": \"module\"` with `.mjs` outputs\n- Dual format: always support both CJS and ESM consumers\n- `moduleResolution: \"Bundler\"` for modern TypeScript\n- tsdown for most builds, unbuild for complex cases\n- Smart defaults: detect environment, don't force config\n- Tree-shakeable: lazy getters, proper `sideEffects: false`\n\n_Token efficiency: Main skill ~300 tokens, each reference ~800-1200 tokens_\n",{"name":5,"license":15,"description":7},"main","8859218955d9504cd18b59e7892100718039d3b4","data\u002Fskills\u002Fonmax-nuxt-skills\u002Fts-library",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":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add om-scogo\u002Fskillsh-scraper --skill ts-library",{"tool":38,"command":39},"bunx","bunx skills add om-scogo\u002Fskillsh-scraper --skill ts-library",{"tool":41,"command":42},"pnpm","pnpm dlx skills add om-scogo\u002Fskillsh-scraper --skill ts-library","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fonmax-nuxt-skills\u002Fts-library\u002FSkill.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"metadata.json","REFERENCE","参考文档",410,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fonmax-nuxt-skills\u002Fts-library\u002Fmetadata.json",[53,60,65,72,77,84],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"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":61,"name":55,"nameZh":6,"description":56,"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},"01M7D6M85CKKN87TA98VCQV4H7","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\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},"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":73,"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":74,"categories":75,"keywords":76,"publishedAt":19},"01M7D4ZHZKJD2RSNGAF63V14P4","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002FSkill.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"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":85,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7D4Z4MVYVY3NMJ18BNV6WNA","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002FSkill.md",[],[]]