Skip to content
Back to skills

Tidy Comments

ASecurity

Improves code comments so they are clear, accurate, and useful. Use when asked to "clean up the comments", "improve the comments", or "document this function".

  • 198 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 12, 2026
ai-agentsgo

Security analysis

A100/100

Scanned November 12, 2026

npx -y skills add mblode/agent-skills --skill tidy-comments --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tidy Comments?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tidy Comments
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mblode-tidy-comments/badge)](https://www.skillsdirectory.com/skills/mblode-tidy-comments)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tidy-comments
description: Improves code comments so they are clear, accurate, and useful. Use when asked to "clean up the comments", "improve the comments", or "document this function".
---

# Tidy Comments

Good comments make code easier to understand. This skill helps you write better ones.

## Principles

- Comments should explain why, not what. The code already says what it does.
- Keep comments short and to the point.
- Make sure comments are accurate. An outdated comment is worse than no comment.
- Use complete sentences with correct spelling and grammar.
- Do not state the obvious. `i++ // increment i` adds nothing.
- Remove commented-out code. Version control remembers it.
- Write a doc comment for every public function, describing its parameters and return value.

## Steps

1. Read the file carefully and understand what it does.
2. Think step by step about which comments are helpful and which are not.
3. Remove comments that restate the code.
4. Rewrite unclear comments so they are clear.
5. Add comments where the reasoning is not obvious.
6. Double-check your work before finishing.

## Tips

- Imagine a new teammate reading the code for the first time.
- When in doubt, prefer a better name over a comment.
- Be careful and thorough. Take your time.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.