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.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "doc-sync" with this command: npx skills add shangter666/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: 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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Free Video Music

add video clips into music-backed videos with this skill. Works with MP4, MOV, AVI, WebM files up to 500MB. content creators use it for adding royalty-free b...

Registry SourceRecently Updated
Coding

Dependency Impact Analyzer

Analyze the blast radius of upgrading, removing, or replacing a dependency — trace imports, find affected files, check test coverage of impacted code, detect...

Registry SourceRecently Updated
Coding

Ci Pipeline Optimizer

Analyze CI/CD pipelines (GitHub Actions, GitLab CI, CircleCI) and suggest optimizations — caching strategies, parallelization, step elimination, Docker layer...

Registry SourceRecently Updated
Coding

Generator By Link

Get generated video clips ready to post, without touching a single slider. Upload your URL or link (MP4, MOV, WebM, AVI, up to 500MB), say something like "ge...

Registry SourceRecently Updated