Query Rewrite

RAG retrieval pre-processing layer. Detects whether a query needs rewriting, executes rewriting when needed, then searches with both original and rewritten queries. Supports 6 rewrite modes: context extraction, comparison disambiguation, coreference resolution, multi-intent decomposition, rhetorical question detection, and condition extraction. Use when: Before RAG retrieval, memory_search, wiki_search calls, or vector search. NOT for: Code generation, file operations, non-retrieval scenarios.

Install

openclaw skills install @dabin0927/query-rewrite