agentleFS
AkurganowAkurganow/model-router/.agents/skills/add-provider/SKILL.md

add-provider

Skill1 starsChanged 8 days agoMITView on GitHub

Use when adding a provider that answers the scoring questions, which is a new value of the `provider` setting, or when a provider releases a model that OpenRouter serves. Not for a new gateway, not for a new harness, and not for a calibration of the existing questions alone.

  • Reads credentials

23 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use add-migration, add-tool and 4 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • PipelexSkill

    add-migration

    Write a migration ledger entry for a configuration schema change in pipelex, so that a user's existing file can be repaired instead of thrown away. Use when `make check-migration-schemas` (alias `cmig`) or `make check-ledger` (alias `cl`) refuses a change, when the user says "add a migration", "write the ledger entry", "the coverage gate is failing", "bump the schema version", "migration entry", "the migration gate won't let me", "account for this schema change", or after any edit to a configuration model that removed a key, renamed one, moved one, retired an enum member, or tightened what a value may be. This is the only skill that writes a ledger.

    Also in 3 projects that use this

  • MicrosoftSkill

    add-tool

    Add a new tool to PilotSwarm. Covers defining the tool with defineTool(), registering it on the worker (worker-level or per-session), referencing it from the client via toolNames, and adding an integration test.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    release-notes

    Author and update release notes for Azure App Configuration libraries and providers. USE FOR: write release notes, add release note entry, update release notes, draft release notes, new version release notes, format release notes. DO NOT USE FOR: generating changelogs from git history, writing internal engineering notes.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    verify

    End-to-end app testing pipeline for browser-based web apps on cloud browsers via Azure Playwright Workspaces: verify the live app, author tests for working flows, heal failing tests, then re-run with video and produce one consolidated report. Three phases (app verification, test authoring, test healing) plus a scoped final sanity run; each phase emits a sub-report. Use when asked to "verify my app", "make sure my app works and has good test coverage", "do a full QA pass", "add tests where I'm missing coverage", "fix failing tests and add new ones", "smoke test before deploy", "QA my deployment", or any combined verify-and-test ask. Requires Azure CLI (`az login`) and a Playwright Workspace resource ID — bootstraps configs on first invocation. Browser-based web apps with Playwright only — not for unit/API tests, native mobile/desktop, load/perf, or full accessibility audits.

    Also in 3 projects that use this

  • MicrosoftSkill

    release

    Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).

    Also in 4 projects that use this

  • SentrySkill

    commit

    Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

