Install
openclaw skills install literagLocal retrieval skill for large documentation corpora using independent SQLite knowledge libraries with keyword plus vector hybrid search. Use when searching Blender manuals, API references, SDK docs, framework docs, product docs, blog/article archives, exported markdown doc sets, or any other large external documentation that should not live in OpenClaw's main memory index. Also use when indexing, reindexing, debugging retrieval quality, checking index compatibility/status, or inspecting LiteRAG sqlite metadata. Usage: /literag search <library> <query> | /literag inspect <library> <path> [--start N --end N] | /literag index <library> | /literag status <library> | /literag meta <library> | /literag benchmark <library> --query ...
openclaw skills install literagUse this skill when the target corpus is too large or too noisy for main agent memory.
Packaged dependency install:
python3 -m pip install -r {baseDir}/requirements.txt
<workspace>/.literag/<workspace>/.literag/knowledge-libs.jsonOPENCLAW_WORKSPACE → WORKSPACE → walk upward from the current path until the OpenClaw workspace sentinel files are foundskills/literag/scripts/skills/literag/bin/literagscripts/literag-query.py, scripts/literag-index.py, scripts/literag-status.py, scripts/literag-meta.py, and scripts/lqmemory_search<workspace>/.literag/knowledge-libs.json when targeting a library or changing configreferences/usage.md when you need command examples, output schema, or the intended search → inspect workflowreferences/configuration.md when adding libraries, source roots, excludes, chunking overrides, or ranking overridesreferences/agent-prompts.md when another agent / ACP harness needs a ready-made LiteRAG prompt templatereferences/optimization-playbook.md when a specific library needs retrieval-quality tuning, ranking cleanup, or indexing-throughput tuningskills/literag/scripts/ only when editing behavior or diagnosing bugsWhen invoked as /literag ..., parse the remaining argument string as a subcommand.
Supported forms:
/literag search <library> <query>/literag inspect <library> <path> [--start N --end N]/literag index <library> [--limit-files N] [--embedding-batch-size N]/literag index-all [--limit-files N] [--embedding-batch-size N]/literag status <library>/literag meta <library>/literag benchmark <library> --query ...If the user gives a natural-language request instead of a strict subcommand, translate it to the nearest supported operation instead of being pedantic.
index_library.py — index one libraryindex_all.py — index all configured librariessearch_library.py — grouped hybrid/fts/vector retrievalinspect_result.py — expand a hit by file path + chunk rangestatus_library.py — show index health / compatibility / countsmeta_library.py — dump raw sqlite meta recordsbenchmark_library.py — benchmark hybrid/fts/vector latency + hit shape across fixed query setsbin/literag — packaged CLI entrypoint for search / inspect / index / status / meta / benchmarkscripts/literag-query.py — query/search/inspect wrapperscripts/literag-index.py — index wrapper for one library or all librariesscripts/literag-status.py — status wrapperscripts/literag-meta.py — meta wrapperscripts/literag-benchmark.py — benchmark wrapperscripts/lq — tiny shell alias for literag-query.py<workspace>/.literag/knowledge-libs.jsonsearch_library.py for grouped retrievalinspect_result.py on the top hit or chosen rangescripts/literag-query.py or scripts/lqscripts/literag-index.py when you need a short indexing entrypointscripts/literag-status.py before debugging weird retrieval or after config changesscripts/literag-meta.py when you need the raw stored metadatascripts/literag-benchmark.py or skills/literag/scripts/benchmark_library.py when you need repeatable retrieval latency / hit-shape comparisonsUse LiteRAG for: