openrouter-provider-ranking
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "openrouter-provider-ranking":https://skillpi.com/zh/skills/deepskill-25f6dadeb9f22ca42de79922658e3058f6fb984da8369f7f1c784cc7171d2491。安装前核对上游来源和版本:https://github.com/CodeAlive-AI/ai-driven-development。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
当需要按 TPS/吞吐量、TTFT/延迟、有效价格、正常运行时间、缓存命中率、工具调用/Exacto 质量、量化、上下文、隐私或故障转移多样性对 OpenRouter 提供程序端点(provider.order、provider.only、:exacto)进行排名、比较、基准测试、优先级排序或生成路由时使用;也适用于有关 OpenRouter 提供程序排序或优先级的请求。除非需要端点级别提供程序路由,否则不要用于广泛的模型系列选择。
介绍来源: third_party · CodeAlive-AI · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: openrouter-provider-ranking
description: "Use this skill when a user asks to rank, compare, benchmark, prioritize, or generate routing for OpenRouter provider endpoints (provider.order, provider.only, :exacto) by TPS/throughput, TTFT/latency, effective price, uptime, cache hit rate, tool-call/Exacto quality, quantization, context, privacy, or fallback diversity; also for requests about OpenRouter provider sorting or prioritization. Do not use for broad model-family selection unless endpoint-level provider routing is required."
compatibility: "Requires Python 3.10+; live endpoint discovery requires outbound HTTPS and a management-capable OpenRouter key in OPENROUTER_API_KEY. Offline endpoint JSON is supported. The bundled ranker uses only the Python standard library."
metadata:
version: "1.0.0"
domain: "openrouter-routing"OpenRouter Provider Ranking
Rank the endpoint providers of a single OpenRouter model slug for a specific workload. Never call the order "globally optimal": it is optimal only against the stated constraints, weights, token profile and available telemetry.
Mandatory rules
- Apply hard constraints first, score second. Never let high TPS or a low price compensate for an incompatibility.
- For tool calling default to
native-exacto: the:exactomodel suffix, noprovider.sort, noprovider.order. Your own score in that mode is diagnostic, not a replacement for OpenRouter's private telemetry. - Use
manualonly when the user requires a deterministic order, when your own production telemetry outweighs Exacto, or when a failover chain has to be pinned explicitly. - Never combine
:exactowithprovider.sort— an explicit sort wins. Never addprovider.orderinnative-exactomode. - Price on the real token profile, not on headline input/output rates. Include cache read/write, per-request fees, conditional pricing overrides and the observed cache hit rate.
- Do not invent missing Exacto, benchmark, cache or tool-success metrics. Apply a conservative prior and an uncertainty penalty, and name the gaps explicitly.
- For multi-turn workloads pass a stable
session_id. Remember that a manualprovider.orderdisables OpenRouter's sticky provider routing, andsession_iddoes not restore it. - Never store the API key in the skill, a config, a log or the output JSON. Read it only from
OPENROUTER_API_KEYor the environment variable the user names. - A catalogue field is a hypothesis; a measurement is a fact. Do not hand back a ranking as the answer: always propose the minimal verification of the top candidates against the constraints that were asked for (step 5), and say plainly whether it was run.
- The comparison row is
endpoint × reasoning effort, not the endpoint. Changing effort moves price, latency and quality more than changing provider does — and"none"means "omit the field", not "no reasoning". - Compute price from components on the token profile (
in,out,cache_read,cache_write, per-request fee). Headline and effective price swap places: the most expensive rate card produced the lowest cost per step at a 99.996 % cache hit. - Measure cache, latency and reliability on the profile that will ship. Cache hit on a repeated identical prompt (99 %) and in an agent run (68 %) are different numbers; TTFT on a short prompt is 4-6x optimistic; and fitness for a single request does not predict behaviour under sequential load.
Inputs
Collect or estimate:
- the model slug, e.g.
deepseek/deepseek-v4-flash-0731; uses_tools, streaming, required parameters, context and output limits;- expected prompt/completion tokens and requests per session;
- cacheable prompt fraction, token-level cache read/write rate, response-cache hit rate;
- hard caps: price, latency, TPS, uptime, quantization, moderation, ZDR/data policy;
- the goal: quality, balanced, interactive latency, cost or batch throughput;
- your own telemetry by provider tag, if any exists.
When the input is incomplete, use the agentic-balanced profile. For tool calling set uses_tools=true. Do not assume a non-zero cache hit rate without observations or a defensible workload model.
Procedure
1. Classify the workload
Pick one profile:
agentic-balanced— the default for agents and B2B SaaS;agentic-quality— tool correctness and reliability outweigh price;interactive— minimise TTFT and end-to-end latency;cost— minimise expected cost under an SLO;batch— throughput and cost for long completions.
For a goal outside these, override weights; the sum after normalisation must be positive. The formula: references/scoring.md.
2. Fetch fresh endpoint metrics
Preferred path — the OpenRouter Endpoints API through the bundled script:
python3 scripts/rank_providers.py \
--model deepseek/deepseek-v4-flash-0731 \
--config assets/config.example.json \
--format markdown \
--output recommendation.md
For a reproducible or offline analysis:
python3 scripts/rank_providers.py \
--endpoints-file endpoints.json \
--config config.json \
--observations telemetry.jsonl \
--previous-ranking previous-result.json \
--output result.json
The Endpoints API gives the provider tag, pricing, quantization, context and output limits, supported parameters, uptime, and latency and throughput percentiles. When reading a performance page, carry any provider-specific Auto Exacto or benchmark values into observations by exact tag; never guess the match from a display name when a tag exists.
Input formats: references/input-formats.md.
Read the metrics as they are defined, not as they read. latency_* arrives
in milliseconds — 1624.8 is 1.6 s. A p90 throughput is the fast tail and
a p90 latency is the slow one, so rank on p50 and report both. The
storefront's own numbers are collected on short prompts; see step 5 and
references/storefront-traps.md.
3. Add production telemetry
Quality signals, in order of priority:
- your own tool-call/schema success for the same model, prompt class and provider tag;
- provider-specific Exacto or benchmark values from the performance page;
- the endpoint performance/uptime API;
- a conservative prior when nothing is available.
Collect at least: provider_name or provider_tag, success, tool success, prompt/completion/cached/cache-write tokens, TTFT, generation time or TPS, and total cost. For rates from a small sample use a Wilson lower bound, not the raw percentage.
4. Run the ranking and check the result
The script should:
- drop inactive and incompatible endpoints;
- resolve pricing overrides as of the request;
- compute the expected cost for the workload;
- blend OpenRouter percentiles with your own observations by sample confidence;
- normalise cost, TPS, TTFT and E2E against the current eligible pool;
- apply the quality, reliability, cache, fidelity and uncertainty components;
- stabilise the order against a previous result;
- pick a fallback chain with provider-family diversity when the score gap allows.
Check the exit code. On 4 do not relax anything silently: show which constraints eliminated every endpoint and propose the smallest relaxation.
5. Verify the candidates with real requests — mandatory
A ranking is built from catalogue fields, and several of them are wrong often
enough to change the answer: supports_implicit_caching reads false on an
endpoint that caches 99 % of the prefix; storefront TTFT is taken on short
prompts and is 4-6x optimistic; and the cheapest endpoint on a bench may serve
no request at all under sequential load. The full list, each with its
reproduction: references/storefront-traps.md.
So never hand back a ranking as the final answer. Always propose the minimal verification of the top candidates against the same hard constraints the score used, and run it where you can:
python3 scripts/probe_endpoints.py \
--model deepseek/deepseek-v4-flash-0731 \
--providers coreweave/fp8,fireworks,siliconflow/fp8 \
--prompt-file real-prompt.txt \
--max-tokens 600 --runs 3 \
--min-tps 50 --max-ttft 6 --require-cache --require-max-tokens
The script sends --runs identical requests per endpoint and reports the
measured TTFT, TPS, cost, cache hit share, completion tokens and error class,
then judges each against the thresholds you pass. Exit code 4 means none
survived — the ranker's own convention; do not relax the thresholds silently.
What must be passed:
--prompt-filewith your own prompt once a decision is actually being made. The--prompt-tokensfiller is fine for a rough cut, but TTFT depends on size and contract compliance depends on content.--runs >= 2, but do not read a cache miss from filler as a verdict: a fresh prefix does not become cacheable inside a short probe. The same endpoint gave 99 % over two calls on a prompt that was already in use and 0 % over four on a new one. A hit proves caching; a miss proves it only with--prompt-file.- Thresholds taken from the hard constraints, not invented: the check must answer the user's question, not a generic one.
What the check does not do: it does not measure exact throughput and it does not certify fitness. A failure is a conclusion; a pass is "on this profile, in this window, over N calls". For an agentic workload add a run of sequential calls — fitness for a single request does not predict it.
A separate one-request check of the data policy, whenever the constraints carry
data_collection: deny or zdr: max_tokens: 1, allow_fallbacks: false, one
request per candidate. Distinguish a policy refusal (404 No endpoints found matching your data policy) from a provider 429 — different causes, different
conclusions.
6. Choose the routing mode
| Condition | Mode | What to send |
|---|---|---|
| Tool calls, no fixed order required | native-exacto |
model: <slug>:exacto, filters/preferences, no sort/order |
| A pinned failover chain, or strong first-party telemetry | manual |
provider.order from the ranking |
| One simple goal with no custom score | native OpenRouter | provider.sort: price/throughput/latency; the bundled ranker is optional |
OpenRouter-specific interactions and limits: references/openrouter-routing.md.
Response format
Always return:
- the chosen mode and a short justification;
- the eligible ranking table: provider tag, score, expected cost per request, TPS percentile, TTFT, E2E, uptime, quality confidence and cache hit rate;
- a ready JSON request fragment;
- the excluded providers, each with its reason;
- coverage and warnings, and the list of missing signals;
- the minimal verification plan — a ready
probe_endpoints.pycommand with thresholds taken from the hard constraints, and its result if it was run. Call the ranking a hypothesis until that check has been made; - the refresh rule: recompute after noticeable drift, a price or endpoint change, or enough new telemetry. Never pin an order indefinitely.
In native-exacto, keep the diagnostic ranking and the authoritative runtime ordering by Exacto clearly apart.
Validation checklist
Before returning a result, check that:
- provider tags come from a fresh API call or file, not from memory;
- hard constraints were applied before the score;
- prices were converted from USD/token to readable USD/M and to workload cost without double conversion;
p90throughput is read as the fast tail — the value about 10 % of requests exceed — andp90latency as the slow one. Rank onp50; a provider whose p90 is 57 and p50 is 33 is not the fastest, and reading p90 as a floor already put one first;latency_*is read as milliseconds, whileprovider.max_priceis passed in USD per million tokens and endpoint pricing is stored in USD per token;provider.orderis absent innative-exacto;- service-tier tags (
/fast,/flex) were not included by accident; - cache-heavy sessions carry a stable
session_id, and the consequences of a manual order are noted; - a small sample is not over-read;
- the final request JSON is syntactically valid;
- the minimal verification of the top candidates was proposed — and run where possible — and a ranking without it was called a hypothesis;
supports_implicit_caching, TTFT and throughput were not taken on faith wherever the conclusion depends on them.
Bundled resources
scripts/rank_providers.py— the standalone ranker and routing-fragment generator.scripts/probe_endpoints.py— the minimal verification of candidates with real requests: TTFT, TPS, cost, cache hit,max_tokenscompliance and error class; judges each against the thresholds passed, exit code4when none survives.scripts/validate_skill.py— self-check of frontmatter, resources, syntax and unit tests.assets/config.example.json— a config for a tool-using agent workload.assets/observations.example.json— aggregated provider observations.assets/telemetry.example.jsonl— raw request-level observations.tests/trigger-evals.json— positive and negative activation queries for the description.references/scoring.md— the formula, normalisation and profiles.references/input-formats.md— the config and telemetry schema.references/openrouter-routing.md— semantics OpenRouter routing/caching.references/storefront-traps.md— reproduced disagreements between catalogue fields and endpoint behaviour; read it before ranking.
To validate the package, run:
python3 scripts/validate_skill.py版本历史
-
v10.11.0
GitHub ↗
原版更新说明
## pragmatic-architecture (new) A design method for simple solutions that are not fragile, from the choice of model, state ownership and boundaries down to the order of implementation steps. It unfolds Kent Beck's rule: "For each desired change, make the change easy (warning: this may be hard), then make the easy change." - **Two tests, in order.** A design that breaks a must under a realistic sequence of events is out. Among the admissible ones, prefer the design in which this change and the next plausible ones cost least. - **A route of eight steps,** each ending in an output, from naming the change to rehearsing it. How deep to go is decided by what the change touches, not by the size of the diff. - **The context that decides a design** is part of the method: eight groups of facts, a filter question, criteria, cost over the horizon and a stopping condition (`references/context.md`). - **A property card for each promise at risk:** mechanism, assumptions, a counterexample of 3-4 events, the nearest failure the mechanism does not stop, evidence, recovery. - References on models and boundaries, failure and recovery, the change path, and 22 moves indexed by symptom. The `architecture-consilium` skill in [pragmatic-orchestration](https://github.com/CodeAlive-AI/pragmatic-orchestration) applies the method with several independent architect models. Not measured yet: the effect of the skill on real design work. One probe on a single task showed no difference with and without the core; the task was too easy to tell. ## pragmatic-verification - Case design: a mode, setting or permission the user can turn on needs a case that turns it off again and one that shows which state is current. ## maintaining-macos-health - `mac-heavy` rewritten: a holder blocks other heavy jobs only while it is busy (its first 45 s, or while its process tree uses at least 50 % CPU or 1024 MB RSS), so something light wrapped by mistake no longer holds the queue. ## fetch-url-as-markdown - The script runs through `uv` with an inline PEP 723 header and a lock file, instead of a system-wide `pip` install.
-
v10.10.0
GitHub ↗
原版更新说明
## pragmatic-verification Three gaps found by an experiment in which two models planned the verification of a real issue with and without the skill: - **Time bounds are boundaries.** Delays, timeouts, expiry and upper caps are checked just before and just after the bound with a controlled clock, including the cap that ends waiting and a wait that outlives the process. - **Platform rules a substitute does not enforce.** The fidelity questions for a significant fake now ask which rules of the real platform (required user-visible effects, permissions, background limits, quotas, sizes, signing) the substitute skips. - **The purpose after release.** When a change exists to move an outcome only real use shows, closeout names the signal, its baseline and when it is read, and reports the purpose as not verified until then. ## maintaining-macos-health - Memory guard: recalibrated alert and kill thresholds, swap gated on VM free space, limited freezes, a 60-second projection; the 120-second frozen-unit hold and the repeat-offender exception restored; ALERT on slow swap growth with less than 10 GiB free. ## skills-management - `install_skill.py --link` no longer refuses to link a canonical source that the duplicate audit finds at the same real path. - A project-scope install from inside a skill directory is refused, and the CLI prints the same command with `--scope global`. ## fpf-problem-solving - Library synced with upstream; new Core patterns routed. ## Docs - README: the `openrouter-provider-ranking` skill now points to rodion-m/model-that-fits-my-task; the skill tree is rebuilt.
-
v10.9.0
GitHub ↗
原版更新说明
- **Renamed:** `verification-playbook` is now `pragmatic-verification`. Install it under the new name; the old name no longer exists. - **New: audit of an existing project.** The skill now audits the tests, gates and QA practice of a project with no particular change at hand (`references/suite-audit.md`). The auditor sizes the project, asks once (scope, worker models, parallelism, whether anything may be run), splits the tests into shards, lets cheaper worker models scan them, verifies their claims itself and reports three to seven ranked, concrete fixes. Read-only and static by default. No score and no coverage target. - **Worker contract** (`references/suite-audit-worker.md`): lettered signals for self-confirming and vacuous tests, doubles, level, duplicates, brittle and flaky sources, checks that may be off, heavy setup and UI hygiene. Every finding carries a file, a line and one line quoted exactly, so locations are checked mechanically. - **Calibrated on a real repository** with three worker models (21 runs). What the run changed: - The auditor reads each critical shard itself and also gives it to one worker. One model found between a third and two thirds of what three found together. - Shards stay at about 2,000 lines for any model: a larger shard gave every model fewer findings per line. - Findings of several workers are joined by location, recall is counted by signal family, and search hits are classified by reading before they serve as the answer key. - Delivery rules for harnesses confined to the repository, and a read-only check that compares the audited files with the recorded revision. - The worker's own confidence is not used to pick what to verify.
-
v10.8.0
GitHub ↗
原版更新说明
- New `verification-playbook` skill: a language-agnostic playbook for thoughtful tests and checks. For each risk, pick the cheapest check that still contains the mechanism of the defect and lets the correct result be observed. - Decides what goes to unit, integration, contract or e2e, when to mock and what must stay real, and how to avoid self-confirming, redundant, brittle and flaky tests. - Plans and runs QA passes through browser, computer or phone use, and closes out with per-claim evidence statuses (verified / partially verified / not verified / blocked). - Compact `SKILL.md` (~2k tokens) with a read-when table, eight topical references and per-stack tooling files (Python, TypeScript/JavaScript, JVM, .NET, Go, mobile).
-
v10.7.0
GitHub ↗
原版更新说明
- New `mac-heavy` wrapper (maintaining-macos-health): one Mac-wide slot for heavy local work (lint, type checks, tests, installs, land gates); admits only while the memory guard reports CALM; nested calls run inline; default wait 30 min, exit 75 on timeout; `mac-heavy status` shows holder, waiters and guard level; best-effort ledger without argv. - The memory guard now writes a live status file every sample (`~/.local/state/mac-health/memory-guard.status`), atomically, at mode 0600. - If the guard status is unavailable, admission warns visibly and uses the slot alone.
此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗
当前收录版本
1.0.0
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
待提升项
-
文档过长 原报告严重程度:轻微
主文档超过500行,可能影响用户阅读体验
改进建议:考虑将部分详细说明移至附录或拆分章节
亮点
- 解决 OpenRouter 多 provider 环境下端点选择的实际痛点
- 覆盖 TPS、延迟、价格、缓存命中率、工具调用质量等关键维度
- 适用于 AI 开发者、运维工程师等高频刚需场景
亮点
- 触发条件明确且完整,覆盖多种操作类型和指标维度
- 边界清晰,明确排除了不适用范围
- description 位置正确,内容无截断
待提升项
-
缺少独立 'When to Use' 章节 原报告严重程度:轻微
使用场景说明集成在 description 中,未单独列出章节
改进建议:建议增加独立的 'When to Use' 章节以提升可读性
亮点
- Phase/步骤清晰,包含6个完整执行阶段
- 提供端到端可执行示例和验证命令
- frontmatter 完整,包含兼容性说明和元数据
亮点
- 工具来源明确,提供完整的 bundled scripts
- 参数说明详细,覆盖主要异常情况和错误码处理
- 不可逆操作有明确确认机制和后果说明
- 支持离线模式和在线 API,具备良好的容错性
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 25 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。