generate-api-docs

Generate HTML or Markdown API reference docs from docstrings.

18|5|Updated Nov 3, 2025
One-click install
npx skills add https://github.com/mvillmow/ProjectOdyssey --skill generate-api-docs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-api-docs
Source: https://github.com/mvillmow/ProjectOdyssey/tree/main/.claude/skills/tier-2/generate-api-docs
Command: npx skills add https://github.com/mvillmow/ProjectOdyssey --skill generate-api-docs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pdoc, sphinx.

What problem does it solve?

Manually creating and maintaining API reference documentation from code docstrings is a time-consuming, repetitive, and often outdated process.

Core Features & Use Cases

  • Docstring Extraction: Extracts docstrings from public functions and classes to automatically generate API reference documentation.
  • Multi-format Output: Can generate documentation in various formats, including HTML or Markdown.
  • Use Case: After developing a new library, use this skill to automatically generate comprehensive API documentation from your code's docstrings, ensuring it's always up-to-date and accessible.

Quick Start

Use the generate-api-docs skill to generate HTML API documentation for 'module_name' using pdoc.

Frequently Asked Questions about generate-api-docs

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

FAQPage Schema
How do I automatically generate API documentation from my code's docstrings?

API documentation generation extracts docstrings from your public functions and classes, then converts them into structured HTML or Markdown reference guides. Use pdoc or Sphinx to parse Google, NumPy, or reStructuredText formatted docstrings and output navigable documentation with signatures, parameter types, and examples.

What docstring formats does automated API doc generation support?

Automated API documentation tools support Google, NumPy, and reStructuredText docstring formats. These parsers extract parameter descriptions, return types, exceptions, and code examples, then format them into readable API references with cross-references and type annotations.

Can I generate API documentation in both HTML and Markdown formats?

Yes, API documentation generation supports multiple output formats. Tools like pdoc and Sphinx can produce both HTML and Markdown documentation from your docstrings, allowing you to choose the format that best fits your distribution and hosting needs.

When should I use API documentation generation instead of writing docs manually?

Use automated API documentation generation when maintaining reference docs manually becomes a bottleneck—especially after library updates or new releases. It keeps documentation synchronized with code changes, eliminating outdated signatures and ensuring examples stay accurate.

Do I need to add anything to my code before generating API docs?

Yes, your public functions and classes must have docstrings in Google, NumPy, or reStructuredText format. These docstrings should include parameter descriptions, return types, exceptions, and optionally code examples. Tools parse these existing docstrings to generate the documentation.

Can API documentation generation validate links and code examples in the output?

API documentation generation includes link validation and example verification during the build process. This ensures cross-references resolve correctly and code examples in docstrings execute without errors before publishing the final documentation.