add-intent-router

Installation
SKILL.md

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.

Installs
86
GitHub Stars
175
First Seen
9 days ago