[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F5Y4EMP4NWPZKG1YAMTSSE":3,"skill-same:01M6F5Y4EMP4NWPZKG1YAMTSSE":56},{"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":26,"linkOnly":27,"markdownContent":28,"markdownBody":29,"frontMatter":30,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":38,"ownerHtmlUrl":39,"ownerBlogUrl":6,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M6F5Y4EMP4NWPZKG1YAMTSSE","unjs-citty",null,"ALWAYS use when writing code importing \"citty\". Consult for debugging, best practices, or modifying citty.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fharlan-zw\u002Fskilld\u002Funjs-citty\u002FSKILL.md",[],[19,20,21,22,23,24,25],"unjs citty","writing","debugging","code","best practices","consult","use","2026-11-10 10:12:30",false,"---\nname: unjs-citty\ndescription: \"ALWAYS use when writing code importing \\\"citty\\\". Consult for debugging, best practices, or modifying citty.\"\nmetadata:\n  version: 0.2.1\n---\n\n# unjs\u002Fcitty `citty`\n\n**Version:** 0.2.1 (yesterday)\n**Tags:** latest: 0.2.1 (yesterday)\n\n**References:** [package.json](.\u002F.skilld\u002Fpkg\u002Fpackage.json) • [README](.\u002F.skilld\u002Fpkg\u002FREADME.md) • [GitHub Issues](.\u002F.skilld\u002Fissues\u002F_INDEX.md) • [Releases](.\u002F.skilld\u002Freleases\u002F_INDEX.md)\n\n## Search\n\nUse `npx -y skilld search` instead of grepping `.skilld\u002F` directories — hybrid semantic + keyword search across all indexed docs, issues, and releases.\n\n```bash\nnpx -y skilld search \"query\" -p citty\nnpx -y skilld search \"issues:error handling\" -p citty\nnpx -y skilld search \"releases:deprecated\" -p citty\n```\n\nFilters: `docs:`, `issues:`, `releases:` prefix narrows by source type.\n\n## API Changes\n\n⚠️ **ESM-only** — v0.2.0 ships ESM only, `require('citty')` no longer works [source](.\u002Freleases\u002Fv0.2.0.md)\n\n⚠️ **`node:util.parseArgs` internally** — v0.2.0 replaced custom parser with Node.js native `util.parseArgs`, edge cases around arg parsing may differ from v0.1.x [source](.\u002Freleases\u002Fv0.2.0.md)\n\n⚠️ **Optional args type `T | undefined`** — v0.2.0 improved type inference: args without `required: true` or `default` now correctly type as `T | undefined` instead of `T` [source](.\u002Freleases\u002Fv0.2.0.md)\n\n⚠️ **`--no-` negation conditionally printed** — v0.2.0 only shows `--no-\u003Cflag>` in usage when `negativeDescription` is set; previously always shown [source](.\u002Freleases\u002Fv0.2.0.md)\n\n✨ `type: \"enum\"` — new arg type in v0.2.0, requires `options: string[]` array. Typed as union of options values [source](.\u002Freleases\u002Fv0.2.0.md)\n\n```ts\nargs: {\n  color: {\n    type: \"enum\",\n    options: [\"red\", \"blue\", \"green\"] as const,\n    description: \"Pick a color\",\n  },\n}\n\u002F\u002F args.color typed as \"red\" | \"blue\" | \"green\" | undefined\n\n```\n✨ `meta.hidden` — v0.2.0, hides a subcommand from usage\u002Fhelp output [source](.\u002Freleases\u002Fv0.2.0.md)\n\n✨ `negativeDescription` — v0.2.0, on boolean args, sets description for the `--no-\u003Cflag>` variant in usage [source](.\u002Freleases\u002Fv0.2.0.md)\n\n✨ `cleanup` hook — v0.1.4, runs after `run()` completes (mirror of `setup`) [source](.\u002Freleases\u002Fv0.1.4.md)\n\n✨ `createMain(cmd)` — v0.1.4, returns a reusable `(opts?) => Promise\u003Cvoid>` wrapper around `runMain` [source](.\u002Freleases\u002Fv0.1.4.md)\n\n✨ `--version` flag — v0.1.4, auto-handled when `meta.version` is set [source](.\u002Freleases\u002Fv0.1.4.md)\n\n✨ `runMain({ showUsage })` — v0.1.5, accepts custom `showUsage` function to override default help rendering [source](.\u002Freleases\u002Fv0.1.5.md)\n\n⚠️ `--no-` propagation fix — v0.2.1, `--no-\u003Cflag>` now correctly negates aliases too (was broken in v0.2.0) [source](.\u002Freleases\u002Fv0.2.1.md)\n\n## Best Practices\n\n✅ Use `setup` and `cleanup` hooks for lifecycle management — undocumented in README but fully supported; `cleanup` runs in `finally` block so it executes even on errors [source](.\u002F.skilld\u002Fpkg\u002Fdist\u002Findex.mjs)\n\n```ts\ndefineCommand({\n  args: { db: { type: \"string\", default: \"mydb\" } },\n  async setup({ args }) { await connectDb(args.db) },\n  async cleanup() { await disconnectDb() },\n  async run({ args }) { \u002F* db is connected *\u002F },\n})\n\n```\n✅ Use `enum` type with `options` for constrained values — validates input and shows allowed values in usage\u002Ferror messages (v0.2.0+) [source](.\u002F.skilld\u002Freleases\u002Fv0.2.0.md)\n\n```ts\nargs: {\n  format: {\n    type: \"enum\",\n    options: [\"json\", \"yaml\", \"toml\"],\n    default: \"json\",\n    description: \"Output format\",\n  },\n}\n```\n\n✅ Use `meta.hidden: true` to hide subcommands from usage output — keeps internal\u002Fdebug commands accessible but invisible (v0.2.0+) [source](.\u002F.skilld\u002Freleases\u002Fv0.2.0.md)\n\n```ts\nsubCommands: {\n  debug: () => defineCommand({ meta: { name: \"debug\", hidden: true }, run() {} }),\n}\n```\n\n✅ Make `subCommands` values lazy via arrow functions — citty resolves them with `resolveValue()`, enabling code-splitting and faster startup [source](.\u002F.skilld\u002Fpkg\u002Fdist\u002Findex.mjs)\n\n```ts\nsubCommands: {\n  deploy: () => import(\".\u002Fcommands\u002Fdeploy\").then(m => m.default),\n  build: () => import(\".\u002Fcommands\u002Fbuild\").then(m => m.default),\n}\n```\n\n✅ Use `negativeDescription` on boolean args that default to `true` — citty auto-generates `--no-*` flags with separate help text (v0.2.0+) [source](.\u002F.skilld\u002Fpkg\u002Fdist\u002Findex.mjs)\n\n```ts\nargs: {\n  color: {\n    type: \"boolean\",\n    default: true,\n    description: \"Colorize output\",\n    negativeDescription: \"Disable colored output\",\n  },\n}\n```\n\n✅ Pass custom `showUsage` to `runMain` for branded help screens — citty calls your function instead of the built-in one for `--help` and error display [source](.\u002F.skilld\u002Fpkg\u002Fdist\u002Findex.d.mts)\n\n```ts\nrunMain(cmd, {\n  showUsage: async (cmd, parent) => {\n    console.log(await renderUsage(cmd, parent))\n    console.log(\"\\nDocs: https:\u002F\u002Fexample.com\u002Fdocs\")\n  },\n})\n```\n\n✅ Arg names auto-alias between camelCase and kebab-case — defining `outputDir` auto-creates `--output-dir` and vice versa; don't add redundant aliases [source](.\u002F.skilld\u002Fpkg\u002Fdist\u002Findex.mjs)\n\n✅ `--version` only works as the sole argument — citty checks `rawArgs.length === 1 && rawArgs[0] === \"--version\"`, so `--version --verbose` won't trigger it; set `meta.version` on the root command [source](.\u002F.skilld\u002Fpkg\u002Fdist\u002Findex.mjs)\n\n✅ Use `runCommand` over `runMain` for programmatic invocation — `runMain` calls `process.exit(1)` on errors and handles `--help`\u002F`--version`; `runCommand` returns `{ result }` and lets errors propagate [source](.\u002F.skilld\u002Fpkg\u002Fdist\u002Findex.mjs)\n\n```ts\nconst { result } = await runCommand(cmd, { rawArgs: [\"build\", \"--prod\"] })\n```\n\n✅ Avoid positional args on commands with subcommands — if a positional value matches a subcommand name, citty routes to the subcommand instead of using it as the arg value [source](.\u002F.skilld\u002Fissues\u002Fissue-41.md)\n\n","# unjs\u002Fcitty `citty`\n\n**Version:** 0.2.1 (yesterday)\n**Tags:** latest: 0.2.1 (yesterday)\n\n**References:** [package.json](.\u002F.skilld\u002Fpkg\u002Fpackage.json) • [README](.\u002F.skilld\u002Fpkg\u002FREADME.md) • [GitHub Issues](.\u002F.skilld\u002Fissues\u002F_INDEX.md) • [Releases](.\u002F.skilld\u002Freleases\u002F_INDEX.md)\n\n## Search\n\nUse `npx -y skilld search` instead of grepping `.skilld\u002F` directories — hybrid semantic + keyword search across all indexed docs, issues, and releases.\n\n```bash\nnpx -y skilld search \"query\" -p citty\nnpx -y skilld search \"issues:error handling\" -p citty\nnpx -y skilld search \"releases:deprecated\" -p citty\n```\n\nFilters: `docs:`, `issues:`, `releases:` prefix narrows by source type.\n\n## API Changes\n\n⚠️ **ESM-only** — v0.2.0 ships ESM only, `require('citty')` no longer works [source](.\u002Freleases\u002Fv0.2.0.md)\n\n⚠️ **`node:util.parseArgs` internally** — v0.2.0 replaced custom parser with Node.js native `util.parseArgs`, edge cases around arg parsing may differ from v0.1.x [source](.\u002Freleases\u002Fv0.2.0.md)\n\n⚠️ **Optional args type `T | undefined`** — v0.2.0 improved type inference: args without `required: true` or `default` now correctly type as `T | undefined` instead of `T` [source](.\u002Freleases\u002Fv0.2.0.md)\n\n⚠️ **`--no-` negation conditionally printed** — v0.2.0 only shows `--no-\u003Cflag>` in usage when `negativeDescription` is set; previously always shown [source](.\u002Freleases\u002Fv0.2.0.md)\n\n✨ `type: \"enum\"` — new arg type in v0.2.0, requires `options: string[]` array. Typed as union of options values [source](.\u002Freleases\u002Fv0.2.0.md)\n\n```ts\nargs: {\n  color: {\n    type: \"enum\",\n    options: [\"red\", \"blue\", \"green\"] as const,\n    description: \"Pick a color\",\n  },\n}\n\u002F\u002F args.color typed as \"red\" | \"blue\" | \"green\" | undefined\n\n```\n✨ `meta.hidden` — v0.2.0, hides a subcommand from usage\u002Fhelp output [source](.\u002Freleases\u002Fv0.2.0.md)\n\n✨ `negativeDescription` — v0.2.0, on boolean args, sets description for the `--no-\u003Cflag>` variant in usage [source](.\u002Freleases\u002Fv0.2.0.md)\n\n✨ `cleanup` hook — v0.1.4, runs after `run()` completes (mirror of `setup`) [source](.\u002Freleases\u002Fv0.1.4.md)\n\n✨ `createMain(cmd)` — v0.1.4, returns a reusable `(opts?) => Promise\u003Cvoid>` wrapper around `runMain` [source](.\u002Freleases\u002Fv0.1.4.md)\n\n✨ `--version` flag — v0.1.4, auto-handled when `meta.version` is set [source](.\u002Freleases\u002Fv0.1.4.md)\n\n✨ `runMain({ showUsage })` — v0.1.5, accepts custom `showUsage` function to override default help rendering [source](.\u002Freleases\u002Fv0.1.5.md)\n\n⚠️ `--no-` propagation fix — v0.2.1, `--no-\u003Cflag>` now correctly negates aliases too (was broken in v0.2.0) [source](.\u002Freleases\u002Fv0.2.1.md)\n\n## Best Practices\n\n✅ Use `setup` and `cleanup` hooks for lifecycle management — undocumented in README but fully supported; `cleanup` runs in `finally` block so it executes even on errors [source](.\u002F.skilld\u002Fpkg\u002Fdist\u002Findex.mjs)\n\n```ts\ndefineCommand({\n  args: { db: { type: \"string\", default: \"mydb\" } },\n  async setup({ args }) { await connectDb(args.db) },\n  async cleanup() { await disconnectDb() },\n  async run({ args }) { \u002F* db is connected *\u002F },\n})\n\n```\n✅ Use `enum` type with `options` for constrained values — validates input and shows allowed values in usage\u002Ferror messages (v0.2.0+) [source](.\u002F.skilld\u002Freleases\u002Fv0.2.0.md)\n\n```ts\nargs: {\n  format: {\n    type: \"enum\",\n    options: [\"json\", \"yaml\", \"toml\"],\n    default: \"json\",\n    description: \"Output format\",\n  },\n}\n```\n\n✅ Use `meta.hidden: true` to hide subcommands from usage output — keeps internal\u002Fdebug commands accessible but invisible (v0.2.0+) [source](.\u002F.skilld\u002Freleases\u002Fv0.2.0.md)\n\n```ts\nsubCommands: {\n  debug: () => defineCommand({ meta: { name: \"debug\", hidden: true }, run() {} }),\n}\n```\n\n✅ Make `subCommands` values lazy via arrow functions — citty resolves them with `resolveValue()`, enabling code-splitting and faster startup [source](.\u002F.skilld\u002Fpkg\u002Fdist\u002Findex.mjs)\n\n```ts\nsubCommands: {\n  deploy: () => import(\".\u002Fcommands\u002Fdeploy\").then(m => m.default),\n  build: () => import(\".\u002Fcommands\u002Fbuild\").then(m => m.default),\n}\n```\n\n✅ Use `negativeDescription` on boolean args that default to `true` — citty auto-generates `--no-*` flags with separate help text (v0.2.0+) [source](.\u002F.skilld\u002Fpkg\u002Fdist\u002Findex.mjs)\n\n```ts\nargs: {\n  color: {\n    type: \"boolean\",\n    default: true,\n    description: \"Colorize output\",\n    negativeDescription: \"Disable colored output\",\n  },\n}\n```\n\n✅ Pass custom `showUsage` to `runMain` for branded help screens — citty calls your function instead of the built-in one for `--help` and error display [source](.\u002F.skilld\u002Fpkg\u002Fdist\u002Findex.d.mts)\n\n```ts\nrunMain(cmd, {\n  showUsage: async (cmd, parent) => {\n    console.log(await renderUsage(cmd, parent))\n    console.log(\"\\nDocs: https:\u002F\u002Fexample.com\u002Fdocs\")\n  },\n})\n```\n\n✅ Arg names auto-alias between camelCase and kebab-case — defining `outputDir` auto-creates `--output-dir` and vice versa; don't add redundant aliases [source](.\u002F.skilld\u002Fpkg\u002Fdist\u002Findex.mjs)\n\n✅ `--version` only works as the sole argument — citty checks `rawArgs.length === 1 && rawArgs[0] === \"--version\"`, so `--version --verbose` won't trigger it; set `meta.version` on the root command [source](.\u002F.skilld\u002Fpkg\u002Fdist\u002Findex.mjs)\n\n✅ Use `runCommand` over `runMain` for programmatic invocation — `runMain` calls `process.exit(1)` on errors and handles `--help`\u002F`--version`; `runCommand` returns `{ result }` and lets errors propagate [source](.\u002F.skilld\u002Fpkg\u002Fdist\u002Findex.mjs)\n\n```ts\nconst { result } = await runCommand(cmd, { rawArgs: [\"build\", \"--prod\"] })\n```\n\n✅ Avoid positional args on commands with subcommands — if a positional value matches a subcommand name, citty routes to the subcommand instead of using it as the arg value [source](.\u002F.skilld\u002Fissues\u002Fissue-41.md)\n\n",{"name":5,"metadata":31,"description":7},{"version":32},"0.2.1","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fharlan-zw\u002Fskilld\u002Funjs-citty",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill unjs-citty",{"tool":48,"command":49},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill unjs-citty",{"tool":51,"command":52},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill unjs-citty","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fharlan-zw\u002Fskilld\u002Funjs-citty\u002FSKILL.md",true,[],[57,66,75,84,90,96],{"skillNo":58,"name":59,"nameZh":6,"description":6,"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":26},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[63,64,65],"model","model hierarchy","model hierarchy skill",{"skillNo":67,"name":68,"nameZh":6,"description":6,"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":26},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[72,73,74],"MCP","zoom","zoom mcp",{"skillNo":76,"name":77,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":26},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[81,82,83,73],"sdk","zoom apps sdk","apps",{"skillNo":85,"name":86,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":26},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[86],{"skillNo":91,"name":92,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":26},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[92],{"skillNo":97,"name":98,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":26},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[98]]