trim-comments

trim-comments is a skill for Claude Code from cboone/agent-harness-plugins. It costs 53 tokens per session (460 once invoked), scanned A, original, MIT.

A code-comment editor that shortens comments in selected files or changed code. It keeps the code's purpose and the smallest necessary reason.

In plain words
What is it for?
Use it to trim comments, rewrite jargon-heavy explanations, preview changes, and optionally leave edits uncommitted.
Why use it?
Long or unclear comments become another maintenance burden and can repeat what the code already shows.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions Codex.

Part of the trim-comments plugin — 1 skill shipped together

Good fit Use it to trim comments, rewrite jargon-heavy explanations, preview changes, and optionally leave edits uncommitted.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cboone/agent-harness-plugins/trim-comments
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 cboone/agent-harness-plugins --skill trim-comments
Clone the repo
git clone --depth 1 https://github.com/cboone/agent-harness-plugins

Made for: Claude Code.

Or install trim-comments, the plugin that ships this one along with the rest of its 1 skill.

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 trim-comments

README.md
[![agentmods](https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/trim-comments/github.svg)](https://agentmods.dev/skills/cboone/agent-harness-plugins/trim-comments)
Your own site
<a href="https://agentmods.dev/skills/cboone/agent-harness-plugins/trim-comments"><img src="https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/trim-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 trim-comments

Your own site · 80×15
<a href="https://agentmods.dev/skills/cboone/agent-harness-plugins/trim-comments"><img src="https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/trim-comments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 460 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.00053 $0.00460
Opus 5.5 $0.00021 $0.00184
Sonnet 5.5 $0.00011 $0.00092
Haiku 4.5 $0.00005 $0.00046

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

Security

Grade A, and why

trim-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 28d 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.

plugins/trim-comments/skills/trim-comments/SKILL.md · 28 lines

What it actually says

Trim Comments

Compatibility alias for comment trimming through trim-text's code-comments profile. Keep this name, its triggers and its existing options working while the common standard and workflow live in trim-text.

Handoff

Confirm that the trim-text skill is available. If unavailable, report unavailable, name the missing dependency, and leave files unchanged. Never recreate a second copy of its standard or workflow.

Invoke the trim-text skill with --profile code-comments and the original paths, named comment and options (--dry-run, --no-commit, --no-codex). With no paths or named comment, pass branch explicitly: the equivalent is trim-text branch --profile code-comments, using the verified remote default branch as the base. Do not choose a PR body or use its target branch as the base for this alias. With explicit paths, every comment in those files is in scope; a named comment is the whole scope. Pass paths as data without interpreting words such as branch, pr or issue as scope selectors: prefix a literal path with ./ when it conflicts with a selector.

The target resolves scope, classifies comments, edits, verifies, commits when allowed, and reports. It skips prose documents and symlinks, keeps code and protected comments unchanged, flags ticketless TODOs, and never pushes. Report-only proposals keep the target's read-only Codex sandbox and completion checks. Return its checked report directly; do not run another trim pass.

Apply the target's moved/copied-text scope and current-code retention checks. Return all declined proposals with their reasons, supporting evidence and unresolved checks, including in dry runs.

Skill dependencies

  • Required: trim-text
  • Optional: None
Files

What ships with it

1 file 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. 28d ago Changed · -342 lines d0b4f451c2dd
  2. 1mo ago Changed 960c7f3a6edf
  3. 1mo ago Changed · +21 lines 86cebb5e9d1b
  4. 1mo ago First seen · 349 lines · 53 tokens per session scan A 76e5ef1eb362

Subscribe to this mod's changes

trim-comments is a skill published in the GitHub repository cboone/agent-harness-plugins (3 stars, last pushed 5d ago), licensed MIT. It adds 53 tokens to every session and 460 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-10-08.

Related

trim-comments compared with skills from other repositories

trim-comments next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
trim-commentscboone/agent-harness-pluginsSkill35d agoMITA53Claude Code
chat-complex-documentsvellum-ai/vellum-assistantSkill1.5k6d agoMITA90Claude Code, Codex
tui-migrate-setupwarpdotdev/warpSkill66ktodayAGPL-3.0B75Claude Code, Codex
agent-qa-testingvibeeval/vibecosystemSkill55419d agoMITA58Claude Code, Codex
sync-local-reposvinta/hal-9000Skill144todayMITA38Claude Code, Codex
bootstrap-prdjoshukraine/dotfilesSkill4307d agoMITA25Claude Code
talk-stage1-extractFlorianBruniaux/claude-code-pluginsSkill47todayMITA64Claude Code