Skip to content
Back to skills

Openrouter Model Routing

ASecurity

Implement advanced model routing with A/B testing. Use when optimizing model selection or running experiments. Trigger with phrases like 'openrouter a/b test', 'model experiment', 'openrouter routing', 'model comparison'.

  • 2,948 stars
  • 0 votes
  • 0 copies
  • 13 views
  • Added February 7, 2026
ai-agentspythontestingperformance

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add jeremylongshore/claude-code-plugins-plus-skills --skill openrouter-model-routing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Openrouter Model Routing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Openrouter Model Routing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jeremylongshore-openrouter-model-routing/badge)](https://www.skillsdirectory.com/skills/jeremylongshore-openrouter-model-routing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: openrouter-model-routing
description: |
  Implement advanced model routing with A/B testing. Use when optimizing model selection or running experiments. Trigger with phrases like 'openrouter a/b test', 'model experiment', 'openrouter routing', 'model comparison'.
allowed-tools: Read, Write, Edit, Grep
version: 1.0.0
license: MIT
author: Jeremy Longshore <jeremy@intentsolutions.io>
---
# OpenRouter Model Routing

## Overview

This skill covers advanced routing patterns including A/B testing, gradual rollouts, and performance-based model selection.

## Prerequisites

- OpenRouter integration
- Metrics collection capability

## Instructions

Follow these steps to implement this skill:

1. **Verify Prerequisites**: Ensure all prerequisites listed above are met
2. **Review the Implementation**: Study the code examples and patterns below
3. **Adapt to Your Environment**: Modify configuration values for your setup
4. **Test the Integration**: Run the verification steps to confirm functionality
5. **Monitor in Production**: Set up appropriate logging and monitoring

## Overview

This skill covers advanced routing patterns including A/B testing, gradual rollouts, and performance-based model selection.

## Prerequisites

- OpenRouter integration
- Metrics collection capability

## Intelligent Model Selection

### Multi-Criteria Router
```python
from dataclasses import dataclass
from typing import Callable, Optional
import re

@dataclass
class ModelProfile:
    id: str

## Detailed Reference

See `{baseDir}/references/implementation.md` for complete implementation guide.

Files in this skill

  • SKILL.md1.6 KB
  • references/cascading-router.md1.8 KB
  • references/context-aware-routing.md1.3 KB
  • references/cost-quality-optimization.md2.7 KB
  • references/errors.md323 B
  • references/examples.md87 B
  • references/implementation.md16.4 KB
  • references/intelligent-model-selection.md5.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.