.agents/skills/openclaw-docs/SKILL.md
Use this skill when writing, editing, or reviewing OpenClaw developer documentation for APIs, SDKs, CLI tools, integrations, quickstarts, platform guides, or technical product docs.
Write documentation that is concise, helpful, and comprehensive: fast for first success, precise for production, and easy to scan when debugging.
Use an OpenClaw documentation model, strengthened by Write the Docs principles:
Choose the page type before writing:
Use this default topic page structure:
Topic pages may be longer than quickstarts, but they should not become exhaustive references. Move field tables, API contracts, narrow internals, legacy details, and rare debugging workflows to linked reference or troubleshooting pages when they interrupt the end-to-end overview.
For configuration, keep task-critical options inline. Link to reference docs for full option lists, defaults, enums, generated schemas, and advanced settings. Do not duplicate exhaustive config reference tables in topic pages unless the topic page is itself the reference.
Use this default guide structure:
Keep navigation user-intent based. Do not force readers to understand internal product taxonomy before they can pick a task.
Write and maintain docs with the same discipline as code:
Do not use FAQs as a dumping ground for unrelated material. Promote recurring questions into task, concept, troubleshooting, or reference pages.
Write in a direct, practical voice:
Use headings that describe actions or reference surfaces:
Use precise modal language:
Vary detail by page type:
Go deep where mistakes are expensive:
Do not bury this detail in a distant reference if developers need it to complete the task safely.
Make examples production-shaped, even when using test data:
<API_KEY> or <CUSTOMER_ID>.When multiple languages are useful, keep the same scenario across languages so readers can compare equivalents.
Design every page so readers can find it, link to it, and decide quickly whether it answers their question:
For endpoints, methods, objects, or commands, include:
For nested objects, document child fields near their parent. Do not make readers jump across pages to understand the shape of a single request.
Verify docs changes like product changes:
Before finalizing a page, verify:
Edit in this order: