ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 4/5

auto-doc-ai

基于 AST 和 LLM 自动生成 Python 代码文档(Google Style docstring)。 自动分析代码结构,生成符合 Google Style 的 docstring。

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/antonia-sz/auto-doc-ai
Or

What This Skill Does

Auto Doc AI is a powerful productivity tool for Python developers, designed to automate the often tedious task of writing documentation. By leveraging Abstract Syntax Tree (AST) analysis combined with Large Language Models (LLM), this skill scans your Python codebase to understand the structure, parameters, and return types of your classes and functions. It then generates high-quality, professional docstrings following the industry-standard Google Style guide. Whether you are working on a small script or a sprawling enterprise codebase, Auto Doc AI ensures your project remains well-documented without requiring manual intervention, significantly reducing technical debt.

Installation

To integrate this skill into your OpenClaw environment, execute the following command in your terminal:

clawhub install openclaw/skills/skills/antonia-sz/auto-doc-ai

Ensure that you have sufficient permissions for your workspace, as the skill will require read and write access to your Python files to parse code and inject documentation.

Use Cases

  • Legacy Code Refactoring: Automatically generate documentation for undocumented legacy Python projects to improve maintainability and onboarding for new team members.
  • CI/CD Pipelines: Integrate the tool into your pre-commit hooks or CI process to ensure every new function adheres to documentation standards before being merged into the main branch.
  • Open Source Maintenance: Quickly generate clear documentation for public repositories to improve user experience and adoption.
  • Rapid Prototyping: Save time during the development phase by letting the agent document your functions as you finalize your logic.

Example Prompts

  1. "Analyze the file at ./services/processor.py and add Google Style docstrings to all functions missing them."
  2. "Run the auto-doc-ai tool on the entire /src folder recursively, but use the --dry-run flag first so I can review the changes."
  3. "Update the docstrings in models.py, and please use the --overwrite flag to refresh any existing outdated documentation."

Tips & Limitations

  • Safety First: Always run the command with the --dry-run flag before applying changes. This allows you to verify the LLM's output against your coding standards.
  • Incremental Updates: Use the default mode to skip existing docstrings, which saves tokens and prevents accidental overwriting of manually curated comments.
  • Python Compatibility: This tool is designed for Python 3.7+ syntax. Codebases utilizing older syntax or highly unconventional dynamic programming patterns may produce less accurate results.
  • Review: Always manually audit complex methods where business logic is intricate to ensure the AI's interpretation of the function's side effects is accurate.

Metadata

Stars4473
Views9
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-antonia-sz-auto-doc-ai": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags

#python#documentation#codegen#developer-tools#ai
Safety Score: 4/5

Flags: file-write, file-read, code-execution

Related Skills

designer-intelligence-station

Designer intelligence collection tool. Monitors 46 public sources (AI/hardware/mobile/design), dynamic quality-based filtering v2.1.8, generates structured daily/weekly reports. All data stored locally.

15217172098 4473

synapse-wiki

Synapse Wiki — 智能知识库管理系统。 自动摄取原始资料,增量构建持久化知识网络,支持智能查询和健康检查。 知识随时间复利积累,越用越聪明。 当用户提到 wiki、知识库、摄取资料、查询知识、整理文档时使用此技能。

ankechenlab-node 4473

Reflection Engine

Analyzes an AI agent's dream/knowledge graph to surface the top recurring themes from its inner life. Reads DreamInsight entities from a knowledge_graph.json and returns the most frequent conceptual patterns — giving your agent a window into what it's actually thinking about. Built and proven on Albion, an autonomous AI running 31,000+ dream cycles on a Raspberry Pi 5.

albionaiinc-del 4473

project-evaluator

描述一个项目想法,AI 从市场/技术/商业/风险四个维度系统评估, 输出评估报告、竞品速查、MVP建议,帮你决策「值不值得做」。

antonia-sz 4473

undertow

Skill discovery engine for AI coding agents. Recommends and installs the right skill when you need it — code review, test generation, debugging, commit messages, PR preparation, security scanning, dependency audits, Docker setup, CI/CD pipelines, API documentation, refactoring, performance optimization, bundle analysis, git recovery, README generation, license compliance, migration guides, dead code removal, and secret detection. One install gives your agent access to a curated library of 20+ developer workflow skills. Use when the user asks for help with any development workflow, code quality, DevOps, security, testing, documentation, or project setup task.

8co 4473