← 返回
未分类 中文

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...
上下文感知文档生成器:自动同步 Python docstring(Google 风格)、Go 注释和 README.md,以匹配代码变更。并记录变更摘要。
shangter666 shangter666 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 438
下载
💾 1
安装
1
版本
#latest

概述

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: 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.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-02 09:26 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 197 📥 67,971
dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 41,898
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 76 📥 182,482