Global Commenting

Enforce global-commenting standards across source files and documentation during code reviews.

Updated Dec 23, 2025
One-click install
npx skills add https://github.com/t-strings/tdom-path --skill global-commenting-t-strings
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Global Commenting
Source: https://github.com/t-strings/tdom-path/tree/main/.claude/skills/global-commenting
Command: npx skills add https://github.com/t-strings/tdom-path --skill global-commenting-t-strings

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides Claude to apply consistent commenting practices, improving code readability and maintenance.

Core Features & Use Cases

  • Comment Taxonomy: Define conventions for inline, block, and doc comments.
  • Readability: Improve maintainability with clear explanations.
  • Use Case: Comment a complex function with purpose, inputs, and outputs.

Quick Start

Document a sample function with Global Commenting guidelines.

Frequently Asked Questions about Global Commenting

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

FAQPage Schema
How do I standardize comments across my codebase?

Standardizing comments enforces consistent conventions for inline, block, and documentation comments across all source files. Define your project's global commenting standard—covering syntax, style, and structure—then apply it during code reviews and CI checks to maintain readability and reduce maintenance friction.

What should a good code comment include?

Effective code comments explain purpose, inputs, and outputs rather than restating logic. Global commenting standards define comment taxonomy: inline comments clarify intent, block comments document complex sections, and header blocks provide module or function overviews. This taxonomy ensures maintainers quickly grasp code behavior.

Can I enforce commenting standards automatically during code review?

Yes. Enforce global-commenting standards by referencing your project's standard document in linting rules and CI checks. During code reviews, Claude applies these conventions to source files and documentation, catching violations before merge and reducing manual review overhead.

Why does code readability matter for maintenance?

Clear, consistent comments reduce onboarding time and defect rates. Standardized commenting practices improve maintainability by making code intent explicit across the team, lowering the cognitive load when developers revisit unfamiliar modules months later.

How do I handle language-specific comment syntax in my style guide?

Global commenting standards account for language-specific syntax—C-style `/* */` blocks, Python docstrings, or shell `#` lines—so conventions apply uniformly across polyglot codebases. Define syntax rules per language while maintaining a unified commenting philosophy.