jsdoc

Generate JSDoc/TSDoc comments for public functions, methods, and types in JavaScript and TypeScript files.

11|Updated Apr 16, 2026
One-click install
npx skills add https://github.com/berkcangumusisik/claude-code-practices --skill jsdoc-berkcangumusisik
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jsdoc
Source: https://github.com/berkcangumusisik/claude-code-practices/tree/main/skills/jsdoc
Command: npx skills add https://github.com/berkcangumusisik/claude-code-practices --skill jsdoc-berkcangumusisik

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing and maintaining documentation comments for every public symbol is tedious and error-prone; this skill automatically generates JSDoc/TSDoc comments for code to improve readability and maintainability.

Core Features & Use Cases

  • Automatically insert JSDoc/TSDoc comments above each public function, method, and type, including @description, @param, @returns, and @throws.
  • Respect existing documentation: avoids overwriting existing JSDoc unless necessary.
  • Use Case: Prepare library code for public release or improve readability and maintainability.

Quick Start

Run the skill on a target file to generate and apply JSDoc/TSDoc comments for all public symbols.

Frequently Asked Questions about jsdoc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically generate JSDoc comments for JavaScript functions?

To automatically generate JSDoc comments for JavaScript functions, you can use a tool that scans public symbols and inserts @description, @param, and @returns tags directly into your file. This preserves code structure and existing documentation while improving readability.

Can I generate TSDoc comments for TypeScript files without overwriting existing documentation?

Yes, you can generate TSDoc comments for TypeScript files while preserving existing documentation. The tool identifies public methods and types, applying new comments only where necessary and respecting any JSDoc or TSDoc already present in the code.

What is the best way to add @param and @returns tags to multiple public methods?

The best way to add @param and @returns tags to multiple public methods is running an automated documentation generator on the target file. It analyzes function signatures to insert accurate type descriptions and includes @throws tags where applicable.

Does this JSDoc generator support both TypeScript and JavaScript syntax?

Yes, this JSDoc generator supports both TypeScript and JavaScript syntax. It accurately identifies public functions, methods, and types across both languages, applying standardized TSDoc or JSDoc comments in place without breaking existing code structure.

How do I prepare library code for public release with complete JSDoc documentation?

To prepare library code for public release with complete JSDoc documentation, run an automated comment generator across your target files. It ensures every public symbol includes required @description, @param, @returns, and @throws tags for maintainability.

Why should I use an automated JSDoc generator instead of writing comments manually?

You should use an automated JSDoc generator because writing and maintaining documentation comments for every public symbol is tedious and error-prone. Automation ensures consistent @param and @returns tagging, improving readability while saving development time.