moai-docs-generation

Generate API docs, user guides, and documentation sites with Sphinx, MkDocs, TypeDoc, and OpenAPI.

2|Updated May 27, 2026
One-click install
npx skills add https://github.com/yekinya/moai-novel --skill moai-docs-generation-yekinya
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-docs-generation
Source: https://github.com/yekinya/moai-novel/tree/main/moai-novel/.claude/skills/moai-docs-generation
Command: npx skills add https://github.com/yekinya/moai-novel --skill moai-docs-generation-yekinya

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Keeping technical documentation accurate and current is difficult when API references, user guides, and doc sites are written and maintained manually. This Skill provides concrete patterns for generating documentation directly from code annotations and automating doc builds in CI/CD pipelines. ## Core Features & Use Cases - Code-to-Docs Generation: Produce API reference documentation from Python docstrings (Sphinx, mkdocstrings), TypeScript (TypeDoc), and JavaScript (JSDoc). - OpenAPI Documentation: Enhance and export OpenAPI specs from FastAPI or Express with swagger-jsdoc, rendered via Swagger UI or Redoc. - Static Doc Sites & CI/CD: Build documentation sites with Nextra, Docusaurus, VitePress, or MkDocs Material and automate deployment through GitHub Actions. - Use Case: A team shipping a FastAPI service uses this Skill to enrich route docstrings and Pydantic models, export openapi.json, and deploy a versioned MkDocs site to GitHub Pages on every merge. ## Quick Start Ask the AI to generate API documentation for your Python package using Sphinx with autodoc and deploy it via a GitHub Actions workflow.

Frequently Asked Questions about moai-docs-generation

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

FAQPage Schema
How do I generate API documentation from Python docstrings?

Use Sphinx with the autodoc and napoleon extensions to generate docs from Google or NumPy style docstrings. Run sphinx-apidoc against your source directory, then build HTML with sphinx-build or make html.

What is the difference between MkDocs and Sphinx for Python documentation?

Sphinx uses reStructuredText and excels at large API references with autodoc, while MkDocs uses Markdown and pairs with mkdocstrings for docstring-based API docs. MkDocs Material offers a modern theme with built-in search.

How do I create OpenAPI documentation for a FastAPI application?

FastAPI automatically generates OpenAPI docs served at /docs (Swagger UI) and /redoc. Enhance them by adding route docstrings, Pydantic Field descriptions, tags, and response models, then export the spec via app.openapi().

Does TypeDoc support Markdown output for TypeScript projects?

Yes, TypeDoc supports Markdown output through the typedoc-plugin-markdown plugin. Configure entryPoints and output directory in typedoc.json, then run the typedoc command to generate the documentation.

How do I automate documentation deployment in CI/CD?

Create a GitHub Actions workflow triggered on pushes to main that installs doc dependencies, runs the build command such as sphinx-build or mkdocs build, and deploys the output to GitHub Pages using an action like peaceiris/actions-gh-pages.

How can I measure docstring coverage in a Python project?

Use the interrogate package to analyze docstring coverage across your codebase. Configure a minimum coverage threshold in pyproject.toml and run it in CI so builds fail when coverage drops below the threshold.