knowledge-router

knowledge-router is a skill for Claude Code, Codex from runxhq/runx. It costs 48 tokens per session (719 once invoked), scanned A, original, Apache-2.0.

A routing tool that matches a question or source event to approved sources, responsible owners, and follow-up skills from a supplied catalogue.

In plain words
What is it for?
Use it to find where evidence should come from, identify who owns the answer, and choose the next approved research step.
Why use it?
It prevents answers from being based on invented references or sent to the wrong owner. It also makes missing information or the need for manual review explicit.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to find where evidence should come from, identify who owns the answer, and choose the next approved research step.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/runxhq/runx/knowledge-router
Install

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.

Any agent
npx skills add runxhq/runx --skill knowledge-router
Clone the repo
git clone --depth 1 https://github.com/runxhq/runx

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for knowledge-router

README.md
[![agentmods](https://agentmods.dev/badge/skills/runxhq/runx/knowledge-router/github.svg)](https://agentmods.dev/skills/runxhq/runx/knowledge-router)
Your own site
<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.

agentmods 80×15 button for knowledge-router

Your own site · 80×15
<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>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 719 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.00719
Opus 5 $0.00024 $0.00360
Sonnet 5 $0.00010 $0.00144
Haiku 4.5 $0.00005 $0.00072

Measured 7d ago against content hash e148d7ebf016, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

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 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (knowledge-router.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/knowledge-router/SKILL.md · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 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.

business-ops routes a business signal across action lanes such as release, outreach, spend, and proof. knowledge-router instead 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 route may return no follow-up skill when more context or manual review is the honest outcome.

Procedure

  1. Match the question or event to supplied source summaries and owner domains.
  2. Propose the smallest source set needed to resolve the question.
  3. Select an owner only when the catalog supports the ownership relationship.
  4. Select a follow-up skill only when its declared purpose matches the next job.
  5. Use manual_review for consequential legal, billing, security, privacy, or destructive decisions—not merely because the topic belongs to those teams.
  6. Validate every source, owner, and skill reference deterministically.
  7. Return needs_more_context when no supported route exists.

Output

  • route: domain, rationale, and validated source references.
  • source_matches: validated source references and matching signals.
  • owner_recommendation: validated owner reference, rationale, and escalation posture, or null.
  • next_skill: validated skill reference and rationale, or null.
  • verdict: routed, needs_more_context, manual_review, or the deterministic validator's refused result for an invented reference.
  • validation: catalog digest inputs, invalid-reference findings, and result.

Read the full file on GitHub · 82 lines

Files

What ships with it

2 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.

Changes

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.

  1. 7d ago First seen · 82 lines · 48 tokens per session scan A e148d7ebf016

Subscribe to this mod's changes

knowledge-router is a skill published in the GitHub repository runxhq/runx (84 stars, last pushed 2d ago), licensed Apache-2.0. It adds 48 tokens to every session and 719 once invoked, about $0.0002 per session on Opus 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.