knowledge-router

knowledge-router is a skill for Claude Code, Codex from runxhq/runx. It costs 48 tokens per session (1,540 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 1,540 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.01540
Opus 5.5 $0.00019 $0.00616
Sonnet 5.5 $0.00010 $0.00308
Haiku 4.5 $0.00005 $0.00154

Measured 17d ago against content hash d85f69fd4919, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 17d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (knowledge-router.mjs, knowledge-router.test.mjs, route.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 · 145 lines

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

  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, source-match consistency, declared owner domain and supplied selection limits deterministically.
  7. Send a refused proposal back with the validator's findings, for at most two revisions; the last refusal is the result.
  8. Return needs_more_context when no supported route exists.

Read the full file on GitHub · 145 lines

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. 17d ago Changed · +31 lines d85f69fd4919
  2. 25d ago Changed · +36 lines 9b91598e158d
  3. 1mo ago Changed 1cb37d618222
  4. 1mo ago Changed · -2 lines 809a157147fb
  5. 1mo ago Changed · -2 lines 85147c1e35a1
  6. 2mo 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 (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.

Related

knowledge-router compared with skills from other repositories

knowledge-router next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
knowledge-routerrunxhq/runxSkill106yesterdayApache-2.0A48Claude Code, Codex
dd-risk-scoringAbilityai/trinitySkill822todayApache-2.0A29Claude Code, Codex
dd-synthesisAbilityai/trinitySkill822todayApache-2.0A33Claude Code, Codex
dd-report-formatAbilityai/trinitySkill822todayApache-2.0A27Claude Code, Codex
dd-sourcingAbilityai/trinitySkill822todayApache-2.0A29Claude Code, Codex
dd-verificationAbilityai/trinitySkill822todayApache-2.0A35Claude Code, Codex
gh-treasure-huntHmbown/CodeWhaleSkill41k2d agoMITA39Claude Code, Codex