44 rules. 0 are common, 17 are distinctive, and 27 are very specific to this project.

  • 0

    Common

    Most of the 20 edited versions we read keep these.

  • 17

    Distinctive

    This author's own choices. Worth a look.

  • 27

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Every maker has both paths, its own API and OpenRouter.

    line 10
  2. Distinctive:

    Follow the steps in order.

    line 18
  3. Distinctive:

    No check names the rest, and most of this skill lists them.

    line 20
  4. Distinctive:

    Read the provider's documentation for the address, the key header, the request body and the reply.

    line 29
  5. Distinctive:

    Read the provider's privacy policy for what it keeps of a request.

    line 37
  6. Distinctive:

    Search Runs against the scoring hosts on the wiki for a recorded request to that host.

    line 39
  7. Distinctive:

    Ask the maintainer before the request, with the host, the model and the question, as Ask first says.

    line 47
  8. Distinctive:

    Put the entry on the scoring hosts page, and push it as Record the run says.

    line 50
  9. Distinctive:

    Stop and report to the maintainer when one request cannot give both answers and their probabilities within 5 s.

    line 54
  10. Distinctive:

    Put the source of each new sentence on the client's evidence page of the wiki, as Adding evidence says.

    line 68
  11. Distinctive:

    No question below needs code first, and a late answer throws edits away.

    line 83
  12. Very specific:

    When MAKERS gets a fifth maker: how does Claude Code offer it?

    line 91
  13. Distinctive:

    Do the evals score through the new provider?

    line 93
  14. Very specific:

    Add a file in src/core/scoring/formats/ that exports a Format.

    line 103
  15. Very specific:

    Write its unit test first, with literal bodies, as src/core/__tests__/unit/system-one.test.ts does.

    line 104
  16. Very specific:

    Write body and read as the comment on Format in src/core/scoring/formats/format.ts says, and build read with replyReader from shared.ts.

    line 105
  17. Very specific:

    Import only what Repository layout allows formats/.

    line 108
  18. Distinctive:

    Every provider takes the next seven steps.

    line 112
  19. Very specific:

    Create src/core/scoring/makers/<maker>.ts in the form of openai.ts, and export one MakerModule constant named after the maker.

    line 114
  20. Very specific:

    Check that the vendor test in src/core/__tests__/unit/registry.test.ts covers the new module.

    line 120
  21. Distinctive:

    No check reports a provider that needs another request.

    line 126
  22. Very specific:

    Read the field in ask, or in src/core/scoring/transport/ when it changes a retry or a wait.

    line 133
  23. Very specific:

    Add the status to FALLBACK_STATUSES, with its failing row first, and to the statuses in The provider and the gateway.

    line 140
  24. Very specific:

    Add the name to MAKERS in src/core/providers/provider.ts.

    line 146
  25. Very specific:

    Add a test with a URL constant like TYPESAFE_URL in plugins/model-router/tests/keys.test.ts, one for each new address.

    line 152
  26. Very specific:

    Add the new key to SECRETS and to the tuple of sentinels in plugins/model-router-hermes/tests/test_sentinel.py, which passes without it.

    line 154
  27. Very specific:

    Add it to the expected keys of a case only when the provider and gateway that case stores ask it.

    line 155
  28. Very specific:

    Run npx tsc -p src and npx tsc -p scripts.

    line 156
  29. Distinctive:

    When a reply of a provider that serves Jev names the fitted model in another form, tell the maintainer that the warning prints on every run.

    line 180
  30. Distinctive:

    When the run misses the bar that section sets, stop and report to the maintainer.

    line 186
  31. Very specific:

    Run node scripts/build.ts, then npm test.

    line 190
  32. Very specific:

    Run python3 -m unittest discover -s plugins/model-router-hermes/tests and claude plugin test plugins/model-router, which npm test leaves …

    line 191
  33. Distinctive:

    Add what each failure names, rebuild, and run every suite again until all pass.

    line 192
  34. Very specific:

    Add plugins/model-router-hermes/tests/fixtures/<provider>-direct.json only when the provider's request differs in shape from …

    line 222
  35. Very specific:

    Run claude plugin validate --strict plugins/model-router, and compare the variables it prints with the row of $.env.get.

    line 253
  36. Very specific:

    No eval sets provider or gateway today, so each client asks the default maker, typesafe, on its own API.

    line 259
  37. Very specific:

    Check that both know the shape of the new provider's keys, and add a missing shape to each.

    line 277
  38. Very specific:

    No test reads these texts for a provider's name.

    line 282
  39. Very specific:

    Run git grep -n -i -E 'typesafe|openrouter' -- '*.md' metadata/source.json scripts/build/npm.ts ':!CHANGELOG.md' ':!packages', and read …

    line 286
  40. Very specific:

    Write the key's text in keys.<holder> of metadata/source.json in the one shape of every maker: "The plugin sends it to <company> when …

    line 302
  41. Very specific:

    Run git grep -n -i -w -E 'both|either|two|three|second|other provider|four' -- '*.md' metadata/source.json scripts/build/npm.ts …

    line 306
  42. Very specific:

    Run git grep -n 'Jev' -- '*.md' metadata/source.json scripts/build/npm.ts src ':!CHANGELOG.md' ':!packages', and reword each hit that says …

    line 310
  43. Very specific:

    Read OpenRouter's catalog, and refresh openrouterNames in each module with the new model names and their slugs.

    line 321
  44. Distinctive:

    Ask the maintainer for a live run of each, with its question, as the live-run skill says.

    line 333

“Common” is measured: kept by at least 6 in 10 of the 20 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Add a scoring provider

