Search

PythonReactSEOPDF
OpenClaw

auto-doc-ai

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

antonia-sz0 source installs☆ 0 Repository starsv1.0.0

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install antonia-sz/auto-doc-ai

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

Auto Doc AI — 智能代码文档生成器

自动分析 Python 代码结构,生成符合 Google Style 的 docstring 文档。

功能特性

  • 🔍 基于 AST 解析代码结构
  • 🤖 智能函数/类/方法分析
  • 📝 生成 Google Style docstring
  • 📁 支持单文件或整个目录批量处理
  • 🔄 支持增量更新(跳过已有文档的函数)

使用方法

为单个文件生成文档
/generate-docs /path/to/your_script.py
为整个目录生成文档
/generate-docs /path/to/src/ --recursive
强制更新已有文档
/generate-docs /path/to/src/ --overwrite
预览模式(不写入文件)
/generate-docs /path/to/your_script.py --dry-run

生成的文档格式示例

def process_data(data, threshold=0.5):
    """处理输入数据并返回过滤后的结果。

    Args:
        data (list): 输入数据列表。
        threshold (float, optional): 过滤阈值,默认为 0.5。

    Returns:
        list: 过滤后的数据列表。

    Raises:
        ValueError: 如果数据格式无效。
    """
    pass

注意事项

  • 仅支持 Python 3.7+ 的文件
  • 建议先使用 --dry-run 预览生成的文档
  • 使用 --overwrite 会替换所有现有 docstring

Source information

Source
github
Repository
openclaw/skills
Path
skills/antonia-sz/auto-doc-ai
Version
1.0.0
Commit
87a7c73914ff9e1f09186427e91599360e44c49e
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

README

Auto Doc AI

基于 AST 和 LLM 自动生成 Python 代码文档(Google Style docstring)

功能特性

  • 🔍 基于 AST 解析代码结构
  • 🤖 智能函数/类/方法分析
  • 📝 生成 Google Style docstring
  • 📁 支持单文件或整个目录批量处理
  • 🔄 支持增量更新(跳过已有文档的函数)

安装

作为 OpenClaw Skill 使用:

clawhub install auto-doc-ai

或直接使用:

git clone https://github.com/kimi-claw/skill-auto-doc-ai.git
cd skill-auto-doc-ai
./bin/generate-docs --help

使用方法

为单个文件生成文档
/generate-docs /path/to/your_script.py
为整个目录生成文档
/generate-docs /path/to/src/ --recursive
强制更新已有文档
/generate-docs /path/to/src/ --overwrite
预览模式(不写入文件)
/generate-docs /path/to/your_script.py --dry-run

生成的文档格式示例

def process_data(data, threshold=0.5):
    """处理输入数据并返回过滤后的结果。

    Args:
        data (list): 输入数据列表。
        threshold (float, optional): 过滤阈值,默认为 0.5。

    Returns:
        list: 过滤后的数据列表。

    Raises:
        ValueError: 如果数据格式无效。
    """
    pass

注意事项

  • 仅支持 Python 3.7+ 的文件
  • 建议先使用 --dry-run 预览生成的文档
  • 使用 --overwrite 会替换所有现有 docstring

License

MIT

Extracted content

SKILL.md
# Auto Doc AI — 智能代码文档生成器

自动分析 Python 代码结构,生成符合 Google Style 的 docstring 文档。

## 功能特性

- 🔍 基于 AST 解析代码结构
- 🤖 智能函数/类/方法分析
- 📝 生成 Google Style docstring
- 📁 支持单文件或整个目录批量处理
- 🔄 支持增量更新(跳过已有文档的函数)

## 使用方法

### 为单个文件生成文档

```bash
/generate-docs /path/to/your_script.py
```

### 为整个目录生成文档

```bash
/generate-docs /path/to/src/ --recursive
```

### 强制更新已有文档

```bash
/generate-docs /path/to/src/ --overwrite
```

### 预览模式(不写入文件)

```bash
/generate-docs /path/to/your_script.py --dry-run
```

## 生成的文档格式示例

```python
def process_data(data, threshold=0.5):
    """处理输入数据并返回过滤后的结果。

    Args:
        data (list): 输入数据列表。
        threshold (float, optional): 过滤阈值,默认为 0.5。

    Returns:
        list: 过滤后的数据列表。

    Raises:
        ValueError: 如果数据格式无效。
    """
    pass
```

## 注意事项

- 仅支持 Python 3.7+ 的文件
- 建议先使用 `--dry-run` 预览生成的文档
- 使用 `--overwrite` 会替换所有现有 docstring
README
# Auto Doc AI

基于 AST 和 LLM 自动生成 Python 代码文档(Google Style docstring)

## 功能特性

- 🔍 基于 AST 解析代码结构
- 🤖 智能函数/类/方法分析
- 📝 生成 Google Style docstring
- 📁 支持单文件或整个目录批量处理
- 🔄 支持增量更新(跳过已有文档的函数)

## 安装

作为 OpenClaw Skill 使用:
```bash
clawhub install auto-doc-ai
```

或直接使用:
```bash
git clone https://github.com/kimi-claw/skill-auto-doc-ai.git
cd skill-auto-doc-ai
./bin/generate-docs --help
```

## 使用方法

### 为单个文件生成文档

```bash
/generate-docs /path/to/your_script.py
```

### 为整个目录生成文档

```bash
/generate-docs /path/to/src/ --recursive
```

### 强制更新已有文档

```bash
/generate-docs /path/to/src/ --overwrite
```

### 预览模式(不写入文件)

```bash
/generate-docs /path/to/your_script.py --dry-run
```

## 生成的文档格式示例

```python
def process_data(data, threshold=0.5):
    """处理输入数据并返回过滤后的结果。

    Args:
        data (list): 输入数据列表。
        threshold (float, optional): 过滤阈值,默认为 0.5。

    Returns:
        list: 过滤后的数据列表。

    Raises:
        ValueError: 如果数据格式无效。
    """
    pass
```

## 注意事项

- 仅支持 Python 3.7+ 的文件
- 建议先使用 `--dry-run` 预览生成的文档
- 使用 `--overwrite` 会替换所有现有 docstring

## License

MIT

Related skills

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

0protocol

0isone

Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.

OpenClaw

0x0-messenger

eijiac24

Send and receive P2P messages using disposable numbers and PINs. No servers, no accounts. Use for human notifications, approval flows, and agent-to-agent communication.