[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78GT6TPHEWRS56XZCCZWANE":3,"skill-same:01M78GT6TPHEWRS56XZCCZWANE":45},{"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":6,"updatedAt":30,"install":31,"resources":44},"01M78GT6TPHEWRS56XZCCZWANE","use-cli",null,"only-if-asked","xmkqv\u002Fmoney-tree","xmkqv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128587443?v=4","01M78GRH6EN49WZJ9HDHRRX4BZ","Adam M Wilson","01M78GRH7F85WS46E088A3V7C3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fxmkqv\u002Fmoney-tree\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fuse-cli\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: use-cli\ndescription: only-if-asked\n---\n# cli\n\n## rules\n\n- idiomatic typed typescript\n- skills.guides(spec, code)\n- completions install with an explicit shell, not autodetection\n- argument types derive from the parser, not a second declaration\n- validation lives in the grammar, not the handler\n- a destructive command takes a required flag\n- environment reads are lazy so completion runs without them\n\n```text\n{name}\u002F\n    main.ts\n    package.json\n    tsconfig.json\n    …\n```\n\n```ts\nimport { object, or } from '@optique\u002Fcore\u002Fconstructs'\nimport { message } from '@optique\u002Fcore\u002Fmessage'\nimport { command, constant } from '@optique\u002Fcore\u002Fprimitives'\nimport { run } from '@optique\u002Frun'\n\nconst cli = or(\n  command(\n    '{noun}',\n    command('{verb}', object({ action: constant('{noun}.{verb}') }), {\n      brief: message`{Verb} the {noun}.`\n    }),\n    { brief: message`The {noun}.` }\n  )\n)\n\nconst argv = Bun.argv.slice(2)\n\nconst cmd = run(cli, {\n  args: argv.length ? argv : ['--help'],\n  programName: '{name}',\n  help: 'both',\n  completion: { command: true }\n})\n\nswitch (cmd.action) {\n  case '{noun}.{verb}':\n    await {verb}{Noun}()\n    break\n}\n```\n\n```md:form:clispec\n{noun} {verb}(…) → {return}\n{another-noun} {verb}(…) → {return}\n…\n```\n\nuse-cli(name, install?, shell?)\n  log clispec`{infer(context or AskUserQuestion())}`\n  bun init {name} && cd {name} && bun add @optique\u002Fcore @optique\u002Frun\n  implement the design\n  if install, bun link\n  if shell, {name} completion {shell} > {dir on fpath}\u002F_{name}\n","# cli\n\n## rules\n\n- idiomatic typed typescript\n- skills.guides(spec, code)\n- completions install with an explicit shell, not autodetection\n- argument types derive from the parser, not a second declaration\n- validation lives in the grammar, not the handler\n- a destructive command takes a required flag\n- environment reads are lazy so completion runs without them\n\n```text\n{name}\u002F\n    main.ts\n    package.json\n    tsconfig.json\n    …\n```\n\n```ts\nimport { object, or } from '@optique\u002Fcore\u002Fconstructs'\nimport { message } from '@optique\u002Fcore\u002Fmessage'\nimport { command, constant } from '@optique\u002Fcore\u002Fprimitives'\nimport { run } from '@optique\u002Frun'\n\nconst cli = or(\n  command(\n    '{noun}',\n    command('{verb}', object({ action: constant('{noun}.{verb}') }), {\n      brief: message`{Verb} the {noun}.`\n    }),\n    { brief: message`The {noun}.` }\n  )\n)\n\nconst argv = Bun.argv.slice(2)\n\nconst cmd = run(cli, {\n  args: argv.length ? argv : ['--help'],\n  programName: '{name}',\n  help: 'both',\n  completion: { command: true }\n})\n\nswitch (cmd.action) {\n  case '{noun}.{verb}':\n    await {verb}{Noun}()\n    break\n}\n```\n\n```md:form:clispec\n{noun} {verb}(…) → {return}\n{another-noun} {verb}(…) → {return}\n…\n```\n\nuse-cli(name, install?, shell?)\n  log clispec`{infer(context or AskUserQuestion())}`\n  bun init {name} && cd {name} && bun add @optique\u002Fcore @optique\u002Frun\n  implement the design\n  if install, bun link\n  if shell, {name} completion {shell} > {dir on fpath}\u002F_{name}\n",{"name":5,"description":7},"main","37948d6dfd82e249d48d438951b9455d07aaa525",".claude\u002Fskills\u002Fuse-cli",0,"https:\u002F\u002Fgithub.com\u002Fxmkqv\u002Fmoney-tree","https:\u002F\u002Fgithub.com\u002Fxmkqv","2026-11-09 02:48:26",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add xmkqv\u002Fmoney-tree --skill use-cli",{"tool":37,"command":38},"bunx","bunx skills add xmkqv\u002Fmoney-tree --skill use-cli",{"tool":40,"command":41},"pnpm","pnpm dlx skills add xmkqv\u002Fmoney-tree --skill use-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxmkqv\u002Fmoney-tree\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fuse-cli\u002FSKILL.md",true,[],[46,52,58,64,70,76],{"skillNo":47,"name":48,"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":49,"categories":50,"keywords":51,"publishedAt":19},"01M78GTDKY70YF1SM5R68NHTBR","util","https:\u002F\u002Fgithub.com\u002Fxmkqv\u002Fmoney-tree\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Futil\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"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":55,"categories":56,"keywords":57,"publishedAt":19},"01M78GTB9KXMSF9N3SQ0V2ME2K","use-docs","https:\u002F\u002Fgithub.com\u002Fxmkqv\u002Fmoney-tree\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fuse-docs\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"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":61,"categories":62,"keywords":63,"publishedAt":19},"01M78GT9FP67P1MY0Q6WMDKMD2","use-command","https:\u002F\u002Fgithub.com\u002Fxmkqv\u002Fmoney-tree\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fuse-command\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"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":67,"categories":68,"keywords":69,"publishedAt":19},"01M78GT5BFTG07VV5GPS6WF759","use-checklist","https:\u002F\u002Fgithub.com\u002Fxmkqv\u002Fmoney-tree\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fuse-checklist\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"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":73,"categories":74,"keywords":75,"publishedAt":19},"01M78GT47BMEF6QHD5ASMW53P7","solo","https:\u002F\u002Fgithub.com\u002Fxmkqv\u002Fmoney-tree\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsolo\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"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":79,"categories":80,"keywords":81,"publishedAt":19},"01M78GT2WY7TYXGXE338FTQ2FG","search","https:\u002F\u002Fgithub.com\u002Fxmkqv\u002Fmoney-tree\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsearch\u002FSKILL.md",[],[]]