Toolverse
All skills

openrouter-routing-rules

by jeremylongshore

Implement intelligent model routing based on request characteristics. Use when optimizing for cost, speed, or quality per request. Trigger with phrases like 'openrouter routing', 'model selection', 'smart routing', 'dynamic model'.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Security

About this skill

Implement intelligent model routing based on request characteristics. Use when optimizing for cost, speed, or quality per request. Trigger with phrases like 'openrouter routing', 'model selection', 'smart routing', 'dynamic model'.

How to use

  1. Zainstaluj skill openrouter-routing-rules w swoim projekcie Claude Code lub Codex, upewniając się, że masz dostęp do narzędzi Read, Write, Edit, Bash i Grep.

  2. Ustaw zmienną środowiskową OPENROUTER_API_KEY z Twoim kluczem API OpenRouter, a także dodaj nagłówki HTTP-Referer i X-Title wskazujące na Twoją aplikację.

  3. Zdefiniuj kontekst kierowania (RoutingContext) zawierający parametry takie jak poziom użytkownika (free/basic/pro/enterprise), typ zadania (chat/code/analysis/classification), pozostały budżet dzienny, szacunkową liczbę tokenów oraz wymagania dotyczące funkcji (narzędzia, wizja).

  4. Utwórz reguły kierowania (RoutingRule) z warunkami, priorytetami i przypisanymi modelami. Każda reguła powinna zawierać funkcję warunkową sprawdzającą kontekst oraz listę modeli fallback na wypadek niedostępności głównego modelu.

  5. Wyzwól skill frazami takimi jak 'openrouter routing', 'routing rules', 'custom routing openrouter' lub 'conditional model selection', aby aktywować silnik reguł.

  6. System automatycznie wybierze najlepszy model na podstawie priorytetów reguł i bieżącego kontekstu, a następnie wyśle zapytanie do OpenRouter z wybranym modelem i skonfigurowanymi limitami tokenów.

Related skills

1password

by openclaw

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.

Security
1174

reviewing-code

by CaptainCrouton89

Systematically evaluate code changes for security, correctness, performance, and spec alignment. Use when reviewing PRs, assessing code quality, or verifying implementation against requirements.

Security
1493

python-expert

by Shubhamsaboo

Senior Python developer expertise for writing clean, efficient, and well-documented code.\nUse when: writing Python code, optimizing Python scripts, reviewing Python code for best practices,\ndebugging Python issues, implementing type hints, or when user mentions Python, PEP 8,

Security
2777

google-analytics

by davila7

Analyze Google Analytics data, review website performance metrics, identify traffic patterns, and suggest data-driven improvements. Use when the user asks about analytics, website metrics, traffic analysis, conversion rates, user behavior, or performance optimization.

Security
1260

security-compliance

by davila7

Guides security professionals in implementing defense-in-depth security architectures, achieving compliance with industry frameworks (SOC2, ISO27001, GDPR, HIPAA), conducting threat modeling and risk assessments, managing security operations and incident response, and embedding

Security
1172

youtube-watcher

by openclaw

Fetch and read transcripts from YouTube videos. Use when you need to summarize a video, answer questions about its content, or extract information from it.

Security
2231