code-comments

Enforce Conventional Comments formatting on source code comments.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/erichugy/agentic.skills --skill code-comments-erichugy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-comments
Source: https://github.com/erichugy/agentic.skills/tree/main/code-comments
Command: npx skills add https://github.com/erichugy/agentic.skills --skill code-comments-erichugy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unclear, noisy, or outdated code comments obscure intent, create maintenance overhead, and hide technical debt. This Skill provides a simple, consistent convention to make comments actionable and maintainable by focusing on intent rather than restating code.

Core Features & Use Cases

  • Label taxonomy: Standard labels (TODO, FIXME, HACK, BUG, NOTE, QUESTION, OPTIMIZE, DEPRECATED) to categorize comment intent.
  • Decorations & priority: Optional parenthetical decorations (e.g., blocking, non-blocking, issue) to express urgency or linkages.
  • Core rule enforcement: Emphasizes "only comment the why, never the what" and advises removing commented-out code.
  • Use cases: PR reviews, code cleanup passes, onboarding codebases, and establishing repository-wide comment standards that respect AGENTS.md or CLAUDE.md overrides.

Quick Start

Review the repository's code comments and convert or annotate them to follow the Conventional Comments format, ensuring each labeled comment explains why rather than what and using decorations to indicate blocking or issue references.

Frequently Asked Questions about code-comments

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

FAQPage Schema
How do I enforce consistent code comments across my repositories?

You can enforce consistent code comments by applying Conventional Comments formatting with standard labels like TODO, FIXME, and HACK. This ensures comments explain intent and action, while respecting project-specific AGENTS.md or CLAUDE.md overrides.

What is the best way to write code comments that explain intent?

The best way to write code comments is to follow the core rule: only comment the why, never the what. Use Conventional Comments labels and optional decorations to express urgency or linkages, reducing noisy or redundant annotations.

How do I use Conventional Comments decorations in a PR review?

During a PR review, use Conventional Comments decorations to annotate code with parenthetical labels like blocking, non-blocking, or issue references. This categorizes comment intent and validates priority across repository workspaces.

Can I override Conventional Comments formatting with project-specific rules?

Yes, you can override Conventional Comments formatting by defining custom rules in your repository's AGENTS.md or CLAUDE.md files. The skill respects these project-specific overrides when validating labels and decorations.

Why should I remove commented-out code during code cleanup?

You should remove commented-out code because it obscures intent and creates maintenance overhead. Conventional Comments advises deleting redundant annotations and focusing on documenting the why to improve overall comment quality.

What labels are available in Conventional Comments for categorizing intent?

Conventional Comments provides standard labels including TODO, FIXME, HACK, BUG, NOTE, QUESTION, OPTIMIZE, and DEPRECATED. These labels categorize comment intent to make code annotations actionable and maintainable.