Trim ai Comments
Strips AI filler comments from a branch's changes, keeping only what the code and its types cannot say, matched to your repo's own commenting style.
$9
Works with the AI Agents you already use
trim-ai-comments
Example session with this skill installed
trim the comments on this branch, they look AI-generated
- Read your context and instructions
- Compiled the trim-ai-comments
Removed 14 of 19 added comment blocks: 9 restated the next line, 3 JSDoc blocks repeated the signature, 2 Arrange/Act/Assert labels the suite does not use. Kept 4: a unit (epoch seconds), a retry reason, a webhook source, an API quirk. Rewrote 1 five-line note to one sentence. git diff shows only comment lines changed.
Connects securely to your tools. The creator never sees your data.
About this skill
Coding agents leave comments that restate the code: // Set the user name above user.name, JSDoc that repeats the TypeScript signature, Arrange/Act/Assert labels nobody asked for. trim-ai-comments removes them and keeps the comments that carry real information.
How it works
- A bundled script lists every comment block the branch added (committed, uncommitted and untracked), and marks lint suppressions, licence headers and other functional pragmas as protected.
- It reads how your project already comments (CLAUDE.md, lint rules, neighbouring files) before judging anything, so a dense-comment codebase keeps its style and a bare one stays bare.
- Each comment gets CUT, REWRITE or KEEP from a catalogue of AI comment shapes and a position-by-position table. Units, sentinels, API quirks, cross-file coupling and "why" stay; restatements and type echoes go.
- It edits only comment lines, then checks
git diffthat no code changed.
Safe by default: only comments the current branch added are touched, moved lines are double-checked with git so old comments are not deleted by mistake, and generated files are skipped.
Only judges comments the current branch added; pre-existing comments are left alone except ones made stale by the branch. Needs a git repo. The script recognises about 40 file types; others are reviewed by reading the diff.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 21 days ago
Requires
Permissions
File Scopes
Runs a bundled read-only Python script that lists comments added since the base branch. Edits only comment lines, then checks git diff that no code changed.