agentsclimarketplace

Skill jsdoc guide

Skill toss/react-simplikit/.claude/skills/skill-jsdoc-guide

JSDoc writing rules for AI-powered documentation generation. Use when writing JSDoc, documenting functions, or adding code comments.From its SKILL.md

Install
npx -y skills add toss/react-simplikit --skill skill-jsdoc-guide

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

1.3 KB, as published. Nobody here has run it

JSDoc Writing Guide

Quick Start

All exported functions require 4 mandatory tags:

/**
 * @description One-line summary.
 * @param {Type} name - Description.
 * @returns {Type} Description.
 * @example
 * const result = useHook(input);
 */

Core Patterns

1. @description - First line is a one-sentence summary

// ✅ Good
@description Debounces a value and returns it after the specified delay.

// ❌ Bad
@description Does something with a value.

2. @param - Type + description

@param {T} value - The value to debounce.
@param {number} [delay=300] - Optional delay in ms.
@param {Object} options - Configuration object.

3. @returns - Return value description

// Simple
@returns {T} The debounced value.

// Tuple
@returns {[boolean, () => void]} [state, toggle]

4. @example - Runnable code

@example
const [search, setSearch] = useState('');
const debouncedSearch = useDebounce(search, 300);

References

Keep looking

Skills are one crate of 626,474. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.