A scoring provider is a maker: a company whose model answers the questions tier and work for a task. The provider setting names the maker, and the gateway setting says whether OpenRouter is used. Every maker has both paths, its own API and OpenRouter. Its module in src/core/scoring/makers/ holds one endpoint for each path. Each endpoint names the wire format that it speaks and the model it takes. src/core/scoring/formats/ holds the formats. Jev is the model the questions are fitted to, and only some paths serve it. Repository layout says what each folder of src/core/ holds. docs/providers.md says what the plugins do with a provider.

Follow the steps in order. The type check and the tests name some of the places that change. No check names the rest, and most of this skill lists them. The change also follows Build and check, Before you push and Four harnesses, one behaviour. So every check runs again after the last edit.

Check the provider's API first

This skill holds no fact about any provider's API. Each such fact comes from the provider's documentation, or from a recorded request to its host.

  1. Read the provider's documentation for the address, the key header, the request body and the reply.
  2. Find whether one request answers both questions, with a probability for each of the three levels.
  3. Find whether an answer comes within the 5 s that a first attempt gets.
  4. Find the models the endpoint takes, whether it serves Jev, and the model name and token counts a reply gives.
  5. Find whether OpenRouter serves the model, and its address and model name there.
  6. Find which statuses and headers ask for a retry or a wait.
  7. Find which statuses mean a failed key or a spent quota.
  8. Find whether the provider accepts a task text that quotes an image reference, as The request describes one.
  9. Read the provider's privacy policy for what it keeps of a request.
  10. Note the address of the page behind each fact, for the documents and the pull request text.
  11. Search Runs against the scoring hosts on the wiki for a recorded request to that host.
  12. Where neither the documentation nor a recorded request settles a fact, plan one request sent straight to the host.

The next four steps hold only for such a request. Their links were written for a run of a harness, and such a request has no harness and no cap to state. Its key comes from the variable the provider will have in KEY_VARIABLES in src/core/providers/provider.ts. Choose that name now, as the present variables are named: no README names one yet.

  1. Ask the maintainer before the request, with the host, the model and the question, as Ask first says.
  2. Send the request, and handle the key as Keep keys secret says.
  3. Record it as an entry of the kind hosts, by Adding an entry on the wiki's Home page.
  4. Put the entry on the scoring hosts page, and push it as Record the run says.

The stop below holds with or without a request.

  1. Stop and report to the maintainer when one request cannot give both answers and their probabilities within 5 s.

Look up what the harnesses need

findKey in src/adapters/omp/settings.ts passes each key holder's name to omp's getApiKeyWithCredentialForProvider. So the maker's name must be the id that omp gives the provider.

  1. Find that id in omp's source or documentation.
  2. Find whether OpenClaw's list of credential variables holds the provider's usual key variable.
  3. Find whether a provider of Hermes's own reads the provider's usual key variable. Search Hermes's source for the variable's name: its provider registry does not list every reader, as OpenRouter shows. Hermes registration and settings says how Hermes stores a secret setting.
  4. State the omp id, or that omp has none, as one plain sentence under omp model roles.
  5. State what OpenClaw's list holds under OpenClaw runtime, logs and environment, which says what OpenClaw does with a listed one.
  6. State whether a provider of Hermes's own reads the provider's usual key variable, under Hermes registration and settings.
  7. Put the source of each new sentence on the client's evidence page of the wiki, as Adding evidence says.
  8. Take the omp id as the name, or with no such id the provider's own name in lower case.
  9. Choose the key's setting name, and its variable if not yet chosen, after KEY_VARIABLES and KEY_FIELDS in src/core/providers/provider.ts. That name serves Claude Code, OpenClaw and Hermes.

The value of provider is the name in MAKERS. The key lines and the routing line print the key holder's name as KEY_HOLDERS spells it.

Ask the maintainer once

A provider with a model of its own is a maker. steps in src/core/providers/provider.ts asks the maker of the choice on each path of its gateway. So a maker gets its attempts once MAKERS holds it and a user sets provider to it.

A second gateway, a provider with a key and no model of its own, and a maker that OpenRouter does not serve have no step in this skill: stop and report each.

No question below needs code first, and a late answer throws edits away.

  1. Send the maintainer one message with every question below that applies, and wait before the first edit of the code.

