Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add runxhq/runx --skill knowledge-routergit clone --depth 1 https://github.com/runxhq/runxWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/runxhq/runx/knowledge-router)<a href="https://agentmods.dev/skills/runxhq/runx/knowledge-router"><img src="https://agentmods.dev/badge/skills/runxhq/runx/knowledge-router/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/runxhq/runx/knowledge-router"><img src="https://agentmods.dev/badge/skills/runxhq/runx/knowledge-router.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00048 | $0.01540 |
| Opus 5.5 | $0.00019 | $0.00616 |
| Sonnet 5.5 | $0.00010 | $0.00308 |
| Haiku 4.5 | $0.00005 | $0.00154 |
Grade A, and why
knowledge-router scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 145 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Knowledge Router
Produce a validated retrieval and ownership route from a bounded source catalog. This skill decides where evidence should come from and who owns the answer; it does not answer the question or perform the follow-up operation.
knowledge-router resolves references inside an explicit knowledge catalog. Its deterministic validator rejects
invented sources, owners, and skills.
Source catalog
Supply:
{
"sources": [
{"id": "auth-docs", "kind": "docs", "summary": "API authentication and key scopes"}
],
"owners": [
{"id": "security-team", "domains": ["authentication"]}
],
"skills": [
{"id": "research", "purpose": "Resolve a bounded source-backed question"}
]
}
Every selected reference must exist in the corresponding catalog collection.
The owning host selects its maintained index and passes the relevant bounded
neighborhood here once. Optional source locator fields may name local paths,
URLs or provider references; they are data, never new read authority. Keep the
exact input catalog with the result so its selected IDs can be resolved without
rediscovering the index. This skill neither creates a shadow index nor reads the
selected sources.
The route may return no follow-up skill when more context or manual review is the honest outcome. An owner recommendation must match an exact domain that owner declares in the catalog. If ownership is unknown, leave it null rather than assigning the closest team.
Procedure
- Match the question or event to supplied source summaries and owner domains.
- Propose the smallest source set needed to resolve the question.
- Select an owner only when the catalog supports the ownership relationship.
- Select a follow-up skill only when its declared purpose matches the next job.
- Use
manual_reviewfor consequential legal, billing, security, privacy, or destructive decisions—not merely because the topic belongs to those teams. - Validate every source, owner, and skill reference, source-match consistency, declared owner domain and supplied selection limits deterministically.
- Send a refused proposal back with the validator's findings, for at most two revisions; the last refusal is the result.
- Return
needs_more_contextwhen no supported route exists.
What ships with it
27 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- eval_queries.json 2.6 KB
- evals/evals.json 2.7 KB
- evals/files/allowed-owner.json 767 B
- evals/files/api-key-question-catalog.json 883 B
- evals/files/no-skills-allowed.json 615 B
- evals/files/only-source-excluded.json 824 B
- evals/files/owner-only-lease.json 636 B
- evals/files/owner-without-source.json 761 B
- fixtures/composed/run.yaml 946 B
- fixtures/composed/SKILL.md 167 B
- knowledge-router.mjs 6.0 KB runs code
- knowledge-router.test.mjs 11 KB runs code
- mark.svg 410 B
- packets/route.v1.schema.json 4.0 KB
- references/catalog.md 140 B
- references/mark-license.md 3.1 KB
- route.mjs 2.2 KB runs code
- run.yaml 9.6 KB
- tests/accepts-local-retrieval-route-without-reading-sources.yaml 2.6 KB
- tests/composes-in-workflow.yaml 1.0 KB
- tests/ends-when-a-revision-repeats-the-refused-proposal.yaml 1.4 KB
- tests/enforces-source-allowlist.yaml 2.2 KB
- tests/knowledge-router-needs-sources.yaml 105 B
- tests/knowledge-router-rejects-invented-reference.yaml 2.0 KB
- tests/knowledge-router-validates-source-owner-and-skill.yaml 2.0 KB
- tests/refuses-limits-outside-the-catalog-before-proposing.yaml 870 B
- tests/revises-a-refused-proposal.yaml 2.0 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 17d ago Changed · +31 lines d85f69fd4919
- 25d ago Changed · +36 lines 9b91598e158d
- 1mo ago Changed 1cb37d618222
- 1mo ago Changed · -2 lines 809a157147fb
- 1mo ago Changed · -2 lines 85147c1e35a1
- 2mo ago First seen · 82 lines · 48 tokens per session scan A e148d7ebf016
knowledge-router is a skill published in the GitHub repository runxhq/runx (106 stars, last pushed yesterday), licensed Apache-2.0. It adds 48 tokens to every session and 1,540 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
knowledge-router compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| knowledge-routerrunxhq/runx | Skill | 106 | yesterday | Apache-2.0 | A | 48 | Claude Code, Codex |
| dd-risk-scoringAbilityai/trinity | Skill | 822 | today | Apache-2.0 | A | 29 | Claude Code, Codex |
| dd-synthesisAbilityai/trinity | Skill | 822 | today | Apache-2.0 | A | 33 | Claude Code, Codex |
| dd-report-formatAbilityai/trinity | Skill | 822 | today | Apache-2.0 | A | 27 | Claude Code, Codex |
| dd-sourcingAbilityai/trinity | Skill | 822 | today | Apache-2.0 | A | 29 | Claude Code, Codex |
| dd-verificationAbilityai/trinity | Skill | 822 | today | Apache-2.0 | A | 35 | Claude Code, Codex |
| gh-treasure-huntHmbown/CodeWhale | Skill | 41k | 2d ago | MIT | A | 39 | Claude Code, Codex |