Word / DOCX
一个面向 Content 场景的 Agent 技能。原始说明:Create, inspect, and edit Microsoft Word documents and DOCX files with reliable styles, numbering, tracked changes, tables, sections, and compatibility check...
name: update-docs
description: This skill should be used when the user asks to "update documentation for my changes", "check docs for this PR", "what docs need updating", "sync docs with code", "scaffold docs for this feature", "document this feature", "review docs completeness", "add docs for this change", "what documentation is affected", "docs impact", or mentions "docs/", "skills/", "MDX", "documentation update", "API reference", ".md files". Provides guided workflow for updating OpenClaw documentation based on code changes.
Guides you through updating OpenClaw documentation based on code changes on the active branch. Designed for maintainers reviewing PRs for documentation completeness.
git diff main...HEAD --stat to see what files changed# See all changed files on this branch
git diff main...HEAD --stat
# See changes in specific areas
git diff main...HEAD -- skills/
git diff main...HEAD -- src/api/
Look for changes in these areas:
| Source Path | Likely Doc Impact |
|-------------|------------------|
| skills/ | Skill documentation |
| src/api/ | API reference documentation |
| src/config/ | Configuration guides |
| examples/ | Tutorial and example guides |
| src/core/ | Core architecture documentation |
Use the code-to-docs mapping in references/CODE-TO-DOCS-MAPPING.md to find corresponding documentation files.
Example mappings:
skills/browser-hosting/ → docs/skills/browser-hosting.mdsrc/api/browser.ts → docs/api/browser.mdexamples/basic-agent/ → docs/guides/basic-agent.mdBefore making changes, read the existing doc to understand:
Common updates include:
For each change:
Check documentation for common issues:
title, description)Use this when adding documentation for entirely new features.
| Feature Type | Doc Location | Template |
|--------------|-------------|----------|
| New skill | docs/skills/ | Skill Reference |
| New API function | docs/api/ | API Reference |
| New config option | docs/config/ | Config Reference |
| New concept/guide | docs/guides/ | Guide |
| Core architecture | docs/architecture/ | Architecture Guide |
my-new-feature.md05-my-new-feature.mdAPI Reference Template: See assets/api-reference-template.md
Guide Template: See assets/guide-template.md
Update frontmatter with related documentation:
related:
title: Next Steps
description: Learn more about related features.
links:
- api/browser
- guides/browser-automation
See references/DOC-CONVENTIONS.md for complete formatting rules.
Frontmatter (required):
---
title: Page Title (2-3 words)
description: One or two sentences describing the page.
---
Code blocks:
# Python example
code_here()
// JavaScript example
code_here();
Notes:
> **Good to know**: Single line note.
> **Good to know**:
>
> - Multi-line note point 1
> - Multi-line note point 2
Before committing documentation changes:
title and descriptionreferences/DOC-CONVENTIONS.md - Complete frontmatter and formatting rulesreferences/CODE-TO-DOCS-MAPPING.md - Source code to documentation mappingassets/api-reference-template.md - API reference templateassets/guide-template.md - Guide template