The questions:

  • Is the provider a value of provider, and at which place of MAKERS? The first value is the default.
  • What label does the value take? consequences under provider in TEXTS in src/core/options/settings.ts holds it.
  • When MAKERS gets a fifth maker: how does Claude Code offer it? Hooks module states the limit of the dialog that choose in src/adapters/claude/config.ts opens.
  • Does a status of a failed key or a spent quota reach the next attempt? FALLBACK_STATUSES in src/core/scoring/failure.ts holds the statuses that do.
  • Do the evals score through the new provider?
  • Does the calibration run against the new maker? MAKER in scripts/calibrate.ts names the one maker it asks, so a run means changing it. Paid runs exempts Jev calls only.

The wire format

A provider whose endpoint speaks a format that src/core/scoring/formats/ holds reuses it and adds no format. An Endpoint names the format of its path, so the two paths of a maker can differ.

The next six steps hold only for another API.

  1. Add a file in src/core/scoring/formats/ that exports a Format.
  2. Write its unit test first, with literal bodies, as src/core/__tests__/unit/system-one.test.ts does. Record a reply of the endpoint as a constant in src/core/__tests__/support/replies.ts, and read it in the test.
  3. Write body and read as the comment on Format in src/core/scoring/formats/format.ts says, and build read with replyReader from shared.ts.
  4. Return MALFORMED from read for a reply it cannot read.
  5. Map the API's question, answer and token shapes inside the format, and leave Part as it is. A reply shaped like the map of mapAnswer needs only the names of its token counts.
  6. Import only what Repository layout allows formats/; Biome reports any other import.

type: "score" in Part is System One's wire literal, which another format translates.

Every provider takes the next seven steps.

  1. Create src/core/scoring/makers/<maker>.ts in the form of openai.ts, and export one MakerModule constant named after the maker.
  2. Give it an Endpoint for direct and openrouter, each with url, format, model and keyHeader.
  3. Give MODULES in src/core/scoring/maker-registry.ts its entry. The type check fails on it until MAKERS holds the name.
  4. Set vendor to the company that OpenRouter names in the slugs of this maker.
  5. Set openrouterRoute to system-one when OpenRouter's route takes a bare name, and to decisions when it takes vendor/name.
  6. Fill openrouterNames with each model name that the provider's API takes, and the slug OpenRouter gives it in its catalog.
  7. Check that the vendor test in src/core/__tests__/unit/registry.test.ts covers the new module. It loops over MAKERS, so a module with a wrong prefix fails it.

The import and branching rules of scoring/ bind the module.

ask in src/core/scoring/ask.ts sends every provider the headers that The request lists. It puts the key in the header that the endpoint's keyHeader names, with its prefix. No check reports a provider that needs another request.

  1. For a key header other than BEARER, put its constant into the new module, as GOOGLE_KEY is in google.ts. Move it to src/core/scoring/maker-module.ts once a second module needs it.

The next four steps hold only for another request than the one ask builds.

  1. For a model in the URL or a wait the body names, add a field to Endpoint in src/core/scoring/maker-module.ts.
  2. Read the field in ask, or in src/core/scoring/transport/ when it changes a retry or a wait.
  3. Change The request when a header or the body changes for any provider.
  4. Change Retries and the second attempt when a retry or a wait changes.

FALLBACK_STATUSES serves every provider. The next step holds only when the maintainer sent a new status on to the next attempt.

  1. Add the status to FALLBACK_STATUSES, with its failing row first, and to the statuses in The provider and the gateway.

Let the type check lead

KEY_HOLDERS follows MAKERS, so one new name there starts the type errors.

  1. Add the name to MAKERS in src/core/providers/provider.ts.

