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.
npx skills add LerianStudio/ring --skill cleaning-commentsgit clone --depth 1 https://github.com/LerianStudio/ringWrote 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.
[](https://agentmods.dev/skills/lerianstudio/ring/cleaning-comments)<a href="https://agentmods.dev/skills/lerianstudio/ring/cleaning-comments"><img src="https://agentmods.dev/badge/skills/lerianstudio/ring/cleaning-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.
<a href="https://agentmods.dev/skills/lerianstudio/ring/cleaning-comments"><img src="https://agentmods.dev/badge/skills/lerianstudio/ring/cleaning-comments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00064 | $0.01084 |
| Opus 5.5 | $0.00026 | $0.00434 |
| Sonnet 5.5 | $0.00013 | $0.00217 |
| Haiku 4.5 | $0.00006 | $0.00108 |
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 1mo 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.
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)
Related
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
- Always try to explain yourself in code — Remove comments that can be replaced with better function/variable names
- Don't be redundant — Remove comments that just repeat what the code obviously does
- Don't add obvious noise — Remove comments like
i++; // increment i - Don't use closing brace comments — Remove
} // end of if blockstyle comments - Don't comment out code — Remove commented-out code blocks
- Keep explanation of intent — Preserve comments explaining WHY, not WHAT
- Keep warnings of consequences — Preserve comments about important side effects
- 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
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.
- 1mo ago First seen · 118 lines · 64 tokens per session scan A e19bd92c8621
ring:cleaning-comments is a skill published in the GitHub repository LerianStudio/ring (217 stars, last pushed 5d 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.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.
Other skills, from other repositories
review
Structured code review with parallel audit agents, confidence-scored triage, and optional auto-fix. Examines uncommitted changes, staged diffs, commit ranges, or specific paths. Produces a tiered report (MUST-FIX / RECOMMENDED / NIT) backed by evidence, then optionally applies fixes with verification.
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.
worktree
Isolate work in a git worktree. Activates when the user needs branch isolation before executing a plan, wants a clean environment for a feature, is ready to finish work in an existing worktree, or wants to reclaim worktrees that accumulated and are now polluting filesystem-level measurement.
refactor-radar
Select refactor candidates with immutable git measurements, evidence-backed module families and temporary collision checks. Use for ranked refactor/test-debt triage, not implementation. DISCOVER saves reports without changing product code; REGISTER requires validated decisions. Worktree names are hints, test LOC is…
canary
Post-deploy monitoring with browser or degraded HTTP mode. Checks console errors, performance, page load. Configurable duration (1m-30m) and interval. Reports HEALTHY/DEGRADED/BROKEN. Flags: --duration, --interval, --quick, --max-errors.
release-docs
Diff-driven documentation sync after a release. Determines what source files changed, delegates changelog to zuvo:docs, updates only docs whose source changed. Flags: --dry-run, explicit range argument.