code-comments

Reviews and rewrites code comments to keep them concise, accurate, and current.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Codebases accumulate stale, redundant, or narrating comments that mislead readers and add noise. This Skill enforces a consistent standard so comments only exist where they clarify intent, ownership, invariants, tradeoffs, or interface contracts. ## Core Features & Use Cases - Comment Pruning: Deletes narration-style comments that merely restate what the code already says. - Intent-Focused Commenting: Adds or keeps comments only where code does not make intent, invariants, or contracts clear. - Use Case: During a refactor or code review, run this Skill over a module to strip outdated commentary and ensure remaining comments accurately describe non-obvious design decisions. ## Quick Start Review the comments in this file and remove or rewrite any that are redundant, outdated, or merely narrate the code.

Frequently Asked Questions about code-comments

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

FAQPage Schema
How do I clean up redundant code comments?▼

Remove comments that narrate what the code already expresses, such as restating a function name or describing obvious operations. Keep only comments that explain intent, invariants, tradeoffs, or interface contracts the code cannot convey on its own.

When should I write a code comment?▼

Write a comment only where the code does not make intent, ownership, invariants, tradeoffs, or interface contracts clear. If the code is self-explanatory, no comment is needed; prefer clearer naming or structure instead.

Does this work with any programming language?▼

Yes, the guidance is language-agnostic because it governs comment content rather than syntax. It applies equally to Python, JavaScript, Go, Rust, or any other language's comment conventions.

What are the limitations of automated comment cleanup?▼

Judging whether a comment captures true intent or a subtle invariant requires understanding the code's design context. Borderline comments explaining non-obvious business rules may still need human review before deletion.