The route test pins the address of a path only once its ADDRESSES row exists, and a wrong address sends the key and the task text to another host. So the provider's own address rows come first, as Tests asks.

  1. Give ADDRESSES in src/core/__tests__/integration/route.test.ts a row for each new path of the module. A row holds the address, the model name sent, the key header as a name and value pair, a reply in the endpoint's own format, and the model and token counts the decision then holds. Formats that read a map-shaped reply can differ only in the names of the token counts, so the row holds the reply and the counts.
  2. Add a test with a URL constant like TYPESAFE_URL in plugins/model-router/tests/keys.test.ts, one for each new address. A reply that the harness's default System One map does not satisfy needs a text of its own, as OPENAI_ANSWER is.
  3. For a key header other than Authorization, add its name to the headers of Request in plugins/model-router/tests/harness.ts, which now lists Authorization and x-goog-api-key, and read it through h.request.init?.headers. h.auth holds Authorization only.
  4. Add the new key to SECRETS and to the tuple of sentinels in plugins/model-router-hermes/tests/test_sentinel.py, which passes without it. Add it to the expected keys of a case only when the provider and gateway that case stores ask it.
  5. Run npx tsc -p src and npx tsc -p scripts.
  6. Fill each place an error names, and run both again until both pass.

The errors name each place. They do not say this:

  • In keyVariable in src/adapters/claude/keys.ts, the provider gets its own $.env.get call with the variable's name as a literal.
  • Options in src/adapters/claude/host.ts derives its key members from KEY_FIELDS, so it needs no edit.
  • LOOKED_UP in src/core/__tests__/unit/provider.test.ts shows because npx tsc -p src reads the tests too.
  • The error at consequences under provider in TEXTS in src/core/options/settings.ts asks for the value's label: the text that follows the value's name wherever a harness lists the values.
  • scripts/calibrate.ts shows nothing and gains no row. It asks one maker by design, and The model behind the provider says when that changes.
  • FIXTURE in scripts/build-shape.test.ts shows first under scripts/: its keys record takes a row for the key holder. scripts/build/ maps a key holder to its setting through KEY_FIELDS for all three harnesses, so no builder and no type needs an edit.

The model behind the provider

The calibration asks one maker. MAKER in scripts/calibrate.ts names it, and the script derives from it the two key holders it takes: the maker's own and openrouter. The question texts and the factors of the pick rule in src/core/parts/tier.ts and src/core/parts/work.ts are fitted to the answers of that maker. One set serves every provider, so a new provider adds no row to the script and changes neither MAKER nor the factors, unless a run against the new maker is agreed. The three steps below then change MAKER and nothing else.

fitWarnings in scripts/jev-fit.ts drops the vendor prefix of a reply's model name, the text up to the last /. It compares the rest with FITTED_ON as text.

  1. When a reply of a provider that serves Jev names the fitted model in another form, tell the maintainer that the warning prints on every run.

The next three steps hold only for a run against the new maker, and only after the maintainer agreed to it.

  1. Change MAKER in scripts/calibrate.ts to the new maker, and read the key holders of its usage text.
  2. Change the command line under Calibration to those key holders, and run the calibration it describes.
  3. When the run misses the bar that section sets, stop and report to the maintainer.

Let the tests lead

  1. Run node scripts/build.ts, then npm test.
  2. Run python3 -m unittest discover -s plugins/model-router-hermes/tests and claude plugin test plugins/model-router, which npm test leaves out.
  3. Add what each failure names, rebuild, and run every suite again until all pass.

