ring:cleaning-comments

ring:cleaning-comments is a skill for Claude Code, Codex from LerianStudio/ring. It costs 64 tokens per session (1,084 once invoked), scanned A, original, Apache-2.0.

A code-review aid for finding comments that merely repeat what the code already says, while keeping useful documentation. It can limit its work to selected Git changes or inspect the wider codebase.

In plain words
What is it for?
Use it during code review, after refactoring, or before committing changes that contain too many obvious or redundant comments.
Why use it?
It reduces comment clutter and removes commented-out code without discarding explanations that clarify complex or important behavior.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/lerianstudio/ring/cleaning-comments
Any agent
npx skills add LerianStudio/ring --skill cleaning-comments
Clone the repo
git clone --depth 1 https://github.com/LerianStudio/ring

Made for: Claude Code, Codex.

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 ring:cleaning-comments

README.md
[![agentmods](https://agentmods.dev/badge/skills/lerianstudio/ring/cleaning-comments.svg)](https://agentmods.dev/skills/lerianstudio/ring/cleaning-comments)
Your own site
<a href="https://agentmods.dev/skills/lerianstudio/ring/cleaning-comments"><img src="https://agentmods.dev/badge/skills/lerianstudio/ring/cleaning-comments.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,084 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00064 $0.01084
Opus 5 $0.00032 $0.00542
Sonnet 5 $0.00013 $0.00217
Haiku 4.5 $0.00006 $0.00108

Measured 4d ago against content hash e19bd92c8621, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ring:cleaning-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 4d 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.

default/skills/cleaning-comments/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.

Cleaning Comments

When to use

  • Code has excessive, redundant, or obvious comments
  • During code review or post-refactor cleanup
  • Before committing to clean up comment noise in changed files
  • Codebase has accumulated commented-out code blocks

Skip when

  • Reviewing documentation files (README, docs/, etc.)
  • Comments are already minimal and meaningful
  • Working with generated code or third-party files

Sequence

Runs after: ring:exploring-codebases (optional, for architecture context)

Complementary: ring:exploring-codebases — run first for architecture-aware cleaning that preserves critical documentation


Analyze comments in code and remove those that violate clean code principles while preserving valuable ones. You can focus on git changes for faster, more relevant cleaning, or analyze the entire codebase.

Recommended workflow: Run ring:exploring-codebases first to understand the architecture, then clean comments with that context. This preserves architectural documentation, understands which comments are critical for complex modules, and respects project-specific documentation standards.

Clean Code Comment Rules

  1. Always try to explain yourself in code — Remove comments that can be replaced with better function/variable names
  2. Don't be redundant — Remove comments that just repeat what the code obviously does
  3. Don't add obvious noise — Remove comments like i++; // increment i
  4. Don't use closing brace comments — Remove } // end of if block style comments
  5. Don't comment out code — Remove commented-out code blocks
  6. Keep explanation of intent — Preserve comments explaining WHY, not WHAT
  7. Keep warnings of consequences — Preserve comments about important side effects
  8. Keep legal and informative comments — Preserve copyright, licenses, TODOs

Examples

Before:

// Check if user is eligible for discount
if (user.age >= 65 && user.membershipYears >= 5) {
  // Apply senior discount
  total = total * 0.9 // multiply by 0.9 to get 10% discount
} // end if block

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. 4d ago First seen · 118 lines · 64 tokens per session scan A e19bd92c8621

Subscribe to this mod's changes

ring:cleaning-comments is a skill published in the GitHub repository LerianStudio/ring (210 stars, last pushed 15d ago), licensed Apache-2.0. It adds 64 tokens to every session and 1,084 once invoked, about $0.0003 per session on Opus 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-08-30.

Related

Other skills, from other repositories

brainstorm

Explores a codebase, researches the problem space, and produces an approved design specification before any code is written. Use when the user wants to create a new feature, add significant functionality, redesign a subsystem, or build something that touches multiple parts of the project.

greglas75/zuvo · 56 tokens

a11y-audit

Dedicated WCAG 2.2 AA/AAA accessibility audit across 10 dimensions (A1-A10) covering semantic HTML, keyboard navigation, ARIA patterns, color contrast, forms, images/media, responsive/zoom, motion/animation, reading/content, and legal compliance. Goes far beyond surface-level design-review checks with deep…

greglas75/zuvo · 147 tokens

api-audit

API and endpoint integrity audit across 10 dimensions (D1-D10) plus optional contract stability (D11) and optional OWASP API Security Top 10 (D12: BOLA/BOPLA/BFLA, mass assignment, JWT alg-confusion, GraphQL introspection). Covers validation, payloads, pagination, errors, caching, HTTP semantics, waterfalls, rate…

greglas75/zuvo · 135 tokens

debug

Systematic bug investigation with a five-phase framework: reproduce, narrow, diagnose, fix, verify. Supports automated regression bisect via --regression flag. Produces a structured debug report with root cause analysis, regression test, and CQ/Q self-evaluations.

greglas75/zuvo · 55 tokens

incident

Incident response and postmortem generation from git/deploy context. When something breaks in production, this skill builds a timeline, identifies the probable cause, and generates a structured postmortem document. Flags: --since, --service, --sev, --revert, --comms, --dry-run.

greglas75/zuvo · 64 tokens

performance-audit

Full-stack performance health check across 12 dimensions. Rendering, bundles, assets, API/network, algorithms, memory, database, caching, Web Vitals, backend runtime, concurrency, and framework-specific pathologies. Evidence-based Impact Models with confidence tiers and a prioritized optimization roadmap. Switches…

greglas75/zuvo · 90 tokens