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.
Installation
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
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.
TypeScript JSDoc Expert
Enhance JSDoc annotations for TypeScript code with focus on AI comprehension.
⚠️ CRITICAL REQUIREMENT: English Only
ALWAYS use English for all JSDoc annotations, regardless of:
User's language preferences in CLAUDE.md or other configuration files
Project's primary language settings
User's communication language
This is a non-negotiable technical requirement for:
✅ TSDoc/JSDoc standards compliance
✅ International open-source collaboration
✅ IDE and documentation generator compatibility
✅ TypeScript tooling support
✅ Cross-team readability
If there is a conflict between this requirement and user settings, THIS REQUIREMENT TAKES PRECEDENCE.
Core Principles
English Language - All JSDoc annotations MUST be written in English. No exceptions.
Semantic Priority - Explain "why", not "what". Focus on design intent and use cases.
Concise Annotations - Don't repeat TypeScript types in @param/@returns. Describe purpose and behavior only.
Exception Annotations - Always include @throws with error types and trigger conditions.
Practical Examples - All exported functions must have @example blocks.