用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/m4d3bug/oh-my-openclaw --skill docsync命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | docsync |
| description | Auto-generate docs from code and detect documentation drift via git hooks. Free README gen + paid living docs. |
| homepage | https://docsync.pages.dev |
| metadata | {"openclaw":{"emoji":"📖","primaryEnv":"DOCSYNC_LICENSE_KEY","requires":{"bins":"[Truncated]"},"install":["[Truncated]","[Truncated]","[Truncated]"],"os":["darwin","linux","win32"]}} |
| user-invocable | true |
| disable-model-invocation | false |
DocSync 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":
hooks install, prompt to install itThe user might say things like: