comment-layout-and-formatting

Community

Improve code readability with clean comments.

Authorkitchen-engineer42
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Apply proper indentation and spacing rules to code comments to enhance readability and maintain code visual structure.

Core Features & Use Cases

  • Comment Indentation: When to apply: When writing or formatting code comments (excluding end-of-line comments). Align comments with the code they describe using the same indentation level. Ensure comments do not obscure the visual indentation structure of the code. Maintain visual hierarchy to help readers understand program logic structure
  • Comment Spacing: When to apply: When separating code blocks or emphasizing comments. Place at least one blank line before each comment to separate it from code. Optional: Use blank lines both before and after comments (two total). Pros: Better visual effect, easier to scan. Cons: Consumes more display space. Core principle: Having a consistent convention is more important than the specific details of the convention
  • Core principle: Having a consistent convention is more important than the specific details of the convention

Result

  • Code logical structure remains clearly visible
  • Comments are visually separated from code
  • Comments align with their corresponding code blocks

Quick Start

Apply the indentation and spacing rules to existing codebases to standardize and improve readability.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: comment-layout-and-formatting
Download link: https://github.com/kitchen-engineer42/pdf2skills/archive/main.zip#comment-layout-and-formatting

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.