[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6X0WSWBSN13K16B3E862FKQ":3,"skill-same:01M6X0WSWBSN13K16B3E862FKQ":53},{"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":22,"linkOnly":23,"markdownContent":24,"markdownBody":25,"frontMatter":26,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":34,"ownerHtmlUrl":35,"ownerBlogUrl":36,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M6X0WSWBSN13K16B3E862FKQ","cli-wiring",null,"Checklist for wiring a new Squad CLI command: route it in cli-entry.ts, add help text, and test that it is reachable","github\u002Fsquad","github","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9919?v=4","01M6AC83DS133TPXFSP1DHNCC6","GitHub","01M6X0MZ6B0WYMMDPK3Q61KER6",3391,"MIT","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002F.squad-templates\u002Fskills\u002Fcli-wiring\u002FSKILL.md",[],[19,20,21],"cli","cli wiring","wiring","2026-11-10 10:12:30",false,"---\nname: \"cli-wiring\"\ndescription: \"Checklist for wiring a new Squad CLI command: route it in cli-entry.ts, add help text, and test that it is reachable\"\ndomain: \"cli\"\nconfidence: \"high\"\nsource: \"team-decision\"\n---\n\n# Skill: CLI Command Wiring\n\n**Bug class:** Commands implemented in `packages\u002Fsquad-cli\u002Fsrc\u002Fcli\u002Fcommands\u002F` but never routed in `cli-entry.ts`.\n\n## Checklist — Adding a New CLI Command\n\n1. **Create command file** in `packages\u002Fsquad-cli\u002Fsrc\u002Fcli\u002Fcommands\u002F\u003Cname>.ts`\n   - Export a `run\u003CName>(cwd, options)` async function (or class with static methods for utility modules)\n\n2. **Add routing block** in `packages\u002Fsquad-cli\u002Fsrc\u002Fcli-entry.ts` inside `main()`:\n   ```ts\n   if (cmd === '\u003Cname>') {\n     const { run\u003CName> } = await import('.\u002Fcli\u002Fcommands\u002F\u003Cname>.js');\n     \u002F\u002F parse args, call function\n     await run\u003CName>(process.cwd(), options);\n     return;\n   }\n   ```\n\n3. **Add help text** in the help section of `cli-entry.ts` (search for `Commands:`):\n   ```ts\n   console.log(`  ${BOLD}\u003Cname>${RESET}     \u003Cdescription>`);\n   console.log(`             Usage: \u003Cname> [flags]`);\n   ```\n\n4. **Verify both exist** — the recurring bug is doing step 1 but missing steps 2-3.\n\n## Wiring Patterns by Command Type\n\n| Type | Example | How to wire |\n|------|---------|-------------|\n| Standard command | `export.ts`, `build.ts` | `run*()` function, parse flags from `args` |\n| Placeholder command | `loop`, `cast` (alias: `hire`) | Inline in cli-entry.ts, prints pending message |\n| Utility\u002Fcheck module | `rc-tunnel.ts`, `copilot-bridge.ts` | Wire as diagnostic check (e.g., `isDevtunnelAvailable()`) |\n| Subcommand of another | `init-remote.ts` | Already used inside parent + standalone alias |\n\n## Common Import Pattern\n\n```ts\nimport { BOLD, RESET, DIM, RED, GREEN, YELLOW } from '.\u002Fcli\u002Fcore\u002Foutput.js';\n```\n\nUse dynamic `await import()` for command modules to keep startup fast (lazy loading).\n\n## History\n\n- **#237 \u002F PR #244:** 4 commands wired (rc, copilot-bridge, init-remote, rc-tunnel). aspire, link, loop, cast (née hire) were already present.\n","# Skill: CLI Command Wiring\n\n**Bug class:** Commands implemented in `packages\u002Fsquad-cli\u002Fsrc\u002Fcli\u002Fcommands\u002F` but never routed in `cli-entry.ts`.\n\n## Checklist — Adding a New CLI Command\n\n1. **Create command file** in `packages\u002Fsquad-cli\u002Fsrc\u002Fcli\u002Fcommands\u002F\u003Cname>.ts`\n   - Export a `run\u003CName>(cwd, options)` async function (or class with static methods for utility modules)\n\n2. **Add routing block** in `packages\u002Fsquad-cli\u002Fsrc\u002Fcli-entry.ts` inside `main()`:\n   ```ts\n   if (cmd === '\u003Cname>') {\n     const { run\u003CName> } = await import('.\u002Fcli\u002Fcommands\u002F\u003Cname>.js');\n     \u002F\u002F parse args, call function\n     await run\u003CName>(process.cwd(), options);\n     return;\n   }\n   ```\n\n3. **Add help text** in the help section of `cli-entry.ts` (search for `Commands:`):\n   ```ts\n   console.log(`  ${BOLD}\u003Cname>${RESET}     \u003Cdescription>`);\n   console.log(`             Usage: \u003Cname> [flags]`);\n   ```\n\n4. **Verify both exist** — the recurring bug is doing step 1 but missing steps 2-3.\n\n## Wiring Patterns by Command Type\n\n| Type | Example | How to wire |\n|------|---------|-------------|\n| Standard command | `export.ts`, `build.ts` | `run*()` function, parse flags from `args` |\n| Placeholder command | `loop`, `cast` (alias: `hire`) | Inline in cli-entry.ts, prints pending message |\n| Utility\u002Fcheck module | `rc-tunnel.ts`, `copilot-bridge.ts` | Wire as diagnostic check (e.g., `isDevtunnelAvailable()`) |\n| Subcommand of another | `init-remote.ts` | Already used inside parent + standalone alias |\n\n## Common Import Pattern\n\n```ts\nimport { BOLD, RESET, DIM, RED, GREEN, YELLOW } from '.\u002Fcli\u002Fcore\u002Foutput.js';\n```\n\nUse dynamic `await import()` for command modules to keep startup fast (lazy loading).\n\n## History\n\n- **#237 \u002F PR #244:** 4 commands wired (rc, copilot-bridge, init-remote, rc-tunnel). aspire, link, loop, cast (née hire) were already present.\n",{"name":5,"domain":19,"source":27,"confidence":28,"description":7},"team-decision","high","dev","f229547fbcf4ca60c4524c5a69ef26d1924b7023",".squad-templates\u002Fskills\u002Fcli-wiring",520,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad","https:\u002F\u002Fgithub.github.io\u002Fsquad\u002F","https:\u002F\u002Fgithub.com\u002Fgithub","https:\u002F\u002Fgithub.com\u002Fabout","How people build software.","2026-11-15 02:13:59",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add github\u002Fsquad --skill cli-wiring",{"tool":45,"command":46},"bunx","bunx skills add github\u002Fsquad --skill cli-wiring",{"tool":48,"command":49},"pnpm","pnpm dlx skills add github\u002Fsquad --skill cli-wiring","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002F.squad-templates\u002Fskills\u002Fcli-wiring\u002FSKILL.md",true,[],[54,62,69,76,83,90],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":61},"01M76752CVNE7K6NWD59CRAYNJ","windows-compatibility","Cross-platform path handling and command patterns","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Fplugins\u002Fsquad\u002Fskills\u002Fwindows-compatibility\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":61},"01M767508W8A4G83NX1FKEW5VN","versioning-policy","SemVer rules for Squad's stable, preview, insider, and local package versions","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Fplugins\u002Fsquad\u002Fskills\u002Fversioning-policy\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"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":61},"01M7674X5JJKNJ74B3SS8PGXG2","tiered-memory","Three-tier agent memory model (hot\u002Fcold\u002Fwiki) for context reduction per spawn","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Fplugins\u002Fsquad\u002Fskills\u002Ftiered-memory\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":61},"01M7674V3S9H03A76H75M1KSAF","test-discipline","Design assertions that prove the actual contract and fail on realistic regressions","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Fplugins\u002Fsquad\u002Fskills\u002Ftest-discipline\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"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":61},"01M7674QB8CA61RNDX2Z0NAK71","squad","Squad's command catalog and interactive menu. Invoke via \u002Fsquad (slash command) or natural language (\"squad commands\", \"what can squad do\", \"show me squad options\"). Presents categorized operations (Install & Upgrade, Team Management, Issues & PRs, Plugins & Skills, Model & Cost, Sessions & State) as an interactive picker. Routes to the right squad CLI command or the Squad coordinator agent.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Fplugins\u002Fsquad\u002Fskills\u002Fsquad\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":61},"01M7674KTQ632N30HQB1TP7TXH","squad-version-check","Internals of how @bradygaster\u002Fsquad-cli stamps its version, how `squad upgrade` works (what it preserves vs overwrites), and how to probe the npm registry for the latest version from a coordinator prompt.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fsquad\u002Fblob\u002Fdev\u002Fplugins\u002Fsquad\u002Fskills\u002Fsquad-version-check\u002FSKILL.md",[],[]]