[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6G1KCN0MSXXXACY0FFYVS6R":3,"skill-same:01M6G1KCN0MSXXXACY0FFYVS6R":60},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":28,"linkOnly":29,"markdownContent":30,"markdownBody":31,"frontMatter":32,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":39,"install":40,"resources":53},"01M6G1KCN0MSXXXACY0FFYVS6R","agent-router",null,"Route prompts to the optimal AI model based on task type, complexity, and cost constraints.","kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsa9saq\u002Fagent-router\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27],"router","agent router","constraints","model","prompts","complexity","cost","task","route","type","2026-11-10 10:12:30",false,"---\ndescription: Route prompts to the optimal AI model based on task type, complexity, and cost constraints.\n---\n\n# Agent Router\n\nRoute prompts to the optimal AI model based on task characteristics.\n\n## What This Does\n\nAnalyzes a task\u002Fprompt and recommends the best model, considering task type, complexity, cost, speed, and context length.\n\n## Model Routing Table\n\n| Task Type | Complexity | Recommended | Fallback |\n|-----------|-----------|-------------|----------|\n| Coding (generation) | High | claude-opus \u002F gpt-5 | claude-sonnet |\n| Coding (simple edits) | Low | claude-sonnet \u002F gpt-4.1 | claude-haiku |\n| Creative writing | High | claude-opus | gpt-5 |\n| Summarization | Low | claude-haiku \u002F gpt-4.1-mini | gemini-flash |\n| Data analysis | Medium | claude-sonnet | gpt-4.1 |\n| Vision\u002FImage | Any | claude-sonnet \u002F gpt-4.1 | gemini-pro |\n| Translation | Low | gpt-4.1-mini | claude-haiku |\n| Long context (>100k) | Any | gemini-pro | claude-sonnet |\n| Real-time\u002Ffast | Any | claude-haiku \u002F gpt-4.1-mini | gemini-flash |\n| Math\u002Freasoning | High | claude-opus \u002F o3 | deepseek-r1 |\n\n## Instructions\n\n1. **Analyze the task**: Classify by type, complexity (low\u002Fmedium\u002Fhigh), and constraints (cost, speed, context length).\n2. **Check user preferences**: Factor in model preferences, cost limits, or subscription tiers.\n3. **Route decision**: Using the table above, recommend primary + fallback model.\n4. **For Codex CLI routing** (local dev):\n   - Heavy coding → `codex exec` (GPT-5.3-Codex, free via subscription)\n   - Quick questions → current model\n   - Cost-sensitive batch work → claude-haiku or gpt-4.1-mini\n5. **Output format**:\n   ```\n   ? Route: \u003Ctask_type> | Complexity: \u003Clevel>\n   ✅ Recommended: \u003Cmodel>\n   ? Fallback: \u003Cmodel>\n   ? Est. cost: \u003Clow\u002Fmedium\u002Fhigh>\n   ? Reason: \u003Cwhy>\n   ```\n6. **Batch routing**: For multiple tasks, create a routing plan table showing which model handles each task.\n\n## Edge Cases\n\n- **Ambiguous tasks**: Default to claude-sonnet as the best general-purpose choice\n- **Multi-modal tasks** (text + image): Ensure the chosen model supports vision\n- **Context overflow**: If input exceeds model's context window, suggest chunking or switching to a larger-context model\n- **Rate limits**: If primary model is rate-limited, auto-route to fallback\n\n## Requirements\n\n- No API keys or dependencies — this is a decision framework, not an API\n- Update routing table as model pricing\u002Fcapabilities change\n","# Agent Router\n\nRoute prompts to the optimal AI model based on task characteristics.\n\n## What This Does\n\nAnalyzes a task\u002Fprompt and recommends the best model, considering task type, complexity, cost, speed, and context length.\n\n## Model Routing Table\n\n| Task Type | Complexity | Recommended | Fallback |\n|-----------|-----------|-------------|----------|\n| Coding (generation) | High | claude-opus \u002F gpt-5 | claude-sonnet |\n| Coding (simple edits) | Low | claude-sonnet \u002F gpt-4.1 | claude-haiku |\n| Creative writing | High | claude-opus | gpt-5 |\n| Summarization | Low | claude-haiku \u002F gpt-4.1-mini | gemini-flash |\n| Data analysis | Medium | claude-sonnet | gpt-4.1 |\n| Vision\u002FImage | Any | claude-sonnet \u002F gpt-4.1 | gemini-pro |\n| Translation | Low | gpt-4.1-mini | claude-haiku |\n| Long context (>100k) | Any | gemini-pro | claude-sonnet |\n| Real-time\u002Ffast | Any | claude-haiku \u002F gpt-4.1-mini | gemini-flash |\n| Math\u002Freasoning | High | claude-opus \u002F o3 | deepseek-r1 |\n\n## Instructions\n\n1. **Analyze the task**: Classify by type, complexity (low\u002Fmedium\u002Fhigh), and constraints (cost, speed, context length).\n2. **Check user preferences**: Factor in model preferences, cost limits, or subscription tiers.\n3. **Route decision**: Using the table above, recommend primary + fallback model.\n4. **For Codex CLI routing** (local dev):\n   - Heavy coding → `codex exec` (GPT-5.3-Codex, free via subscription)\n   - Quick questions → current model\n   - Cost-sensitive batch work → claude-haiku or gpt-4.1-mini\n5. **Output format**:\n   ```\n   ? Route: \u003Ctask_type> | Complexity: \u003Clevel>\n   ✅ Recommended: \u003Cmodel>\n   ? Fallback: \u003Cmodel>\n   ? Est. cost: \u003Clow\u002Fmedium\u002Fhigh>\n   ? Reason: \u003Cwhy>\n   ```\n6. **Batch routing**: For multiple tasks, create a routing plan table showing which model handles each task.\n\n## Edge Cases\n\n- **Ambiguous tasks**: Default to claude-sonnet as the best general-purpose choice\n- **Multi-modal tasks** (text + image): Ensure the chosen model supports vision\n- **Context overflow**: If input exceeds model's context window, suggest chunking or switching to a larger-context model\n- **Rate limits**: If primary model is rate-limited, auto-route to fallback\n\n## Requirements\n\n- No API keys or dependencies — this is a decision framework, not an API\n- Update routing table as model pricing\u002Fcapabilities change\n",{"description":7},"main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Fsa9saq\u002Fagent-router",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add kbarbel640-del\u002Fskills --skill agent-router",{"tool":46,"command":47},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill agent-router",{"tool":49,"command":50},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill agent-router","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsa9saq\u002Fagent-router\u002FSKILL.md",true,[54],{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"_meta.json","REFERENCE","参考文档",276,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsa9saq\u002Fagent-router\u002F_meta.json",[61,86,110,128,133,153],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":28},"01M6G8J55967D6281ACMKAKTEQ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[68,69,70,71,72,73,74,22,75,76,77,78,79,80,81,82,83,84,85],"crowd prompting","prompting","api","with","tokens","domain","world","operations","instructions","text","tool","system","improve","productivity","marketplace","https","content","ai agents",{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":28},"01M6G8J0PKPAYVET6BWE8W4C26","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[93,70,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,22,109],"dilemm ai","arena","analyze","browser","openclaw agent","create","automation","browser automation","bot","openclaw","design","strategy","headless","compete","submit","matchmaking","use",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":28},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[],[117,118,119,120,121,122,123,71,124,107,109,125,70,126,127],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http","via",{"skillNo":129,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":28},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[120,119,118,117,127,122,123,71,121,107,109,124,125,70,126],{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":28},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[140,141,142,143,144,145,146,147,148,149,150,151,152],"git","summary","git summary","commits","repository","win32","status","linux","contributors","true","quick","get","branches",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":28},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[],[160,161,162,163,71,164,165,33,166,125,167,168,169,170,171,83,172,173,174],"agent constitution","constitution","contracts","tree","query","base","log","check","Rules","projects","compliance","actions","state","governance","github"]