jsdoc-generator
Skill3 starsChanged 11 months agoApache-2.0View on GitHub
Generate JSDoc comments for JavaScript/TypeScript code. Use when the user needs to document functions, classes, or modules with JSDoc annotations.
In this repository100 other files it gives its agents.
- accessibility-checkerSkill
- analytics-trackerSkill
- api-contract-testerSkill
- api-documentation-generatorSkill
- api-rate-limiterSkill
- appstore-screenshot-resizerSkill
- architecture-documenterSkill
- authentication-implementerSkill
- aws-resource-provisionerSkill
- browser-extension-builderSkill
- caching-implementerSkill
- changelog-generatorSkill
- chart-generatorSkill
- ci-pipeline-debuggerSkill
- cli-tool-builderSkill
- code-documenterSkill
- code-explainerSkill
- code-migration-helperSkill
- code-refactorerSkill
- code-reviewerSkill
- color-palette-generatorSkill
- comment-generatorSkill
- contributing-guide-writerSkill
- cron-job-schedulerSkill
- css-animatorSkill
- csv-processorSkill
- data-aggregatorSkill
- database-backup-restoreSkill
- database-migration-generatorSkill
- database-query-optimizerSkill
- data-transformerSkill
- data-validatorSkill
- date-time-helperSkill
- debug-helperSkill
- dependency-updaterSkill
- dependency-vulnerability-checkerSkill
- discord-bot-builderSkill
- docker-compose-builderSkill
- dockerfile-generatorSkill
- e2e-test-builderSkill
- email-template-builderSkill
- env-setupSkill
- error-handlerSkill
- error-message-writerSkill
- error-response-handlerSkill
- etl-pipeline-builderSkill
- file-organizerSkill
- form-builderSkill
- git-commit-messageSkill
- github-actions-builderSkill
- gitignore-generatorSkill
- graphql-schema-builderSkill
- icon-system-builderSkill
- input-validatorSkill
- integration-test-builderSkill
- json-schema-generatorSkill
- kubernetes-manifest-generatorSkill
- license-chooserSkill
- linter-fixerSkill
- load-testerSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Create comprehensive JSDoc documentation for JavaScript code.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
JSDoc Generator
Create comprehensive JSDoc documentation for JavaScript code.
Function Documentation
/**
* Calculate the total price including tax and discounts.
*
* @param {number} subtotal - The pre-tax amount in dollars
* @param {Object} options - Calculation options
* @param {number} [options.taxRate=0.1] - Tax rate as decimal (default: 10%)
* @param {number} [options.discount=0] - Discount amount in dollars
* @param {boolean} [options.roundUp=false] - Whether to round up the result
* @returns {number} The final price after tax and discounts
* @throws {RangeError} If subtotal is negative
*
* @example
* // Basic usage
* calculateTotal(100);
* // Returns: 110
*
* @example
* // With options
* calculateTotal(100, { taxRate: 0.08, discount: 10 });
* // Returns: 98
*/
function calculateTotal(subtotal, options = {}) {
const { taxRate = 0.1, discount = 0, roundUp = false } = options;
if (subtotal < 0) {
throw new RangeError('Subtotal cannot be negative');
}
const total = subtotal * (1 + taxRate) - discount;
return roundUp ? Math.ceil(total) : total;
}Class Documentation
/**
* Represents a user in the system.
*
* @class
* @classdesc Handles user data and authentication state.
*
* @example
* const user = new User({ email: 'john@example.com' });
* await user.authenticate('password123');
*/
class User {
/**
* Create a new User instance.
*
* @param {Object} data - User data
* @param {string} data.email - User's email address
* @param {string} [data.name] - User's display name
*/
constructor({ email, name }) {
/** @type {string} */
this.email = email;
/** @type {string|undefined} */
this.name = name;
/** @type {boolean} @private */
this._authenticated = false;
}
/**
* Authenticate the user with a password.
*
* @async
* @param {string} password - The password to verify
* @returns {Promise<boolean>} True if authentication succeeded
* @fires User#authenticated
*/
async authenticate(password) {
// Implementation
}
}TypeScript with JSDoc
/**
* User role enumeration.
* @typedef {'admin' | 'user' | 'guest'} UserRole
*/
/**
* @typedef {Object} UserConfig
* @property {string} email - User email
* @property {UserRole} role - User role
* @property {string[]} [permissions] - Optional permissions list
*/
/**
* Create a new user.
* @param {UserConfig} config - User configuration
* @returns {User} The created user
*/
function createUser(config) {}Common Tags
| Tag | Purpose |
| @param | Document parameter |
| @returns | Document return value |
| @throws | Document exceptions |
| @example | Add usage example |
| @deprecated | Mark as deprecated |
| @see | Link to related |
| @since | Version introduced |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

