doc-sync
/install doc-sync
doc-sync
A skill for maintaining strong consistency between code, documentation, and a private knowledge base.
Workflows
1. Synchronize Docstrings and Comments
When you modify function logic or signatures in Python or Go, use this skill to update the relevant comments.
- Python: Follows Google Style. Updates
Args,Returns, andAttributes. - Go: Follows Standard Go Doc style. Updates exported function/struct comments.
How to trigger: "Update docstrings for [file_path]" or "Sync comments in [file_path] after my changes."
2. README.md Real-time Update
When adding new exported functions, CLI flags, or API endpoints, this skill ensures the root README.md is updated to reflect the new interface.
- Scans for changes in public APIs.
- Updates "Usage" or "API Reference" sections in
README.md.
How to trigger: "Update README.md based on the latest changes in [directory/file]."
3. Knowledge Base (KB) Sync
For major code changes, this skill generates a concise summary of "why" the change was made and stores it for future retrieval.
- Uses
scripts/kb_sync.pyto interface with a local ChromaDB (if available) or log to.gemini/changelog.jsonl. - Ensures you can later query the project's history via CLI.
How to trigger: "Log this change to the knowledge base" or "Summarize my changes and sync to KB."
Reference Materials
- Doc Styles: Detailed examples of Google and Go documentation styles.
Usage Guidelines
- Always review suggested docstring changes before applying.
- For README updates, provide the specific section title if possible.
- Ensure
chromadbis installed if you want vector-based retrieval; otherwise, it defaults to a local JSONL log.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install doc-sync - 安装完成后,直接呼叫该 Skill 的名称或使用
/doc-sync触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
doc-sync 是什么?
Context-Aware Doc Generator: Automatically syncs Python docstrings (Google style), Go comments, and README.md based on code changes. Also logs change summari... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 212 次。
如何安装 doc-sync?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install doc-sync」即可一键安装,无需额外配置。
doc-sync 是免费的吗?
是的,doc-sync 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
doc-sync 支持哪些平台?
doc-sync 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 doc-sync?
由 shangter666(@shangter666)开发并维护,当前版本 v1.0.0。