Global Commenting
This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle global commenting.
When to use this skill
- •When documenting component props with JSDoc (@prop, @param annotations)
- •When explaining complex algorithms, business logic, or non-obvious implementation choices
- •When documenting performance optimizations and the rationale behind them
- •When noting browser compatibility issues or workarounds for bugs
- •When documenting API routes with request/response format specifications
- •When explaining Content Collection Zod schemas and validation constraints
- •When clarifying regex patterns and what they're designed to match
- •When documenting configuration files (astro.config.mjs, tailwind.config.mjs)
- •When adding file-level documentation headers for complex components or utilities
- •When explaining technical debt, TODOs, or future refactoring needs
- •Avoiding commenting obvious code, change history (use git), or commented-out code blocks
Instructions
For details, refer to the information provided in this file: global commenting