Skip to navigation

SKILL.md

The instructions that teach an agent to use AgentRouter
View as Markdown

The AgentRouter skill is a short SKILL.md that tells an agent which entry to use, how to find, describe and invoke tools, how to recover long runs and pages, how to stay within spending limits, and when to send feedback or open a dispute. Provider-specific prices, limits and examples are not in the skill; they come from describe and run hints, so the skill does not change when tools are added.

There is one canonical skill. The copy served at agentrouter.to/SKILL.md and the copy inside the plugin are generated from it and carry the same metadata.version (currently 1.1.0).

Install

HostHow
Claude Code, Codex, CursorInstall the plugin; it includes the skill and the MCP server.
Standalone SkillAsk your agent to install AgentRouter’s Skill and connect. It installs into the current harness’s user skills directory.
Other MCP hostsConnect the MCP server.

A standalone install works across projects. The default Skill directories are ~/.codex/skills, ~/.claude/skills, ~/.pi/agent/skills, ~/.dsh/skills, and ~/.cursor/skills for their respective harnesses. The harness’s configured user directory takes precedence. The agent installs its CLI beside the Skill, opens the browser if sign-in is needed, and verifies the connection.

What the skill tells the agent

  1. Use the entry the user named. Otherwise prefer connected MCP tools, then the CLI, then the HTTP API; never claim a call ran when no entry was available.
  2. Respect tools the user already has for the same job.
  3. Find with a short query, describe a tool once before its first invoke, and reuse that until a price or version change is reported.
  4. Choose tools within the task and the user’s spending rules; do not stop just to make the user pick a provider.
  5. Use real limit values from the schema, not round numbers.
  6. Tell apart a run still in progress, a provider error, a legal empty result and unavailable content; check the original run before trying again, and never invoke again to poll.
  7. Keep large results in files or result links instead of the conversation.
  8. Feedback never refunds; open a dispute, with the user’s permission, only when a correct input returned a charged result that was wrong or unusable.
  9. When funds or budget run out, report the reason and give the user a top-up link; a link is not a payment.

Versions

The skill declares minimum-cli-version: 0.2.0. A skill update ships with a plugin version bump; hosts keep the installed version until the user updates.