Agent skill · Workflow & Productivity

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".

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
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.

Facts
Files in the skill folder: 2
SKILL.md size: 8 KB
Bundled scripts: none
Path: skills/ai-llm/auto-router-patterns-planetaryescape-blah-chat/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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,

What's inside
Steps it walks through
  1. Classification with gpt-oss-120b
  2. Cost Tier Categorization
  3. Weighted Tier Selection by Complexity
  4. High-Stakes Override
  5. Diversity vs Top-Score Trade-off
  6. Excluded Models Tracking for Retries
  7. Key Files
  8. Avoid
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
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.

Keep going