Automatically add JSDoc or TSDoc comments to your exported functions and classes using AI.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install 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 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 JSDoc Generator is a zero-configuration CLI utility designed to solve the problem of undocumented codebases. By analyzing function signatures and logic, it automatically injects professional documentation comments without altering your actual code execution. It serves as an essential component of the Openclaw Skills ecosystem for maintaining clean, readable, and IDE-friendly projects.
Whether you are dealing with legacy code or preparing a library for public release, this tool streamlines the documentation process. It supports both standard JSDoc and TypeScript-focused TSDoc styles, ensuring your exports are well-described with parameters, return values, and exceptions for better team collaboration and onboarding.
Ensure you have Node.js 18 or higher installed and an OpenAI API key available in your environment variables. You do not need to install the package globally; it can be run directly via npx.
# Set your API key
export OPENAI_API_KEY='your_api_key_here'
# Run a preview on your source directory
npx ai-docs src/ --style jsdoc
# Apply changes to files directly
npx ai-docs src/ --style tsdoc --write
The JSDoc Generator organizes its output by injecting structured metadata directly into your source files. It follows the standard documentation taxonomy for JavaScript and TypeScript.
| Attribute | Description |
|---|---|
| Supported Formats | JSDoc, TSDoc |
| Target Elements | Exported functions, classes, interfaces, and methods |
| Metadata Tags | @param, @returns, @throws, @example |
| File Extensions | .js, .ts, .jsx, .tsx |
| Scope | Analysis is restricted to exported members to minimize noise |
Loading
An intelligent CLI tool that scans your project to generate production-ready, optimized Dockerfiles with zero configuration.

An AI-powered utility that scans your project to automatically generate a complete, production-ready docker-compose.yml file.

A powerful CLI tool that converts technical git diffs into plain English summaries for better collaboration and documentation.

A smart dependency auditor that identifies unused packages and security risks using AI to streamline your project's footprint.

A high-efficiency tool that generates Playwright end-to-end tests by analyzing your source code or live URLs.

A streamlined CLI tool that uses AI to generate documented .env.example files while keeping your secrets safe.








































