Intent router

From Tibsfox/gsd-skill-creator · View interactive version

Intent router is an AI agent skill from the GitHub repository Tibsfox/gsd-skill-creator. Classify the information-need of a query and dispatch it to the appropriate retrieval or reasoning strategy. Use before read-side memory access, before multi-strategy retrieval, or any time you'd otherwise default to "one retriever for everything". Returns a strategy label, a token budget, and a ret

How to use this skill

Skill file

Intent Router

Why

The 2026 frontier converges on one architectural shift: route → strategy → act, replacing the historical one-retriever-for-everything pattern. Different query intents demand categorically different handlers:

The empirical claim: a single fixed strategy is dominated on every axis by the conditional strategy.

How

Before any memory access or multi-strategy retrieval, run a structured-prompt classification pass that returns:

{
  "strategy": "lookup|multi-hop|global|verification|deep-reason|lexical",
  "token_budget": 2000,
  "retrieval_depth": 5,
  "refinement_policy": "none|verbal-rerank|consensus-check",
  "confidence": 0.0
}

If confidence < 0.6, fall back to the broadest strategy (global) so the system degrades gracefully rather than mis-routing.

Output format vs confidence

The full JSON envelope is the canonical form when downstream consumers read it programmatically (typed pipelines, gating code). For inline human-facing routing decisions, taper the ceremony to match the confidence:

Rationale: a CTA audit (.planning/patterns/skill-audits/intent-router-2026-05-16.md) found that high-confidence lexical-class probes produced full JSON envelopes that downstream consumers did not read. The output was surface-anchoring without information gain.

When to skip

Integration

Cross-references

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.