XHS Knowledge Retriever
Query the competitor-note RAG index for semantically relevant examples
kekena1016
@kekena1016
Install
$ openclaw skills install @kekena1016/xhs-knowledge-retrieverXHS Knowledge Retriever
Query the competitor-note RAG index and get back the most relevant chunks.
Run
From workspace-xhs-agent/products/xhs-note-learning-cycle:
python3 skills/xhs-knowledge-retriever/scripts/retrieve.py --query "有娃家庭怎么选沙发"
With options:
python3 skills/xhs-knowledge-retriever/scripts/retrieve.py \
--query "有娃家庭怎么选沙发" \
--top-k 5 \
--output /tmp/retrieved.json
Check local readiness without running retrieval:
python3 skills/xhs-knowledge-retriever/scripts/retrieve.py --check-only
Runtime Python packages:
numpysentence-transformers
The script does not require API credentials. If the standard workspace layout is
not available, set XHS_KNOWLEDGE_ROOT to the local knowledge/xhs directory.
What it consumes
- Canonical Competitor RAG Storage (
index.json) - Canonical Competitor RAG Storage (
embeddings.npy) - Canonical Competitor RAG Storage (
metadata.jsonl)
What it produces
- JSON with the query, model, and top-k results including:
score(cosine similarity)chunk(the retrieved text)metadata(competitor name, note title, note URL, title pattern, content signals, etc.)
Rules
- Read only. It only queries the local index.
- Planner/Writer should call this before making creative decisions.
- Retrieved chunks are inspiration, not copy sources.
- Do not publish competitor text verbatim.
Top skills in this category
Self-Improving + Proactive Agent
@ivangdavilaSelf-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently. Use when...
ontology
@oswalpalashTyped knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linkin...
Humanizer
@biostartechnologyRemove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.
Obsidian
@steipeteWork with Obsidian vaults (plain Markdown notes) and automate via obsidian-cli.
YouTube Watcher
@michaelgatharaFetch and read transcripts from YouTube videos. Use when you need to summarize a video, answer questions about its content, or extract information from it.