Skills Development Generate API Documentation from Code

Generate API Documentation from Code

v20260716
api-docs
Automatically generates comprehensive API documentation from existing TypeScript or JavaScript source code. It scans public exports, parses detailed JSDoc annotations (including parameters, returns, and throws), and can generate standardized OpenAPI 3.0 specifications for HTTP endpoints, ensuring robust and up-to-date API references.
Get Skill
311 downloads
Overview

Generate API documentation from TypeScript/JavaScript source:

  1. Scan exports: Find all public functions, classes, and interfaces
  2. Extract JSDoc: Parse @param, @returns, @throws, @example annotations
  3. Generate missing docs: Add JSDoc for undocumented public APIs
  4. OpenAPI spec: For HTTP endpoints, generate OpenAPI 3.0 definitions

Dispatch via MCP: mcp__plugin_ruflo-core_ruflo__hooks_worker-dispatch({ trigger: "document", scope: "api" })

Conventions:

  • Every public export must have a JSDoc comment
  • Include @param with type and description
  • Include @returns with type and description
  • Include @throws for known error conditions
  • Include @example for non-obvious usage
Info
Category Development
Name api-docs
Version v20260716
Size 955B
Updated At 2026-07-18
Language