An AI-driven CLI tool that injects meaningful inline comments into source code to explain the intent and reasoning behind complex logic.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install comment-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 comment-gen using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Comment Generator is a specialized utility within the Openclaw Skills ecosystem designed to solve the problem of undocumented or opaque code. Unlike standard documentation tools that simply describe what a line of code does, this tool focuses on the reasoning and intent—the why—behind the implementation. By analyzing control flows, business rules, and edge cases, it provides developers with a clear understanding of complex algorithms without requiring manual writing.
This skill is built for developers who inherit legacy codebases or work in fast-paced environments where documentation often lags behind development. As part of the wider Openclaw Skills collection, it integrates seamlessly into existing workflows, offering multiple verbosity levels to suit different audience needs, from senior-level architectural notes to beginner-friendly onboarding explanations.
Comment Generator requires Node.js 18 or higher and an OpenAI API key. No permanent installation is required as it can be executed directly via npx. This makes it one of the most accessible Openclaw Skills for rapid deployment.
# Set your environment variable
export OPENAI_API_KEY='your_api_key_here'
# Run the tool on a source file
npx ai-comment ./src/algorithm.ts
# Access help and additional options
npx ai-comment --help
The skill processes source code files and utilizes environment variables for configuration. It follows a straightforward data flow without requiring a local database.
| Component | Type | Description |
|---|---|---|
| Input File | Source Code | The target file (e.g., .ts, .js, .py) to be analyzed. |
| Style Flag | String | Defines comment verbosity: concise, detailed, or beginner. |
| Dry Run | Boolean | If true, outputs the result to the console without modifying the file. |
| API Key | Env Var | Required OPENAI_API_KEY for processing logic. |
Loading
An AI-driven CLI tool that generates jscodeshift scripts to automate complex, large-scale code refactoring via natural language commands.

An AI-powered code reviewer that delivers brutal humor alongside actionable technical feedback to improve your codebase.

Code Reviewer is an AI-powered utility that analyzes staged git changes to identify bugs, security vulnerabilities, and code smells before submission.

A powerful CLI utility that translates complex source code into human-readable explanations at multiple technical levels.

Turn natural language descriptions into fully functional React components with TypeScript and Tailwind support.

An automated learning framework that enables AI agents to review their work, extract patterns, and compound knowledge daily.








































