tsdoc-comments
Installation
SKILL.md
Use TSDoc for API Comments
Overview
TSDoc is the standard for documenting TypeScript code. It extends JSDoc with TypeScript-specific features like generic type parameters (@template). Good documentation explains not just what code does, but why, and helps users understand your API through IDE tooltips and generated docs.
Well-documented code reduces support burden and improves developer experience for your API consumers.
When to Use This Skill
- Documenting public APIs
- Writing library code for others
- Explaining complex type parameters
- Generating documentation from code
- Providing IDE tooltips
The Iron Rule
Document public APIs with TSDoc. Explain what, why, and provide examples. Use @template for generic type parameters.