capability-router

capability-router is a skill for Claude Code, Codex from HelloThisWorld/open-mind. It costs 62 tokens per session (447 once invoked), scanned A, original, MIT.

A request router that chooses one of three code-help functions: defining terms, showing code structure, or searching code. It uses fixed rules first and may accept a local model’s choice only when it matches the known options.

In plain words
What is it for?
Use it to direct questions such as “what does this acronym mean?”, “who calls this function?”, or “find code related to payments” to the appropriate code-analysis function.
Why use it?
It prevents unclear or unavailable model decisions from sending a request to the wrong function. It also records how each choice was made.

Skill for Claude CodeCodex

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

Good fit Use it to direct questions such as “what does this acronym mean?”, “who calls this function?”, or “find code related to payments” to the appropriate code-analysis function.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hellothisworld/open-mind/capability-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 HelloThisWorld/open-mind --skill capability-router
Clone the repo
git clone --depth 1 https://github.com/HelloThisWorld/open-mind

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 capability-router

README.md
[![agentmods](https://agentmods.dev/badge/skills/hellothisworld/open-mind/capability-router/github.svg)](https://agentmods.dev/skills/hellothisworld/open-mind/capability-router)
Your own site
<a href="https://agentmods.dev/skills/hellothisworld/open-mind/capability-router"><img src="https://agentmods.dev/badge/skills/hellothisworld/open-mind/capability-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 capability-router

Your own site · 80×15
<a href="https://agentmods.dev/skills/hellothisworld/open-mind/capability-router"><img src="https://agentmods.dev/badge/skills/hellothisworld/open-mind/capability-router.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 447 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.
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.00062 $0.00447
Opus 5.5 $0.00025 $0.00179
Sonnet 5.5 $0.00012 $0.00089
Haiku 4.5 $0.00006 $0.00045

Measured 1mo ago against content hash 1e739f75e4b4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

capability-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 1mo 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.

skills/capability-router/SKILL.md · 36 lines

What it actually says

Capability router — agent-style invocation with graceful degradation

What it does

Given a natural-language or identifier query, decides which capability should handle it and (optionally) invokes it:

  • glossary — define a term/acronym,
  • structure — callers/callees, dependencies, modules, flow,
  • search — find code by concept or identifier.

How the decision is made (the engineering point)

  1. A deterministic if-else classifier always runs first (_heuristic_route) — the always-available floor (e.g. a bare identifier or "what is X" → glossary; "who calls X" / "dependency graph" → structure; otherwise → search).
  2. If a local model is ready, it is asked to classify into one capability word. Its answer is validated against the capability set and accepted ONLY if valid.
  3. An unavailable, slow, or off-spec model silently degrades to the deterministic choice. The model can never select a capability outside the known set or override the floor unchecked.

The response is a full trace: {capability, decided_by, deterministic_fallback, reason} — so the routing is auditable and behaviour never depends on the model being right.

Invocation

  • MCP tools: route(query) (decision + trace), dispatch(scope, query) (route then invoke the capability, returning its result + trace).
  • REST: GET /route?query=, GET /dispatch?scope=&query=.

Implementation / verification

openmind/router.py. The deterministic floor is covered by routing a fixed query set with use_model=False; readiness gating reuses openmind.llm_client.is_ready().

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. 1mo ago First seen · 36 lines · 62 tokens per session scan A 1e739f75e4b4

Subscribe to this mod's changes

capability-router is a skill published in the GitHub repository HelloThisWorld/open-mind (1 stars, last pushed 2mo ago), licensed MIT. It adds 62 tokens to every session and 447 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-08-31.

Related

Other skills, from other repositories

codestory-grounding

Use when discovering repository structure, tracing relationships, analyzing change impact, or validating CodeStory retrieval or an installed plugin through the CodeStory plugin MCP. Skip only for bounded inspection or editing of named files that does not require those operations.

TheGreenCedar/CodeStory · 52 tokens

memtrace-first

Route code discovery, debugging, flow tracing, how-code-works questions, and pre-edit rationale checks in indexed source-code repos to Memtrace graph plus Cortex decision tools. Use first before searching/reading code, and before editing, refactoring, deleting, or re-picking an approach that may have a recorded…

syncable-dev/memtrace-public · 115 tokens

memtrace-style-fingerprint

Pull the codebase's empirical style norm from Memtrace and match it when writing or editing source code in an indexed repo. Use when choosing between competing idioms (ternary vs if-else, arrow vs function declaration, const vs let, await vs .then, early-return vs nested-return), matching naming case, or when the user…

syncable-dev/memtrace-public · 111 tokens

memtrace-decision-memory

Use Cortex decision memory through the normal Memtrace MCP tools. Trigger for free-text questions about what was decided, chosen, rejected, banned, or established as a convention; for why a symbol exists or which contracts constrain it; for whether a known decision held, drifted, or was violated; and for the…

syncable-dev/memtrace-public · 137 tokens

memtrace-fleet-first

Coordinate fleets of coding agents sharing one repo+branch: publish typed intents, classify edit episodes, and resolve conflicts before they collide. Use FIRST when multiple agents work the same repo+branch, before reading/planning/editing, when joining a fleet or handing work off, and when the user says two agents…

syncable-dev/memtrace-public · 144 tokens

memtrace-incident-investigation

Investigate source-code bugs, incidents, regressions, production issues, and failures to root cause with Memtrace symbol search, impact, call graph, and temporal history. Use when the user asks about root cause analysis, what broke, or what changed when debugging a failure. Do not start with Grep, Glob, rg, find, or…

syncable-dev/memtrace-public · 99 tokens