返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
d

doc-sync

Context-Aware Doc Generator: Automatically syncs Python docstrings (Google style), Go comments, and README.md based on code changes. Also logs change summaries to a local KB/ChromaDB.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
150
下载量
0
收藏
概述
安装方式
版本历史

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`, and `Attributes`. - **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.py` to 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](references/doc_styles.md): 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 `chromadb` is installed if you want vector-based retrieval; otherwise, it defaults to a local JSONL log.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 doc-sync-1776351484 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 doc-sync-1776351484 技能

通过命令行安装

skillhub install doc-sync-1776351484

下载 Zip 包

⬇ 下载 doc-sync v1.0.0

文件大小: 3.43 KB | 发布时间: 2026-4-17 14:40

v1.0.0 最新 2026-4-17 14:40
- Initial release of doc-sync.
- Automatically updates Python docstrings (Google style) and Go comments to reflect code changes.
- Keeps README.md in sync with new or changed APIs, CLI flags, or endpoints.
- Logs concise change summaries to a local knowledge base (ChromaDB or JSONL).
- Supports clear commands to trigger documentation and knowledge base updates.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部