comment-gen
✓Verified·Scanned 2/18/2026
Add meaningful inline comments to complex code. Use when documentation is lacking.
from clawhub.ai·v11e1efb·38.3 KB·0 installs
Scanned from 1.0.1 at 11e1efb · Transparency log ↗
$ vett add clawhub.ai/lxgicstudios/comment-gen
ai-comment
Add meaningful inline comments to complex code. Explains the WHY, not the WHAT.
Install
npm install -g ai-comment
Usage
npx ai-comment ./src/algorithm.ts
# → Comments added to ./src/algorithm.ts
npx ai-comment ./src/utils.js --style detailed
# → More verbose explanations
npx ai-comment ./src/parser.ts --dry-run
# → Preview without modifying the file
Setup
export OPENAI_API_KEY=sk-...
Styles
concise- Short, to-the-point comments (default)detailed- More thorough explanationsbeginner- Explains concepts for junior developers
License
MIT