Remove comments that restate code and shorten comments that preserve necessary rationale or traps. Use before committing or when a diff is over-commented.
Ships in nt-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Delete comments that restate the code and shorten the ones worth keeping.
A comment stays only when both hold:
A comment that stays explains why a choice wins or warns of a trap. Keep it to one line when possible and two at most, and never longer than the code it covers.
Delete comments that describe code, explain well-named values or routine config switches, narrate a change, repeat another comment or a memory rule, or carry authorship, tags, or dates. Old comments face the same test.
Inspect the union of:
--repo covers every tracked source file. List the resolved files before editing.
Skip generated, vendored, dependency, lock, and prose files. Keep shebangs, licenses,
directives, lint and type suppressions, TODOs and FIXMEs linked to an issue, hook headers,
FIX RUNBOOK blocks, and comment-like text inside strings or embedded programs.
Read each comment in context. Delete the ones that fail the test, then shorten the rest. Keep a trap warning at the line it protects. Ask before moving broader rationale into a commit body, PR, or repo memory file. Leave edits uncommitted.
Confirm every diff hunk changed only comments:
git diff -U0 | grep -E '^[+-]' | grep -vE '^(\+\+\+|---)' | grep -vE '^[+-][[:space:]]*(#|//|/\*|\*|--|$)'
The command prints every changed line that is not a whole-line comment. Expect output only where a trailing comment changed on a line of code. Skip checks CI already runs.
Report the changed files and counts for deleted, shortened, kept, and skipped.
What SKILL.md sets; muted values are Claude Code's defaults
high/nt-dev:trim-comments [path-or-glob | --repo]from nt-dev
npx claudepluginhub notambourine/agent-plugins --plugin nt-dev9 skills in this plugin
/cleanupAudit checked-in repo context and Claude config. Use when memory files, rules, skills, settings, or hooks may be stale, duplicated, or drifting from code./commitWrite and create focused git commits. Use when the user asks to commit or finished work needs committing./eod-updateDraft a Slack end-of-day update on progress against epics and goals. Use when the user asks for an EOD, end-of-day, or daily status note./eow-updateDraft the end-of-week update in one fixed format - what is new, what was fixed, what is waiting - with screenshots and videos of the changes attached. Sweeps the user's week in GitHub and Slack and leaves one Slack draft, written so the PM can pass it on or build the client's final update from it. Use on Friday or for a weekly, end-of-week, or client update with pictures. For the whole team's text recap use nt-pm:weekly-recap.Other plugins' skills for the same job