openclaw-docs-sync
Sync OpenClaw + ClawHub + Skills docs into a local mirror for the QMD memory backend.
install
source · Clone the upstream repo
git clone https://github.com/TheSethRose/OpenClaw-Docs-Sync
Claude Code · Install into ~/.claude/skills/
git clone --depth=1 https://github.com/TheSethRose/OpenClaw-Docs-Sync ~/.claude/skills/thesethrose-openclaw-docs-sync-openclaw-docs-sync
OpenClaw · Install into ~/.openclaw/skills/
git clone --depth=1 https://github.com/TheSethRose/OpenClaw-Docs-Sync ~/.openclaw/skills/thesethrose-openclaw-docs-sync-openclaw-docs-sync
manifest:
SKILL.mdsource content
OpenClaw Docs Sync
Purpose
Keep a local mirror of the OpenClaw framework docs, ClawHub CLI/docs, and the Skills repository. OpenClaw's built-in QMD memory backend indexes these docs for hybrid semantic search.
When to use
Use this skill when the agent needs fresh documentation or precise references from:
- OpenClaw framework docs
- ClawHub CLI/docs
- Skills repo (all
files)SKILL.md
Setup
Step 1: Run the sync script
Run the script whenever you need a fresh mirror:
# Recommended (portable) npx tsx scripts/sync-docs.ts # Or with Bun (fastest) bun run scripts/sync-docs.ts
What it does:
- Mirrors OpenClaw
intodocs/~/.openclaw/docs/openclaw-docs/ - Mirrors ClawHub
intodocs/~/.openclaw/docs/clawhub-docs/ - Mirrors Skills
intoskills/~/.openclaw/docs/openclaw-skills/ - Runs security scans on downloaded content
Step 2: Add to openclaw.json
After syncing, add the path to your
openclaw.json config using memory.qmd.paths:
{ "memory": { "backend": "qmd", "citations": "auto", "qmd": { "includeDefaultMemory": true, "update": { "interval": "5m" }, "paths": [ { "name": "openclaw-docs", "path": "~/.openclaw/docs", "pattern": "**/*.{md,mdx}" } ] } } }
How the agent uses synced docs
Once configured in
openclaw.json, OpenClaw's QMD memory backend automatically:
- Indexes the synced docs on startup and at regular intervals (default 5m)
- Embeds chunks for hybrid search (BM25 + vectors + reranking)
- Searches via
tool when you ask questionsmemory_search - Retrieves exact file content via
toolmemory_get
The agent will cite sources like:
Source: qmd/openclaw-docs/concepts/memory.md#L45-L52
Repo structure in synced mirror
~/.openclaw/docs/ ├── openclaw-docs/ # OpenClaw framework docs ├── clawhub-docs/ # ClawHub CLI docs └── openclaw-skills/ # All SKILL.md files from skills repo
Notes
- The sync script only ingests
and.md
files.mdx - Synced docs are read-only; edit upstream repos to update
- Security scans run automatically; threats logged to
~/.openclaw/security-scan.log - See QMD Backend docs for full configuration options