add-intent-router

add-intent-router is a skill for Claude Code from redis/agent-skills. It costs 176 tokens per session (2,340 once invoked), scanned A, original, MIT.

An intent router replaces hand-written message routing with a Redis-backed matcher. It compares a message with example phrases, assigns a defined intent, and returns the route attached to that intent when the score passes a threshold.

In plain words
What is it for?
It helps route messages to tools, sub-agents, prompts, or direct answers. It is also for finding and replacing an existing routing decision in an agent.
Why use it?
It removes keyword checks, regular-expression tables, or a separate classification prompt from the code that chooses what an agent should do. Routes and example phrases can be changed as configuration instead of code.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the redis-development plugin — 14 skills, 1 MCP server shipped together

Good fit It helps route messages to tools, sub-agents, prompts, or direct answers. It is also for finding and replacing an existing routing decision in an agent.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/redis/agent-skills/add-intent-router
About the project

Redis Agent Skills is Redis's collection of packaged instructions and resources that teach AI coding agents how to work with Redis data structures, connections, search, caching, clustering, security, observability, and agent memory. It is for developers using coding agents to build or troubleshoot Redis-backed applications. The catalogue entries are the project's own agent skills, instructions, and plugin packaging.

redis/agent-skills · 178 stars · on GitHub · redis.io

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 redis/agent-skills --skill add-intent-router
Clone the repo
git clone --depth 1 https://github.com/redis/agent-skills

Made for: Claude Code.

Or install redis-development, the plugin that ships this one along with the rest of its 14 skills, 1 MCP server.

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 add-intent-router

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/redis/agent-skills/add-intent-router"><img src="https://agentmods.dev/badge/skills/redis/agent-skills/add-intent-router.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 176 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,340 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.00176 $0.02340
Opus 5.5 $0.00070 $0.00936
Sonnet 5.5 $0.00035 $0.00468
Haiku 4.5 $0.00018 $0.00234

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

Security

Grade A, and why

add-intent-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 29d 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.

plugins/redis-development/skills/add-intent-router/SKILL.md · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Add Intent Router

One match() call in place of the code that decides where a message goes. The Router embeds the message, finds the nearest example phrasings, groups them by intent, applies a threshold, and returns the matching intents best first, each with the target you attached. No match is an empty result, not an error. The routes and their phrasings are content, not code: ask first, write intents.yaml, provision, load, then wire.

1. Discover

Read the project:

  • Find where the agent decides what to do with a message: if "refund" in text, a regex table, a match statement, a classifier prompt ("Classify this message as one of ..."), or a router node or conditional edge in a graph.
  • List every route it can take and what each one does: call a tool, hand off to a sub-agent, pick a prompt, or answer directly.
  • Find real phrasings: test fixtures, logs, the keywords in the if/else, the examples in the classifier prompt.
  • Async agent? amatch and adefine are the async twins; every other method is sync only.

Then ask the developer these five questions, nothing more. A shrug takes the default.

Ask If the answer is Configure
What are the routes today? A list One intent each in intents.yaml. Names use letters, digits, ., _ and -
Give three to five real phrasings for each route Phrasings examples for that intent. An intent with no examples never matches
What does each route dispatch to? A tool, a sub-agent, a prompt target: {type, ref, args}. The Router stores it and never interprets it
The code already knows No target; dispatch on the intent name
What should happen when nothing matches? Fall back to the general agent (default) Keep the existing default path for an empty result
Ask a clarifying question That branch on an empty result
Which embedding model? OpenAI (default) --provider openai --model text-embedding-3-small --dimensions 1536
Another iris intent-router service models lists what the deployment offers. The choice is fixed once the Router exists

Read the full file on GitHub · 146 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. 29d ago First seen · 146 lines · 176 tokens per session scan A e9051167ed1e

Subscribe to this mod's changes

add-intent-router is a skill published in the GitHub repository redis/agent-skills (178 stars, last pushed 28d ago), licensed MIT. It adds 176 tokens to every session and 2,340 once invoked, about $0.0007 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-11-04.

Related

add-intent-router compared with skills from other repositories

add-intent-router next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
add-intent-routerredis/agent-skillsSkill17828d agoMITA176Claude Code
open-sourcebrowser-use/browser-useSkill123kyesterdayMITA101Claude Code
gemini-api-agent-platformdavila7/claude-code-templatesSkill35ktodayMITA61Claude Code, Codex
prowler-mcpprowler-cloud/prowlerSkill15kyesterdayApache-2.0A67Claude Code
deepstream-sopNVIDIA/skillsSkill4.3ktodayApache-2.0A219Claude Code
tao-run-inference-serviceNVIDIA/skillsSkill4.3ktodayApache-2.0A92Claude Code
azure-search-documents-dotnetmicrosoft/skillsSkill3.3kyesterdayMITA102Claude Code