documenting-code-comments

Enforce concise WHY-driven code comments across codebases during reviews.

127|19|Updated Oct 23, 2025
One-click install
npx skills add https://github.com/rileyhilliard/claude-essentials --skill documenting-code-comments-rileyhilliard
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: documenting-code-comments
Source: https://github.com/rileyhilliard/claude-essentials/tree/main/plugins/ce/skills/documenting-code-comments
Command: npx skills add https://github.com/rileyhilliard/claude-essentials --skill documenting-code-comments-rileyhilliard

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams ensure code is self-documenting and minimize unnecessary comments, improving readability and maintainability.

Core Features & Use Cases

  • Self-documenting naming conventions
  • Guidance on when to add comments (WHY) versus WHAT
  • Refactor-before-commenting approach
  • Audit-ready documentation hygiene for diverse codebases

Quick Start

Review this skill's guidelines and apply them to audit and improve inline documentation in your codebase.

Frequently Asked Questions about documenting-code-comments

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

FAQPage Schema
How do I enforce self-documenting code standards and reduce unnecessary comments?▼

Enforce self-documenting code standards by applying concise, purposeful documentation guidelines that focus on WHY-driven comments and a formal refactor-before-commenting workflow to reduce noise. This improves code readability and maintainability across diverse codebases.

When should I add comments versus writing self-documenting code?▼

Add comments to explain WHY decisions were made rather than WHAT the code does, using self-documenting naming conventions first. If code requires a WHAT comment, apply the refactor-before-commenting approach to improve naming and structure.

How do I audit code documentation hygiene for my codebase?▼

Audit code documentation hygiene by reviewing inline comments against guidelines for WHY-focused documentation and self-documenting code standards. This process identifies unnecessary noise and ensures concise, purposeful in-code documentation across languages.

Does this code commenting approach work across different programming languages?▼

Yes, the self-documenting code and minimal comment guidelines apply to codebases across languages and teams. The standards focus on universal principles like WHY-driven comments and refactor-before-commenting workflows rather than language-specific syntax.

What is the best way to align team code reviews on code quality and commenting standards?▼

Align team code reviews by applying concise, purposeful documentation guidelines that enforce WHY-focused comments and self-documenting naming conventions. This establishes a shared refactor-before-commenting workflow for maintainable code.

Why does refactoring before commenting improve code maintainability?▼

Refactoring before commenting improves maintainability by prioritizing self-documenting code structures and naming conventions over explanatory text. This reduces comment noise and ensures remaining comments capture essential WHY context rather than redundant WHAT descriptions.