Install
openclaw skills install update-docs-on-code-changeAutomatically update README.md and documentation files when application code changes require documentation updates. Use when adding new features, changing APIs, modifying configuration options, updating installation procedures, or making breaking changes. Triggers on code modifications that affect user-facing documentation, changelog entries, migration guides, or code examples.
openclaw skills install update-docs-on-code-changeA skill for keeping documentation synchronized with code changes. Automatically detects when README.md, API documentation, configuration guides, and other documentation files need updates based on code modifications.
Update README.md when:
Adding new features or capabilities
Modifying installation or setup process
Adding new CLI commands or options
Changing configuration options
Sync API documentation when:
New endpoints are added
Endpoint signatures change
Authentication or authorization changes
Verify and update code examples when:
Function signatures change
API interfaces change
Add changelog entries for:
Changelog format:
## [Version] - YYYY-MM-DD
### Added
- New feature description with reference to PR/issue
### Changed
- **BREAKING**: Description of breaking change
- Other changes
### Fixed
- Bug fix description
Create migration guides when:
Breaking API changes occur
Major version updates
Deprecating features
Maintain these documentation files and update as needed:
installation.md: Setup and installation guideconfiguration.md: Configuration options and examplesapi.md: API reference documentationcontributing.md: Contribution guidelinesmigration-guides/: Version migration guides### Example: [Clear description of what example demonstrates]
\`\`\`language
// Include necessary imports/setup
import { function } from 'package';
// Complete, runnable example
const result = function(parameter);
console.log(result);
\`\`\`
**Output:**
\`\`\`
expected output
\`\`\`
### `functionName(param1, param2)`
Brief description of what the function does.
**Parameters:**
- `param1` (type): Description of parameter
- `param2` (type, optional): Description with default value
**Returns:**
- `type`: Description of return value
**Example:**
\`\`\`language
const result = functionName('value', 42);
\`\`\`
**Throws:**
- `ErrorType`: When and why error is thrown
Example scripts for documentation validation:
{
"scripts": {
"docs:build": "Build documentation",
"docs:test": "Test code examples in docs",
"docs:lint": "Lint documentation files",
"docs:links": "Check for broken links",
"docs:spell": "Spell check documentation",
"docs:validate": "Run all documentation checks"
}
}
Before completing documentation updates:
| Issue | Solution |
|---|---|
| Outdated code examples | Re-run examples against current code and update |
| Missing API documentation | Review all public interfaces and document each |
| Broken links | Use link checker tools to identify and fix |
| Inconsistent terminology | Create a glossary and standardize usage |
| Missing changelog entry | Add entry following the changelog format |