Skip to content
Back to skills

Trim Comments

ASecurity

Trim and rewrite code comments in changed files or given paths: what the code does, then the minimum why. Use for "trim comments" or a comment that is too long or jargony; not for PR review comments or general code cleanup.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 10, 2026
developmentgo

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 10, 2026

npx -y skills add cboone/agent-harness-plugins --skill trim-comments --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Trim Comments?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Trim Comments
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cboone-trim-comments/badge)](https://www.skillsdirectory.com/skills/cboone-trim-comments)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: trim-comments
description: >-
  Trim and rewrite code comments in changed files or given paths: what the code
  does, then the minimum why. Use for "trim comments" or a comment that is too
  long or jargony; not for PR review comments or general code cleanup.
argument-hint: "[paths...] [--dry-run] [--no-commit] [--no-codex]"
---

# 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 in this skill

  • SKILL.md2.1 KB
  • references/codex-exec.md6.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.