route-by-query-shape
When the agent calls memory_search with a relationship-shaped query ("who did I talk to about X"), redirect to the knowledge_graph backend where it will actually find the answer.
适合你,如果想让智能体在关系型查询时自动使用知识图谱
npx oh-my-skill add bitterbot-ai/bitterbot-desktop/route-by-query-shapecurl -fsSL https://oh-my-skill.com/install.sh | bash -s -- bitterbot-ai/bitterbot-desktop/route-by-query-shapenpx oh-my-skill verify bitterbot-ai/bitterbot-desktop/route-by-query-shape怎么用
商店整理自技能原文 · 版本 867a130 · 表述以原文为准当 Claude 被问到关系型问题(如“我和谁讨论过 Q4?”)时,它会自动将记忆搜索路由到知识图谱后端,从而找到基于实体关系的答案。
当 Claude 调用 memory_search 且查询是关系型(例如询问“谁”与“什么”的关系)时触发。
技能原文 SKILL.md
route-by-query-shape
When you ask Bitterbot a relationship question — "who did I talk to about Q4?", "who worked with me on Foo?" — the vector-based memory_search often misses because the answer lives in entity relationships, not in chunk text. The graph backend gets these right.
This interceptor watches memory_search calls, detects relationship-shaped queries, extracts the salient entity, and re-routes the call to the graph backend before it executes.
What you'll see
For relationship questions, the agent will hit the knowledge graph rather than searching through unstructured text. Expect noticeably better hit rates on "who did X with Y" style questions.
Implementation
Built-in interceptor route-by-query-shape:relationship lives in src/agents/skills/builtin-interceptors/route-by-query-shape.ts. Fires up to 12 times per session.