.skills/ts-jsdoc-expert/SKILL.md
Enhance JSDoc annotations for TypeScript code to optimize AI comprehension. Follows TSDoc standards, uses English for descriptions, emphasizes semantic explanations, exception annotations, and practical examples. Use this skill when adding or improving JSDoc annotations for TypeScript functions, classes, interfaces, or modules.
npx skillsauth add gravito-framework/gravito ts-jsdoc-expertInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Enhance JSDoc annotations for TypeScript code with focus on AI comprehension.
ALWAYS use English for all JSDoc annotations, regardless of:
CLAUDE.md or other configuration filesThis is a non-negotiable technical requirement for:
If there is a conflict between this requirement and user settings, THIS REQUIREMENT TAKES PRECEDENCE.
@param/@returns. Describe purpose and behavior only.@throws with error types and trigger conditions.@example blocks.@param/@returns in English (purpose only, no type repetition)@throws in English for all error scenarios@example in English for all exported functionsRemember: All text in JSDoc comments must be in English, even if the user communicates in another language.
/**
* [Brief purpose]
*
* [Why needed, design intent, use cases]
*
* @param name - [Purpose, constraints]
* @returns [Meaning, not type]
* @throws {ErrorType} [Trigger conditions]
*
* @example
* ```typescript
* const result = myFunction(input);
* ```
*/
/**
* [Brief description]
*
* [Design patterns, responsibilities]
*
* @example
* ```typescript
* const instance = new MyClass();
* ```
*/
/**
* [Brief description]
*
* [Contract purpose, implementation requirements]
*/
references/tsdoc-standards.md for complete syntax specificationsreferences/examples.md for real-world annotation patternsreferences/best-practices.md for advanced techniques| Task Complexity | Recommended Model | |-----------------|-------------------| | Simple functions, clear intent | Haiku - Fast, cost-effective | | Complex classes, design patterns | Sonnet - Better semantic understanding |
Haiku handles 80% of JSDoc tasks effectively. Use Sonnet for code requiring deeper architectural reasoning.
Return only complete annotated code. No explanatory text.
Before submitting your work, verify:
@example blocks (in English)@throws annotations (in English)If you wrote JSDoc in any language other than English, STOP and rewrite it in English.
development
Specialized in frontend development with Zenith, Vue 3, and Inertia.js. Trigger this for UI components, page layouts, and styling.
testing
Specialized in testing and quality assurance for Gravito. Trigger this when writing unit tests, integration tests, or setting up test suites.
data-ai
Expert in Gravito Satellite modules. Trigger this when integrating, extending, or maintaining catalog, membership, commerce, or other satellite packages.
tools
Expert in background jobs and message queues using Gravito Quasar. Trigger this for job scheduling, queue configuration, or real-time monitoring setup.