一键导入
docs-style
// Style guide for writing Searchlite documentation and examples; use when creating or editing docs/ guides.
// Style guide for writing Searchlite documentation and examples; use when creating or editing docs/ guides.
Use when implementing or updating Searchlite features that need pre-review hardening via per-feature invariant matrix maintenance, adversarial/regression coverage updates, and full quality-gate verification.
Send local completion notifications to the Agent Notifications app via POST http://127.0.0.1:60766/agent/notify after finishing a task; include title, content, and agent details so the desktop app shows a system notification.
Send local completion notifications to the agent-notifier service via POST http://127.0.0.1:60766/agent/notify after finishing a task; include title, content, and agent details so the desktop app shows a system notification.
Structured workflow for discovering, reproducing, and fixing bugs in Searchlite by inspecting real code paths (CLI/HTTP/core), validating durability invariants, and producing regression tests; use when investigating incorrect results, crashes, data loss risks, or “it sometimes fails” reports.
Guardrails for keeping the Searchlite Rust workspace compliant with formatting, lint, build, test, and perf expectations; use when preparing or reviewing changes to ensure they meet project quality bars.
Playbook for diagnosing Searchlite issues across CLI/HTTP, storage, and indexing; use when triaging failures or odd search results.
| name | docs-style |
| description | Style guide for writing Searchlite documentation and examples; use when creating or editing docs/ guides. |
Docs should be copy/paste runnable and should teach the lifecycle: init → ingest → commit → (refresh) → search → maintain (inspect/compact)
Assume a junior/mid developer integrating Searchlite for the first time.
Prefer:
INDEX=/tmp/searchlite_idxSEARCHLITE_INDEX_PATH=/tmp/searchlite_idxdoc_id_field (default _id)Searchlite buffers writes. Your examples must show:
commit after add/bulk/delete--refresh-on-commit is disabled, readers may be stale until POST /refresh.stored: true controls what can be returnedfast: true controls what can be filtered/aggregated efficientlyThe HTTP server:
Docs must include a bold warning:
Also include the “bind safely” recommendation:
0.0.0.0 only when behind a firewall/proxy.Every guide/example must include all three artifacts:
Do not show “…”-style pseudo snippets for the main flow. If you must omit details, provide:
bash, json, yaml/init example/add (NDJSON streaming) + /commit (+ optional /refresh)/search example/inspect, /stats, /compact, /refresh)Whenever docs mention HTTP behavior:
openapi.yaml{"error":{"type":"...","reason":"..."}}Whenever docs mention request JSON shape:
search-request.schema.jsonINDEX or SEARCHLITE_INDEX_PATH