auto-router-patterns
Auto router patterns for this project. Intelligent model selection via task classification, cost tier diversity, high-stakes override, weighted tier selection. Triggers on "auto router", "model selection", "classification", "cost tier", "exploration", "high stakes", "routing", "router".
npx skills add majiayu000/claude-skill-registry --skill auto-router-patterns-planetaryescape-blah-chat --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Auto Router Patterns System intelligently routes user messages to optimal models via task classification, cost-based diversity, and high-stakes safety overrides. ## Classification with gpt-oss-120b Router uses `gpt-oss-120b` via Cerebras for fast classification (~1000 tokens/sec): ```typescript // From autoRouter.ts function getRouterModel() { const openai = createOpenAI({ apiKey: process.env.AI_GATEWAY_API_KEY, baseURL: "https://gateway.ai.cloudflare.com/v1/planetaryescape/blah-chat-dev-gateway/openai", }); return openai("gpt-oss-120b"); // Via Cerebras } const ROUTER_MODEL_ID = "openai:gpt-oss-120b"; ``` Classification schema with generateObject: ```typescript // From autoRouter.ts const classificationSchema = z.object({ primaryCategory: z.enum(TASK_CATEGORIES), secondaryCategory: z.enum(TASK_CATEGORIES).optional().nullable(), complexity: z.enum(["simple", "moderate", "complex"]), requiresVision: z.boolean(), requiresLongContext: z.boolean(), requiresReasoning: z.boolean(), confidence: z.number().min(0).max(1), isHighStakes: z.boolean(), highStakesDomain: z.enum(HIGH_STAKES_DOMAINS).optional().nullable(), }); ``` Task categories: coding, reasoning, creative, factual, analysis,
- Classification with gpt-oss-120b
- Cost Tier Categorization
- Weighted Tier Selection by Complexity
- High-Stakes Override
- Diversity vs Top-Score Trade-off
- Excluded Models Tracking for Retries
- Key Files
- Avoid
What does the auto-router-patterns skill do?
Auto router patterns for this project. Intelligent model selection via task classification, cost tier diversity, high-stakes override, weighted tier selection. Triggers on "auto router", "model selection", "classification", "cost tier", "exploration", "high stakes", "routing", "router".
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill auto-router-patterns-planetaryescape-blah-chat --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
