agentleFS
hongkongkiwihongkongkiwi/omniroute-skill/skills/omniroute/SKILL.md

omniroute

Skill0 starsChanged 36 days agoMITView on GitHub

Use when web search is needed but built-in search tools are unavailable, rate-limited, or a specific search provider is wanted, when an OmniRoute gateway's model catalog is needed, for an ad-hoc one-shot LLM call as a sub-step in a larger task (never instead of the session model), or when the OmniRoute gateway is down or returning 502 and needs a health check.

  • Reads credentials

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. rakaarwaky/agents-arwaky★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If your tool shell doesn't persist state between calls, re-inline both variables per command.

    line 17
  2. Distinctive:

    Use for: web search when built-in tools fail or a specific provider is needed.

    line 21
  3. Distinctive:

    Do NOT use for: the session's own model routing (the CLI's native provider config already does that) — and note that the gateway's memory …

    line 23

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

OmniRoute gateway

REST access to an OmniRoute LLM gateway: web search with sources, the model catalog, and one-shot LLM calls.

Config

BASE="${OMNIROUTE_BASE_URL:-http://127.0.0.1:20128}"
if [ -n "$OMNIROUTE_API_KEY" ]; then K="$OMNIROUTE_API_KEY"; else K=$(cat ~/.omniroute/agent-skills.key); fi   # never print or echo the key

If your tool shell doesn't persist state between calls, re-inline both variables per command.

When to use / not use

Use for: web search when built-in tools fail or a specific provider is needed; listing what models the gateway serves; one-off LLM calls (classify, summarize, extract) inside a task.

Do NOT use for: the session's own model routing (the CLI's native provider config already does that) — and note that the gateway's memory and skill-execution surfaces are MCP-only, not reachable over REST.

Web search (returns sources)

curl -s -m 45 -X POST "$BASE/v1/search" \
  -H "Authorization: Bearer $K" -H "Content-Type: application/json" \
  -d '{"query":"<what to research>"}'

Response shape: {"provider":"…","query":"…","results":[{"title","url","display_url","snippet"}]}. Snippets can run 30+ lines each — extract bounded: | jq -r '.results[0:3][] | "\(.title) — \(.url)"', and read a specific snippet only when needed: | jq -r '.results[0].snippet'. Cite the url values you used.

The provider is auto-selected when omitted (free on default setups). To force one, pass "provider":"<value>" — valid values depend on the search providers configured on your instance, and an unknown value fails fast with {"error":{"message":"Unknown search provider: …","type":"invalid_request_error"}} so you can retry. Slugs verified on a reference instance (3.8.51): serper, anysearch, zai, brave, exa (exa can take 30s+). There is no result-count parameter (limit is ignored).

Model catalog

curl -s -m 10 "$BASE/v1/models" -H "Authorization: Bearer $K" | jq -r '.data[].id' | grep -iE '<pattern>'

The catalog can hold 1000+ ids — always filter with grep; never dump the raw list into context. Combo ids like auto/best-coding route to a picked backend automatically; plain ids are direct models.

One-shot chat call

curl -s -m 60 -X POST "$BASE/v1/chat/completions" \
  -H "Authorization: Bearer $K" -H "Content-Type: application/json" \
  -d '{"model":"auto/best-coding","messages":[{"role":"user","content":"<prompt>"}]}'

Standard OpenAI shape — content at .choices[0].message.content.

Troubleshooting

  • Health (no auth needed): curl -s -m 5 "$BASE/api/health" → {"status":"ok",…}.
  • Connection refused or 502: check health, restart your OmniRoute service (e.g. launchctl kickstart -k gui/$(id -u)/im.omniroute.server when installed as that LaunchAgent), then re-check health.
  • 401 (or the keyfile is absent): recreate with omniroute api api-keys post-api-keys --body '{"name":"agent-skills","scopes":["execute:search"]}', write the returned key to ~/.omniroute/agent-skills.key (chmod 600). Never print it.

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.