← ClaudeAtlas

jsdoc-conventionslisted

TypeScript JSDoc documentation conventions with three enforcement levels (Minimal, Standard, Strict). This skill should be used when the user asks to "add JSDoc", "document this code", "add documentation", "write JSDocs", "improve documentation", "set JSDoc level", "which JSDoc level", or when applying JSDoc conventions to TypeScript code. Provides rules for tag usage, format, and level selection across any TypeScript project.
pau-vega/AI-Devkit · ★ 2 · Code & Development · score 71
Install: claude install-skill pau-vega/AI-Devkit
# JSDoc Conventions for TypeScript ## Enforcement Levels Three levels control documentation scope. Each level includes all requirements from the previous one. ### Minimal Document **exported** functions, classes, interfaces, and type aliases with a brief summary line. ```ts /** Parses a raw CSV string into structured row objects. */ export const parseCsv = (raw: string): CsvRow[] => { ... }; /** Represents a single row of parsed CSV data. */ export interface CsvRow { ... } ``` ### Standard Everything in Minimal, plus: - `@param` and `@returns` tags on exported functions - Public class methods documented - Complex type parameters described ```ts /** * Fetches a user by ID from the database. * * @param userId - The unique identifier of the user * @returns The user object, or undefined if not found */ export const getUser = async (userId: string): Promise<User | undefined> => { ... }; ``` ### Strict Everything in Standard, plus: - Module-level constants documented - Private and internal helper functions documented - `@example` blocks on non-trivial functions - `@throws`, `@see`, and `{@link}` where applicable ```ts /** Maximum number of retry attempts for failed API calls. */ const MAX_RETRIES = 3; /** * Retries an async operation with exponential backoff. * * @param fn - The async function to retry * @param maxAttempts - Maximum retry attempts (defaults to {@link MAX_RETRIES}) * @returns The result of the first successful invocation * @throws {RetryExh