github-comment-cleanup

github-comment-cleanup is a skill for Claude Code, Codex from OpenHands/extensions. It costs 68 tokens per session (928 once invoked), scanned A, original, MIT.

A scheduled GitHub automation that asks an agent to remove low-value comments from repository files and opens a pull request with the result. It tracks file fingerprints so unchanged files can be skipped across runs.

In plain words
What is it for?
Use it to clean comments across multiple GitHub repositories on a schedule, with limits on how many files and bytes each run processes.
Why use it?
It keeps recurring cleanup work from being repeated unnecessarily and leaves changes for normal pull-request review. It also avoids starting another run while an earlier conversation or pull request is still active.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to clean comments across multiple GitHub repositories on a schedule, with limits on how many files and bytes each run processes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openhands/extensions/github-comment-cleanup
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.

Any agent
npx skills add OpenHands/extensions --skill github-comment-cleanup
Clone the repo
git clone --depth 1 https://github.com/OpenHands/extensions

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 github-comment-cleanup

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/openhands/extensions/github-comment-cleanup"><img src="https://agentmods.dev/badge/skills/openhands/extensions/github-comment-cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 928 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.00068 $0.00928
Opus 5.5 $0.00027 $0.00371
Sonnet 5.5 $0.00014 $0.00186
Haiku 4.5 $0.00007 $0.00093

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

Security

Grade A, and why

github-comment-cleanup 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.

skills/github-comment-cleanup/SKILL.md · 91 lines

How it starts

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

GitHub Comment Cleanup

This automation runs from the executable automation plugin at plugins/github-comment-cleanup. Do not copy or package code from this skill; it is only a setup guide for creating the plugin-spec automation. The cleanup rules themselves are the comment-cleanup skill, which the automation loads into each cleanup conversation.

What each run does

For every configured repository:

  1. Records the outcome of the conversation the previous run started, once it has stopped. With a pull request, each file keeps its original and its cleaned fingerprint; with NO_CHANGES, its original; after a failure, nothing, so its files are offered again.
  2. Skips the repository while the pull request it opened is still open or the previous conversation is still running.
  3. Shallow-clones the default branch and fingerprints each candidate file by git blob SHA. Recorded fingerprints are skipped without reading the file; files with no comments are recorded directly. Changed files are queued before never-seen ones, then by path. At most 50 files are queued per run (max_files, 1-50, default 50), within max_bytes; the rest wait for a later run.
  4. Starts one conversation with comment-cleanup loaded and the queued paths in its first message. The agent edits, runs verify_comment_only.py, commits, pushes, and opens the pull request.

Ask the user which repositories to clean and whether any paths should be included or excluded before creating it.

Create with the plugin-spec endpoint

Use POST /api/automation/v1/plugin-spec with this plugin source:

{
  "source": "github:OpenHands/extensions",
  "repo_path": "plugins/github-comment-cleanup",
  "ref": "main"
}

ref is main while this plugin is unreleased. After an openhands-extensions release includes it, prefer the matching release tag, for example v<extensions-version>.

For local Agent Canvas development from this checkout, use a local source instead:

{
  "source": "/absolute/path/to/OpenHands/extensions",
  "repo_path": "plugins/github-comment-cleanup"
}

Read the full file on GitHub · 91 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 91 lines · 68 tokens per session scan A c7342a351d35

Subscribe to this mod's changes

github-comment-cleanup is a skill published in the GitHub repository OpenHands/extensions (190 stars, last pushed today), licensed MIT. It adds 68 tokens to every session and 928 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-10-29.

Related

github-comment-cleanup compared with skills from other repositories

github-comment-cleanup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
github-comment-cleanupOpenHands/extensionsSkill190todayMITA68Claude Code, Codex
merge-batchdiegosouzapw/OmniRouteSkill91k2d agoMITA46Claude Code
prowler-commitprowler-cloud/prowlerSkill15ktodayApache-2.0A44Claude Code, Codex
gh-auth-isolationgithub/gh-awSkill5.7ktodayMITA20Claude Code, Codex
comet-githubrpamis/cometSkill3.3ktodayMITA72Claude Code, Codex
github-skillzeenie-ai/OpenCompanySkill1.1k4d agoMITA51Claude Code
codex-autoresearchleo-lilinxiao/codex-autoresearchSkill3.3k12d agoMITA39Codex