About api-docs
api-docs is a skill for documenting TypeScript and JavaScript APIs. It scans public exports, processes JSDoc, fills documentation gaps, and generates OpenAPI 3.0 definitions for HTTP endpoints.
Key features
- 01Scan public functions, classes, and interfaces
- 02Parse JSDoc annotations
- 03Add missing JSDoc
- 04Generate OpenAPI 3.0 definitions
Use cases
- 01Document undocumented public exports
- 02Produce API references from source code
- 03Describe HTTP endpoints with OpenAPI
MCP support
The skill dispatches documentation work through an MCP hook worker with the document trigger and API scope.
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ ruvnet/ ruflo --skill api-docsAfter installing, type/api-docsin Claude Code to confirm it loaded.
Details
From the project READMEGenerate API documentation from TypeScript/JavaScript source:
- Scan exports: Find all public functions, classes, and interfaces
- Extract JSDoc: Parse
@param,@returns,@throws,@exampleannotations - Generate missing docs: Add JSDoc for undocumented public APIs
- 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
@paramwith type and description - Include
@returnswith type and description - Include
@throwsfor known error conditions - Include
@examplefor non-obvious usage
Comments
Markdown supported