| name | jsdoc-guide |
| description | JSDoc writing rules for AI-powered documentation generation. Use when writing JSDoc, documenting functions, or adding code comments. |
| allowed-tools | Read, Edit |
JSDoc Writing Guide
Quick Start
All exported functions require 4 mandatory tags:
Core Patterns
1. @description - First line is a one-sentence summary
@description Debounces a value and returns it after the specified delay.
@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
@returns {T} The debounced value.
@returns {[boolean, () => void]} [state, toggle]
4. @example - Runnable code
@example
const [search, setSearch] = useState('');
const debouncedSearch = useDebounce(search, 300);
References