Skip to content

Clear, plain-spoken code comment review and cleanup that deletes comments unless they meet a strict keep list.

CCM score
62 of 100
install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
14
skills.sh installs
650
GitHub stars
50
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers writing, reviewing, and removing comments, with each comment judged against a keep list before it stays
  • Keeps only legal headers, tool directives, outside-facing API docs, external constraints, and tracked TODOs
  • Enforces making the code express intent before any comment explaining it is kept, with changes limited to behavior-preserving edits
  • Designed for teams reviewing diffs, where a fresh reader judges each added or edited comment and reports findings

Install

$ npx -y skills add petekp/claude-code-setup --skill code-comments -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Code comments

Delete every comment that is not on the keep list. When you are not sure a comment fits an item, delete it. A comment that explains our own code usually means the code should change: make the code say it, then delete the comment. Before adding a comment while writing code, hold it to the same list.

Keep list

A comment stays only when it is one of these, and only while its claim holds today:

Details

Repository
github.com/petekp/claude-code-setup
Category
Code Review & Quality
First seen
Jun 3, 2026

Questions

What does the code-comments skill do?

The code-comments skill writes, reviews, and removes code comments and doc comments. It deletes comments that are false, stale, or explain code that should instead be made clearer. Its keep list covers legal headers, tool directives, doc comments on APIs used outside their module, and constraints set outside the codebase.

How do I install the code-comments skill?

Run npx -y skills add petekp/claude-code-setup --skill code-comments -y in a project to install it. After installation, the agent can use the skill to judge which comments in a diff belong, and to report the rest.

Where does code-comments stand in the Code Review & Quality category?

Code-comments is in the Code Review & Quality category on Claude Marketplaces, alongside improve-codebase-architecture, codebase-design, code-review, setup-ts-deep-modules, and caveman-review. Its focus on comments, rather than whole-code review, sets it apart from those skills.

Does code-comments change my code when it cleans up comments?

It edits only comments by default and limits any code change to behavior-preserving steps like renaming after checking consumers. For changes to what a function does, it reports the symbol and the proposed change instead of making it.

Similar to Code Comments

More Code Review & Quality