Install any skill in seconds. Free to start, no credit card required.
Get Started Free →JavaScript and TypeScript documentation generation using JSDoc and TSDoc. Parse source code, generate API documentation, validate coverage, and integrate with TypeDoc for comprehensive developer documentation.
.claude/skills/a5c-ai-jsdoc-tsdoc/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 2279% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 143% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 115% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 214% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 209% | 0% |
Generate and validate JavaScript and TypeScript documentation using industry-standard JSDoc and TSDoc conventions with TypeDoc integration.
Invoke this skill when you need to:
| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | projectPath | string | Yes | Root path of the JS/TS project | | entryPoints | array | No | Specific files/directories to document | | outputDir | string | No | Documentation output directory (default: docs) | | outputFormat | string | No | html, markdown, json (default: html) | | includePrivate | boolean | No | Include private members (default: false) | | coverageThreshold | number | No | Minimum documentation coverage % | | customTags | array | No | Additional JSDoc/TSDoc tags to recognize |
json{ "projectPath": "./packages/babysitter-sdk", "entryPoints": ["src/index.ts", "src/client.ts"], "outputDir": "docs/api", "outputFormat": "html", "coverageThreshold": 80, "customTags": ["@alpha", "@beta", "@experimental"] }
docs/api/
├── index.html # Documentation home
├── modules.html # Module index
├── classes/
│ ├── Client.html # Class documentation
│ └── Config.html
├── interfaces/
│ ├── Options.html # Interface documentation
│ └── Response.html
├── functions/
│ └── helpers.html # Function documentation
├── types/
│ └── aliases.html # Type alias documentation
├── assets/
│ ├── main.js
│ └── style.css
└── coverage.json # Documentation coverage reportjavascript/** * Authenticates a user with the API. * * @param {string} username - The user's username * @param {string} password - The user's password * @returns {Promise<AuthResult>} Authentication result with token * @throws {AuthError} When credentials are invalid * @example * const result = await authenticate('user@example.com', 'password'); * console.log(result.token); * * @since 1.0.0 * @see {@link logout} for ending sessions */ async function authenticate(username, password) { // Implementation }
javascript/** * HTTP client for API communication. * * @class * @extends EventEmitter * @implements {Disposable} * * @example * const client = new ApiClient({ baseUrl: 'https://api.example.com' }); * const response = await client.get('/users'); */ class ApiClient extends EventEmitter { /** * Creates a new API client instance. * * @param {ClientOptions} options - Client configuration * @param {string} options.baseUrl - Base URL for API requests * @param {number} [options.timeout=30000] - Request timeout in ms */ constructor(options) { // Implementation } /** * Performs a GET request. * * @param {string} path - Request path * @param {RequestOptions} [options] - Additional options * @returns {Promise<Response>} The response */ async get(path, options) { // Implementation } }
typescript/** * SDK for interacting with the Example API. * * @remarks * This package provides a type-safe client for the Example API. * It supports both browser and Node.js environments. * * @packageDocumentation */
typescript/** * Fetches data from the API. * * @param url - The endpoint URL * @returns The response data * * @example * ```typescript * const users = await fetch<User[]>('/api/users'); * ``` * * @public */ export async function fetch<T>(url: string): Promise<T>; /** * Fetches data with custom options. * * @param url - The endpoint URL * @param options - Request options * @returns The response data * * @public */ export async function fetch<T>(url: string, options: FetchOptions): Promise<T>;
typescript/** * Configuration options for the API client. * * @remarks * All timeout values are in milliseconds. * * @example * ```typescript * const config: ClientConfig = { * baseUrl: 'https://api.example.com', * timeout: 5000, * retries: 3 * }; * ``` * * @public */ export interface ClientConfig { /** * Base URL for all API requests. * @remarks Must include protocol (https://) */ baseUrl: string; /** * Request timeout in milliseconds. * @defaultValue 30000 */ timeout?: number; /** * Number of retry attempts for failed requests. * @defaultValue 0 */ retries?: number; /** * Custom headers to include with every request. * @beta */ headers?: Record<string, string>; }
json{ "$schema": "https://typedoc.org/schema.json", "entryPoints": ["src/index.ts"], "out": "docs/api", "name": "My SDK", "readme": "README.md", "includeVersion": true, "excludePrivate": true, "excludeProtected": false, "excludeInternal": true, "excludeExternals": true, "categorizeByGroup": true, "categoryOrder": [ "Client", "Configuration", "Types", "Utilities", "*" ], "navigation": { "includeCategories": true, "includeGroups": true }, "plugin": [ "typedoc-plugin-markdown" ], "theme": "default", "validation": { "notExported": true, "invalidLink": true, "notDocumented": false } }
json{ "plugins": ["jsdoc"], "extends": ["plugin:jsdoc/recommended-typescript"], "rules": { "jsdoc/require-jsdoc": ["warn", { "require": { "FunctionDeclaration": true, "MethodDefinition": true, "ClassDeclaration": true, "ArrowFunctionExpression": false }, "publicOnly": true }], "jsdoc/require-description": "warn", "jsdoc/require-param-description": "warn", "jsdoc/require-returns-description": "warn", "jsdoc/check-tag-names": ["error", { "definedTags": ["alpha", "beta", "experimental", "internal"] }], "jsdoc/check-types": "error", "jsdoc/no-undefined-types": "error", "jsdoc/valid-types": "error" } }
json{ "summary": { "documented": 145, "undocumented": 23, "total": 168, "percentage": 86.31 }, "byKind": { "class": { "documented": 12, "total": 14 }, "interface": { "documented": 28, "total": 30 }, "function": { "documented": 45, "total": 52 }, "method": { "documented": 60, "total": 72 } }, "undocumented": [ { "name": "internalHelper", "kind": "function", "file": "src/utils/helpers.ts", "line": 42 } ], "incomplete": [ { "name": "processData", "kind": "function", "file": "src/core/processor.ts", "issues": ["missing @returns", "missing @param for 'options'"] } ] }
json{ "devDependencies": { "typedoc": "^0.25.0", "typedoc-plugin-markdown": "^4.0.0", "eslint-plugin-jsdoc": "^48.0.0", "@microsoft/tsdoc": "^0.14.0", "@microsoft/tsdoc-config": "^0.16.0" } }
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 10,587 | 31,953 | +202% | 1 | 1 | 0% | 351 | 8,349 | +2279% | 0 | 0 | — |
case-02 | pass→pass | 9,231 | 14,913 | +62% | 1 | 1 | 0% | 1,260 | 3,951 | +214% | 0 | 0 | — |
case-03 | pass→pass | 12,897 | 8,714 | -32% | 1 | 1 | 0% | 1,362 | 4,210 | +209% | 0 | 0 | — |
case-04 | pass→pass | 12,998 | 12,802 | -2% | 1 | 1 | 0% | 1,774 | 3,727 | +110% | 0 | 0 | — |
case-05 | pass→pass | 13,104 | 5,120 | -61% | 1 | 1 | 0% | 1,240 | 3,539 | +185% | 0 | 0 | — |
case-06 | fail→fail | 23,182 | 11,673 | -50% | 1 | 1 | 0% | 2,721 | 3,511 | +29% | 0 | 0 | — |
case-07 | pass→pass | 15,789 | 12,628 | -20% | 1 | 1 | 0% | 1,419 | 3,649 | +157% | 0 | 0 | — |
case-08 | pass→pass | 17,241 | 16,086 | -7% | 1 | 1 | 0% | 1,873 | 4,610 | +146% | 0 | 0 | — |
case-09 | pass→pass | 20,317 | 19,980 | -2% | 1 | 1 | 0% | 2,207 | 5,133 | +133% | 0 | 0 | — |
case-10 | pass→pass | 9,466 | 13,361 | +41% | 1 | 1 | 0% | 1,713 | 4,016 | +134% | 0 | 0 | — |
case-11 | pass→pass | 9,663 | 11,434 | +18% | 1 | 1 | 0% | 955 | 3,401 | +256% | 0 | 0 | — |
case-12 | pass→pass | 8,904 | 8,181 | -8% | 1 | 1 | 0% | 518 | 3,060 | +491% | 0 | 0 | — |
case-13 | fail→pass | 13,545 | 6,009 | -56% | 1 | 1 | 0% | 1,518 | 3,684 | +143% | 0 | 0 | — |
case-14 | pass→pass | 13,326 | 13,803 | +4% | 1 | 1 | 0% | 2,272 | 4,138 | +82% | 0 | 0 | — |
case-15 | fail→pass | 10,202 | 3,943 | -61% | 1 | 1 | 0% | 1,527 | 3,277 | +115% | 0 | 0 | — |
case-16 | pass→pass | 11,798 | 17,862 | +51% | 1 | 1 | 0% | 2,131 | 4,581 | +115% | 0 | 0 | — |
case-17 | pass→pass | 17,309 | 10,512 | -39% | 1 | 1 | 0% | 2,094 | 3,300 | +58% | 0 | 0 | — |
case-23 | fail→fail | 22,721 | 24,024 | +6% | 1 | 1 | 0% | 3,243 | 6,338 | +95% | 0 | 0 | — |
case-18 | pass→pass | 15,018 | 14,013 | -7% | 1 | 1 | 0% | 1,813 | 3,901 | +115% | 0 | 0 | — |
case-19 | pass→pass | 4,373 | 10,727 | +145% | 1 | 1 | 0% | 741 | 3,598 | +386% | 0 | 0 | — |
case-20 | pass→pass | 14,712 | 9,014 | -39% | 1 | 1 | 0% | 1,786 | 4,205 | +135% | 0 | 0 | — |
case-21 | fail→fail | 19,305 | 28,819 | +49% | 1 | 1 | 0% | 3,124 | 8,330 | +167% | 0 | 0 | — |
case-22 | fail→fail | 19,277 | 22,470 | +17% | 1 | 1 | 0% | 2,719 | 6,054 | +123% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted, and 22 counted toward the lift figure. The other 1 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +13 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.