Use when triaging a production error, failed job, or user-reported breakage in ChatbotX. Traces a symptom through the builder → oRPC → business/service → repository → database and worker/queue/channel layers to a root-cause hypothesis with cited file:line evidence. Investigation only — proposes a fix but does not…
Use PROACTIVELY after any edit under apps/, packages/, or integrations/ to check a diff against the non-obvious ChatbotX invariants that no lint rule enforces (triple-d middleware names, relations/index.ts double-edit, ChannelType cascade, bindArgsSchemas binding, no-input execute(), i18n-mandatory…
Use when changing anything under packages/ai, the embedding repositories, or the worker RAG/automated-response handlers. Audits a RAG change for tenant scoping (every embedding query filtered by workspace), retrieval quality (chunking, top-k, similarity threshold, fallback), and untrusted-content handling before it…