[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ADAHEHGEVFJEKXAJQF9AX8":3,"skill-same:01M6ADAHEHGEVFJEKXAJQF9AX8":70},{"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":23,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":45,"ownerHtmlUrl":46,"ownerBlogUrl":47,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M6ADAHEHGEVFJEKXAJQF9AX8","model-selection",null,"Determines which LLM model to use for each agent spawn","github\u002Fgh-aw","github","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9919?v=4","01M6AC83DS133TPXFSP1DHNCC6","GitHub","01M6AD3VCZ4WKQSFSRTPN7N9DN",5636,"MIT","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fmodel-selection\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32],"model selection","model","selection","orchestration","spawn","use","which","for","agent spawn","2026-11-10 10:12:30",false,"---\nname: \"model-selection\"\ndescription: \"Determines which LLM model to use for each agent spawn\"\ndomain: \"orchestration\"\nconfidence: \"medium\"\nsource: \"extracted\"\n---\n\n# Model Selection\n\n> Determines which LLM model to use for each agent spawn.\n\n## SCOPE\n\n✅ THIS SKILL PRODUCES:\n- A resolved `model` parameter for every `task` tool call\n- Persistent model preferences in `.squad\u002Fconfig.json`\n- Spawn acknowledgments that include the resolved model\n\n❌ THIS SKILL DOES NOT PRODUCE:\n- Code, tests, or documentation\n- Model performance benchmarks\n- Cost reports or billing artifacts\n\n## Context\n\nSquad supports 18+ models across three tiers (premium, standard, fast). The coordinator must select the right model for each agent spawn. Users can set persistent preferences that survive across sessions.\n\n## 5-Layer Model Resolution Hierarchy\n\nResolution is **first-match-wins** — the highest layer with a value wins.\n\n| Layer | Name | Source | Persistence |\n|-------|------|--------|-------------|\n| **0a** | Per-Agent Config | `.squad\u002Fconfig.json` → `agentModelOverrides.{name}` | Persistent (survives sessions) |\n| **0b** | Global Config | `.squad\u002Fconfig.json` → `defaultModel` | Persistent (survives sessions) |\n| **1** | Session Directive | User said \"use X\" in current session | Session-only |\n| **2** | Charter Preference | Agent's `charter.md` → `## Model` section | Persistent (in charter) |\n| **3** | Task-Aware Auto | Code → sonnet, docs → haiku, visual → opus | Computed per-spawn |\n| **4** | Default | `claude-haiku-4.5` | Hardcoded fallback |\n\n**Key principle:** Layer 0 (persistent config) beats everything. If the user said \"always use opus\" and it was saved to config.json, every agent gets opus regardless of role or task type. This is intentional — the user explicitly chose quality over cost.\n\n## AGENT WORKFLOW\n\n### On Session Start\n\n1. READ `.squad\u002Fconfig.json`\n2. CHECK for `defaultModel` field — if present, this is the Layer 0 override for all spawns\n3. CHECK for `agentModelOverrides` field — if present, these are per-agent Layer 0a overrides\n4. STORE both values in session context for the duration\n\n### On Every Agent Spawn\n\n1. CHECK Layer 0a: Is there an `agentModelOverrides.{agentName}` in config.json? → Use it.\n2. CHECK Layer 0b: Is there a `defaultModel` in config.json? → Use it.\n3. CHECK Layer 1: Did the user give a session directive? → Use it.\n4. CHECK Layer 2: Does the agent's charter have a `## Model` section? → Use it.\n5. CHECK Layer 3: Determine task type:\n   - Code (implementation, tests, refactoring, bug fixes) → `claude-sonnet-4.6`\n   - Prompts, agent designs → `claude-sonnet-4.6`\n   - Visual\u002Fdesign with image analysis → `claude-opus-4.8`\n   - Non-code (docs, planning, triage, changelogs) → `claude-haiku-4.5`\n6. FALLBACK Layer 4: `claude-haiku-4.5`\n7. INCLUDE model in spawn acknowledgment: `? {Name} ({resolved_model}) — {task}`\n\n### When User Sets a Preference\n\n**Trigger phrases:** \"always use X\", \"use X for everything\", \"switch to X\", \"default to X\"\n\n1. VALIDATE the model ID against the catalog (18+ models)\n2. WRITE `defaultModel` to `.squad\u002Fconfig.json` (merge, don't overwrite)\n3. ACKNOWLEDGE: `✅ Model preference saved: {model} — all future sessions will use this until changed.`\n\n**Per-agent trigger:** \"use X for {agent}\"\n\n1. VALIDATE model ID\n2. WRITE to `agentModelOverrides.{agent}` in `.squad\u002Fconfig.json`\n3. ACKNOWLEDGE: `✅ {Agent} will always use {model} — saved to config.`\n\n### When User Clears a Preference\n\n**Trigger phrases:** \"switch back to automatic\", \"clear model preference\", \"use default models\"\n\n1. REMOVE `defaultModel` from `.squad\u002Fconfig.json`\n2. ACKNOWLEDGE: `✅ Model preference cleared — returning to automatic selection.`\n\n### STOP\n\nAfter resolving the model and including it in the spawn template, this skill is done. Do NOT:\n- Generate model comparison reports\n- Run benchmarks or speed tests\n- Create new config files (only modify existing `.squad\u002Fconfig.json`)\n- Change the model after spawn (fallback chains handle runtime failures)\n\n## Config Schema\n\n`.squad\u002Fconfig.json` model-related fields:\n\n```json\n{\n  \"version\": 1,\n  \"defaultModel\": \"claude-opus-4.6\",\n  \"agentModelOverrides\": {\n    \"fenster\": \"claude-sonnet-4.6\",\n    \"mcmanus\": \"claude-haiku-4.5\"\n  }\n}\n```\n\n- `defaultModel` — applies to ALL agents unless overridden by `agentModelOverrides`\n- `agentModelOverrides` — per-agent overrides that take priority over `defaultModel`\n- Both fields are optional. When absent, Layers 1-4 apply normally.\n\n## Fallback Chains\n\nIf a model is unavailable (rate limit, plan restriction), retry within the same tier:\n\n```\nPremium:  claude-opus-4.8 → claude-opus-4.7 → claude-opus-4.6 → claude-sonnet-4.6 → (omit model param)\nStandard: claude-sonnet-5 → claude-sonnet-4.6 → gpt-5.6-sol → gpt-5.6-terra → gpt-5.6-luna → gpt-5.4 → gpt-5.3-codex → claude-sonnet-4.5 → gemini-2.5-pro → (omit model param)\nFast:     claude-haiku-4.5 → gpt-5.4-mini → gpt-5-mini → (omit model param)\n```\n\n**Never fall UP in tier.** A fast task won't land on a premium model via fallback.\n","# Model Selection\n\n> Determines which LLM model to use for each agent spawn.\n\n## SCOPE\n\n✅ THIS SKILL PRODUCES:\n- A resolved `model` parameter for every `task` tool call\n- Persistent model preferences in `.squad\u002Fconfig.json`\n- Spawn acknowledgments that include the resolved model\n\n❌ THIS SKILL DOES NOT PRODUCE:\n- Code, tests, or documentation\n- Model performance benchmarks\n- Cost reports or billing artifacts\n\n## Context\n\nSquad supports 18+ models across three tiers (premium, standard, fast). The coordinator must select the right model for each agent spawn. Users can set persistent preferences that survive across sessions.\n\n## 5-Layer Model Resolution Hierarchy\n\nResolution is **first-match-wins** — the highest layer with a value wins.\n\n| Layer | Name | Source | Persistence |\n|-------|------|--------|-------------|\n| **0a** | Per-Agent Config | `.squad\u002Fconfig.json` → `agentModelOverrides.{name}` | Persistent (survives sessions) |\n| **0b** | Global Config | `.squad\u002Fconfig.json` → `defaultModel` | Persistent (survives sessions) |\n| **1** | Session Directive | User said \"use X\" in current session | Session-only |\n| **2** | Charter Preference | Agent's `charter.md` → `## Model` section | Persistent (in charter) |\n| **3** | Task-Aware Auto | Code → sonnet, docs → haiku, visual → opus | Computed per-spawn |\n| **4** | Default | `claude-haiku-4.5` | Hardcoded fallback |\n\n**Key principle:** Layer 0 (persistent config) beats everything. If the user said \"always use opus\" and it was saved to config.json, every agent gets opus regardless of role or task type. This is intentional — the user explicitly chose quality over cost.\n\n## AGENT WORKFLOW\n\n### On Session Start\n\n1. READ `.squad\u002Fconfig.json`\n2. CHECK for `defaultModel` field — if present, this is the Layer 0 override for all spawns\n3. CHECK for `agentModelOverrides` field — if present, these are per-agent Layer 0a overrides\n4. STORE both values in session context for the duration\n\n### On Every Agent Spawn\n\n1. CHECK Layer 0a: Is there an `agentModelOverrides.{agentName}` in config.json? → Use it.\n2. CHECK Layer 0b: Is there a `defaultModel` in config.json? → Use it.\n3. CHECK Layer 1: Did the user give a session directive? → Use it.\n4. CHECK Layer 2: Does the agent's charter have a `## Model` section? → Use it.\n5. CHECK Layer 3: Determine task type:\n   - Code (implementation, tests, refactoring, bug fixes) → `claude-sonnet-4.6`\n   - Prompts, agent designs → `claude-sonnet-4.6`\n   - Visual\u002Fdesign with image analysis → `claude-opus-4.8`\n   - Non-code (docs, planning, triage, changelogs) → `claude-haiku-4.5`\n6. FALLBACK Layer 4: `claude-haiku-4.5`\n7. INCLUDE model in spawn acknowledgment: `? {Name} ({resolved_model}) — {task}`\n\n### When User Sets a Preference\n\n**Trigger phrases:** \"always use X\", \"use X for everything\", \"switch to X\", \"default to X\"\n\n1. VALIDATE the model ID against the catalog (18+ models)\n2. WRITE `defaultModel` to `.squad\u002Fconfig.json` (merge, don't overwrite)\n3. ACKNOWLEDGE: `✅ Model preference saved: {model} — all future sessions will use this until changed.`\n\n**Per-agent trigger:** \"use X for {agent}\"\n\n1. VALIDATE model ID\n2. WRITE to `agentModelOverrides.{agent}` in `.squad\u002Fconfig.json`\n3. ACKNOWLEDGE: `✅ {Agent} will always use {model} — saved to config.`\n\n### When User Clears a Preference\n\n**Trigger phrases:** \"switch back to automatic\", \"clear model preference\", \"use default models\"\n\n1. REMOVE `defaultModel` from `.squad\u002Fconfig.json`\n2. ACKNOWLEDGE: `✅ Model preference cleared — returning to automatic selection.`\n\n### STOP\n\nAfter resolving the model and including it in the spawn template, this skill is done. Do NOT:\n- Generate model comparison reports\n- Run benchmarks or speed tests\n- Create new config files (only modify existing `.squad\u002Fconfig.json`)\n- Change the model after spawn (fallback chains handle runtime failures)\n\n## Config Schema\n\n`.squad\u002Fconfig.json` model-related fields:\n\n```json\n{\n  \"version\": 1,\n  \"defaultModel\": \"claude-opus-4.6\",\n  \"agentModelOverrides\": {\n    \"fenster\": \"claude-sonnet-4.6\",\n    \"mcmanus\": \"claude-haiku-4.5\"\n  }\n}\n```\n\n- `defaultModel` — applies to ALL agents unless overridden by `agentModelOverrides`\n- `agentModelOverrides` — per-agent overrides that take priority over `defaultModel`\n- Both fields are optional. When absent, Layers 1-4 apply normally.\n\n## Fallback Chains\n\nIf a model is unavailable (rate limit, plan restriction), retry within the same tier:\n\n```\nPremium:  claude-opus-4.8 → claude-opus-4.7 → claude-opus-4.6 → claude-sonnet-4.6 → (omit model param)\nStandard: claude-sonnet-5 → claude-sonnet-4.6 → gpt-5.6-sol → gpt-5.6-terra → gpt-5.6-luna → gpt-5.4 → gpt-5.3-codex → claude-sonnet-4.5 → gemini-2.5-pro → (omit model param)\nFast:     claude-haiku-4.5 → gpt-5.4-mini → gpt-5-mini → (omit model param)\n```\n\n**Never fall UP in tier.** A fast task won't land on a premium model via fallback.\n",{"name":5,"domain":27,"source":38,"confidence":39,"description":7},"extracted","medium","main","8541229759617347888641eba917d3b0ad66a984",".squad\u002Ftemplates\u002Fskills\u002Fmodel-selection",626,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw","https:\u002F\u002Fgh.io\u002Fgh-aw","https:\u002F\u002Fgithub.com\u002Fgithub","https:\u002F\u002Fgithub.com\u002Fabout","How people build software.","2026-11-15 06:45:15",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add github\u002Fgh-aw --skill model-selection",{"tool":56,"command":57},"bunx","bunx skills add github\u002Fgh-aw --skill model-selection",{"tool":59,"command":60},"pnpm","pnpm dlx skills add github\u002Fgh-aw --skill model-selection","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fmodel-selection\u002FSKILL.md",true,[64],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"routing-eval.jsonl","OTHER","其他",652,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fgbrain-concept-synthesis\u002Frouting-eval.jsonl",[71,79,87,111,129,154],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":78},"01M7DQYVZ9W9DDXKQ9452SNP8J","cracktro","Edit, preview, and verify the standalone interactive talk deck in docs\u002Fpublic\u002Fcracktro (slides, SVG diagrams, transitions, WebAudio sound).","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fcracktro\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":86},"01M7612HQ4378TK8QZ5HPAF4KR","create-connector","Create or extend a declaration-only third-party connector, with narrow reads, separate safe outputs, optional protected triggers, and offline conformance evidence.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fcreate-connector\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":97,"publishedAt":33},"01M6ADC942STTXHFV410J4DH0X","GitHub Agentic Workflows","GitHub Agentic Workflows (`gh-aw`) is a GitHub CLI extension for writing Agentic Workflows in markdown and compiling them to GitHub Actions.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002FSKILL.md",[93,96],{"categoryNo":94,"categoryName":95,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000011","运维与部署",{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[9,98,99,100,101,102,103,104,105,106,31,107,108,109,110],"github agentic workflows","agentic workflows","workflows","agentic","extension","markdown","github cli","cli","gh","compiling","writing","github actions","actions",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":33},"01M6ADC6ZXSA46N9XD6VNAP1MS","windows-compatibility","Cross-platform path handling and command patterns","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fwindows-compatibility\u002FSKILL.md",[],[118,119,120,121,122,123,124,125,126,127,128],"windows","windows compatibility","compatibility","command","git","bugs","platform","high","patterns","cross-platform","path",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":33},"01M6ADC44957SVQF96R5YY247P","versioning-policy","Semver versioning rules for Squad SDK and CLI — prevents prerelease version incidents","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fversioning-policy\u002FSKILL.md",[],[136,137,138,139,140,105,141,142,143,144,145,146,147,148,31,149,150,151,152,153],"versioning","policy","versioning policy","gate","implementation","workspace","pr","sdk","release","ci","npm","semver","squad","incident","incidents","Rules","version","resolution",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":164,"publishedAt":33},"01M6ADC1PHMEAEVR87F8PDR89X","tiered-memory","Three-tier agent memory model (hot\u002Fcold\u002Fwiki) for context reduction per spawn","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Ftiered-memory\u002FSKILL.md",[160,163],{"categoryNo":161,"categoryName":162,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[165,166,167,168,169,170,171,25,172,28,173,174,175,31,176,177],"tiered memory","memory","performance","design","agent memory","proposal","cold","wiki","memory-management","context","three","runtime","management"]