Prune Comments

Finds comments made redundant by the code beneath them — plain restatements, name echoes, banners, signature echoes — and reports them as removal candidates with each one's code line. Comments that carry what the code cannot state are protected — the why behind a decision, workarounds and invariants, TODO/FIXME/HACK, license headers and tool directives like eslint-disable or noqa. Defaults to the working diff, takes a whole path when named, never scanning a repo unasked. Presents candidates first, removing nothing without confirmation; edits comments only, never code, never commits or pushes. Use when the user wants to prune, clean up, audit or remove redundant, obvious, noisy or superfluous comments, asks which comments a file no longer needs, or says things like "clean up the comments", "remove the pointless comments", "Kommentare aufräumen", "überflüssige Kommentare entfernen".

TitusKirch 6127404 3 files · 41.7 KB Updated

File contents

TitusKirch/skills/tree/main/skills/repo/prune-comments commit 6127404946

Frequently asked questions

npx skillmds@latest add tituskirch/prune-comments