comment-style-guide

Enforce concise code comment rules for JSDoc and TODO tracking.

6|Updated Feb 20, 2025
One-click install
npx skills add https://github.com/zerobias-org/module --skill comment-style-guide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: comment-style-guide
Source: https://github.com/zerobias-org/module/tree/main/.claude/skills/comment-style-guide
Command: npx skills add https://github.com/zerobias-org/module --skill comment-style-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Code commenting guidelines to improve readability and maintain consistency across teams.

Core Features & Use Cases

  • No redundant comments rules, concise JSDoc, and guidance on non-obvious behavior notes.
  • Guidelines for test-structure comments and documenting complex logic.
  • Examples and best practices for writing useful documentation within code.

Quick Start

Rewrite a sample block of code comments to remove redundancy and improve clarity using the guidelines.

Frequently Asked Questions about comment-style-guide

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the best way to write code comments that explain why instead of what?

Effective code comments explain the reasoning behind non-obvious behavior and complex logic instead of restating what the code does. This approach enforces concise, purposeful documentation to improve readability and maintain consistency across frontend and backend codebases.

How do I enforce a comment style guide during code reviews?

You can enforce a comment style guide during code reviews by applying rules for no redundant comments, minimal JSDoc, and TODO tracking. These guidelines help reviewers identify and enforce concise, purposeful documentation across frontend and backend software projects.

How do I remove redundant comments from existing TypeScript code?

To remove redundant comments from TypeScript code, rewrite code blocks to eliminate obvious restatements and apply minimal JSDoc guidelines. This process improves clarity by ensuring comments only document non-obvious behavior and complex logic.

Can I use these commenting guidelines for both frontend and backend codebases?

Yes, you can use these commenting guidelines for both frontend and backend codebases. The rules for concise JSDoc, non-obvious behavior notes, and TODO tracking apply across software projects to improve readability and maintain consistency.

When should I use JSDoc versus inline comments in my code?

You should use minimal JSDoc for structured documentation and inline comments only for noting non-obvious behavior, complex logic, or test structures. Avoid redundant comments that simply restate what the code does to maintain readability.