A powerful CLI tool that automatically generates clean markdown documentation and OpenAPI specifications by scanning your project route files.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install api-docs-gen
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install api-docs-gen using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The API Docs Generator is a streamlined utility designed to eliminate the manual labor of documenting APIs. By analyzing your source code route files, it identifies endpoints, HTTP methods, and data shapes to produce human-readable markdown or machine-readable OpenAPI 3.0 specs. This tool is a standout addition to the Openclaw Skills library, helping developers bridge the gap between code and documentation instantly without manual configuration.
It serves as a developer-first solution for maintaining accurate references without the overhead of manual writing. Whether you are dealing with a massive legacy system or a rapidly evolving MVP, this tool ensures your documentation stays in sync with your actual implementation logic.
To get started with this skill from the Openclaw Skills ecosystem, ensure you have Node.js 18+ installed. You will also need an OPENAI_API_KEY set in your environment variables.
# Set your API key
export OPENAI_API_KEY='your_api_key_here'
# Run the generator on your routes folder without installation
npx ai-api-docs ./src/routes/
# Generate a specific OpenAPI spec file
npx ai-api-docs ./src/routes/ --format openapi -o spec.yaml
The API Docs Generator creates structured files based on your input parameters and code analysis. It maps code structures to documentation schemas as follows:
| Component | Description |
|---|---|
| Endpoints | Automatically mapped from file paths and route definitions. |
| HTTP Methods | Identified via code analysis (GET, POST, PUT, DELETE, etc.). |
| Request Shapes | Inferred from request body parsing, query params, or TypeScript interfaces. |
| Response Shapes | Extracted from return statements or response helper calls. |
| Metadata | Includes descriptions and summaries generated via AI context analysis. |
All generated files follow either standard GitHub-flavored Markdown or the official OpenAPI 3.0 specification.
Loading
A CLI-based tool that converts natural language descriptions into professional CSS and Framer Motion animation code.

A terminal utility that transforms your most-used command history into time-saving shell aliases.

A powerful CLI tool that converts natural language descriptions into optimized SQL queries for multiple database dialects.

A high-performance CLI tool for identifying performance bottlenecks and security vulnerabilities in SQL queries.

Audit Fixer transforms overwhelming npm audit reports into prioritized, actionable security fix commands using AI logic.

An AI-driven CLI tool that transforms messy npm audit logs into a prioritized list of actionable security fixes.








































