sphinx

Generate comprehensive Python documentation with Sphinx. Covers autodoc for API extraction, Napoleon for Google/NumPy docstrings, intersphinx for cross-references, and multiple output formats including HTML, PDF, and ePub.

5 stars

Best use case

sphinx is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Generate comprehensive Python documentation with Sphinx. Covers autodoc for API extraction, Napoleon for Google/NumPy docstrings, intersphinx for cross-references, and multiple output formats including HTML, PDF, and ePub.

Teams using sphinx should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/sphinx/SKILL.md --create-dirs "https://raw.githubusercontent.com/vamseeachanta/workspace-hub/main/.agents/skills/development/documentation/sphinx/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/sphinx/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How sphinx Compares

Feature / AgentsphinxStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Generate comprehensive Python documentation with Sphinx. Covers autodoc for API extraction, Napoleon for Google/NumPy docstrings, intersphinx for cross-references, and multiple output formats including HTML, PDF, and ePub.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Sphinx

## When to Use This Skill

### USE When

- Building Python library or package documentation
- Need automatic API reference from docstrings
- Require PDF or ePub documentation output
- Using Google or NumPy docstring styles
- Need cross-references between documentation projects
- Deploying to Read the Docs
- Building scientific or academic documentation
- Need versioned API documentation
- Working with large Python codebases
- Require internationalized documentation
### DON'T USE When

- Simple project documentation without API docs (use MkDocs)
- Non-Python projects (use MkDocs or Docusaurus)
- Need React components in docs (use Docusaurus)
- Quick format conversion only (use Pandoc)
- Building presentation slides (use Marp)
- Collaborative wiki-style docs (use GitBook)

## Prerequisites

### Installation

```bash
# Core Sphinx installation
pip install sphinx

# With common extensions
pip install sphinx \
    sphinx-rtd-theme \
    sphinx-autodoc-typehints \
    sphinx-copybutton \
    myst-parser \

*See sub-skills for full details.*
### System Requirements

- Python 3.8 or higher
- pip or uv package manager
- LaTeX distribution (for PDF output)
- Graphviz (optional, for diagrams)

## Version History

### v1.0.0 (2026-01-17)

- Initial skill creation
- Autodoc configuration for Python API
- Napoleon support for Google/NumPy docstrings
- Intersphinx cross-references
- Multiple output formats (HTML, PDF, ePub)
- Read the Docs configuration
- MyST Markdown support
- Custom extensions guide
- GitHub Actions deployment

## Sub-Skills

- [1. Project Initialization (+1)](1-project-initialization/SKILL.md)
- [3. Index and Table of Contents](3-index-and-table-of-contents/SKILL.md)
- [4. Autodoc - Automatic API Documentation](4-autodoc-automatic-api-documentation/SKILL.md)
- [5. Generate API Documentation (+1)](5-generate-api-documentation/SKILL.md)
- [Integration with pyproject.toml (+2)](integration-with-pyprojecttoml/SKILL.md)
- [1. Docstring Style Guide (+3)](1-docstring-style-guide/SKILL.md)
- [Common Issues (+1)](common-issues/SKILL.md)

## Sub-Skills

- [Features](features/SKILL.md)
- [Quick Example](quick-example/SKILL.md)
- [Admonitions](admonitions/SKILL.md)
- [Cross-References](cross-references/SKILL.md)
- [Math Support](math-support/SKILL.md)
- [Task Lists](task-lists/SKILL.md)
- [7. Intersphinx Cross-References (+5)](7-intersphinx-cross-references/SKILL.md)
- [Related Resources](related-resources/SKILL.md)

Related Skills

baoyu-article-illustrator

5
from vamseeachanta/workspace-hub

Article illustrations: type × style × palette consistency.

vscode-extensions

5
from vamseeachanta/workspace-hub

VS Code productivity optimization with essential extensions, settings sync, profiles, keybindings, snippets, and workspace configuration

git-advanced

5
from vamseeachanta/workspace-hub

Advanced git workflows including rebase, worktrees, bisect, hooks, and monorepo patterns

docker

5
from vamseeachanta/workspace-hub

Complete Docker containerization patterns with multi-stage builds for development and production workflows

elite-frontend-ux

5
from vamseeachanta/workspace-hub

Create distinctive, production-grade frontend interfaces with expert-level UX design. Use when building SaaS dashboards, landing pages, marketing sites, React/Vue components, HTML/CSS layouts, or any web UI. Combines bold aesthetic direction with systematic design tokens, WCAG accessibility, conversion optimization, and Tailwind/React best practices. Produces polished, memorable interfaces that avoid generic AI aesthetics while meeting professional standards. type: reference

pandoc

5
from vamseeachanta/workspace-hub

Universal document converter for transforming Markdown to PDF, DOCX, HTML, LaTeX, and 40+ other formats. Covers templates, filters, citations with BibTeX/CSL, and batch conversion automation scripts.

marp

5
from vamseeachanta/workspace-hub

Create professional Markdown-based slide presentations with Marp. Covers themes, directives, speaker notes, presenter view, and export to PDF, HTML, and PPTX formats. Includes VS Code integration, CLI usage, and CI/CD automation.

docusaurus

5
from vamseeachanta/workspace-hub

Build modern documentation websites with Docusaurus. Covers docs, blog, pages, versioning, i18n, search integration, and deployment patterns. React-based with MDX support for interactive documentation.

slack-api

5
from vamseeachanta/workspace-hub

Slack bot development and workspace automation using Web API, Events API, Socket Mode, and Block Kit for building interactive messaging applications

miro-api

5
from vamseeachanta/workspace-hub

Miro whiteboard automation using REST API v2 and Python SDK for creating boards, frames, shapes, connectors, and collaborative visual workflows

calendly-api

5
from vamseeachanta/workspace-hub

Calendly scheduling automation using REST API v2 for managing event types, availability, bookings, webhooks, and scheduling workflows

mkdocs

5
from vamseeachanta/workspace-hub

Build professional project documentation with MkDocs and Material theme. Covers site configuration, navigation, plugins, search optimization, versioning with mike, and deployment to GitHub Pages.