
Jsdoc
- 34 installs
- Updated June 23, 2026
- enderpuentes/ai-agent-skills
Helps with ai & agent building tasks.
About
jsdoc is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.
- jsdoc
- AI & Agent Building
- AI-coding skill
Jsdoc by the numbers
- 34 all-time installs (skills.sh)
- Ranked #8,855 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Jul 24, 2026 (Skillselion catalog sync)
npx skills add https://github.com/enderpuentes/ai-agent-skills --skill jsdocAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 34 |
|---|---|
| Last updated | June 23, 2026 |
| Repository | enderpuentes/ai-agent-skills ↗ |
What it does
Helps with ai & agent building tasks.
Files
JSDoc
Overview
JSDoc is a documentation generator for JavaScript. You write documentation comments directly above code, and JSDoc parses those comments to generate API documentation.
Core principle: Document the public API clearly and keep comments colocated with code so docs stay accurate as implementation changes.
---
Comment rules
- JSDoc blocks must start with
/**(exactly two stars after the slash). - Blocks that start with
/*,/***, or more stars are ignored by the JSDoc parser. - Place the comment immediately before the symbol being documented (function, class, method, module, etc.).
- Prefer documenting public and reusable APIs first.
---
Quick start
/**
* Adds two numbers.
* @param {number} a - First number.
* @param {number} b - Second number.
* @returns {number} Sum of the two numbers.
*/
function add(a, b) {
return a + b;
}---
Core tags
| Tag | Use |
|---|---|
@param {Type} name - description | Document function parameters |
@returns {Type} description | Document return value |
@constructor | Mark a function as a constructor |
@todo text | Track pending tasks in docs |
Use additional tags as needed for your project (@example, @throws, @deprecated, @see, etc.).
---
Common documentation patterns
Functions
/**
* Formats a user's full name.
* @param {string} firstName - User first name.
* @param {string} lastName - User last name.
* @returns {string} The formatted full name.
*/
function formatName(firstName, lastName) {
return `${firstName} ${lastName}`;
}Constructor-style functions
/**
* Represents a book.
* @constructor
* @param {string} title - Book title.
* @param {string} author - Book author.
*/
function Book(title, author) {
this.title = title;
this.author = author;
}TODO annotations
/**
* @todo Implement pagination support.
* @todo Add validation for empty input.
*/
function listItems() {}---
Generate documentation
Basic CLI usage:
jsdoc book.jsThis generates HTML docs in an out/ directory by default.
You can also pass multiple source files:
/path/to/jsdoc src/a.js src/b.jsYou may provide a config file for CLI options and template customization.
---
Best practices
- Keep descriptions short, specific, and focused on behavior.
- Document parameter and return types consistently.
- Include
@todofor known gaps that must be tracked. - Update comments whenever API signatures change.
- Document exported/public modules first, then internal helpers as needed.
- Keep examples executable and realistic.
---
Common mistakes
- Using
/* ... */instead of/** ... */for JSDoc blocks. - Writing comments far from the symbol they describe.
- Missing
@paramentries for function inputs. - Describing implementation details instead of API behavior.
- Letting comments drift from current code after refactors.
---
Additional resources
- reference.md — Official JSDoc docs links for quick lookup.
- Official docs: https://jsdoc.app
JSDoc — Reference & Official Documentation
This file complements the jsdoc skill with official documentation links for indexing and deeper lookup.
Official documentation (indexable)
- Home: https://jsdoc.app/
- Getting started: https://jsdoc.app/about-getting-started
- Command-line arguments: https://jsdoc.app/about-commandline
- Config file usage: https://jsdoc.app/about-configuring-jsdoc
- Default template configuration: https://jsdoc.app/about-configuring-default-template
- Block and inline tags: https://jsdoc.app/about-block-inline-tags
- `@todo` tag: https://jsdoc.app/tags-todo
Practical sections
- Adding documentation comments: Use
/** ... */blocks placed directly above documented code. - Tag usage:
@param,@returns,@constructor, and additional tags as needed. - Generating HTML docs:
jsdoc yourSourceCodeFile.js(createsout/by default). - Multiple files:
/path/to/jsdoc fileA.js fileB.js .... - README support: Include a
.mdfile orREADMEfile in CLI input to add front-page docs.
Suggested learning order
1. Getting started (comment format and first generated docs) 2. Tags (core and advanced) 3. Command-line options 4. Configuration and template customization 5. Plugins and tutorials (when project docs mature)