[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6J47C9RREDMJBXDC09Z820P":3,"skill-same:01M6J47C9RREDMJBXDC09Z820P":79},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M6J47C9RREDMJBXDC09Z820P","model-selector",null,"Set and manage the preferred backbone LLM for compatible AI-agent workflows. Supports manual model selection, automatic best-model selection based on task type, and a cached\u002Frefreshable leaderboard of the latest frontier models from OpenRouter. Toggle on\u002Foff via chat commands. Use when the user says \"model-selector\", \"set model\", \"change model\", \"best model\", \"auto model\", \"switch model\", \"model-selector on\", \"model-selector off\", \"list models\", \"show models\", \"model status\", \"recommend model\", \"refresh models\", or asks which AI model to use for a task.","onfire7777\u002Funiversal-ai-skills-library","onfire7777","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F240866566?v=4","01M6HZJCF2QEW8DY7HE1JDKGK2","Jake B","01M6HZJCKK8SEXKN76V9SGKZ12",17,"MIT","https:\u002F\u002Fgithub.com\u002Fonfire7777\u002Funiversal-ai-skills-library\u002Fblob\u002Fmain\u002Fskills\u002Fmodel-selector\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"selector","model","model selector","switch","recommend","for","which","commands","ai-agent","selection","show","workflows","manage","auto","list","openrouter","SET","model selection","status","change","2026-11-10 10:12:30",false,"---\nname: model-selector\ndescription: >\n  Set and manage the preferred backbone LLM for compatible AI-agent workflows. Supports manual model\n  selection, automatic best-model selection based on task type, and a cached\u002Frefreshable leaderboard\n  of the latest frontier models from OpenRouter. Toggle on\u002Foff via chat commands. Use when the user\n  says \"model-selector\", \"set model\", \"change model\", \"best model\", \"auto model\", \"switch model\",\n  \"model-selector on\", \"model-selector off\", \"list models\", \"show models\", \"model status\",\n  \"recommend model\", \"refresh models\", or asks which AI model to use for a task.\n---\n\n# Model Selector\n\nControl the preferred backbone LLM for compatible AI-agent workflows. Two modes: **manual** (user picks a specific model) or **auto** (dynamically selects the best model based on task category via keyword detection).\n\n## Commands\n\n| Command | Action |\n|---|---|\n| `\u002Fmodel-selector set \u003Cmodel_id>` | Set a specific model (e.g., `anthropic\u002Fclaude-opus-4.6`). Validates against cache; warns if unknown but accepts (supports private models). |\n| `\u002Fmodel-selector auto [task]` | Auto-select best model. If task provided, detects category via keywords and selects top-ranked model. |\n| `\u002Fmodel-selector on` | Enable model selection. |\n| `\u002Fmodel-selector off` | Disable (the active client uses its default backbone model). |\n| `\u002Fmodel-selector status` | Show current config: enabled state, mode, model, reason, cache freshness. |\n| `\u002Fmodel-selector refresh` | Force-refresh cached model leaderboard from OpenRouter API. Rate limit: max 1 per minute. |\n| `\u002Fmodel-selector list [category]` | List top models by category (coding\u002Freasoning\u002Fresearch\u002Fcreative\u002Fmath\u002Fgeneral\u002Fall) with pricing. |\n| `\u002Fmodel-selector recommend \u003Ctask>` | Recommend best model for a task without changing config. Shows rationale and top alternatives. |\n\n## Execution\n\nAll commands are executed by running the CLI script:\n```bash\npython3 scripts\u002Fmodel_selector.py \u003Ccommand> [args]\n```\n\nThe script path is relative to this skill's directory. A common installed-skill path is:\n```bash\npython3 \u002Fhome\u002Fubuntu\u002Fskills\u002Fmodel-selector\u002Fscripts\u002Fmodel_selector.py \u003Ccommand> [args]\n```\n\nWhen a user sends a command (e.g., `\u002Fmodel-selector auto build a website`), the active AI client should:\n1. Parse the command and arguments from the user message.\n2. Invoke the CLI script via shell with the appropriate command and arguments.\n3. Read the script output and report the result to the user.\n4. For errors, display the error message and suggest remediation.\n\n## Architecture\n\n### Persistent Files\n\n**Config** (`~\u002F.model_selector_config.json`):\n```json\n{\n  \"enabled\": true,\n  \"mode\": \"manual|auto\",\n  \"manual_model\": \"model_id|null\",\n  \"auto_category\": \"category|null\",\n  \"last_selected_model\": \"model_id|null\",\n  \"last_selected_reason\": \"human-readable explanation\",\n  \"updated_at\": \"ISO-8601 timestamp\"\n}\n```\n\n**Cache** (`~\u002F.model_selector_cache.json`):\n```json\n{\n  \"cached_at\": 1712345678,\n  \"cached_at_human\": \"ISO-8601\",\n  \"total_models\": 349,\n  \"frontier_models\": [{\"id\": \"...\", \"provider\": \"...\", \"context_length\": 0, \"price_per_m_output\": 0}],\n  \"model_lookup\": {\"model_id\": {\"id\": \"...\", \"name\": \"...\", \"context_length\": 0, \"pricing_prompt\": \"0\", \"pricing_completion\": \"0\"}}\n}\n```\n\n### Task Category Detection\n\nAuto mode classifies tasks into six categories by word-boundary regex matching: **coding**, **reasoning**, **research**, **creative**, **math**, or **general** (fallback). Each category has a curated ranking of the best models based on benchmark data. No AI classification is used — keyword detection is deterministic, fast, and credit-free. Specialized categories always win ties over \"general\".\n\n### Agent Integration\n\nAt the start of each task, a compatible client should:\n1. Read `~\u002F.model_selector_config.json`.\n2. If `enabled` is `true`, note the `last_selected_model` and `mode`.\n3. Use this model preference when making decisions about which LLM to invoke as the backbone.\n4. If `enabled` is `false`, config is missing, or config is corrupted, use the client's default backbone model.\n\nOther skills' model preferences remain unaffected.\n\n## Workflow\n\n1. **Parse command** from user message.\n2. **Execute** via the CLI script using shell.\n3. **Report result** — which model was selected, why, detected category (if auto), and alternatives.\n4. **For errors**: Respond with clear error message, usage help, and suggested remediation.\n\n## Error Handling\n\n- **Cache missing\u002Fcorrupted**: Auto-reinitialize on next use or prompt user to run `refresh`.\n- **Refresh fails**: Keep stale cache, warn user, suggest retry.\n- **Unknown model set**: Warn but accept (may be private\u002Fcustom model).\n- **Invalid command**: Show usage help with all supported commands.\n- **File permission errors**: Suggest remediation steps.\n- **Config corrupted**: Fall back to defaults, notify user.\n- **Malformed API data**: Skip entries with missing IDs or non-numeric pricing gracefully.\n\n## Performance Targets\n\n- Read-only commands (status, list, recommend): under 1 second (no network calls).\n- Write commands (set, auto): under 5 seconds (may refresh cache if stale).\n- Cache refresh: under 30 seconds.\n- Cache auto-expires after 24 hours; refreshes on next write command.\n\n## Security\n\n- Never expose `OPENROUTER_API_KEY` in outputs, logs, or error messages.\n- Atomic file writes to prevent config\u002Fcache corruption.\n- Preserve manual model settings unless explicitly changed by user.\n\n## Requirements\n\n- `OPENROUTER_API_KEY` environment variable (for cache refresh and model validation).\n- `requests` Python package.\n\n## Benchmark Reference\n\nFor detailed benchmark data, tier rankings, and cost analysis, read:\n`references\u002Fmodel_benchmarks.md`\n\nOnly read this file when the user asks about specific benchmark data, model comparisons, or pricing details.\n\n## Constraints\n\n- Controls **backbone LLM preference only** — does not alter models used by other skills.\n- Uses **word-boundary regex task detection** exclusively — no AI classification to avoid extra costs.\n- Cache refresh rate-limited: max 1 per minute, auto-refresh every 24 hours.\n- Manual model settings preserved unless explicitly changed by user.\n- Graceful degradation: if disabled or config\u002Fcache unavailable, the active client uses its default model.\n","# Model Selector\n\nControl the preferred backbone LLM for compatible AI-agent workflows. Two modes: **manual** (user picks a specific model) or **auto** (dynamically selects the best model based on task category via keyword detection).\n\n## Commands\n\n| Command | Action |\n|---|---|\n| `\u002Fmodel-selector set \u003Cmodel_id>` | Set a specific model (e.g., `anthropic\u002Fclaude-opus-4.6`). Validates against cache; warns if unknown but accepts (supports private models). |\n| `\u002Fmodel-selector auto [task]` | Auto-select best model. If task provided, detects category via keywords and selects top-ranked model. |\n| `\u002Fmodel-selector on` | Enable model selection. |\n| `\u002Fmodel-selector off` | Disable (the active client uses its default backbone model). |\n| `\u002Fmodel-selector status` | Show current config: enabled state, mode, model, reason, cache freshness. |\n| `\u002Fmodel-selector refresh` | Force-refresh cached model leaderboard from OpenRouter API. Rate limit: max 1 per minute. |\n| `\u002Fmodel-selector list [category]` | List top models by category (coding\u002Freasoning\u002Fresearch\u002Fcreative\u002Fmath\u002Fgeneral\u002Fall) with pricing. |\n| `\u002Fmodel-selector recommend \u003Ctask>` | Recommend best model for a task without changing config. Shows rationale and top alternatives. |\n\n## Execution\n\nAll commands are executed by running the CLI script:\n```bash\npython3 scripts\u002Fmodel_selector.py \u003Ccommand> [args]\n```\n\nThe script path is relative to this skill's directory. A common installed-skill path is:\n```bash\npython3 \u002Fhome\u002Fubuntu\u002Fskills\u002Fmodel-selector\u002Fscripts\u002Fmodel_selector.py \u003Ccommand> [args]\n```\n\nWhen a user sends a command (e.g., `\u002Fmodel-selector auto build a website`), the active AI client should:\n1. Parse the command and arguments from the user message.\n2. Invoke the CLI script via shell with the appropriate command and arguments.\n3. Read the script output and report the result to the user.\n4. For errors, display the error message and suggest remediation.\n\n## Architecture\n\n### Persistent Files\n\n**Config** (`~\u002F.model_selector_config.json`):\n```json\n{\n  \"enabled\": true,\n  \"mode\": \"manual|auto\",\n  \"manual_model\": \"model_id|null\",\n  \"auto_category\": \"category|null\",\n  \"last_selected_model\": \"model_id|null\",\n  \"last_selected_reason\": \"human-readable explanation\",\n  \"updated_at\": \"ISO-8601 timestamp\"\n}\n```\n\n**Cache** (`~\u002F.model_selector_cache.json`):\n```json\n{\n  \"cached_at\": 1712345678,\n  \"cached_at_human\": \"ISO-8601\",\n  \"total_models\": 349,\n  \"frontier_models\": [{\"id\": \"...\", \"provider\": \"...\", \"context_length\": 0, \"price_per_m_output\": 0}],\n  \"model_lookup\": {\"model_id\": {\"id\": \"...\", \"name\": \"...\", \"context_length\": 0, \"pricing_prompt\": \"0\", \"pricing_completion\": \"0\"}}\n}\n```\n\n### Task Category Detection\n\nAuto mode classifies tasks into six categories by word-boundary regex matching: **coding**, **reasoning**, **research**, **creative**, **math**, or **general** (fallback). Each category has a curated ranking of the best models based on benchmark data. No AI classification is used — keyword detection is deterministic, fast, and credit-free. Specialized categories always win ties over \"general\".\n\n### Agent Integration\n\nAt the start of each task, a compatible client should:\n1. Read `~\u002F.model_selector_config.json`.\n2. If `enabled` is `true`, note the `last_selected_model` and `mode`.\n3. Use this model preference when making decisions about which LLM to invoke as the backbone.\n4. If `enabled` is `false`, config is missing, or config is corrupted, use the client's default backbone model.\n\nOther skills' model preferences remain unaffected.\n\n## Workflow\n\n1. **Parse command** from user message.\n2. **Execute** via the CLI script using shell.\n3. **Report result** — which model was selected, why, detected category (if auto), and alternatives.\n4. **For errors**: Respond with clear error message, usage help, and suggested remediation.\n\n## Error Handling\n\n- **Cache missing\u002Fcorrupted**: Auto-reinitialize on next use or prompt user to run `refresh`.\n- **Refresh fails**: Keep stale cache, warn user, suggest retry.\n- **Unknown model set**: Warn but accept (may be private\u002Fcustom model).\n- **Invalid command**: Show usage help with all supported commands.\n- **File permission errors**: Suggest remediation steps.\n- **Config corrupted**: Fall back to defaults, notify user.\n- **Malformed API data**: Skip entries with missing IDs or non-numeric pricing gracefully.\n\n## Performance Targets\n\n- Read-only commands (status, list, recommend): under 1 second (no network calls).\n- Write commands (set, auto): under 5 seconds (may refresh cache if stale).\n- Cache refresh: under 30 seconds.\n- Cache auto-expires after 24 hours; refreshes on next write command.\n\n## Security\n\n- Never expose `OPENROUTER_API_KEY` in outputs, logs, or error messages.\n- Atomic file writes to prevent config\u002Fcache corruption.\n- Preserve manual model settings unless explicitly changed by user.\n\n## Requirements\n\n- `OPENROUTER_API_KEY` environment variable (for cache refresh and model validation).\n- `requests` Python package.\n\n## Benchmark Reference\n\nFor detailed benchmark data, tier rankings, and cost analysis, read:\n`references\u002Fmodel_benchmarks.md`\n\nOnly read this file when the user asks about specific benchmark data, model comparisons, or pricing details.\n\n## Constraints\n\n- Controls **backbone LLM preference only** — does not alter models used by other skills.\n- Uses **word-boundary regex task detection** exclusively — no AI classification to avoid extra costs.\n- Cache refresh rate-limited: max 1 per minute, auto-refresh every 24 hours.\n- Manual model settings preserved unless explicitly changed by user.\n- Graceful degradation: if disabled or config\u002Fcache unavailable, the active client uses its default model.\n",{"name":5,"description":7},"main","2a76bf42ce5c860adf8d0f3fcf3f6804109ac65b","skills\u002Fmodel-selector",0,"https:\u002F\u002Fgithub.com\u002Fonfire7777\u002Funiversal-ai-skills-library","https:\u002F\u002Fgithub.com\u002Fonfire7777\u002Funiversal-ai-skills-library\u002Fwiki","https:\u002F\u002Fgithub.com\u002Fonfire7777","trying to create something actually useful","2026-09-11 13:25:26",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add onfire7777\u002Funiversal-ai-skills-library --skill model-selector",{"tool":59,"command":60},"bunx","bunx skills add onfire7777\u002Funiversal-ai-skills-library --skill model-selector",{"tool":62,"command":63},"pnpm","pnpm dlx skills add onfire7777\u002Funiversal-ai-skills-library --skill model-selector","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fonfire7777\u002Funiversal-ai-skills-library\u002Fblob\u002Fmain\u002Fskills\u002Fmodel-selector\u002FSKILL.md",true,[67,73],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fmodel_benchmarks.md","REFERENCE","参考文档",2845,"https:\u002F\u002Fgithub.com\u002Fonfire7777\u002Funiversal-ai-skills-library\u002Fblob\u002Fmain\u002Fskills\u002Fmodel-selector\u002Freferences\u002Fmodel_benchmarks.md",{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"scripts\u002Fmodel_selector.py","SCRIPT","脚本",28387,"https:\u002F\u002Fgithub.com\u002Fonfire7777\u002Funiversal-ai-skills-library\u002Fblob\u002Fmain\u002Fskills\u002Fmodel-selector\u002Fscripts\u002Fmodel_selector.py",[80,98,106,115,135,150],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":39},"01M6J7MPK8ZE9VQJR4KK6ZMZJQ","zyte-api-automation","Automate Zyte API tasks via Rube MCP (Composio). Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002Fonfire7777\u002Funiversal-ai-skills-library\u002Fblob\u002Fmain\u002Fskills\u002Fzyte-api-automation\u002FSKILL.md",[],[87,88,89,24,90,91,92,93,94,95,96,97],"automation","api","zyte api automation","MCP","via","composio","automate","first","Tools","search","tasks",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":39},"01M6J7MK45K2ZZ0EWTP1N6SZ7F","zylvie-automation","Automate Zylvie tasks via Rube MCP (Composio). Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002Fonfire7777\u002Funiversal-ai-skills-library\u002Fblob\u002Fmain\u002Fskills\u002Fzylvie-automation\u002FSKILL.md",[],[87,105,90,97,24,91,92,93,94,95,96],"zylvie automation",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":39},"01M6J7MGDCVZ3YCXGEAPR5V3MS","zoominfo-automation","Automate Zoominfo tasks via Rube MCP (Composio). Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002Fonfire7777\u002Funiversal-ai-skills-library\u002Fblob\u002Fmain\u002Fskills\u002Fzoominfo-automation\u002FSKILL.md",[],[113,114,87,93,92,95,91,97,24,96,90,94],"zoominfo","zoominfo automation",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":39},"01M6J7MDK48N09B7C6H9TCPY9A","zoom-out","Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.","https:\u002F\u002Fgithub.com\u002Fonfire7777\u002Funiversal-ai-skills-library\u002Fblob\u002Fmain\u002Fskills\u002Fzoom-out\u002FSKILL.md",[],[122,123,124,125,126,127,128,129,130,131,132,133,134],"zoom out","zoom","perspective","code","re","you","with","understand","it","use","context","how","true",{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":39},"01M6J7MAD47Q9A55AK3EXS914H","zoho-mail-automation","Automate Zoho Mail tasks via Rube MCP (Composio): email sending, folders, labels, and mailbox management. Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002Fonfire7777\u002Funiversal-ai-skills-library\u002Fblob\u002Fmain\u002Fskills\u002Fzoho-mail-automation\u002FSKILL.md",[],[142,143,144,145,87,146,96,97,90,95,147,24,91,148,92,149,93,94],"mail","zoho mail automation","zoho","zoho mail","email","labels","mailbox","management",{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":39},"01M6J7M76HTWPP8TRWWCDS42NB","zoho-invoice-automation","Automate Zoho Invoice tasks via Rube MCP (Composio): invoices, estimates, expenses, clients, and payment tracking. Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002Fonfire7777\u002Funiversal-ai-skills-library\u002Fblob\u002Fmain\u002Fskills\u002Fzoho-invoice-automation\u002FSKILL.md",[],[157,87,144,158,90,91,24,159,160,161,92,162,163,93,94,95,96,97],"invoice","zoho invoice automation","invoices","expenses","clients","payment","tracking"]