Install
openclaw skills install md-docs-searchFull-text search across structured Markdown documentation archives using SQLite FTS5. Use when you need to search large collections of Markdown articles that...
openclaw skills install md-docs-searchFast, indexed full-text search across Markdown documentation archives using SQLite FTS5 with BM25 relevance ranking.
Articles separated by --- delimiter with *Source: URL:
# Article Title
*Source: https://docs.example.com/path/to/article.html*
Article content here...
---
# Next Article Title
*Source: https://docs.example.com/another/article.html*
More content...
# 1. Index the documentation (one-time or when docs change)
scripts/docs.py index ./docs
# 2. Search
scripts/docs.py search "kubernetes backup" --max 5
# 3. Check index status
scripts/docs.py status
The unified CLI handles all operations:
# Index documentation directory
scripts/docs.py index ./docs
# Force full rebuild
scripts/docs.py index ./docs --rebuild
# Custom database location
scripts/docs.py index ./docs --db /path/to/custom.db
# Basic search
scripts/docs.py search "kubernetes backup"
# Boolean operators
scripts/docs.py search "AWS AND S3 AND snapshot"
# Phrase search
scripts/docs.py search '"exact phrase match"'
# Prefix search
scripts/docs.py search "kube*"
# Exclude terms
scripts/docs.py search "backup NOT restore"
# Title-only search
scripts/docs.py search "kubernetes" --title-only
# Output formats
scripts/docs.py search "kubernetes" --format json
scripts/docs.py search "kubernetes" --format markdown
# More context around matches
scripts/docs.py search "kubernetes" --context 400
# Include full content in JSON
scripts/docs.py search "kubernetes" --format json --full-content
| Syntax | Meaning |
|---|---|
term1 term2 | Documents with term1 OR term2 (ranked) |
term1 AND term2 | Documents with both terms |
term1 OR term2 | Documents with either term |
"exact phrase" | Exact phrase match |
prefix* | Words starting with prefix |
term1 NOT term2 | term1 without term2 |
title:term | Search only titles |
# Get article by partial URL or title
scripts/docs.py get "system_requirements" --full
# Find all matching articles
scripts/docs.py get "backup" --all
# Check index statistics
scripts/docs.py status
# Check what's indexed
scripts/docs.py status
# Explore topics with broad searches
scripts/docs.py search "<feature>" --max 20
# Narrow down with boolean operators
scripts/docs.py search "<feature> AND <platform>"
# Find specific information
scripts/docs.py search "limitation OR restriction OR 'not supported'"
Every search result includes the Source: URL — use this in your reports:
According to documentation, [finding]...
Source: https://docs.example.com/path/to/article.html
Each agent or project can have their own documentation and index:
~/docs/VendorA/
├── docs_part_01.md
├── docs.db # Index lives with docs
└── ...
~/docs/VendorB/
├── docs.md
├── docs.db
└── ...
The docs.py script auto-detects the database location.
For specialized needs:
scripts/fts_search.py — Direct FTS5 search with more optionsscripts/index_docs.py — Standalone indexingscripts/list_sources.py — List all source URLsscripts/get_article.py — Direct article retrievalscripts/search_docs.py — Regex-based search (no index needed)For common search patterns (feature research, architecture, security, etc.), see references/search-patterns.md.
# What's available?
scripts/docs.py status
# Output: Files indexed: 37, Articles indexed: 32065
# Find information
scripts/docs.py search "kubernetes backup" --max 5
# Narrow to specific platform
scripts/docs.py search "kubernetes AND AWS" --max 5
# Find limitations
scripts/docs.py search "limitation OR 'not supported'"
# Get full article for citation
scripts/docs.py get "system_requirements" --full
AND, OR, NOT for precision"exact match" with quotesSource: URLs in reportsjq or other tools for processing