delete-comment

delete-comment is a skill for Claude Code from sergeiwallace/ai-cli-utils. It costs 62 tokens per session (1,310 once invoked), scanned A, original, MIT.

A repository task for reviewing and removing code comments according to the project's comment policy. It classifies comments, deletes unwanted ones, records excuses as issues, and moves decision records to the designated folder.

In plain words
What is it for?
Use it on a file, directory, or whole repository to run the project's comment-cleanup pass.
Why use it?
It removes comments that are repetitive, outdated, or misleading while preserving documented design decisions and tracking reasons for exceptions.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/comment_ratchet.py --list <path>.

Good fit Use it on a file, directory, or whole repository to run the project's comment-cleanup pass.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/sergeiwallace/ai-cli-utils
agentmods
npx agentmods add skills/sergeiwallace/ai-cli-utils/delete-comment

Made for: Claude Code.

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 delete-comment

README.md
[![agentmods](https://agentmods.dev/badge/skills/sergeiwallace/ai-cli-utils/delete-comment/github.svg)](https://agentmods.dev/skills/sergeiwallace/ai-cli-utils/delete-comment)
Your own site
<a href="https://agentmods.dev/skills/sergeiwallace/ai-cli-utils/delete-comment"><img src="https://agentmods.dev/badge/skills/sergeiwallace/ai-cli-utils/delete-comment/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 delete-comment

Your own site · 80×15
<a href="https://agentmods.dev/skills/sergeiwallace/ai-cli-utils/delete-comment"><img src="https://agentmods.dev/badge/skills/sergeiwallace/ai-cli-utils/delete-comment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,310 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.00062 $0.01310
Opus 5.5 $0.00025 $0.00524
Sonnet 5.5 $0.00012 $0.00262
Haiku 4.5 $0.00006 $0.00131

Measured 2d ago against content hash 718fc650a69e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

delete-comment 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 2d ago.

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.

.claude/skills/delete-comment/SKILL.md · 118 lines

How it starts

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

Delete comments

Repeat the comment-deletion pass on a path. The rule, the lexers and the decision-record test are in docs/procedures/comment-ratchet.md; read it first.

The argument is a path (file or directory). With none, the pass covers the whole repository.

1. List what is there

python3 scripts/comment_ratchet.py --list <path>

Each line is path:line: text. The last line, total: N comments in F files; L comment-only lines, is the estimate before the pass: L lines go if every comment goes. Keep it for the report.

If the repository has no baseline yet, fill it first, in its own commit: python3 scripts/comment_ratchet.py --init.

2. Skip lines that come from the template

A file copier manages (it exists in the template) can hold two kinds of comment line: lines from the template source, and lines this repository added. Only the second kind is this pass's work. The template's lines are fixed in project-template, then arrive here with a copier update.

To tell them apart, render the template at the commit this repository was last updated to, and diff:

render=$(mktemp -d)
commit=$(sed -n 's/^_commit: //p' .copier-answers.yml)
src=$(sed -n 's/^_src_path: //p' .copier-answers.yml)
copier copy --trust --defaults --skip-tasks --vcs-ref "$commit" \
  --data-file .copier-answers.yml "$src" "$render/out"
diff "$render/out/<file>" "<file>"

$src may be replaced with a local clone of project-template (~/projects/project-template) to avoid a network fetch; the _commit must exist in it.

Paths listed in comment-skip.txt are copied in by the fleet installer and are not counted. Leave them alone: their comments are deleted in the platform's source hooks. Paths listed in comment-skip.local.txt are files this repository does not author, such as vendored bundles, and are not counted either. Leave them alone too.

A comment line that appears only on the repository side of the diff (>) is the repository's. A comment line that also appears in the render is the template's: leave it, and name it in the report as a template line. Remove the render directory with rm -r "$render" when done. A repository without .copier-answers.yml owns every line.

Read the full file on GitHub · 118 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. 2d ago First seen · 118 lines · 62 tokens per session scan A 718fc650a69e

Subscribe to this mod's changes

delete-comment is a skill published in the GitHub repository sergeiwallace/ai-cli-utils (1 stars, last pushed today), licensed MIT. It adds 62 tokens to every session and 1,310 once invoked, about $0.0002 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-27.

Related

delete-comment compared with skills from other repositories

delete-comment next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
delete-commentsergeiwallace/ai-cli-utilsSkill1todayMITA62Claude Code
code-review-pythonsoulcodex/agenticSkill1010d agoMITA59Claude Code, Codex
crit-clitomasz-tomczyk/critSkill1.4k2d agoMITA110Claude Code
crittomasz-tomczyk/critSkill1.4k2d agoMITA55Claude Code, Codex
crit-storytomasz-tomczyk/critSkill1.4k2d agoMITA47Claude Code, Codex
python-servicesiliaal/whetstoneSkill37yesterdayMITA48Claude Code, Codex
patch-editwolfenazz/YzPzCodeSkill20yesterdayApache-2.0A30Claude Code, Codex