Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
comments, code-quality, cleanup, refactoring, docstrings, readability
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code plugin that cleans up the comments already in a codebase. It cuts the ones that only restate the code, shortens the verbose agent-written ones, and leaves alone the ones carrying context you cannot get back.
It edits comments. It does not edit code, and that is checked mechanically rather than promised.
Comments accumulate two kinds of rot. The human kind, where a note written for a version of the code that no longer exists sits there misleading people. And the newer kind, where an agent narrates what it just wrote — // Loop over the entries, // Return the result — until the one comment that mattered is buried in filler nobody reads.
Deleting comments in bulk is easy and usually wrong: the useful ones look the same as the useless ones until you read them.
/comment-cleaner:analyse src/
/comment-cleaner:clean src/
/comment-cleaner:review
scripts/ledger.py lists the files worth reading, skipping generated, vendored, minified and oversized ones, and anything git ignoresscripts/verify.py reduces the file to its code with comments stripped, before and after. Identical means comments-only. Different means the file is reverted| Command | Description |
|---|---|
/comment-cleaner:analyse [path] | Report what would change. Edits nothing |
/comment-cleaner:clean [path] | Clean in reviewable batches, verifying each one |
/comment-cleaner:review [--staged | --range A..B] | Summarise a run and prove the code was untouched |
/comment-cleaner:status [path] | Progress so far: done, outstanding, excluded |
Anything the code cannot say for itself — why a thing was done this way, business rules, security reasoning, measured performance trade-offs, upstream bugs being worked around, and how an external system actually behaves rather than how it is documented. Licence headers, TODOs with an owner, and tool directives (# noqa, // eslint-disable, # shellcheck) are left exactly as they are.
Comments that restate the line below them, agent narration (// First, we…), commented-out code, changelogs kept in comment blocks, banner dividers, and decorative noise.
Every edited file is reduced to a comment-free skeleton before and after. If the skeletons differ, the edit changed the program and the file is reverted.
Python goes through the real parser, so a docstring rewrite is allowed but any change to a statement is caught. Other languages go through a lexer that understands string literals, nested block comments and the rest. A file in a language with no grammar here is reported as unverified — never as passed.
Three things this cannot catch, and you should know about them:
# noqa, // eslint-disable-next-line and friends are comments to a compiler's eyes but instructions to a tool. The skill's rule is to leave them untouched; the verifier cannot enforce itThe ledger in .comment-cleaner/ledger.json holds one entry per file: the hash it had when the cleanup finished with it. So a repository too big for one sitting can be worked through over several, and a file edited after being cleaned comes back into the queue on its own. Nothing is missed, nothing is done twice.
Add .comment-cleaner/ to .gitignore, or commit it if you want the progress shared.
/plugin marketplace add wrxck/claude-plugins
/plugin install comment-cleaner@wrxck-claude-plugins
Update with /plugin marketplace update wrxck-claude-plugins.
Needs Python 3.10 or newer, which is only used for the two helper scripts.
Verified: JavaScript, TypeScript, JSX/TSX, Python, Go, Rust, Java, Kotlin, Scala, Swift, C, C++, C#, Dart, PHP, Ruby, shell, SQL, HTML, XML, Vue, Svelte, CSS, SCSS, LESS, YAML, TOML, INI, Terraform, Dockerfile, Makefile.
Anything else is reported as unverified rather than cleaned.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: author: Invalid input: expected object, received string, commands: Invalid input, agents: Invalid input, skills: Invalid input
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Plugins from other owners that cover similar ground