← Back to Skills
๐Ÿ“š

API Documentation Generator

Read API source code, extract endpoint definitions, and generate structured documentation

Developer 5 steps 5 tools 3 servers

Example Prompt

Read the API source code in the src/routes directory and generate API documentation

About

Scans a project's source code to identify API route definitions, request/response schemas, and middleware. Extracts endpoint metadata including methods, paths, parameters, and return types, then generates well-structured API documentation and writes it to the repository.

Workflow Steps

1

List the project directory structure to locate API route files

๐Ÿ“ List Directory
2

Read each route file to extract endpoint definitions and schemas

๐Ÿ“„ Read File
3

Analyze extracted endpoints to build a structured documentation model

๐Ÿง  Structured Reasoning
4

Generate formatted API documentation from the model

๐Ÿง  Structured Reasoning
5

Write the generated documentation to the project's docs directory

โœ๏ธ Write File

Tags

apidocumentationcodegenopenapi