intent-classifier

intent-classifier is a skill for Claude Code, Codex from d-o-hub/github-template-ai-agents. It costs 82 tokens per session (951 once invoked), scanned A, original, MIT.

A routing tool that reads a user request and chooses the most suitable skill, command, or workflow. It matches the request’s action, subject, keywords, and surrounding context.

In plain words
What is it for?
Use it to decide where requests such as creating, updating, analyzing, or selecting a skill should be handled.
Why use it?
It removes the need to know which add-on handles a task, especially when several could apply. It can also identify ambiguous requests and fall back to general assistance.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/d-o-hub/github-template-ai-agents/intent-classifier
Any agent
npx skills add d-o-hub/github-template-ai-agents --skill intent-classifier
Clone the repo
git clone --depth 1 https://github.com/d-o-hub/github-template-ai-agents

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 intent-classifier

README.md
[![agentmods](https://agentmods.dev/badge/skills/d-o-hub/github-template-ai-agents/intent-classifier.svg)](https://agentmods.dev/skills/d-o-hub/github-template-ai-agents/intent-classifier)
Your own site
<a href="https://agentmods.dev/skills/d-o-hub/github-template-ai-agents/intent-classifier"><img src="https://agentmods.dev/badge/skills/d-o-hub/github-template-ai-agents/intent-classifier.svg" alt="Measured on agentmods" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 951 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00082 $0.00951
Opus 5 $0.00041 $0.00476
Sonnet 5 $0.00016 $0.00190
Haiku 4.5 $0.00008 $0.00095

Measured 3d ago against content hash 6a2d4cfb7bcf, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

intent-classifier 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 3d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/dynamic-catalog.sh), 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.

.agents/skills/intent-classifier/SKILL.md · 125 lines

How it starts

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

Intent Classifier

Classify user requests and route them to the most appropriate skill, command, or specialized agent.

When to Use

  • User asks which skill to use or how to route a request
  • Need to determine which skill handles a given task
  • Multiple skills could handle a request and disambiguation is needed
  • Even if they just say "which skill should I use" or "route this"

Classification Workflow

1. Intent Extraction

  • Parse the user's natural language request
  • Identify primary action (create, update, delete, analyze, etc.)
  • Extract entities (file paths, technologies, specific terms)

2. Skill Matching

  • Compare against available skills catalog
  • Score match confidence for each candidate
  • Consider skill descriptions and keywords

3. Route Decision

  • Select highest-confidence match
  • Handle ties and ambiguous cases
  • Fall back to general assistance if no match

Classification Rules

Priority Order

  1. Exact keyword match - Skill description contains exact phrase
  2. Domain match - Technology stack alignment
  3. Action match - Verb/action alignment
  4. Context match - File paths, extensions, surrounding context

Confidence Scoring

High (0.8-1.0):   Exact description match, multiple keyword hits
Medium (0.5-0.7): Partial match, related domain
Low (0.3-0.4):    Weak match, shared keywords only
None (<0.3):      No relevant match

Multi-Intent Handling

When a request contains multiple intents:

  1. Sequential - Chain skills in dependency order
  2. Parallel - Execute independent skills simultaneously
  3. Composite - Use parent skill that orchestrates sub-skills

Fallback Strategies

Confidence Action
> 0.7 Execute primary skill
0.5 - 0.7 Execute skill with confirmation
0.3 - 0.5 Present top 2-3 options to user
< 0.3 Use general assistance

Dynamic Catalog

Update the skill catalog using:

./scripts/dynamic-catalog.sh

This scans .agents/skills/ and regenerates the skill registry with:

  • Skill names and descriptions
  • Keywords extracted from descriptions
  • Compatibility requirements

Read the full file on GitHub · 125 lines

Files

What ships with it

5 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. 3d ago First seen · 125 lines · 82 tokens per session scan A 6a2d4cfb7bcf

Subscribe to this mod's changes

intent-classifier is a skill published in the GitHub repository d-o-hub/github-template-ai-agents (2 stars, last pushed today), licensed MIT. It adds 82 tokens to every session and 951 once invoked, about $0.0004 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-08-31.