What problem does it solve?
Poor commenting practices, such as redundant, outdated, or misleading comments, can clutter code and hinder understanding rather than help it. This Skill promotes a philosophy of self-documenting code complemented by strategic, evergreen commenting.
Core Features & Use Cases
- Self-Documenting Code: Prioritize clear naming, logical structure, and expressive code over unnecessary comments, making code easier to read and understand.
- Strategic Commenting: Add comments only for complex algorithms, non-obvious business logic ("why" something is done), or public API JSDoc, ensuring comments add real value.
- Avoid Redundancy: Eliminate comments that merely restate obvious code, describe temporary fixes, or track changes, keeping the codebase clean and focused.
- Use Case: When reviewing a complex algorithm for calculating reading time, ensure that a concise comment explains its underlying logic or a non-obvious step, rather than just restating what the code does.
Quick Start
Review this function and suggest improvements to its comments, ensuring it follows the 'self-documenting code' principle and uses JSDoc where appropriate for its public interface.