🦀 ClawHub
Knowledge Base Collector
by @reed1898
Collect and organize a personal knowledge base from URLs (web/X/WeChat) and screenshots. Use when the user says they want to save an URL, ingest a link, archive content to KB, tag/classify notes, store screenshots, or search their saved knowledge in Telegram. Supports WeChat via a connected macOS node when cloud fetch is blocked.
TERMINAL
clawhub install knowledge-base-collector📖 About This Skill
name: knowledge-base-collector description: Collect and organize a personal knowledge base from URLs (web/X/WeChat) and screenshots. Use when the user says they want to save an URL, ingest a link, archive content to KB, tag/classify notes, store screenshots, or search their saved knowledge in Telegram. Supports WeChat via a connected macOS node when cloud fetch is blocked.
Summary
content.md + meta.json and a global index.jsonl#agent, #coding-agent, #claude-code, #mcp, #rag, #prompt-injection, #security, #pricing, #database)把用户发来的链接/截图沉淀到共享知识库(KB),并做标签化整理。
默认 KB 位置
/home/ubuntu/.openclaw/kbkb/20_Inbox/urls/index.jsonlkb/20_Inbox/urls//- /content.md + meta.json
> 目标:先入库不丢,再迭代“摘要/标签/检索”。
你要做的事(按输入类型)
1) 普通网页 / X(Twitter) / 公众号 URL 入库
运行脚本:python3 /home/ubuntu/.openclaw/skills/knowledge-base-collector/scripts/ingest_url.py "" --tags "#optional" --note "context"
行为:
r.jina.ai 抽取正文(无需登录)status=blocked_verification + tag #needs-manual#### WeChat 更高成功率(推荐路径) 当云端抓取命中“环境异常/验证”时:
Reed-Mac)且该节点能访问该文章,可用 nodes.run 在节点上执行抓取(requests+bs4),然后写入 KB。2) 截图/图片入库(含 OCR 文本)
脚本:python3 /home/ubuntu/.openclaw/skills/knowledge-base-collector/scripts/ingest_image.py /path/to/image.jpg \
--text-file /path/to/ocr.txt \
--title "..." --tags "#ai #product" --note "..."
说明:
ingest_image.py 负责“落盘+索引”。OCR 可用:tesseract-ocr + chi_sim)
- 或用多模态 LLM 抽取文字后写入 --text-fileTelegram 里直接问(检索)
推荐先用脚本(本机/服务器):python3 /home/ubuntu/.openclaw/skills/knowledge-base-collector/scripts/search_kb.py --q "claude code" --limit 10
python3 /home/ubuntu/.openclaw/skills/knowledge-base-collector/scripts/search_kb.py --tags "#claude-code #coding-agent" --limit 20
python3 /home/ubuntu/.openclaw/skills/knowledge-base-collector/scripts/search_kb.py --source wechat --since 7d --q "Elys"
公众号待补抓队列(占位条目)
python3 /home/ubuntu/.openclaw/skills/knowledge-base-collector/scripts/wechat_backlog.py --limit 30
周报/主题报告候选清单(给 LLM 写总结用)
python3 /home/ubuntu/.openclaw/skills/knowledge-base-collector/scripts/weekly_digest.py --days 7 --limit 30
重要注意事项(安全/隐私)
REDACTED)。