The failures name each place. They do not say this:

  • The key's title and text are one record in metadata/source.json, keys.<holder>, and Claude Code, OpenClaw and Hermes all show it. loadSource in scripts/build/source.ts runs keyHolderProblems after the schema, and the build stops with the holder that is missing or extra. The schema and the Source type need no edit.
  • Most failing rows pin a literal, which stays a literal: write the new one out. Among them are the use one of and label texts in src/core/__tests__/unit/settings.test.ts, HINTS in src/adapters/claude/__tests__/integration/manifest.test.ts and the dialog test in plugins/model-router/tests/config.test.ts.
  • plugins/model-router-hermes/tests/test_config_tool.py holds SECRETS and, beside it, the expected key lines, both written by hand.
  • scripts/build-texts.test.ts fails until options.provider.description in metadata/source.json and the models text name the value as a whole word, in every harness that shows them.
  • plugins/model-router-hermes/tests/test_defaults_and_gates.py holds the key holders of each gateway value as a table, written by hand.
  • The build writes the bundles, the npm tree, the manifests and plugins/model-router-hermes/constants.json. The Hermes Python source needs no edit.
  • A new maker reaches the choices of provider in plugins/model-router-hermes/plugin.yaml, and the settings and choices of constants.json. scripts/build/hermes.ts needs no edit.
  • The literal tables of constants.json and plugin.yaml in scripts/build-hermes.test.ts fail until you write the new value out in each list of makers. Its choices literal keeps the openai block only, so the new maker needs no block.
  • src/adapters/claude/__tests__/unit/keys.test.ts loops over MAKERS and fails until keyVariable reads the new variable.
  • Hermes asks a new maker like the other three harnesses, once a user stores it as provider.
  • Biome reports no place that lacks the provider. It checks the format, so run npm run fix after a hand edit.
  • A test that stands in for a value that is not valid with a company's name breaks when that company becomes a maker, as src/adapters/omp/__tests__/unit/settings.test.ts did with "openai". Pick a stand-in that no maker will take.
  • scripts/skill-labels.test.ts fails until each of the four model-router-setup/SKILL.md lists the new value with its label.
  • A test title that counts settings, such as "eleven settings", takes the new count.
  • cleanModel in src/core/scoring/reply.ts keeps only the characters it lists in a reply's model name. Check that it keeps every character of the new slugs.

Each test below holds a rule that every maker shares in one row, so a new maker adds no row to it:

  • src/core/__tests__/unit/provider.test.ts holds that the maker's own key is the first holder of its direct path, in one plan row and one collectKeysSync row of openai.
  • src/core/__tests__/integration/decide.test.ts holds one row for each line shape: openai direct, openai through OpenRouter and google direct. A shape no row holds, such as a reply with no model name, adds one.
  • src/core/__tests__/unit/settings.test.ts holds one settingsReport row of openai, which docs/providers.md quotes.
  • The edge rows of a blank key, spaces and null stay with the typesafe rows of each harness's key test.
  1. Add plugins/model-router-hermes/tests/fixtures/<provider>-direct.json only when the provider's request differs in shape from google-direct.json.

google-direct.json is the one fixture of a maker other than typesafe. Its replay in src/adapters/hermes/__tests__/integration/index.test.ts shows that provider passes through.

The next step holds only when a setting gets a fifth value. Then only claude plugin test fails, at the dialog, and the adapter's unit test passes with its fake engine.

  1. Offer the values in the Claude Code dialog as the maintainer answered.

What nothing reports

Each place below keeps its old text while every check passes.

OpenClaw

  1. Correct what plugins/model-router-openclaw/PRIVACY.md says a .env file can supply, by what you stated under OpenClaw runtime, logs and environment.

Hermes

Hermes stores each key's secret setting under the key's variable. The next three steps hold only when a provider of Hermes's own reads that variable.

  1. State the full effect once, under the table of Keys in the Hermes README.
  2. In plugins/model-router-hermes/PRIVACY.md, say in one sentence what a key saved in the form changes in Hermes itself, and link that Keys section.
  3. In the keys list of plugins/model-router-hermes/skills/model-router-setup/SKILL.md, say the same one sentence and link that Keys section.

Claude Code

  1. In What this mod can reach, add the variable and the provider to the rows of $.env.get and $.http.fetch.
  2. Name the key and the provider in the answers on secrets and on usage above the table.
  3. Run claude plugin validate --strict plugins/model-router, and compare the variables it prints with the row of $.env.get.

node scripts/check-surface.ts still passes: it compares engine calls, not variable names.

Evals

No eval sets provider or gateway today, so each client asks the default maker, typesafe, on its own API. Claude Code keeps it under pluginConfigs in settings.json, as Manifest says. omp keeps it in its lockfile, as omp manifest and settings says, and a project never changes it. MODEL_SEGMENT in scripts/evals/stream.ts reads the decision line: it accepts any name of KEY_HOLDERS and keeps only the model. So a case passes whichever key holder answered.

