Install
openclaw skills install docsyncAuto-generate docs from code and detect documentation drift via git hooks. Free README gen + paid living docs.
openclaw skills install docsyncDocSync generates documentation from your code and keeps it in sync automatically. It uses tree-sitter for multi-language AST parsing, lefthook for git hook integration, and difftastic for semantic change detection.
docsync generate <file-or-directory>Generate a one-shot README or API doc for a single file or directory.
How to execute:
bash "<SKILL_DIR>/scripts/docsync.sh" generate <target>
What it does:
<SKILL_DIR>/templates/Example usage scenarios:
docsync generate src/utils/auth.tsdocsync generate src/api/docsync generate .docsync drift [directory]Scan for documentation drift — find where code has changed but docs haven't been updated.
How to execute:
bash "<SKILL_DIR>/scripts/docsync.sh" drift [directory]
What it does:
docsync hooks installInstall git hooks that automatically check for doc drift on every commit.
How to execute:
bash "<SKILL_DIR>/scripts/docsync.sh" hooks install
What it does:
docsync hooks uninstallRemove DocSync git hooks.
bash "<SKILL_DIR>/scripts/docsync.sh" hooks uninstall
docsync auto-fix [directory]Auto-regenerate stale documentation for files with detected drift.
bash "<SKILL_DIR>/scripts/docsync.sh" auto-fix [directory]
docsync onboarding [directory]Generate a comprehensive onboarding guide for new developers.
bash "<SKILL_DIR>/scripts/docsync.sh" onboarding [directory]
docsync architecture [directory]Generate architecture documentation showing module relationships and data flow.
bash "<SKILL_DIR>/scripts/docsync.sh" architecture [directory]
DocSync uses tree-sitter grammars and supports:
Users can configure DocSync in ~/.openclaw/openclaw.json:
{
"skills": {
"entries": {
"docsync": {
"enabled": true,
"apiKey": "YOUR_LICENSE_KEY_HERE",
"config": {
"outputDir": "docs",
"templateOverrides": {},
"excludePatterns": ["**/node_modules/**", "**/dist/**", "**/.git/**"],
"languages": ["typescript", "python", "go"],
"driftThreshold": "warning",
"autoFix": false
}
}
}
}
}
hooks install, prompt to install itThe user might say things like: