api-document-generator

Parse code files to generate OpenAPI 3.0.3 compliant Markdown documentation.

3|Updated Oct 15, 2025
One-click install
npx skills add https://github.com/chaorenex1/coding-agent-workflow --skill api-document-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-document-generator
Source: https://github.com/chaorenex1/coding-agent-workflow/tree/main/skills/api-document-generator
Command: npx skills add https://github.com/chaorenex1/coding-agent-workflow --skill api-document-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pyyaml.

What problem does it solve?

This skill automates API documentation by parsing code interfaces, generates OpenAPI-compliant specs, and publishes Markdown documentation with timestamped metadata.

Core Features & Use Cases

  • File Parsing: Extract API interfaces from code files or directories.
  • OpenAPI Compliance: Generate standards-compliant API documentation.
  • Timestamp Management: Include generation timestamps in docs.
  • Directory Scanning: Process multiple files within a project.
  • Validation: Validate OpenAPI output for correctness.

Quick Start

Generate documentation from a directory of API files or a single file and review the resulting Markdown docs.

Frequently Asked Questions about api-document-generator

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

FAQPage Schema
How do I generate OpenAPI documentation from my API code?

Parse your API interface definitions from code files or directories to extract endpoints, schemas, and metadata, then generate OpenAPI 3.0.3-compliant Markdown documentation with timestamps. The Skill processes Python, JavaScript/TypeScript, JSON, and YAML projects and validates output against OpenAPI standards.

Can I generate API docs from multiple files in a project directory?

Yes, the Skill scans directory trees and processes multiple files across your project in a single operation. It extracts API interfaces from all supported file formats and consolidates them into comprehensive documentation with authentication details, example requests and responses, and error codes.

What file formats and languages does API documentation generation support?

The Skill supports Python, JavaScript/TypeScript, JSON, and YAML projects. It parses API and interface definitions from these formats and generates standards-compliant OpenAPI documentation with configurable output locations and optional JSON artifacts.

How do I ensure my generated API documentation meets OpenAPI standards?

The Skill validates generated output against OpenAPI 3.0.3 standards automatically. It includes validation checks in its core processing to ensure your Markdown and optional JSON documentation comply with OpenAPI specifications before output.

Can I include timestamps and metadata in my API documentation?

Yes, the Skill embeds generation timestamps and metadata in your API documentation by default. This provides traceability and version control information within your Markdown output alongside the API specifications.

What dependencies do I need to run API documentation generation?

The Skill requires PyYAML as its only dependency, which enables parsing YAML-formatted API definitions and OpenAPI specifications from your code files and configuration.