The next four steps hold only when the evals score through the new provider.

  1. Pass its key in clientEnv in scripts/evals/scrub.ts, and require it in missingKeys in scripts/evals/run.ts.
  2. Name its secret in .github/workflows/evals.yml.
  3. In each client's job of that workflow, set provider to the new maker in the client's own store after the plugin's install.
  4. Make the eval read the key holder from the decision line, and fail a case that another key holder answered.

Key shapes

scripts/scan-owner-setup.ts knows some key shapes, and so does the masking in src/core/brief/brief.ts. The task text lists the shapes of the masking and changes with it.

  1. Check that both know the shape of the new provider's keys, and add a missing shape to each. Each new shape takes a planted-key row and an adversarial row in src/core/__tests__/unit/brief.test.ts and scripts/scan-owner-setup.test.ts.

The texts that name the provider

No test reads these texts for a provider's name. A new provider is a new company that receives the task text. Each search below reads every Markdown file, metadata/source.json and scripts/build/npm.ts.

  1. Run git grep -n -i -E 'typesafe|openrouter' -- '*.md' metadata/source.json scripts/build/npm.ts ':!CHANGELOG.md' ':!packages', and read each hit. Each hit that lists the makers, their keys, their variables or their hosts takes the new one, whether or not a step below names its file.
  2. In the company table of each of the four PRIVACY.md under plugins/, name the company, its host and its privacy policy.
  3. In each of the four READMEs under plugins/, add the key and its variable.
  4. In the same READMEs, add the new value to the usage of the provider command. Add no label: it lives in TEXTS, and the table in docs/providers.md describes each value.
  5. Name the key's setting in each README whose harness has one; the others say where the key comes from.
  6. In the root README.md, change the first screen and "What leaves the machine". In the Claude Code and omp guides, change the steps under "Set up".
  7. In the list of values of provider in each of the four model-router-setup/SKILL.md under plugins/, add the key, the new value and its label.
  8. In docs/providers.md, change these sections:
    • the table of The provider and the gateway, which describes each value;
    • Keys;
    • What each company does with the text;
    • Your choices;
    • the names and the examples of The routing line;
    • the table of The request, with a row for each path, and its sentences on the key header and on who accepts an image reference;
    • the example of The report lines, which holds a line for each provider.
  9. Change the plugin descriptions under descriptions in metadata/source.json: they name the hosts of the providers' own APIs. In scripts/build/npm.ts, change the lead of the npm README: it names every provider.
  10. Write the key's text in keys.<holder> of metadata/source.json in the one shape of every maker: "The plugin sends it to <company> when provider is <maker> and gateway is not openrouter."

A line that counts providers, keys or variables names none of them, so the first search misses it.

  1. Run git grep -n -i -w -E 'both|either|two|three|second|other provider|four' -- '*.md' metadata/source.json scripts/build/npm.ts ':!CHANGELOG.md' ':!packages', and correct each hit the change makes false.

A text says Jev only where it means Jev itself: the typesafe label, the calibration, the evals and the fit. Elsewhere it says "the scoring model".

  1. Run git grep -n 'Jev' -- '*.md' metadata/source.json scripts/build/npm.ts src ':!CHANGELOG.md' ':!packages', and reword each hit that says Jev where the scoring model is meant.

The rebuild holds for every change.

  1. Rebuild with node scripts/build.ts, because this section changed metadata/source.json.

Keep the OpenRouter names current

A provider that releases a model needs no new module. The step below holds for each such release.

  1. Read OpenRouter's catalog, and refresh openrouterNames in each module with the new model names and their slugs.

docs/providers.md lists no name. The module holds the names, and the config tool prints each provider's OpenRouter model. A name that the catalog lacks stays out of openrouterNames, and OpenRouter answers it with HTTP 400.

Before the pull request

  1. For each file the change touched, name the check or the step of this skill that led you there.
  2. Key by KeyHolder or Maker each place neither led to, or add it to this skill in the same pull request.
  3. Name the commit and the pull request feat, as Commits and pull requests says.
  4. Cite the page behind each API fact in the pull request text.
  5. List each harness whose path of the new key no test and no section of docs/clients.md proves.
  6. Ask the maintainer for a live run of each, with its question, as the live-run skill says.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.