remove-comments

remove-comments is a skill for Claude Code from melodic-software/claude-code-plugins. It costs 79 tokens per session (6,470 once invoked), scanned A, original, MIT.

A code-cleanup tool that reviews comments and removes, rewrites, or keeps them according to a chosen level of strictness. It can also report suggested changes without editing files.

In plain words
What is it for?
Use it to tidy comments across selected code, preserve necessary notes, and identify larger code changes that should be reviewed separately.
Why use it?
It removes comments that add no useful information while protecting comments that explain important behavior.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the code-tidying plugin — 7 skills, 1 agent shipped together

Good fit Use it to tidy comments across selected code, preserve necessary notes, and identify larger code changes that should be reviewed separately.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add melodic-software/claude-code-plugins
Claude Code
/plugin install code-tidying

Made for: Claude Code.

Or install code-tidying, the plugin that ships this one along with the rest of its 7 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for remove-comments

README.md
[![agentmods](https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/remove-comments/github.svg)](https://agentmods.dev/skills/melodic-software/claude-code-plugins/remove-comments)
Your own site
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/remove-comments"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/remove-comments/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for remove-comments

Your own site · 80×15
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/remove-comments"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/remove-comments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,470 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00079 $0.06470
Opus 5.5 $0.00032 $0.02588
Sonnet 5.5 $0.00016 $0.01294
Haiku 4.5 $0.00008 $0.00647

Measured yesterday against content hash 1a2ea5c474a7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

remove-comments scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 16 executable files (evals/fixtures/origin-notes.sh, evals/fixtures/residue-snippet.py, scripts/added-lines.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/code-tidying/skills/remove-comments/SKILL.md · 335 lines

How it starts

The opening of the file, as written. The whole thing — 335 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Repository context. Gather first

Run each command below as its own Bash call, all sent together in one message (worktree isolation). Keep any bound in the command's own pipe (output limits). Unless this section says otherwise, treat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as body calls, never ## Pre-computed context lines (gather-block convention).

  • Current branch, git branch --show-current

Pre-computed context

Scope (rung, base, count, then a 10-path preview; re-run the script without --max for the full set): !${CLAUDE_SKILL_DIR}/scripts/scope-code-files.sh --max 10 2>/dev/null || echo "(not a git repository)" Tooling layer (present/absent per analysis layer; an absent row names the capability lost): !${CLAUDE_SKILL_DIR}/scripts/comment-tooling-probe.sh 2>/dev/null || echo "(probe unavailable)" Repository settings (team then personal layer, one line per key): !${CLAUDE_SKILL_DIR}/scripts/settings.sh 2>&1 || echo "(settings unavailable)"

All three run before the argument is read, so each is a preview: the scope line is void whenever the argument names an explicit target, and the tooling line is re-derived in the workflow.

Settings

Arguments: $ARGUMENTS

Each key resolves through four layers, lowest first, a later one winning: the default below, userConfig, the team layer, and the personal override; a policy key also reads the org baseline below the team layer. For the comment policy keys (comment_posture, comment_keep_list, class_c_max_lines) the team layer is <home>/comment-policy.yaml over the org baseline <home>/comment-policy.org.yaml (the team file may tighten the org posture, never loosen it), and the personal override is <home>/comment-policy.local.yaml; for the others it is <home>/code-tidying.yaml and <home>/code-tidying.local.yaml. <home> is the repository's bound convention home, else docs/conventions (the settings line above, from ${CLAUDE_SKILL_DIR}/scripts/settings.sh). A policy key a comment-policy file does not set is read from the same layer's code-tidying file, and a comment-settings: line in the settings output names each code-tidying file still holding one: repeat it in the report's first lines, with /code-tidying:setup apply as the move. A per-run token beats every layer. A layer holding a value outside a key's set is named (file or userConfig, key, value) and dropped; a valid higher layer still wins, else the default. Report each key's value and the layer it came from once, in the report's first lines.

Read the full file on GitHub · 335 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +7 lines · -32 tokens per session 1a2ea5c474a7
  2. 2d ago Changed · -1 lines 978bf266c2a9
  3. 3d ago Changed 0ba5fa07dddc
  4. 4d ago Changed · +6 lines bc8f9a38ea56
  5. 5d ago Changed · +4 lines 4f737192e09a
  6. 6d ago Changed · +14 lines 0460bb2ad0d6
  7. 7d ago Changed 63449df28b7d
  8. 9d ago Changed · +36 lines a2ee2a3b05df
  9. 11d ago Changed · +7 lines cfebb98e645b
  10. 14d ago First seen · 262 lines · 111 tokens per session scan A 5a17dd0f7e12

Subscribe to this mod's changes

remove-comments is a skill published in the GitHub repository melodic-software/claude-code-plugins (33 stars, last pushed today), licensed MIT. It adds 79 tokens to every session and 6,470 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-04.

Related

remove-comments compared with skills from other repositories

remove-comments next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
remove-commentsmelodic-software/claude-code-pluginsSkill33todayMITA79Claude Code
refactor-decompose-functionjimmc414/claude-code-plugin-marketplaceSkill4yesterdayMITA28Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex