← Back to Skills Marketplace
shangter666

doc-sync

by shangter666 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
212
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install doc-sync
Description
Context-Aware Doc Generator: Automatically syncs Python docstrings (Google style), Go comments, and README.md based on code changes. Also logs change summari...
README (SKILL.md)

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.
Usage Guidance
This package overclaims functionality: it promises automatic docstring and README updates but only includes a script to log change summaries to a local KB and a doc-style reference. Before installing or invoking: (1) treat the skill as incomplete — verify where and how doc/README edits would be produced (ask the author for the editing implementation or additional scripts). (2) Because the skill can write to .gemini/, run it first in a disposable or version-controlled repo and ensure you have backups/commits you can revert. (3) If you want automatic file edits, require explicit human review/approval steps (or CI-based changes) rather than blind writes. (4) If you need vector-based KB storage, be aware it will look for a local ChromaDB and persist under ./ .gemini/kb; installing chromadb is optional. Additional information that would change this assessment: included code that actually performs docstring/README edits (showing what files are modified and how), any install scripts, or any network endpoints/credentials — those would need re-review.
Capability Analysis
Type: OpenClaw Skill Name: doc-sync Version: 1.0.0 The skill bundle is a legitimate documentation synchronization tool that updates docstrings and README files. The script `scripts/kb_sync.py` implements local logging and vector storage using ChromaDB in a local directory (./.gemini/kb), with no evidence of data exfiltration, malicious execution, or unauthorized access.
Capability Assessment
Purpose & Capability
The skill's name/description promise automatic synchronization of Python docstrings, Go comments, and README.md, but the bundled files contain only a KB sync script (scripts/kb_sync.py) and reference materials. There is no provided implementation for parsing or modifying source files or README sections. That is a meaningful mismatch between claimed capability and included artifacts.
Instruction Scope
SKILL.md instructs the agent to update docstrings and README.md and to log change summaries using scripts/kb_sync.py. The KB logging script exists and writes locally, which matches that part of the instructions, but the instructions otherwise assume the agent can modify code/comments/README — there is no code or explicit safe workflow for performing those edits or for seeking user approval before applying changes.
Install Mechanism
No install specification is provided (instruction-only with one helper script). No external downloads or installers are indicated, so nothing new would be written to disk by an installer step beyond the script already bundled.
Credentials
The skill declares no required environment variables, no credentials, and no config paths. The included script optionally imports chromadb if installed but does not require secrets or network endpoints. The only filesystem impact is writing to a local .gemini directory.
Persistence & Privilege
always is false and model invocation is allowed (default). The skill will persist local artifacts (.gemini/kb or .gemini/changelog.jsonl) if used, but it does not request elevated or cross-skill privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install doc-sync
  3. After installation, invoke the skill by name or use /doc-sync
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- 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.
Metadata
Slug doc-sync
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 212 downloads so far.

How do I install doc-sync?

Run "/install doc-sync" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is doc-sync free?

Yes, doc-sync is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does doc-sync support?

doc-sync is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created doc-sync?

It is built and maintained by shangter666 (@shangter666); the current version is v1.0.0.

💬 Comments