Skip to content
Back to skills

Comments

ASecurity

States the user's code comment preferences - short, single-line, and a signal to fix the code when a longer one feels needed. Use before writing or reviewing a code comment.

  • 66 stars
  • 0 votes
  • 3 copies
  • 39 views
  • Added September 3, 2026
tools

Security analysis

A100/100

Scanned September 24, 2026

npx -y skills add smnatale/dotfiles --skill comments --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Comments?

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

Security grade badge for Comments
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/smnatale-comments/badge)](https://www.skillsdirectory.com/skills/smnatale-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: comments
description: States the user's code comment preferences - short, single-line, and a signal to fix the code when a longer one feels needed. Use before writing or reviewing a code comment.
disable-model-invocation: false
---

Default to no comments. A well-named identifier already says what the code does.

When a comment earns its place, it carries something the code can't: a non-obvious constraint, a subtle invariant, a workaround for a specific bug, or behavior that would surprise a reader.

Keep it to one line. If it wants to run longer or wrap, that's not a comment problem, it's the code underneath being too complex or badly named. Fix the code, not the comment:

- The name doesn't match what it does -> rename it.
- A block needs a paragraph to justify itself -> extract it into a well-named function and let the name carry the explanation.
- Several comments narrate a sequence of steps -> those steps belong in named helper calls, not prose.

Never write a comment that states what the code does, narrates the current task, or references a caller, fix, or ticket ("used by X", "added for the Y flow", "handles the case from #123"). That belongs in the commit message or PR description, not the source, and it rots the moment the code moves on.

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.

Comments

Loading comments…

Newsletter

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