doc-generator

Generate Markdown documentation from Python codebases via AST analysis.

5|Updated Nov 21, 2025
One-click install
npx skills add https://github.com/basher83/agent-auditor --skill doc-generator-basher83
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doc-generator
Source: https://github.com/basher83/agent-auditor/tree/main/.claude/skills/doc-generator
Command: npx skills add https://github.com/basher83/agent-auditor --skill doc-generator-basher83

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually creating and maintaining Python documentation is a tedious, time-consuming, and often inconsistent process that diverts developers from core coding tasks. This Skill automates the generation of comprehensive, structured documentation directly from your Python codebase.

Core Features & Use Cases

  • Comprehensive Markdown Output: Generates well-structured Markdown documentation from Python source code, ready for immediate use or further processing.
  • Intelligent Code Analysis: Analyzes source files to extract module-level docstrings, class definitions, function/method signatures with type hints, and docstring content (supporting Google, NumPy, Sphinx formats).
  • API & README Generation: Ideal for creating detailed API references, generating project README files with usage examples, or producing general code documentation.

Quick Start

Document the Python file 'my_project/main.py' and output the documentation in markdown format.

Frequently Asked Questions about doc-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate markdown documentation from Python code automatically?

Generate markdown documentation by analyzing your Python codebase with AST parsing to extract module docstrings, class definitions, function signatures with type hints, and docstring content in Google, NumPy, or Sphinx formats, producing structured Markdown covering modules, classes, functions, parameters, returns, and examples.

Can I document entire Python directories recursively or just single files?

The skill processes both single Python files and recursively analyzes entire directories, extracting documentation from all modules and classes while preserving type hints and automatically skipping private members unless explicitly requested.

What docstring formats does Python documentation generation support?

Python documentation generation supports Google, NumPy, and Sphinx docstring formats, parsing and converting each format into consistent structured Markdown output with parameters, returns, type hints, and usage examples clearly documented.

How can I use generated Python documentation for API references and README files?

Use the generated markdown documentation directly in API reference guides and project README files, which contain organized module overviews, class hierarchies, function signatures, type information, and usage examples ready for immediate publication or further editing.

Do I need to maintain docstrings manually if documentation is auto-generated from Python code?

Auto-generating documentation from existing docstrings eliminates manual markdown creation and maintenance; documentation stays synchronized with your codebase as you update Python docstrings, class definitions, and function signatures.

What happens to private members and internal functions when generating Python documentation?

Private members are automatically excluded from generated documentation by default, focusing output on public APIs; you can optionally include them if needed for internal or comprehensive reference documentation.